Skip to content

Commit

Permalink
Revert "Update read-pkg-up usage to work with version 7 (#8299)"
Browse files Browse the repository at this point in the history
This reverts commit 49ee0ca.
  • Loading branch information
shilman committed Oct 7, 2019
1 parent 8e0ac7c commit d852091
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 { packageJson: { dependencies, devDependencies } = {} } = readPkgUp.sync() || {};
const { package: { dependencies, devDependencies } = {} } = readPkgUp.sync() || {};

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

0 comments on commit d852091

Please sign in to comment.