Skip to content

Commit

Permalink
make create-repo-node-app build work cross-platform (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbCaudill authored Nov 9, 2023
1 parent 67bd6ad commit ada1259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/create-repo-node-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"type": "module",
"bin": "dist/index.js",
"scripts": {
"build": "tsc && chmod a+x dist/index.js",
"build": "tsc",
"postbuild": "node postbuild.js",
"watch": "npm-watch build"
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/create-repo-node-app/postbuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import fs from "fs"

fs.chmodSync("dist/index.js", "755")

0 comments on commit ada1259

Please sign in to comment.