From 0e24022608ff3387a1f8459d3738376442e877aa Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" <23040076+greenkeeper[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2019 06:06:46 +0000 Subject: [PATCH] fix(package): update read-pkg-up to version 7.0.0 --- lib/get-config.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/get-config.js b/lib/get-config.js index 45073bcdc4..3423ad6cb2 100644 --- a/lib/get-config.js +++ b/lib/get-config.js @@ -85,6 +85,6 @@ module.exports = async (context, opts) => { }; async function pkgRepoUrl(opts) { - const {package: pkg} = (await readPkgUp(opts)) || {}; - return pkg && (isPlainObject(pkg.repository) ? pkg.repository.url : pkg.repository); + const {packageJson} = (await readPkgUp(opts)) || {}; + return packageJson && (isPlainObject(packageJson.repository) ? packageJson.repository.url : packageJson.repository); } diff --git a/package.json b/package.json index 38adbc1ad9..88d3aaae41 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "marked-terminal": "^3.2.0", "p-locate": "^4.0.0", "p-reduce": "^2.0.0", - "read-pkg-up": "^6.0.0", + "read-pkg-up": "^7.0.0", "resolve-from": "^5.0.0", "semver": "^6.0.0", "signale": "^1.2.1",