Skip to content

Commit aacbdc1

Browse files
committed
fix: Broken updateNotifier
1 parent d63fea2 commit aacbdc1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cli.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/usr/bin/env node
22

3-
import fs from 'node:fs/promises';
43
import meow from 'meow';
54
import logSymbols from 'log-symbols';
65
import updateNotifier from 'update-notifier';
76

87
import errorNotifier from './lib/error-notifier.js';
98

10-
const packageJson = JSON.parse(await fs.readFile('package.json'));
119
const cli = meow(
1210
`
1311
Usage
@@ -60,7 +58,7 @@ const cli = meow(
6058
},
6159
);
6260

63-
updateNotifier({pkg: packageJson}).notify();
61+
updateNotifier({pkg: cli.pkg}).notify();
6462

6563
if (cli.input.length === 0 && cli.flags.v === true) {
6664
cli.showVersion();

0 commit comments

Comments
 (0)