Merge pull request #8839 from backstage/rugvip/exit
scripts/api-extractor: exit on tsc failure
This commit is contained in:
@@ -801,7 +801,7 @@ async function main() {
|
||||
|
||||
if (runTsc) {
|
||||
await fs.remove(resolvePath(projectRoot, 'dist-types'));
|
||||
spawnSync(
|
||||
const { status } = spawnSync(
|
||||
'yarn',
|
||||
[
|
||||
'tsc',
|
||||
@@ -815,6 +815,9 @@ async function main() {
|
||||
cwd: projectRoot,
|
||||
},
|
||||
);
|
||||
if (status !== 0) {
|
||||
process.exit(status);
|
||||
}
|
||||
}
|
||||
|
||||
const packageDirs = selectedPackageDirs ?? (await findPackageDirs());
|
||||
|
||||
Reference in New Issue
Block a user