Skip to content

Commit

Permalink
fix: Crash when creating patches
Browse files Browse the repository at this point in the history
Fixes ds300#229 using the working patch defined there.
  • Loading branch information
kf6kjg authored Oct 8, 2020
1 parent 50f73bd commit bd66aee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/makePatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
})
}
}
Expand Down

0 comments on commit bd66aee

Please sign in to comment.