Skip to content

Commit

Permalink
fix: update read-pkg-up usage to work with version 7
Browse files Browse the repository at this point in the history
`read-pkg-up` was updated from version `6` to `7` in a89e02e
But the breaking change explained here https://github.com/sindresorhus/read-pkg-up/releases/tag/v7.0.0 wasn't applied so I just applied it
  • Loading branch information
gaetanmaisse committed Oct 5, 2019
1 parent ddb0dfa commit 3626645
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

0 comments on commit 3626645

Please sign in to comment.