Skip to content

Commit 78a2b68

Browse files
committed
fixup! fix(@angular/cli): discover migrations from installed packages when omitted by registry metadata
TAG=agy CONV=b92ba928-67b0-4f4b-a79a-ce19e5098641
1 parent c957ded commit 78a2b68

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • packages/angular/cli/src/commands/update

packages/angular/cli/src/commands/update/cli.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,15 @@ async function readPackageManifest(manifestPath: string): Promise<PackageManifes
707707
}
708708
}
709709

710+
/**
711+
* Resolves migrations from installed package manifests on disk when they were omitted
712+
* from the initial update plan.
713+
*
714+
* This fallback is necessary because private package registries (such as GitHub Packages)
715+
* frequently strip custom non-npm metadata properties (like `ng-update`) from their remote
716+
* registry API responses. By inspecting `node_modules/<package>/package.json` after installation,
717+
* we ensure that any migration collections defined by the package are discovered and queued.
718+
*/
710719
export async function resolveFallbackMigrations(
711720
workspaceRoot: string,
712721
plan: UpdatePlan,

0 commit comments

Comments
 (0)