Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit eddd6e5

Browse files
committed
fix(cli): Fix issue with right cwd not being set
1 parent a07f16e commit eddd6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/bin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const yargs = require('yargs')
66
const updateNotifier = require('update-notifier')
77
const readPkgUp = require('read-pkg-up')
88

9-
const pkg = readPkgUp.sync().pkg
9+
const pkg = readPkgUp.sync({cwd: __dirname}).pkg
1010
updateNotifier({
1111
pkg,
1212
updateCheckInterval: 1000 * 60 * 60 * 24 * 7 // 1 week

0 commit comments

Comments
 (0)