Skip to content

Commit 3a2e421

Browse files
committed
reduced package size
1 parent cd52aed commit 3a2e421

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

package.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@
55
"license": "GPL-3.0",
66
"main": "dist/index.js",
77
"typings": "dist/index.d.ts",
8-
"files": [
9-
"dist",
10-
"src"
11-
],
8+
"files": ["dist/**/*"],
129
"engines": {
1310
"node": ">=14"
1411
},
1512
"scripts": {
1613
"start": "tsdx watch",
17-
"build": "tsdx build",
14+
"build": "rm -rf dist && yarn tsc",
1815
"test": "tsdx test --passWithNoTests",
1916
"lint": "tsdx lint",
20-
"typecheck": "tsc",
17+
"typecheck": "tsc --noEmit",
2118
"prepare": "yarn generate",
2219
"prepublishOnly": "yarn build",
2320
"format": "prettier --ignore-path .gitignore --write \"{*,**/*}.{ts,tsx,js,jsx,json,yml,yaml,md,css,scss,sol}\"",
@@ -37,10 +34,7 @@
3734
"url": "https://github.com/quest-chains/sdk/issues"
3835
},
3936
"homepage": "https://github.com/quest-chains/sdk#readme",
40-
"keywords": [
41-
"ethereum",
42-
"quest-chains"
43-
],
37+
"keywords": ["ethereum", "quest-chains"],
4438
"prettier": {
4539
"semi": true,
4640
"trailingComma": "all",

tsconfig.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
2-
"include": ["src"],
2+
"include": ["src/**/*"],
3+
"exclude": ["node_modules"],
34
"compilerOptions": {
4-
"module": "esnext",
5+
"typeRoots": ["node_modules/@types"],
6+
"module": "commonjs",
7+
"resolveJsonModule": true,
58
"lib": ["esnext"],
69
"importHelpers": true,
710
"declaration": true,
811
"sourceMap": true,
9-
"rootDir": "./src",
12+
"rootDir": "src",
13+
"outDir": "dist",
1014
"strict": true,
1115
"noImplicitReturns": true,
1216
"noFallthroughCasesInSwitch": true,
@@ -15,7 +19,6 @@
1519
"moduleResolution": "node",
1620
"esModuleInterop": true,
1721
"skipLibCheck": true,
18-
"forceConsistentCasingInFileNames": true,
19-
"noEmit": true
22+
"forceConsistentCasingInFileNames": true
2023
}
2124
}

0 commit comments

Comments
 (0)