Skip to content

Commit ea5f35c

Browse files
authored
fix: reduce production build dependencies (#635)
1 parent 25b502e commit ea5f35c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
"homepage": "http://zeromq.github.io/zeromq.js/",
2121
"dependencies": {
2222
"@aminya/node-gyp-build": "4.8.1-aminya.1",
23-
"cross-env": "^7.0.3",
2423
"node-addon-api": "^7.1.0",
25-
"shelljs": "^0.8.5",
26-
"shx": "^0.3.4"
24+
"shelljs": "^0.8.5"
2725
},
2826
"devDependencies": {
2927
"@types/chai": "^4.3.16",
@@ -56,7 +54,9 @@
5654
"ts-node": "~10.9.2",
5755
"typedoc": "^0.25.13",
5856
"typescript": "~4.9.5",
59-
"which": "^4.0.0"
57+
"which": "^4.0.0",
58+
"cross-env": "^7.0.3",
59+
"shx": "^0.3.4"
6060
},
6161
"pnpm": {
6262
"overrides": {
@@ -82,7 +82,7 @@
8282
"tsconfig.json"
8383
],
8484
"scripts": {
85-
"install": "(shx test -f ./script/build.js || run-s build.js) && cross-env npm_config_build_from_source=true aminya-node-gyp-build",
85+
"install": "(npm run build.js || echo ok) && aminya-node-gyp-build --build-from-source",
8686
"clean": "shx rm -rf ./build ./lib/ ./prebuilds ./script/*.js ./script/*.js.map ./script/*.d.ts ./script/*.tsbuildinfo",
8787
"clean.release": "shx rm -rf ./build/Release",
8888
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)