Skip to content

Commit

Permalink
fixed the use of 'read-pkg-up'
Browse files Browse the repository at this point in the history
  • Loading branch information
lprintf committed Sep 24, 2021
1 parent b64e4fd commit ceb6afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/check-update.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit ceb6afe

Please sign in to comment.