From 74103abac4c09dde87205a088ba1aca482bf7352 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Sun, 12 May 2019 15:50:54 +0000 Subject: [PATCH] fix(package): update read-pkg-up to version 6.0.0 --- lib/get-config.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/get-config.js b/lib/get-config.js index 1745eaf1..45073bcd 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 {pkg} = await readPkgUp(opts); + const {package: pkg} = (await readPkgUp(opts)) || {}; return pkg && (isPlainObject(pkg.repository) ? pkg.repository.url : pkg.repository); } diff --git a/package.json b/package.json index 35438d15..2ee85592 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "marked-terminal": "^3.2.0", "p-locate": "^4.0.0", "p-reduce": "^2.0.0", - "read-pkg-up": "^5.0.0", + "read-pkg-up": "^6.0.0", "resolve-from": "^5.0.0", "semver": "^6.0.0", "signale": "^1.2.1",