Skip to content

Commit 8e4a380

Browse files
Bump read-pkg from 3.0.0 to 5.2.0 (#223)
* Bump read-pkg from 3.0.0 to 5.2.0 Bumps [read-pkg](https://github.com/sindresorhus/read-pkg) from 3.0.0 to 5.2.0. - [Release notes](https://github.com/sindresorhus/read-pkg/releases) - [Commits](sindresorhus/read-pkg@v3.0.0...v5.2.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * [INTERNAL] Update usage of read-pkg Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Matthias Osswald <[email protected]>
1 parent 7c2033c commit 8e4a380

File tree

3 files changed

+79
-29
lines changed

3 files changed

+79
-29
lines changed

lib/translators/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class NpmTranslator {
190190
async readProject({modulePath, moduleName, parentPath}) {
191191
let {pPkg} = this.projectCache[modulePath] || {};
192192
if (!pPkg) {
193-
pPkg = readPkg(modulePath).catch((err) => {
193+
pPkg = readPkg({cwd: modulePath}).catch((err) => {
194194
// Failed to read package
195195
// If dependency shim is available, fake the package
196196

package-lock.json

Lines changed: 77 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"mkdirp": "^1.0.3",
113113
"pacote": "^11.1.4",
114114
"pretty-hrtime": "^1.0.3",
115-
"read-pkg": "^3.0.0",
115+
"read-pkg": "^5.2.0",
116116
"read-pkg-up": "^4.0.0",
117117
"resolve": "^1.15.1",
118118
"string.prototype.matchall": "^4.0.2"

0 commit comments

Comments
 (0)