From c9dba04f562d6a7328867a878a5df4271184a97e Mon Sep 17 00:00:00 2001 From: Daniel Bannert Date: Sat, 19 Jun 2021 20:19:29 +0200 Subject: [PATCH] Fix so that npm scripts don't run on `blitz install` recipes (#2498) Co-authored-by: danielb (patch) --- packages/cli/src/commands/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/install.ts b/packages/cli/src/commands/install.ts index 895ac79f10..45edd899db 100644 --- a/packages/cli/src/commands/install.ts +++ b/packages/cli/src/commands/install.ts @@ -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)