Skip to content

Commit

Permalink
Fix so that npm scripts don't run on blitz install recipes (#2498)
Browse files Browse the repository at this point in the history
Co-authored-by: danielb <[email protected]> (patch)
  • Loading branch information
prisis authored Jun 19, 2021
1 parent a2c6c9c commit c9dba04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class Install extends Command {

const isYarn = require("fs-extra").existsSync(require("path").resolve("yarn.lock"))
const pkgManager = isYarn ? "yarn" : "npm"
const installArgs = isYarn ? ["install"] : ["install", "--legacy-peer-deps"]
const installArgs = isYarn ? ["install", "--ignore-scripts"] : ["install", "--legacy-peer-deps", "--ignore-scripts"]
await new Promise((resolve) => {
const installProcess = require("cross-spawn")(pkgManager, installArgs)
installProcess.on("exit", resolve)
Expand Down

0 comments on commit c9dba04

Please sign in to comment.