We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f61385 commit 8c86289Copy full SHA for 8c86289
bin/cli.mjs
@@ -1,7 +1,7 @@
1
#!/usr/bin/env node
2
3
import { resolve } from 'node:path';
4
-import { argv, exit } from 'node:process';
+import process from 'node:process';
5
6
import { Command, Option } from 'commander';
7
@@ -77,7 +77,7 @@ program
77
.choices(Object.keys(reporters))
78
.default('console')
79
)
80
- .parse(argv);
+ .parse(process.argv);
81
82
/**
83
* @typedef {keyof generators} Target A list of the available generator names.
@@ -148,4 +148,4 @@ if (target) {
148
// Reports Lint Content
149
linter.report(reporter);
150
151
-exit(Number(linter.hasError()));
+process.exitCode = Number(linter.hasError());
0 commit comments