Skip to content

Commit

Permalink
[build] fix build-deploy
Browse files Browse the repository at this point in the history
add require to child_process
set prebuild as devDependdencies
  • Loading branch information
xVan Turing authored and xVan Turing committed May 23, 2019
1 parent c00c341 commit 3185838
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^1.6.3",
"prebuild": "^8.2.1",
"prebuild-install": "^5.3.0",
"sharp": "^0.22.1"
},
"devDependencies": {
"@types/node": "^10.14.4",
"typescript": "^3.4.3",
"async": "^2.6.2"
"async": "^2.6.2",
"prebuild": "^8.2.1"
},
"binary": {
"napi_versions": [
Expand Down
3 changes: 2 additions & 1 deletion script/build-deploy.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const async = require('async')
const spawn = require('child_process').spawn
const allVersion = [
{ r: "napi", t: "3" },
{ r: "napi", t: "4" },
{ r: "electron", t: "3.0.0" },
{ r: "electron", t: "4.2.2" },
{ r: "electron", t: "5.0.1" },
]
const async = require('async')
if (process.env.BUILD_PREBUILDS) {

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

0 comments on commit 3185838

Please sign in to comment.