From bd66aee5fa47be6f80a62a2b7e97994d6b229c8b Mon Sep 17 00:00:00 2001 From: Ricky Curtice Date: Thu, 8 Oct 2020 13:31:56 -0700 Subject: [PATCH] fix: Crash when creating patches Fixes #229 using the working patch defined there. --- src/makePatch.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/makePatch.ts b/src/makePatch.ts index 8ebeab17..0a6054c6 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -144,12 +144,14 @@ export function makePatch({ spawnSafeSync(`npm`, ["i"], { cwd: tmpRepoNpmRoot, logStdErrOnError: false, + stdio: 'ignore', }) } catch (e) { // try again while ignoring scripts in case the script depends on // an implicit context which we havn't reproduced spawnSafeSync(`npm`, ["i", "--ignore-scripts"], { cwd: tmpRepoNpmRoot, + stdio: 'ignore', }) } }