diff --git a/packages/angular/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.ts b/packages/angular/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.ts index 140e21d668ecf..22fbcb7346a6f 100644 --- a/packages/angular/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.ts +++ b/packages/angular/src/migrations/update-14-2-0/update-libraries-secondary-entrypoints.ts @@ -2,6 +2,7 @@ import { formatFiles, getProjects, joinPathFragments, + normalizePath, readJson, Tree, visitNotIgnoredFiles, @@ -30,7 +31,8 @@ export default async function (tree: Tree) { visitNotIgnoredFiles(tree, project.root, (filePath) => { if ( basename(filePath) !== 'package.json' || - filePath === joinPathFragments(project.root, 'package.json') + normalizePath(filePath) === + joinPathFragments(project.root, 'package.json') ) { return; }