Skip to content

Commit c43deef

Browse files
committed
fix: add build:declaration script and run it during build
1 parent 0d48d63 commit c43deef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
1616
"test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --watchAll",
1717
"prepare": "is-ci || husky install",
18-
"build": "npm run clean && npm run build:esm && npm run build:cjs",
18+
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run build:declaration",
1919
"build:esm": "tsc --module ES2020 --outDir dist/esm",
2020
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
21+
"build:declaration": "tsc --module system --declaration --emitDeclarationOnly --outFile dist/types/index.d.ts",
2122
"lint": "eslint \"src/*.ts\"",
2223
"clean": "rimraf dist"
2324
},

0 commit comments

Comments
 (0)