Skip to content

Commit 74b74fb

Browse files
committed
Use prebuildify-load.
1 parent b752446 commit 74b74fb

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
.PHONY: update-yosys build-yosys all
22

3+
all: build-yosys-napi
4+
35
update-yosys:
46
git submodule update --init
57
git submodule foreach git pull origin master
68

79
build-yosys: update-yosys
810
cd yosys-src && echo "ENABLE_LIBYOSYS=1" > Makefile.conf && make
911

10-
all: build-yosys
12+
build-yosys-napi: build-yosys
13+
rm -rf build
14+
node-gyp configure
15+
node-gyp build

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const binding = require('node-gyp-build')(__dirname)
1+
const binding = require('prebuildify-load')(__dirname)
22

33
module.exports = binding

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "ISC",
99
"dependencies": {
1010
"node-addon-api": "^1.4.0",
11-
"node-gyp-build": "^3.4.0"
11+
"prebuildify-load": "^1.0.1"
1212
},
1313
"devDependencies": {
1414
"prebuildify": "^2.7.0",
@@ -17,10 +17,9 @@
1717
"tape": "^4.9.1"
1818
},
1919
"scripts": {
20-
"prepare": "node-gyp-build || true",
21-
"build": "rm -rf build && make build-yosys && node-gyp-build",
20+
"install": "prebuildify-load || make",
2221
"test": "standard && tape tests/test.js",
23-
"prebuild": "rm -rf build && make build-yosys && prebuildify --napi",
22+
"prebuild": "prebuildify --napi",
2423
"prepublishOnly": "prebuildify-ci download"
2524
},
2625
"standard": {

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -1112,10 +1112,6 @@ node-addon-api@^1.4.0:
11121112
version "1.4.0"
11131113
resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.4.0.tgz#4c43e4c1ed8fbf3176ce71003f352329adad87eb"
11141114

1115-
node-gyp-build@^3.4.0:
1116-
version "3.4.0"
1117-
resolved "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-3.4.0.tgz#f8f62507e65f152488b28aac25d04b9d79748cf7"
1118-
11191115
normalize-package-data@^2.3.2:
11201116
version "2.4.0"
11211117
resolved "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f"
@@ -1294,6 +1290,10 @@ prebuildify-ci@^1.0.2:
12941290
tar-fs "^1.16.0"
12951291
unzip "^0.1.11"
12961292

1293+
prebuildify-load@^1.0.1:
1294+
version "1.0.1"
1295+
resolved "https://registry.npmjs.org/prebuildify-load/-/prebuildify-load-1.0.1.tgz#c46e571f0b2b94d619775c9d4ea5719a2b884950"
1296+
12971297
prebuildify@^2.7.0:
12981298
version "2.7.0"
12991299
resolved "https://registry.npmjs.org/prebuildify/-/prebuildify-2.7.0.tgz#f5a9aa9c4df35f4d9479a5ff50dce5b6b24faf92"

0 commit comments

Comments
 (0)