Skip to content

Commit 7add2e6

Browse files
committed
fix: check for the existence of build.js in a clean repo
1 parent d05dae6 commit 7add2e6

File tree

2 files changed

+38
-28
lines changed

2 files changed

+38
-28
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"dependencies": {
2020
"node-addon-api": "^5.0.0",
2121
"node-gyp-build": "^4.5.0",
22-
"shelljs": "^0.8.5"
22+
"shelljs": "^0.8.5",
23+
"shx": "^0.3.4"
2324
},
2425
"devDependencies": {
2526
"@gnd/typedoc": "^0.15.0-0",
@@ -46,7 +47,6 @@
4647
"prettier": "^2.7.1",
4748
"rocha": "^2.5.10",
4849
"semver": ">=7",
49-
"shx": "^0.3.4",
5050
"tar-fs": "^2.1.1",
5151
"ts-morph": "^16.0.0",
5252
"ts-node": "10.9",
@@ -70,7 +70,7 @@
7070
"tsconfig.json"
7171
],
7272
"scripts": {
73-
"install": "node-gyp-build",
73+
"install": "(shx test -f ./script/build.js || run-s build.js) && node-gyp-build",
7474
"clean": "shx rm -rf ./build ./lib/ ./prebuilds",
7575
"clean.temp": "shx rm -rf ./tmp && shx mkdir -p tmp && shx touch tmp/.gitkeep",
7676
"build.library": "shx rm -rf ./lib && tsc && node script/ci/downlevel-dts.js",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)