Skip to content

Commit 33f7386

Browse files
Bump read-pkg-up from 7.0.1 to 10.1.0 (#871)
* Bump read-pkg-up from 7.0.1 to 10.1.0 Bumps [read-pkg-up](https://github.com/sindresorhus/read-pkg-up) from 7.0.1 to 10.1.0. - [Release notes](https://github.com/sindresorhus/read-pkg-up/releases) - [Commits](sindresorhus/read-package-up@v7.0.1...v10.1.0) --- updated-dependencies: - dependency-name: read-pkg-up dependency-version: 10.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * adjust api * adjust api * Update router.js * Update router.js --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Shima <[email protected]>
1 parent 34b6428 commit 33f7386

File tree

4 files changed

+453
-131
lines changed

4 files changed

+453
-131
lines changed

lib/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import path from 'path';
33
import titleize from 'titleize';
44
import humanizeString from 'humanize-string';
5-
import readPkgUp from 'read-pkg-up';
5+
import {readPackageUpSync} from 'read-pkg-up';
66
import updateNotifier from 'update-notifier';
77
import Configstore from 'configstore';
88
import {namespaceToName} from './utils/namespace.js';
@@ -60,7 +60,7 @@ export default class Router {
6060
return;
6161
}
6262

63-
const {packageJson: pkg} = readPkgUp.sync({cwd: path.dirname(generator.resolved)});
63+
const {packageJson: pkg} = readPackageUpSync({cwd: path.dirname(generator.resolved)});
6464

6565
if (!pkg) {
6666
return;

0 commit comments

Comments
 (0)