Skip to content

Commit 1e91172

Browse files
committed
chore: Update build script and TypeScript configuration
- Modified the build script to clean the dist directory before building. - Enabled declaration files and declaration maps in tsconfig.json for better type support.
1 parent 176b894 commit 1e91172

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"registry": "https://registry.npmjs.org"
4242
},
4343
"scripts": {
44-
"build": "tsc && shx chmod +x dist/*.js",
44+
"build": "rm -rf dist && tsc && shx chmod +x dist/*.js",
4545
"watch": "tsc --watch",
4646
"start": "node dist/index.js",
4747
"prepublishOnly": "pnpm run build",

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"moduleResolution": "Node16",
77
"resolveJsonModule": true,
88
"strict": true,
9+
"declaration": true,
10+
"declarationMap": true,
911
"outDir": "./dist",
1012
"esModuleInterop": true,
1113
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)