File tree Expand file tree Collapse file tree 15 files changed +31
-33
lines changed
component/schematics-core/utility
data/schematics-core/utility
entity/schematics-core/utility
operators/schematics-core/utility
router-store/schematics-core/utility
schematics/schematics-core/utility
migrations/18_0_0-rc_3-writablestatesource
store-devtools/schematics-core/utility
store/schematics-core/utility Expand file tree Collapse file tree 15 files changed +31
-33
lines changed Original file line number Diff line number Diff line change 55import { createWorkspace } from '@ngrx/schematics-core/testing' ;
66import { tags } from '@angular-devkit/core' ;
77import * as path from 'path' ;
8- import { LogEntry } from '@angular-devkit/core/src/logger/index ' ;
8+ import { logging } from '@angular-devkit/core' ;
99
1010describe ( 'ComponentStore Migration to 18.0.0-beta' , ( ) => {
1111 const collectionPath = path . join ( __dirname , '../migration.json' ) ;
@@ -196,7 +196,7 @@ class SomeEffects {}
196196 ` ;
197197
198198 appTree . create ( 'main.ts' , input ) ;
199- const logEntries : LogEntry [ ] = [ ] ;
199+ const logEntries : logging . LogEntry [ ] = [ ] ;
200200 schematicRunner . logger . subscribe ( ( logEntry ) => logEntries . push ( logEntry ) ) ;
201201 await schematicRunner . runSchematic (
202202 `ngrx-component-store-migration-18-beta` ,
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 33 UnitTestTree ,
44} from '@angular-devkit/schematics/testing' ;
55import { createWorkspace } from '@ngrx/schematics-core/testing' ;
6- import { tags } from '@angular-devkit/core' ;
6+ import { tags , logging } from '@angular-devkit/core' ;
77import * as path from 'path' ;
8- import { LogEntry } from '@angular-devkit/core/src/logger/logger' ;
98
109describe ( 'Effects Migration to 18.0.0-beta' , ( ) => {
1110 const collectionPath = path . join ( __dirname , '../migration.json' ) ;
@@ -194,7 +193,7 @@ class SomeEffects {}
194193 ` ;
195194
196195 appTree . create ( 'main.ts' , input ) ;
197- const logEntries : LogEntry [ ] = [ ] ;
196+ const logEntries : logging . LogEntry [ ] = [ ] ;
198197 schematicRunner . logger . subscribe ( ( logEntry ) => logEntries . push ( logEntry ) ) ;
199198 await schematicRunner . runSchematic (
200199 `ngrx-effects-migration-18-beta` ,
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
Original file line number Diff line number Diff line change 1- import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions ' ;
1+ import { workspaces } from '@angular-devkit/core' ;
22import { getWorkspace } from './config' ;
33import { SchematicsException , Tree } from '@angular-devkit/schematics' ;
44
55export interface WorkspaceProject {
66 root : string ;
77 projectType : string ;
88 architect : {
9- [ key : string ] : TargetDefinition ;
9+ [ key : string ] : workspaces . TargetDefinition ;
1010 } ;
1111}
1212
You can’t perform that action at this time.
0 commit comments