Skip to content

Commit 3185838

Browse files
xVan TuringxVan Turing
authored andcommitted
[build] fix build-deploy
add require to child_process set prebuild as devDependdencies
1 parent c00c341 commit 3185838

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
"dependencies": {
2828
"bindings": "^1.5.0",
2929
"node-addon-api": "^1.6.3",
30-
"prebuild": "^8.2.1",
3130
"prebuild-install": "^5.3.0",
3231
"sharp": "^0.22.1"
3332
},
3433
"devDependencies": {
3534
"@types/node": "^10.14.4",
3635
"typescript": "^3.4.3",
37-
"async": "^2.6.2"
36+
"async": "^2.6.2",
37+
"prebuild": "^8.2.1"
3838
},
3939
"binary": {
4040
"napi_versions": [

script/build-deploy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
const async = require('async')
2+
const spawn = require('child_process').spawn
13
const allVersion = [
24
{ r: "napi", t: "3" },
35
{ r: "napi", t: "4" },
46
{ r: "electron", t: "3.0.0" },
57
{ r: "electron", t: "4.2.2" },
68
{ r: "electron", t: "5.0.1" },
79
]
8-
const async = require('async')
910
if (process.env.BUILD_PREBUILDS) {
1011

1112
if (process.env.TRAVIS_BRANCH === "master" || process.env.APPVEYOR_REPO_BRANCH === "master") {

0 commit comments

Comments
 (0)