Skip to content

Commit 94c50fa

Browse files
committed
fix: fixup for import statements for logger and workspace
1 parent d2ee22c commit 94c50fa

File tree

15 files changed

+31
-33
lines changed

15 files changed

+31
-33
lines changed

modules/component-store/migrations/18_0_0-beta/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
import { createWorkspace } from '@ngrx/schematics-core/testing';
66
import { tags } from '@angular-devkit/core';
77
import * as path from 'path';
8-
import { LogEntry } from '@angular-devkit/core/src/logger/index';
8+
import { logging } from '@angular-devkit/core';
99

1010
describe('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`,

modules/component-store/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/component/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/data/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/effects/migrations/18_0_0-beta/index.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import {
33
UnitTestTree,
44
} from '@angular-devkit/schematics/testing';
55
import { createWorkspace } from '@ngrx/schematics-core/testing';
6-
import { tags } from '@angular-devkit/core';
6+
import { tags, logging } from '@angular-devkit/core';
77
import * as path from 'path';
8-
import { LogEntry } from '@angular-devkit/core/src/logger/logger';
98

109
describe('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`,

modules/effects/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/entity/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/operators/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/router-store/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

modules/schematics-core/utility/project.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { TargetDefinition } from '@angular-devkit/core/src/workspace/definitions';
1+
import { workspaces } from '@angular-devkit/core';
22
import { getWorkspace } from './config';
33
import { SchematicsException, Tree } from '@angular-devkit/schematics';
44

55
export interface WorkspaceProject {
66
root: string;
77
projectType: string;
88
architect: {
9-
[key: string]: TargetDefinition;
9+
[key: string]: workspaces.TargetDefinition;
1010
};
1111
}
1212

0 commit comments

Comments
 (0)