Skip to content

Commit 245837f

Browse files
deps: update read-pkg-up
1 parent aa24a1b commit 245837f

File tree

3 files changed

+55
-25
lines changed

3 files changed

+55
-25
lines changed

Diff for: package-lock.json

+51-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"module-deps-sortable": "^5.0.3",
3939
"parse-filepath": "^1.0.2",
4040
"pify": "^5.0.0",
41-
"read-pkg-up": "^4.0.0",
41+
"read-pkg-up": "^9.0.0",
4242
"remark": "^13.0.0",
4343
"remark-gfm": "^1.0.0",
4444
"remark-html": "^13.0.1",

Diff for: src/merge_config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import conf from './config.js';
22
import yaml from 'js-yaml';
33
import fs from 'fs';
44
import pify from 'pify';
5-
import readPkgUp from 'read-pkg-up';
5+
import { readPackageUp } from 'read-pkg-up';
66
import path from 'path';
77
import stripComments from 'strip-json-comments';
88

@@ -35,9 +35,9 @@ async function readPackage(noPackage) {
3535
}
3636
const param = ['name', 'homepage', 'version', 'description'];
3737
try {
38-
const { pkg } = await readPkgUp();
38+
const { packageJson } = await readPackageUp();
3939
return param.reduce((res, key) => {
40-
res[`project-${key}`] = global[key] || pkg[key];
40+
res[`project-${key}`] = global[key] || packageJson[key];
4141
return res;
4242
}, {});
4343
} catch (e) {

0 commit comments

Comments
 (0)