Skip to content

Commit 336c9c9

Browse files
committed
Update build command to also produce typescript declaration files
1 parent 0a77a4e commit 336c9c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
"test": "tests"
88
},
99
"scripts": {
10-
"build": "webpack",
11-
"typegen": "tsc src/*.js --outDir dist/types --allowJs --declaration --emitDeclarationOnly",
10+
"webpack": "webpack",
11+
"typegen": "tsc ./src/transformers.js --outDir dist/types --allowJs --declaration --emitDeclarationOnly",
1212
"dev": "webpack serve --no-client-overlay",
13-
"test": "node tests/index.js"
13+
"test": "node tests/index.js",
14+
"build": "npm run webpack && npm run typegen"
1415
},
1516
"repository": {
1617
"type": "git",

0 commit comments

Comments
 (0)