fix: require bounded loop-status exit-code watch

This commit is contained in:
Affaan Mustafa
2026-04-30 10:06:53 -04:00
parent 6decc41121
commit 5aff158511
3 changed files with 13 additions and 0 deletions

View File

@@ -116,6 +116,10 @@ function parseArgs(argv) {
}
}
if (options.exitCode && options.watch && options.watchCount === null) {
throw new Error('--exit-code with --watch requires --watch-count so the process can exit');
}
return options;
}