emit exit code only in lint mode
This commit is contained in:
parent
01741d4fae
commit
8b489f1c1b
|
@ -124,8 +124,8 @@ const formatSchema = schemaPath => {
|
|||
console.error(
|
||||
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
|
||||
);
|
||||
process.exitCode = 1;
|
||||
}
|
||||
process.exitCode = 1;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
@ -154,8 +154,8 @@ for (const sourceFile of program.getSourceFiles()) {
|
|||
}
|
||||
}
|
||||
console.log();
|
||||
process.exitCode = 1;
|
||||
}
|
||||
process.exitCode = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue