Skip to content

Commit

Permalink
Update read-pkg-up usage to work with version 7 (#8299)
Browse files Browse the repository at this point in the history
Update `read-pkg-up` usage to work with version `7`
  • Loading branch information
ndelangen authored and shilman committed Oct 7, 2019
1 parent aeda584 commit 49ee0ca
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,7 +2,7 @@ import fs from 'fs';
import path from 'path';
import readPkgUp from 'read-pkg-up';

const { package: { dependencies, devDependencies } = {} } = readPkgUp.sync() || {};
const { packageJson: { dependencies, devDependencies } = {} } = readPkgUp.sync() || {};

export default function hasDependency(name) {
return (
Expand Down

0 comments on commit 49ee0ca

Please sign in to comment.