Skip to content

Commit 2f25296

Browse files
hanslclydin
authored andcommitted
fix(@angular/cli): packageFilter needs to return a value
Otherwise it throws and the resolution can be buggy.
1 parent e15a5be commit 2f25296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/upgrade/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class Version {
5454
const angularCliPath = resolve.sync('@angular/cli', {
5555
basedir: process.cwd(),
5656
packageFilter: (pkg: any, _pkgFile: string) => {
57-
packageJson = pkg;
57+
return packageJson = pkg;
5858
}
5959
});
6060
if (angularCliPath && packageJson) {

0 commit comments

Comments
 (0)