Skip to content

Commit

Permalink
Split build-cjs script into two
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 27, 2023
1 parent 5141f8e commit 51e4479
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
"require": "./dist/cjs/index.js"
},
"scripts": {
"build": "yarn build-esm && yarn build-cjs",
"build": "yarn build-esm && yarn build-cjs && yarn build-cjs-package",
"build-esm": "tsc --project tsconfig.build.json --outDir dist/esm --module esnext",
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs && echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"build-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs",
"build-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json",
"clean": "rimraf dist",
"lint": "eslint .",
"postinstall": "husky install",
Expand Down

0 comments on commit 51e4479

Please sign in to comment.