fix(core): ensure default path is set for control flow migration#64296
fix(core): ensure default path is set for control flow migration#64296aparzi wants to merge 1 commit intoangular:mainfrom
Conversation
When running the control flow migration via `ng update`, the path parameter could be undefined. This change ensures a default value of './' is used when no path is explicitly provided, making the migration work consistently between `ng update` and `ng generate` commands. Fixes angular#63294
|
I doesn't merge cleanly into the patch branch. Can you open a 2nd PR that targets the |
I opened 2nd PR --> #64298 |
|
This shouldn't be necessary after #64253. |
|
Then we should probably backport it to patch as we already have the reports in #63294. |
|
My impression was that the migration is in |
|
The migration was only via |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue occurred because
ng updatedoesn't apply schema defaults likeng generatedoes. This fix handles both cases by explicitly setting default values in the migration code.Issue Number: #63294
What is the new behavior?
This change ensures a default value of './' is used when no path is explicitly provided, making the migration work consistently between
ng updateandng generatecommands.Does this PR introduce a breaking change?