Yarn replace-fork should not silently error (#22156)
This commit is contained in:
parent
fc3b6a4118
commit
4df10c5871
|
@ -22,7 +22,15 @@ async function main() {
|
|||
await Promise.all(oldFilenames.map(unforkFile));
|
||||
|
||||
// Use ESLint to autofix imports
|
||||
spawnSync('yarn', ['linc', '--fix']);
|
||||
const spawn = spawnSync('yarn', ['linc', '--fix'], {
|
||||
stdio: ['inherit', 'inherit', 'pipe'],
|
||||
});
|
||||
if (spawn.stderr.toString() !== '') {
|
||||
spawnSync('git', ['checkout', '.']);
|
||||
|
||||
console.log(Error(spawn.stderr));
|
||||
process.exitCode = 1;
|
||||
}
|
||||
}
|
||||
|
||||
async function unforkFile(oldFilename) {
|
||||
|
|
Loading…
Reference in New Issue