Skip to content

Commit

Permalink
fix: do not fail on build.js in the install script
Browse files Browse the repository at this point in the history
The install script runs on the user machine, and at that point, the JavaScript files are already included in the package
  • Loading branch information
aminya committed Jun 19, 2024
1 parent af3534c commit f70c148
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
"homepage": "http://zeromq.github.io/zeromq.js/",
"dependencies": {
"@aminya/node-gyp-build": "4.8.1-aminya.1",
"cross-env": "^7.0.3",
"node-addon-api": "^7.1.0",
"shelljs": "^0.8.5",
"shx": "^0.3.4"
"shelljs": "^0.8.5"
},
"devDependencies": {
"@types/chai": "^4.3.16",
Expand Down Expand Up @@ -56,7 +54,9 @@
"ts-node": "~10.9.2",
"typedoc": "^0.25.13",
"typescript": "~4.9.5",
"which": "^4.0.0"
"which": "^4.0.0",
"cross-env": "^7.0.3",
"shx": "^0.3.4"
},
"pnpm": {
"overrides": {
Expand All @@ -82,7 +82,7 @@
"tsconfig.json"
],
"scripts": {
"install": "(shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true aminya-node-gyp-build",
"install": "(npm run build.js || echo ok) && aminya-node-gyp-build --build-from-source",
"clean": "shx rm -rf ./build ./lib/ ./prebuilds ./script/*.js ./script/*.js.map ./script/*.d.ts ./script/*.tsbuildinfo",
"clean.release": "shx rm -rf ./build/Release",
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp",
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f70c148

Please sign in to comment.