Skip to content

Commit 4ca04f6

Browse files
authored
Merge pull request #271 from kf6kjg/patch-1
fix: Crash when creating patches
2 parents e2d2d88 + bd66aee commit 4ca04f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/makePatch.ts

+2
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,14 @@ export function makePatch({
153153
spawnSafeSync(`npm`, ["i"], {
154154
cwd: tmpRepoNpmRoot,
155155
logStdErrOnError: false,
156+
stdio: 'ignore',
156157
})
157158
} catch (e) {
158159
// try again while ignoring scripts in case the script depends on
159160
// an implicit context which we havn't reproduced
160161
spawnSafeSync(`npm`, ["i", "--ignore-scripts"], {
161162
cwd: tmpRepoNpmRoot,
163+
stdio: 'ignore',
162164
})
163165
}
164166
}

0 commit comments

Comments
 (0)