Skip to content

Commit 6594096

Browse files
committed
fix(migrations): use bare specifier to escape encapsulation on dynamic import
1 parent 33598f8 commit 6594096

File tree

9 files changed

+24
-8
lines changed

9 files changed

+24
-8
lines changed

projects/igniteui-angular/migrations/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"typeRoots": [
99
"../../../node_modules/@types"
1010
],
11+
"paths": {
12+
"igniteui-angular/*": [
13+
"../*"
14+
],
15+
"@infragistics/igniteui-angular/*": [
16+
"../*"
17+
],
18+
}
1119
},
1220
"exclude": [
1321
"../../../node_modules",

projects/igniteui-angular/migrations/update-11_0_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { Element } from '@angular/compiler';
22
import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
33
import { UpdateChanges } from '../common/UpdateChanges';
44
import { FileChange, findElementNodes, getAttribute, getSourceOffset, hasAttribute, parseFile, serializeNodes } from '../common/util';
5-
import { nativeImport } from '../common/import-helper.js';
5+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
6+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
67

78
const version = '11.0.0';
89

projects/igniteui-angular/migrations/update-12_0_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { Element } from '@angular/compiler';
22
import type { Rule, SchematicContext, Tree } from '@angular-devkit/schematics';
33
import { UpdateChanges } from '../common/UpdateChanges';
44
import { FileChange, getAttribute, findElementNodes, getSourceOffset, hasAttribute, parseFile } from '../common/util';
5-
import { nativeImport } from '../common/import-helper.js';
5+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
6+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
67
import { Options } from '../../schematics/interfaces/options';
78

89
const version = '12.0.0';

projects/igniteui-angular/migrations/update-12_1_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {
55
FileChange, findElementNodes, getAttribute, getSourceOffset, hasAttribute, parseFile,
66
serializeNodes, makeNgIf, stringifyAttributes
77
} from '../common/util';
8-
import { nativeImport } from '../common/import-helper.js';
8+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
9+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
910

1011
const version = '12.1.0';
1112

projects/igniteui-angular/migrations/update-13_0_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import type {
77
import type { Options } from '../../schematics/interfaces/options';
88
import { UpdateChanges } from '../common/UpdateChanges';
99
import { FileChange, findElementNodes, getAttribute, getSourceOffset, hasAttribute, parseFile } from '../common/util';
10-
import { nativeImport } from '../common/import-helper.js';
10+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
11+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
1112

1213
const version = '13.0.0';
1314

projects/igniteui-angular/migrations/update-13_1_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import type {
44
Tree
55
} from '@angular-devkit/schematics';
66
import type { Element } from '@angular/compiler';
7-
import { nativeImport } from '../common/import-helper.js';
7+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
8+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
89
import { UpdateChanges } from '../common/UpdateChanges';
910
import { FileChange, findElementNodes, getAttribute, getSourceOffset, hasAttribute, parseFile } from '../common/util';
1011

projects/igniteui-angular/migrations/update-15_1_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import type {
44
Tree
55
} from '@angular-devkit/schematics';
66
import type { Element } from '@angular/compiler';
7-
import { nativeImport } from '../common/import-helper.js';
7+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
8+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
89
import type { Options } from '../../schematics/interfaces/options';
910
import { BoundPropertyObject, InputPropertyType, UpdateChanges } from '../common/UpdateChanges';
1011
import { FileChange, findElementNodes, getAttribute, getSourceOffset, parseFile, hasAttribute } from '../common/util';

projects/igniteui-angular/migrations/update-16_1_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import type {
55
} from '@angular-devkit/schematics';
66
import { UpdateChanges } from '../common/UpdateChanges';
77
import { FileChange, findElementNodes, getAttribute, getSourceOffset, hasAttribute, parseFile } from '../common/util';
8-
import { nativeImport } from '../common/import-helper.js';
8+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
9+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
910
import type { Element } from '@angular/compiler';
1011

1112
const version = '16.1.0';

projects/igniteui-angular/migrations/update-17_0_0/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import type {
66
import type { Element } from '@angular/compiler';
77
import * as ts from 'typescript';
88
import { UpdateChanges } from '../common/UpdateChanges';
9-
import { nativeImport } from '../common/import-helper.js';
9+
// use bare specifier to escape the schematics encapsulation for the dynamic import:
10+
import { nativeImport } from 'igniteui-angular/migrations/common/import-helper.js';
1011
import { namedImportFilter } from '../common/tsUtils';
1112
import { FileChange, findElementNodes, getAttribute, getSourceOffset, hasAttribute, parseFile } from '../common/util';
1213

0 commit comments

Comments
 (0)