Skip to content

Commit 622fbcd

Browse files
committed
fix: abort generation early
1 parent 92a37b5 commit 622fbcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/commands/generate.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ export default {
130130

131131
linter.report();
132132

133+
if (linter.hasError()) {
134+
console.error('Lint failed; aborting generation.');
135+
process.exit(1);
136+
}
137+
133138
const { runGenerators } = createGenerator(docs);
134139
const { getAllMajors } = createNodeReleases(opts.changelog);
135140

0 commit comments

Comments
 (0)