Skip to content

Commit

Permalink
fix(pkg): output cjs with target es2015 for older nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
gadicc committed Jul 21, 2021
1 parent 1c35004 commit f61fa46
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/**/*.ts,lib/options.ts}' -t '*' | node bin/schema-tweak.js > schema.json",
"build": "yarn run build:esm && yarn run build:cjs && yarn run build:post",
"build:esm": "tsc --module es2020 --outDir dist/esm",
"build:cjs": "tsc --module commonjs --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json",
"build:cjs": "tsc --module commonjs --target es2015 --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json",
"build:post": "bin/json-transform.sh",
"generateSchema": "yarn schema",
"prepublishOnly": "yarn build && yarn generateSchema && yarn build:post",
Expand Down

0 comments on commit f61fa46

Please sign in to comment.