fix(package): update read-pkg-up to version 7.0.0
This commit is contained in:
parent
5986bf920e
commit
0e24022608
@ -85,6 +85,6 @@ module.exports = async (context, opts) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function pkgRepoUrl(opts) {
|
async function pkgRepoUrl(opts) {
|
||||||
const {package: pkg} = (await readPkgUp(opts)) || {};
|
const {packageJson} = (await readPkgUp(opts)) || {};
|
||||||
return pkg && (isPlainObject(pkg.repository) ? pkg.repository.url : pkg.repository);
|
return packageJson && (isPlainObject(packageJson.repository) ? packageJson.repository.url : packageJson.repository);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"marked-terminal": "^3.2.0",
|
"marked-terminal": "^3.2.0",
|
||||||
"p-locate": "^4.0.0",
|
"p-locate": "^4.0.0",
|
||||||
"p-reduce": "^2.0.0",
|
"p-reduce": "^2.0.0",
|
||||||
"read-pkg-up": "^6.0.0",
|
"read-pkg-up": "^7.0.0",
|
||||||
"resolve-from": "^5.0.0",
|
"resolve-from": "^5.0.0",
|
||||||
"semver": "^6.0.0",
|
"semver": "^6.0.0",
|
||||||
"signale": "^1.2.1",
|
"signale": "^1.2.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user