File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
projects/igniteui-angular/migrations Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff 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 } (` ;
Original file line number Diff line number Diff 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 > ) ;
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments