We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe489e1 commit 515bf07Copy full SHA for 515bf07
packages/cli/bin/run.js
@@ -1,7 +1,7 @@
1
#!/usr/bin/env node
2
import process from 'node:process';
3
import semver from 'semver';
4
-import { execute } from '@oclif/core';
+import { flush, handle, run } from '@oclif/core';
5
import { nodeVersion } from '../dist/version.js';
6
7
if (!semver.satisfies(process.version, nodeVersion)) {
@@ -11,4 +11,6 @@ if (!semver.satisfies(process.version, nodeVersion)) {
11
process.exit(1);
12
}
13
14
-await execute({ dir: import.meta.url });
+await run(process.argv.slice(2), import.meta.url)
15
+ .catch(async error => handle(error))
16
+ .finally(async () => flush());
0 commit comments