Skip to content

Commit db9d679

Browse files
committed
fix(@angular/cli): use parsed package name for migrate-only updates
This change updates the update command to use the parsed package name from `npm-package-arg` instead of the raw input string when performing a 'migrate-only' update. This ensures that package identifiers are correctly and consistently handled.
1 parent 998b829 commit db9d679

File tree

1 file changed

+1
-1
lines changed
  • packages/angular/cli/src/commands/update

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export default class UpdateCommandModule extends CommandModule<UpdateCommandArgs
265265
return options.migrateOnly
266266
? this.migrateOnly(
267267
workflow,
268-
(options.packages ?? [])[0],
268+
packages[0].name as string,
269269
rootDependencies,
270270
options,
271271
packageManager,

0 commit comments

Comments
 (0)