Merge pull request #8839 from backstage/rugvip/exit

scripts/api-extractor: exit on tsc failure
This commit is contained in:
Ben Lambert
2022-01-10 13:53:45 +01:00
committed by GitHub
+4 -1
View File
@@ -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());