Skip to content

Commit 11ab689

Browse files
authored
Merge pull request #6643 from IgniteUI/dpetev/migration-logs
Minor migration updates
2 parents b7c1647 + 25a4ab2 commit 11ab689

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

projects/igniteui-angular/migrations/common/UpdateChanges.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ export class UpdateChanges {
186186
const pos = positions[i];
187187
fileContent = fileContent.slice(0, pos.start) + change.replaceWith + fileContent.slice(pos.end);
188188
}
189-
this.host.overwrite(entryPath, fileContent);
189+
if (positions.length) {
190+
this.host.overwrite(entryPath, fileContent);
191+
}
190192
}
191193
}
192194
}
@@ -266,7 +268,7 @@ export class UpdateChanges {
266268
continue;
267269
}
268270
for (const match of matches) {
269-
if (match.indexOf(change.name)) {
271+
if (match.indexOf(change.name) !== -1) {
270272
const name = change.name.replace('$', '\\$');
271273
const reg = new RegExp(String.raw`^\s*${name}:`);
272274
const opening = `${change.owner}(`;

projects/igniteui-angular/migrations/common/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function getProjects(config: WorkspaceSchema): WorkspaceProject<ProjectTy
4242
for (const projName of Object.keys(config.projects)) {
4343
const proj = config.projects[projName];
4444
if ((proj.projectType && proj.projectType !== ProjectType.Application) ||
45-
(proj.architect && proj.architect.e2e)) {
45+
(proj.architect && proj.architect.e2e && !proj.architect.build)) {
4646
continue;
4747
}
4848
projects.push(proj as WorkspaceProject<ProjectType.Application>);

projects/igniteui-angular/migrations/migration-collection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
},
6464
"migration-13": {
6565
"version": "9.0.0",
66-
"description": "Updates Ignite UI for Angular from v8.2.x to v9.2.0",
66+
"description": "Updates Ignite UI for Angular from v8.2.x to v9.0.0",
6767
"factory": "./update-9_0_0"
6868
}
6969
}

0 commit comments

Comments
 (0)