fix(migrations): resolve text replacement issue (#59452)

Based on https://github.com/angular/angular/pull/59353#issuecomment-2580320424, fixes a text replacement issue that seems to cause code to be duplicated in some setups.

PR Close #59452
This commit is contained in:
Kristiyan Kostadinov
2025-01-09 15:42:10 +01:00
committed by kirjs
parent 53c8dc6d70
commit 14fb8ce4c0
@@ -67,7 +67,7 @@ export function migrate(): Rule {
for (const c of changes) {
recorder
.remove(c.data.position, c.data.end - c.data.position)
.insertLeft(c.data.position, c.data.toInsert);
.insertRight(c.data.position, c.data.toInsert);
}
tree.commitUpdate(recorder);
}