Skip to content

Commit 8c86289

Browse files
authored
fix: don’t force exit the program (#235)
* fix: don’t force exit the program * fixup! * fixup! * fixup! again…
1 parent 3f61385 commit 8c86289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/cli.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
import { resolve } from 'node:path';
4-
import { argv, exit } from 'node:process';
4+
import process from 'node:process';
55

66
import { Command, Option } from 'commander';
77

@@ -77,7 +77,7 @@ program
7777
.choices(Object.keys(reporters))
7878
.default('console')
7979
)
80-
.parse(argv);
80+
.parse(process.argv);
8181

8282
/**
8383
* @typedef {keyof generators} Target A list of the available generator names.
@@ -148,4 +148,4 @@ if (target) {
148148
// Reports Lint Content
149149
linter.report(reporter);
150150

151-
exit(Number(linter.hasError()));
151+
process.exitCode = Number(linter.hasError());

0 commit comments

Comments
 (0)