Skip to content

Commit bd66aee

Browse files
authored
fix: Crash when creating patches
Fixes ds300#229 using the working patch defined there.
1 parent 50f73bd commit bd66aee

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
@@ -144,12 +144,14 @@ export function makePatch({
144144
spawnSafeSync(`npm`, ["i"], {
145145
cwd: tmpRepoNpmRoot,
146146
logStdErrOnError: false,
147+
stdio: 'ignore',
147148
})
148149
} catch (e) {
149150
// try again while ignoring scripts in case the script depends on
150151
// an implicit context which we havn't reproduced
151152
spawnSafeSync(`npm`, ["i", "--ignore-scripts"], {
152153
cwd: tmpRepoNpmRoot,
154+
stdio: 'ignore',
153155
})
154156
}
155157
}

0 commit comments

Comments
 (0)