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 d63fea2 commit aacbdc1Copy full SHA for aacbdc1
cli.js
@@ -1,13 +1,11 @@
1
#!/usr/bin/env node
2
3
-import fs from 'node:fs/promises';
4
import meow from 'meow';
5
import logSymbols from 'log-symbols';
6
import updateNotifier from 'update-notifier';
7
8
import errorNotifier from './lib/error-notifier.js';
9
10
-const packageJson = JSON.parse(await fs.readFile('package.json'));
11
const cli = meow(
12
`
13
Usage
@@ -60,7 +58,7 @@ const cli = meow(
60
58
},
61
59
);
62
63
-updateNotifier({pkg: packageJson}).notify();
+updateNotifier({pkg: cli.pkg}).notify();
64
65
if (cli.input.length === 0 && cli.flags.v === true) {
66
cli.showVersion();
0 commit comments