Skip to content

Commit ab26c72

Browse files
committed
JavaScript: Fix postbuild chmod to use numeric mode
fs.chmodSync does not accept shell-style string modes like '+x'. Use the numeric mode 0o755 instead.
1 parent b65f9c0 commit ab26c72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rewrite-javascript/rewrite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"scripts": {
4848
"prebuild": "bun -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && bun -e \"require('fs').rmSync('tsconfig.build.tsbuildinfo',{force:true})\"",
4949
"build": "tsc --build tsconfig.build.json",
50-
"postbuild": "bun -e \"require('fs').chmodSync('dist/rpc/server.js', '+x')\" && npm link",
50+
"postbuild": "bun -e \"require('fs').chmodSync('dist/rpc/server.js', 0o755)\" && npm link",
5151
"typecheck": "tsc --noEmit -p tsconfig.test.json",
5252
"dev": "tsc --watch -p tsconfig.json",
5353
"test": "npm run typecheck && npm run build && bun run testhelper",

0 commit comments

Comments
 (0)