Skip to content

Commit

Permalink
Fix npm install in bundlejs for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
twavv committed Dec 21, 2018
1 parent 3a159a4 commit ab00d19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/_bundlejs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ cd(joinpath(dirname(@__FILE__), "..", "packages")) do
node = NodeJS.nodejs_cmd()
npm = NodeJS.npm_cmd()

run(`$npm install --scripts-prepend-node-path`)
run(`$npm install --scripts-prepend-node-path=auto --unsafe-perm`)
if haskey(ENV, "WEBIO_WEBPACK_ARGS")
args = [ENV["WEBIO_WEBPACK_ARGS"]]
else
args =[]
end
run(`$npm run build-prod --scripts-prepend-node-path -- $args`)
run(`$npm run build-prod --scripts-prepend-node-path=auto --unsafe-perm -- $args`)
end
1 change: 1 addition & 0 deletions packages/webio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "tsc -p .",
"build-prod": "npm run build",
"prepack": "npm run build"
}
}

0 comments on commit ab00d19

Please sign in to comment.