Skip to content

Commit 5f9432b

Browse files
authored
Merge pull request #537 from zeromq/node-gyp-build-spawn [skip ci]
2 parents f5f6f86 + 9759f35 commit 5f9432b

File tree

5 files changed

+16
-26
lines changed

5 files changed

+16
-26
lines changed

.github/workflows/CI.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
114114
- name: Install Dependencies and Build
115115
if: ${{ !matrix.docker }}
116-
run: pnpm install
116+
run: pnpm install --verbose
117117

118118
- name: Prebuild
119119
if: ${{ !matrix.docker }}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ package-lock=false
33
lockfile=true
44
prefer-frozen-lockfile=false
55
strict-peer-dependencies=false
6+
build-from-source=true

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"url": "https://github.com/zeromq/zeromq.js.git"
1818
},
1919
"dependencies": {
20-
"@aminya/node-gyp-build": "4.5.0-aminya.1",
20+
"@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

+9-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,5 @@
2323
"ES2020",
2424
"dom"
2525
]
26-
},
27-
"include": [
28-
"src",
29-
"script",
30-
"examples"
31-
]
26+
}
3227
}

0 commit comments

Comments
 (0)