Skip to content

Commit

Permalink
Fix issue with package.json inference when using the cwd option (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmamal authored Apr 12, 2020
1 parent ebde077 commit 3ef2da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Conf {
};

const getPackageData = onetime(() => {
const packagePath = pkgUp.sync(parentDir);
const packagePath = pkgUp.sync({cwd: parentDir});
// Can't use `require` because of Webpack being annoying:
// https://github.com/webpack/webpack/issues/196
const packageData = packagePath && JSON.parse(fs.readFileSync(packagePath, 'utf8'));
Expand Down

0 comments on commit 3ef2da0

Please sign in to comment.