Skip to content

Commit

Permalink
Fix read-pkg-up
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 31, 2021
1 parent 3c4869a commit 7f71711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/main.js
Expand Up @@ -3,7 +3,7 @@ import { dirname } from 'path'
import { exit } from 'process'
import { fileURLToPath } from 'url'

import { readPackageUpAsync } from 'read-pkg-up'
import { readPackageUp } from 'read-pkg-up'
import UpdateNotifier from 'update-notifier'

import { print, repl } from '../main.js'
Expand All @@ -28,7 +28,7 @@ const runCli = async function () {
// TODO: use static JSON imports once those are possible
const checkUpdate = async function () {
const cwd = dirname(fileURLToPath(import.meta.url))
const { packageJson } = await readPackageUpAsync({ cwd, normalize: false })
const { packageJson } = await readPackageUp({ cwd, normalize: false })
UpdateNotifier({ pkg: packageJson }).notify()
}

Expand Down

0 comments on commit 7f71711

Please sign in to comment.