Skip to content

Commit 0e51d5c

Browse files
committed
Add package script for running CJS build
1 parent dfcc7b6 commit 0e51d5c

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
@@ -19,7 +19,8 @@
1919
"./*": "./*"
2020
},
2121
"scripts": {
22-
"build": "tsc && npm run build:esm",
22+
"build": "npm run build:cjs && npm run build:esm",
23+
"build:cjs": "tsc",
2324
"build:esm": "tsc --target esnext --module esnext --outDir dist/esm && mv dist/esm/binary_parser.js dist/esm/binary_parser.mjs",
2425
"fmt": "prettier --write \"{lib,example,test,benchmark}/**/*.{ts,js}\"",
2526
"check-fmt": "prettier --list-different \"{lib,example,test,benchmark}/**/*.{ts,js}\"",

0 commit comments

Comments
 (0)