Skip to content

Commit eed96b3

Browse files
committed
Simplify postcompile script to use echo instead of node -e
1 parent 86ccc1c commit eed96b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"scripts": {
3333
"compile": "tsc --build tsconfig.build.json",
34-
"postcompile": "node -e \"const fs = require('fs'); fs.writeFileSync('dist/esm/package.json', JSON.stringify({type:'module'})); fs.writeFileSync('dist/cjs/package.json', JSON.stringify({type:'commonjs'}));\"",
34+
"postcompile": "echo '{\"type\":\"module\"}' > dist/esm/package.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
3535
"clean": "git clean -dfqX",
3636
"prepack": "npm run compile",
3737
"prettier-check": "prettier --check .",

0 commit comments

Comments
 (0)