Skip to content

Commit

Permalink
build:cjs - change package.json "type"
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed May 6, 2021
1 parent 860dd4d commit 9ab2906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"schema": "ts-json-schema-generator -f tsconfig.json -p 'src/{modules,typings}/**/*.ts' -t '*' | node bin/schema-tweak.js > schema.json",
"build": "yarn run build:esm && yarn run build:cjs",
"build:esm": "tsc --module es2020 --outDir dist/esm",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"build:cjs": "tsc --module commonjs --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json",
"generateSchema": "yarn schema",
"prepublishOnly": "yarn build && yarn generateSchema",
"test": "node --experimental-vm-modules node_modules/.bin/jest",
Expand Down

0 comments on commit 9ab2906

Please sign in to comment.