Skip to content

Commit

Permalink
fix: Broken updateNotifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mischah committed Sep 15, 2022
1 parent d63fea2 commit aacbdc1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cli.js
@@ -1,13 +1,11 @@
#!/usr/bin/env node

import fs from 'node:fs/promises';
import meow from 'meow';
import logSymbols from 'log-symbols';
import updateNotifier from 'update-notifier';

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

const packageJson = JSON.parse(await fs.readFile('package.json'));
const cli = meow(
`
Usage
Expand Down Expand Up @@ -60,7 +58,7 @@ const cli = meow(
},
);

updateNotifier({pkg: packageJson}).notify();
updateNotifier({pkg: cli.pkg}).notify();

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

0 comments on commit aacbdc1

Please sign in to comment.