Skip to content

Commit 2cdf0d2

Browse files
committed
fix: add missing prebuilds + add node-gyp to dependencies
1 parent a72203b commit 2cdf0d2

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"@aminya/node-gyp-build": "4.8.1-aminya.1",
2323
"node-addon-api": "^7.1.0",
2424
"shelljs": "^0.8.5",
25-
"cross-env": "^7.0.3"
25+
"cross-env": "^7.0.3",
26+
"node-gyp": "^10.2.0"
2627
},
2728
"devDependencies": {
2829
"@types/chai": "^4.3.16",
@@ -46,7 +47,6 @@
4647
"gh-pages": "^6.1.1",
4748
"minify-all-cli": "^1.0.13",
4849
"mocha": "^10.4.0",
49-
"node-gyp": "^10.1.0",
5050
"npm-run-all2": "^6.2.0",
5151
"prebuildify": "^6.0.1",
5252
"prettier": "^3.3.2",
@@ -84,11 +84,12 @@
8484
"scripts": {
8585
"install": "cross-env npm_config_build_from_source=true aminya-node-gyp-build",
8686
"prepare": "pnpm run build.js",
87-
"clean": "shx rm -rf ./build ./lib/ ./prebuilds",
87+
"clean": "shx rm -rf ./build ./prebuilds && run-p clean.lib clean.script clean.temp",
88+
"clean.lib": "shx rm -rf ./lib/",
8889
"clean.script": "shx rm -rf ./script/*.js ./script/*.mjs ./script/*.js.map ./script/*.mjs.map ./script/*.d.ts ./script/*.d.mts ./script/*.cjs ./scripts/*.cjs.map ./scripts/*.d.cts ./script/*.tsbuildinfo",
8990
"clean.release": "shx rm -rf ./build/Release",
9091
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p ./tmp",
91-
"build.library": "tsc -p ./src/tsconfig.json && run-s build.downlevel",
92+
"build.library": "run-s clean.lib && tsc -p ./src/tsconfig.json && run-s build.downlevel",
9293
"build.downlevel": "downlevel-dts ./lib ./lib/ts3.7",
9394
"build.script": "tsc -p ./script/tsconfig.esm.json && tsc -p ./script/tsconfig.json",
9495
"build.js": "run-p build.script build.library",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)