Skip to content

Commit 9759f35

Browse files
committed
fix: set npm_config_build_from_source for production
1 parent 8f4984d commit 9759f35

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"@aminya/node-gyp-build": "4.5.0-aminya.4",
2121
"node-addon-api": "^5.0.0",
2222
"shelljs": "^0.8.5",
23-
"shx": "^0.3.4"
23+
"shx": "^0.3.4",
24+
"cross-env": "^7.0.3"
2425
},
2526
"devDependencies": {
2627
"@gnd/typedoc": "^0.15.0-0",
@@ -34,7 +35,6 @@
3435
"@types/which": "^2.0.1",
3536
"benchmark": "^2.1.4",
3637
"chai": "^4.3.7",
37-
"cross-env": "^7.0.3",
3838
"deasync": "^0.1.28",
3939
"downlevel-dts": "^0.11.0",
4040
"eslint-config-atomic": "^1.18.1",
@@ -69,7 +69,7 @@
6969
"tsconfig.json"
7070
],
7171
"scripts": {
72-
"install": "(shx test -f ./script/build.js || run-s build.js) && node-gyp-build",
72+
"install": "(shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true node-gyp-build",
7373
"clean": "shx rm -rf ./build ./lib/ ./prebuilds ./script/*.js ./script/*.js.map ./script/*.d.ts ./script/*.tsbuildinfo",
7474
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp && shx touch ./tmp/.gitkeep",
7575
"build.library": "tsc -p ./src/tsconfig.json && downlevel-dts ./lib ./lib/ts3.7 --to=3.7",

pnpm-lock.yaml

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)