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 Oct 5, 2019
2 parents ddb0dfa + 3626645 commit 61cd6cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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

1 comment on commit 61cd6cd

@vercel
Copy link

@vercel vercel bot commented on 61cd6cd Oct 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.