Skip to content

Commit f4081ef

Browse files
manucorporatljharb
authored andcommitted
[Fix] sync: packageFilter should receive 3 arguments
1 parent e5f4f6f commit f4081ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ module.exports = function (x, options) {
139139
} catch (e) {}
140140

141141
if (opts.packageFilter) {
142-
pkg = opts.packageFilter(pkg, x);
142+
pkg = opts.packageFilter(pkg, pkgfile, x);
143143
}
144144

145145
if (pkg.main) {

0 commit comments

Comments
 (0)