Skip to content

Commit 6c12ea8

Browse files
devversionmmalerba
authored andcommitted
build: exit with non-zero status code if rollup globals lint fails (#17910)
1 parent e7508ad commit 6c12ea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-rollup-globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ parsedConfig.fileNames.forEach(fileName => {
6363
if (failures.size) {
6464
console.error(chalk.red(' ✘ Rollup globals are not up-to-date.'));
6565
console.error();
66-
6766
failures.forEach((missingGlobals, fileName) => {
6867
console.error(chalk.yellow(` ⮑ ${fileName}:`));
6968
missingGlobals.forEach(g => console.error(` - ${g}`));
7069
});
70+
process.exit(1);
7171
} else {
7272
console.info(chalk.green(' ✓ Rollup globals are up-to-date.'));
7373
}

0 commit comments

Comments
 (0)