Skip to content

Commit

Permalink
fix: build cjs for es2016
Browse files Browse the repository at this point in the history
in order to support node@12
  • Loading branch information
Xiphe committed Jul 17, 2022
1 parent 6969f0b commit 28f180f
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 @@ -10,7 +10,7 @@
"build": "npm run build:declarations && npm run build:esm && npm run build:cjs",
"build:declarations": "tsc && rm dist/cachified.spec.d.ts",
"build:esm": "esbuild src/index.ts --outfile=dist/index.js --format=esm --bundle --target=es2020 --sourcemap --minify",
"build:cjs": "esbuild src/index.ts --outfile=dist/index.cjs --format=cjs --bundle --target=es2020 --sourcemap --minify",
"build:cjs": "esbuild src/index.ts --outfile=dist/index.cjs --format=cjs --bundle --target=es2016 --sourcemap",
"test": "jest"
},
"repository": {
Expand Down

0 comments on commit 28f180f

Please sign in to comment.