Skip to content

Commit

Permalink
Add package script for running CJS build
Browse files Browse the repository at this point in the history
  • Loading branch information
keichi committed Sep 26, 2021
1 parent dfcc7b6 commit 0e51d5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"./*": "./*"
},
"scripts": {
"build": "tsc && npm run build:esm",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc",
"build:esm": "tsc --target esnext --module esnext --outDir dist/esm && mv dist/esm/binary_parser.js dist/esm/binary_parser.mjs",
"fmt": "prettier --write \"{lib,example,test,benchmark}/**/*.{ts,js}\"",
"check-fmt": "prettier --list-different \"{lib,example,test,benchmark}/**/*.{ts,js}\"",
Expand Down

0 comments on commit 0e51d5c

Please sign in to comment.