Skip to content

Commit

Permalink
fix: Revert fix for breaking change in resolve package after they rev…
Browse files Browse the repository at this point in the history
…erted the breaking change itself.

browserify/resolve@ca0fa41
  • Loading branch information
christopherthielen committed Dec 27, 2019
1 parent c9dfa08 commit d25c43a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/packageUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ export function getPackageDependencies(packagePath: string, packageJson: Package
export function resolvePackageDir(basedir: string, packageName: string) {
let packagePath;

function packageFilter(pkg, pkgfile, pkgdir) {
// In resolve() v2.x this callback has a different signature
// function packageFilter(pkg, pkgfile, pkgdir) {
function packageFilter(pkg, pkgdir) {
packagePath = pkgdir;
return pkg;
}
Expand Down

0 comments on commit d25c43a

Please sign in to comment.