diff --git a/src/cli/check-update.ts b/src/cli/check-update.ts index 18c94ea..1a5319a 100644 --- a/src/cli/check-update.ts +++ b/src/cli/check-update.ts @@ -1,10 +1,10 @@ -import readPkgUp from 'read-pkg-up' +import { readPackageUpAsync } from 'read-pkg-up' import { UpdateNotifier } from 'update-notifier' import { codeRoot } from '../config.js' export function checkUpdate (): void { - readPkgUp({ cwd: codeRoot }) + readPackageUpAsync({ cwd: codeRoot }) .then(pack => { if (!pack) { throw new Error('package.json not found')