Skip to content

Commit

Permalink
fix: set npm_config_build_from_source for production
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 28, 2022
1 parent 8f4984d commit 9759f35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"@aminya/node-gyp-build": "4.5.0-aminya.4",
"node-addon-api": "^5.0.0",
"shelljs": "^0.8.5",
"shx": "^0.3.4"
"shx": "^0.3.4",
"cross-env": "^7.0.3"
},
"devDependencies": {
"@gnd/typedoc": "^0.15.0-0",
Expand All @@ -34,7 +35,6 @@
"@types/which": "^2.0.1",
"benchmark": "^2.1.4",
"chai": "^4.3.7",
"cross-env": "^7.0.3",
"deasync": "^0.1.28",
"downlevel-dts": "^0.11.0",
"eslint-config-atomic": "^1.18.1",
Expand Down Expand Up @@ -69,7 +69,7 @@
"tsconfig.json"
],
"scripts": {
"install": "(shx test -f ./script/build.js || run-s build.js) && node-gyp-build",
"install": "(shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true node-gyp-build",
"clean": "shx rm -rf ./build ./lib/ ./prebuilds ./script/*.js ./script/*.js.map ./script/*.d.ts ./script/*.tsbuildinfo",
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp && shx touch ./tmp/.gitkeep",
"build.library": "tsc -p ./src/tsconfig.json && downlevel-dts ./lib ./lib/ts3.7 --to=3.7",
Expand Down
10 changes: 2 additions & 8 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 9759f35

Please sign in to comment.