@o3r/schematics 10.0.0-next.9 → 11.0.0-next.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/package.json +51 -41
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +3 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.json +2 -2
- package/src/cli/environment.d.ts +2 -0
- package/src/cli/environment.d.ts.map +1 -0
- package/src/cli/environment.js +5 -0
- package/src/cli/environment.js.map +1 -0
- package/src/interfaces/angular-workspace.d.ts +11 -29
- package/src/interfaces/angular-workspace.d.ts.map +1 -1
- package/src/modules/index.d.ts +1 -0
- package/src/modules/index.d.ts.map +1 -1
- package/src/modules/index.js +1 -0
- package/src/modules/index.js.map +1 -1
- package/src/modules/modules.constants.d.ts +6 -2
- package/src/modules/modules.constants.d.ts.map +1 -1
- package/src/modules/modules.constants.js +5 -3
- package/src/modules/modules.constants.js.map +1 -1
- package/src/modules/modules.display.rule.d.ts +26 -0
- package/src/modules/modules.display.rule.d.ts.map +1 -0
- package/src/modules/modules.display.rule.js +45 -0
- package/src/modules/modules.display.rule.js.map +1 -0
- package/src/modules/modules.helpers.d.ts +2 -9
- package/src/modules/modules.helpers.d.ts.map +1 -1
- package/src/modules/modules.helpers.js +1 -6
- package/src/modules/modules.helpers.js.map +1 -1
- package/src/rule-factories/add-imports/index.d.ts +0 -1
- package/src/rule-factories/add-imports/index.d.ts.map +1 -1
- package/src/rule-factories/add-imports/index.js +0 -1
- package/src/rule-factories/add-imports/index.js.map +1 -1
- package/src/rule-factories/check-packages-peers/index.d.ts +0 -1
- package/src/rule-factories/check-packages-peers/index.d.ts.map +1 -1
- package/src/rule-factories/check-packages-peers/index.js +4 -7
- package/src/rule-factories/check-packages-peers/index.js.map +1 -1
- package/src/rule-factories/dev-tools/devtools-registration.d.ts +25 -0
- package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -0
- package/src/rule-factories/dev-tools/devtools-registration.js +89 -0
- package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -0
- package/src/rule-factories/dev-tools/index.d.ts +2 -0
- package/src/rule-factories/dev-tools/index.d.ts.map +1 -0
- package/src/rule-factories/dev-tools/index.js +5 -0
- package/src/rule-factories/dev-tools/index.js.map +1 -0
- package/src/rule-factories/eslint-fix/index.d.ts +1 -18
- package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
- package/src/rule-factories/eslint-fix/index.js +17 -26
- package/src/rule-factories/eslint-fix/index.js.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.d.ts +0 -1
- package/src/rule-factories/get-test-frameworks/index.d.ts.map +1 -1
- package/src/rule-factories/get-test-frameworks/index.js +0 -1
- package/src/rule-factories/get-test-frameworks/index.js.map +1 -1
- package/src/rule-factories/index.d.ts +1 -0
- package/src/rule-factories/index.d.ts.map +1 -1
- package/src/rule-factories/index.js +1 -0
- package/src/rule-factories/index.js.map +1 -1
- package/src/rule-factories/ng-add/index.d.ts +2 -5
- package/src/rule-factories/ng-add/index.d.ts.map +1 -1
- package/src/rule-factories/ng-add/index.js +107 -83
- package/src/rule-factories/ng-add/index.js.map +1 -1
- package/src/rule-factories/remove-packages/index.d.ts +0 -1
- package/src/rule-factories/remove-packages/index.d.ts.map +1 -1
- package/src/rule-factories/remove-packages/index.js +0 -1
- package/src/rule-factories/remove-packages/index.js.map +1 -1
- package/src/rule-factories/update-imports/list-of-vars.d.ts +1 -2
- package/src/rule-factories/update-imports/list-of-vars.d.ts.map +1 -1
- package/src/rule-factories/update-imports/list-of-vars.js.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.d.ts +0 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.d.ts.map +1 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.js +0 -1
- package/src/rule-factories/update-imports/update-imports-with-scope.js.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.d.ts +0 -1
- package/src/rule-factories/update-imports/update-ts-imports.d.ts.map +1 -1
- package/src/rule-factories/update-imports/update-ts-imports.js +0 -1
- package/src/rule-factories/update-imports/update-ts-imports.js.map +1 -1
- package/src/rule-factories/update-imports/v7-to-v8-map-object.js +1 -1
- package/src/rule-factories/update-imports/v7-to-v8-map-object.js.map +1 -1
- package/src/rule-factories/vscode-extensions/index.d.ts +0 -1
- package/src/rule-factories/vscode-extensions/index.d.ts.map +1 -1
- package/src/rule-factories/vscode-extensions/index.js +0 -1
- package/src/rule-factories/vscode-extensions/index.js.map +1 -1
- package/src/rules/install.d.ts +0 -1
- package/src/rules/install.d.ts.map +1 -1
- package/src/rules/install.js +0 -1
- package/src/rules/install.js.map +1 -1
- package/src/tasks/eslint/index.d.ts +17 -1
- package/src/tasks/eslint/index.d.ts.map +1 -1
- package/src/tasks/eslint/index.js +15 -6
- package/src/tasks/eslint/index.js.map +1 -1
- package/src/tasks/package-manager/add-dev-dependency.d.ts +1 -0
- package/src/tasks/package-manager/add-dev-dependency.d.ts.map +1 -1
- package/src/tasks/package-manager/add-dev-dependency.js +3 -1
- package/src/tasks/package-manager/add-dev-dependency.js.map +1 -1
- package/src/tasks/package-manager/interfaces.d.ts +9 -0
- package/src/tasks/package-manager/interfaces.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-install.d.ts +2 -1
- package/src/tasks/package-manager/npm-install.d.ts.map +1 -1
- package/src/tasks/package-manager/npm-install.js +3 -1
- package/src/tasks/package-manager/npm-install.js.map +1 -1
- package/src/utility/ast.d.ts +4 -20
- package/src/utility/ast.d.ts.map +1 -1
- package/src/utility/ast.js +0 -18
- package/src/utility/ast.js.map +1 -1
- package/src/utility/builder.d.ts +11 -0
- package/src/utility/builder.d.ts.map +1 -0
- package/src/utility/builder.js +21 -0
- package/src/utility/builder.js.map +1 -0
- package/src/utility/collection.d.ts +2 -5
- package/src/utility/collection.d.ts.map +1 -1
- package/src/utility/collection.js +11 -9
- package/src/utility/collection.js.map +1 -1
- package/src/utility/component.d.ts +0 -6
- package/src/utility/component.d.ts.map +1 -1
- package/src/utility/component.js +4 -9
- package/src/utility/component.js.map +1 -1
- package/src/utility/dependencies.d.ts +0 -2
- package/src/utility/dependencies.d.ts.map +1 -1
- package/src/utility/dependencies.js +0 -2
- package/src/utility/dependencies.js.map +1 -1
- package/src/utility/environment.d.ts +27 -0
- package/src/utility/environment.d.ts.map +1 -0
- package/src/utility/environment.js +51 -0
- package/src/utility/environment.js.map +1 -0
- package/src/utility/error.d.ts +7 -0
- package/src/utility/error.d.ts.map +1 -0
- package/src/utility/error.js +17 -0
- package/src/utility/error.js.map +1 -0
- package/src/utility/file-info.d.ts +11 -1
- package/src/utility/file-info.d.ts.map +1 -1
- package/src/utility/file-info.js +46 -4
- package/src/utility/file-info.js.map +1 -1
- package/src/utility/generation.d.ts +0 -1
- package/src/utility/generation.d.ts.map +1 -1
- package/src/utility/generation.js +7 -11
- package/src/utility/generation.js.map +1 -1
- package/src/utility/gitignore.d.ts +0 -1
- package/src/utility/gitignore.d.ts.map +1 -1
- package/src/utility/gitignore.js +0 -1
- package/src/utility/gitignore.js.map +1 -1
- package/src/utility/index.d.ts +10 -7
- package/src/utility/index.d.ts.map +1 -1
- package/src/utility/index.js +10 -7
- package/src/utility/index.js.map +1 -1
- package/src/utility/loaders.d.ts +12 -50
- package/src/utility/loaders.d.ts.map +1 -1
- package/src/utility/loaders.js +34 -97
- package/src/utility/loaders.js.map +1 -1
- package/src/utility/logo.d.ts +0 -1
- package/src/utility/logo.d.ts.map +1 -1
- package/src/utility/logo.js +0 -1
- package/src/utility/logo.js.map +1 -1
- package/src/utility/matching-peers.d.ts +11 -3
- package/src/utility/matching-peers.d.ts.map +1 -1
- package/src/utility/matching-peers.js +26 -5
- package/src/utility/matching-peers.js.map +1 -1
- package/src/utility/modules.d.ts +4 -9
- package/src/utility/modules.d.ts.map +1 -1
- package/src/utility/modules.js +17 -22
- package/src/utility/modules.js.map +1 -1
- package/src/utility/monorepo.d.ts +0 -5
- package/src/utility/monorepo.d.ts.map +1 -1
- package/src/utility/monorepo.js +0 -5
- package/src/utility/monorepo.js.map +1 -1
- package/src/utility/package-manager-runner.d.ts +24 -7
- package/src/utility/package-manager-runner.d.ts.map +1 -1
- package/src/utility/package-manager-runner.js +70 -10
- package/src/utility/package-manager-runner.js.map +1 -1
- package/src/utility/package-version.d.ts +0 -2
- package/src/utility/package-version.d.ts.map +1 -1
- package/src/utility/package-version.js +0 -2
- package/src/utility/package-version.js.map +1 -1
- package/src/utility/question.d.ts +0 -1
- package/src/utility/question.d.ts.map +1 -1
- package/src/utility/question.js +0 -1
- package/src/utility/question.js.map +1 -1
- package/src/utility/routes.d.ts +0 -3
- package/src/utility/routes.d.ts.map +1 -1
- package/src/utility/routes.js +0 -5
- package/src/utility/routes.js.map +1 -1
- package/src/utility/sub-entry.d.ts +0 -2
- package/src/utility/sub-entry.d.ts.map +1 -1
- package/src/utility/sub-entry.js +0 -2
- package/src/utility/sub-entry.js.map +1 -1
- package/src/utility/template-property.helper.d.ts +0 -15
- package/src/utility/template-property.helper.d.ts.map +1 -1
- package/src/utility/template-property.helper.js +0 -16
- package/src/utility/template-property.helper.js.map +1 -1
- package/src/utility/update-imports.d.ts +0 -1
- package/src/utility/update-imports.d.ts.map +1 -1
- package/src/utility/update-imports.js +0 -1
- package/src/utility/update-imports.js.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../../src/utility/package-version.ts"],"names":[],"mappings":";;;AACA,8BAA8B;AAC9B,qCAAqC;AACrC,yCAAiD;AAGjD
|
1
|
+
{"version":3,"file":"package-version.js","sourceRoot":"","sources":["../../../src/utility/package-version.ts"],"names":[],"mappings":";;;AACA,8BAA8B;AAC9B,qCAAqC;AACrC,yCAAiD;AAGjD;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,eAAuB;IACvD,MAAM,kBAAkB,GAAgB,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAC5G,OAAO,kBAAkB,CAAC,OAAO,CAAC;AACpC,CAAC;AAHD,8CAGC;AAED;;;;;;GAMG;AACI,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,IAAW,EAAsB,EAAE;IAC7F,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAO,CAAC,CAAC,WAAW,CAAC,CAAC;IAC1D,IAAI,GAAG,KAAK,WAAW,IAAI,WAAW,KAAK,GAAG,EAAE;QAC9C,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,eAAe,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAK,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAI,CAAC,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAU,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAA,8BAAsB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAClH,CAAC,CAAC;AARW,QAAA,sBAAsB,0BAQjC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":"AAEA
|
1
|
+
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,YAAY,aAAoB,MAAM,KAAG,QAAQ,MAAM,CAYnE,CAAC"}
|
package/src/utility/question.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAEhD
|
1
|
+
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAEhD;;;;GAIG;AACI,MAAM,YAAY,GAAG,KAAK,EAAE,QAAgB,EAAmB,EAAE;IACtE,MAAM,QAAQ,GAAG,IAAA,+BAAe,EAAC;QAC/B,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;QACxD,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,WAAW,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAZW,QAAA,YAAY,gBAYvB"}
|
package/src/utility/routes.d.ts
CHANGED
@@ -13,7 +13,6 @@ export interface Route {
|
|
13
13
|
}
|
14
14
|
/**
|
15
15
|
* Get the Routes variable declaration from the given App Routing Module path.
|
16
|
-
*
|
17
16
|
* @param tree File tree
|
18
17
|
* @param context Context of the rule
|
19
18
|
* @param appRoutingModulePath Path of the App Routing Module
|
@@ -21,7 +20,6 @@ export interface Route {
|
|
21
20
|
export declare function getRoutesDeclaration(tree: Tree, context: SchematicContext, appRoutingModulePath: string): ts.VariableDeclaration | null;
|
22
21
|
/**
|
23
22
|
* Gets the Routes Node array of the App Routing Module of the given path.
|
24
|
-
*
|
25
23
|
* @param tree File tree
|
26
24
|
* @param context Context of the rule
|
27
25
|
* @param appRoutingModulePath
|
@@ -29,7 +27,6 @@ export declare function getRoutesDeclaration(tree: Tree, context: SchematicConte
|
|
29
27
|
export declare function getRoutesNodeArray(tree: Tree, context: SchematicContext, appRoutingModulePath: string): ts.NodeArray<ts.ObjectLiteralExpression> | null;
|
30
28
|
/**
|
31
29
|
* Inserts a route in the App Routing Module of the given path.
|
32
|
-
*
|
33
30
|
* @param tree File tree
|
34
31
|
* @param context Context of the rule
|
35
32
|
* @param appRoutingModulePath Path of the App Routing Module
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/utility/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IAEf,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/utility/routes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;IAEb,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IAEf,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAiCD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,GAAG,EAAE,CAAC,mBAAmB,GAAG,IAAI,CAuBvI;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAuBvJ;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,UAAQ,gEAehI"}
|
package/src/utility/routes.js
CHANGED
@@ -4,7 +4,6 @@ exports.insertRoute = exports.getRoutesNodeArray = exports.getRoutesDeclaration
|
|
4
4
|
const ts = require("typescript");
|
5
5
|
/**
|
6
6
|
* Indicates if the given Route expression has the given path.
|
7
|
-
*
|
8
7
|
* @param route Route expression
|
9
8
|
* @param path Path to test
|
10
9
|
*/
|
@@ -15,7 +14,6 @@ function hasRoutePath(route, path) {
|
|
15
14
|
}
|
16
15
|
/**
|
17
16
|
* Indicates if the given variable declaration is a Routes declaration.
|
18
|
-
*
|
19
17
|
* @param declaration Declaration to test
|
20
18
|
*/
|
21
19
|
function isRoutesDeclaration(declaration) {
|
@@ -31,7 +29,6 @@ function isRoutesDeclaration(declaration) {
|
|
31
29
|
}
|
32
30
|
/**
|
33
31
|
* Get the Routes variable declaration from the given App Routing Module path.
|
34
|
-
*
|
35
32
|
* @param tree File tree
|
36
33
|
* @param context Context of the rule
|
37
34
|
* @param appRoutingModulePath Path of the App Routing Module
|
@@ -52,7 +49,6 @@ function getRoutesDeclaration(tree, context, appRoutingModulePath) {
|
|
52
49
|
exports.getRoutesDeclaration = getRoutesDeclaration;
|
53
50
|
/**
|
54
51
|
* Gets the Routes Node array of the App Routing Module of the given path.
|
55
|
-
*
|
56
52
|
* @param tree File tree
|
57
53
|
* @param context Context of the rule
|
58
54
|
* @param appRoutingModulePath
|
@@ -79,7 +75,6 @@ function getRoutesNodeArray(tree, context, appRoutingModulePath) {
|
|
79
75
|
exports.getRoutesNodeArray = getRoutesNodeArray;
|
80
76
|
/**
|
81
77
|
* Inserts a route in the App Routing Module of the given path.
|
82
|
-
*
|
83
78
|
* @param tree File tree
|
84
79
|
* @param context Context of the rule
|
85
80
|
* @param appRoutingModulePath Path of the App Routing Module
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/utility/routes.ts"],"names":[],"mappings":";;;AACA,iCAAiC;AAgBjC
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../src/utility/routes.ts"],"names":[],"mappings":";;;AACA,iCAAiC;AAgBjC;;;;GAIG;AACH,SAAS,YAAY,CAAC,KAAiC,EAAE,IAAY;IACnE,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACxC,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,kBAAkB;QACjD,QAAQ,CAAC,IAAsB,CAAC,IAAI,KAAK,MAAM;QAC/C,QAAQ,CAAC,WAA6B,CAAC,IAAI,KAAK,IAAI,CACtD,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,mBAAmB,CAAC,WAAmC;IAC9D,IAAI,WAAW,CAAC,IAAI,EAAE;QACpB,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,aAAa,EAAE;YACzD,OAAQ,WAAW,CAAC,IAA6B,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,QAAQ,CAAC;SACnF;QAED,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC,UAAU,CAAC,SAAS,EAAE;YACrD,OAAS,WAAW,CAAC,IAAyB,CAAC,WAAoC,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,QAAQ,CAAC;SACrH;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAAyB,EAAE,oBAA4B;IACtG,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAE/C,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,eA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AY,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC;QAE7E,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACxD,QAAQ,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAfD,kCAeC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { Tree } from '@angular-devkit/schematics';
|
2
2
|
/**
|
3
3
|
* If ng-package.json is found under the /src/ folder of the module, it means sub entry points mechanism is implemented
|
4
|
-
*
|
5
4
|
* @param tree tree
|
6
5
|
* @param destination the destination path
|
7
6
|
*/
|
@@ -9,7 +8,6 @@ export declare function moduleHasSubEntryPoints(tree: Tree, destination: string)
|
|
9
8
|
/**
|
10
9
|
* Checks if exists and returns the 'store' project from angular.json.
|
11
10
|
* Otherwise, it returns the default project if exists, if not it returns the first project
|
12
|
-
*
|
13
11
|
* @param tree tree
|
14
12
|
* @param destination the destination path
|
15
13
|
* @param entityName the entity name
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sub-entry.d.ts","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD
|
1
|
+
{"version":3,"file":"sub-entry.d.ts","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,WAEtE;AACD;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QA2BhG"}
|
package/src/utility/sub-entry.js
CHANGED
@@ -4,7 +4,6 @@ exports.writeSubEntryPointPackageJson = exports.moduleHasSubEntryPoints = void 0
|
|
4
4
|
const path = require("node:path");
|
5
5
|
/**
|
6
6
|
* If ng-package.json is found under the /src/ folder of the module, it means sub entry points mechanism is implemented
|
7
|
-
*
|
8
7
|
* @param tree tree
|
9
8
|
* @param destination the destination path
|
10
9
|
*/
|
@@ -15,7 +14,6 @@ exports.moduleHasSubEntryPoints = moduleHasSubEntryPoints;
|
|
15
14
|
/**
|
16
15
|
* Checks if exists and returns the 'store' project from angular.json.
|
17
16
|
* Otherwise, it returns the default project if exists, if not it returns the first project
|
18
|
-
*
|
19
17
|
* @param tree tree
|
20
18
|
* @param destination the destination path
|
21
19
|
* @param entityName the entity name
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sub-entry.js","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":";;;AAEA,kCAAkC;AAElC
|
1
|
+
{"version":3,"file":"sub-entry.js","sourceRoot":"","sources":["../../../src/utility/sub-entry.ts"],"names":[],"mappings":";;;AAEA,kCAAkC;AAElC;;;;GAIG;AACH,SAAgB,uBAAuB,CAAC,IAAU,EAAE,WAAmB;IACrE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,0DAEC;AACD;;;;;;GAMG;AACH,SAAgB,6BAA6B,CAAC,IAAU,EAAE,WAAmB,EAAE,UAAkB;IAC/F,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,EAAE;QACxD,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;QACjE,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAEvG,MAAM,YAAY,GAAG,aAAa,EAAE,GAAG,EAAE,YAAY,IAAI;YACvD,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,WAAW,EAAE,UAAU;YACvB,gBAAgB,EAAE,eAAe;YACjC,aAAa,EAAE,YAAY;YAC3B,eAAe,EAAE,cAAc;YAC/B,cAAc,EAAE,aAAa;YAC7B,oBAAoB,EAAE,mBAAmB;YACzC,mBAAmB,EAAE,kBAAkB;SACxC,CAAC;QACF,MAAM,WAAW,GAAG;YAClB,SAAS,EAAE;gBACT,IAAI,EAAE,IAAI;gBACV,GAAG,EAAE;oBACH,SAAS,EAAE,UAAU;oBACrB,YAAY;iBACb;aACF;SACF,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;KACvG;AACH,CAAC;AA3BD,sEA2BC"}
|
@@ -1,100 +1,85 @@
|
|
1
1
|
/**
|
2
2
|
* Returns the component name as the last element of the provided component name path
|
3
|
-
*
|
4
3
|
* @param componentName
|
5
4
|
*/
|
6
5
|
export declare function getInputComponentName(componentName: string): string;
|
7
6
|
/**
|
8
7
|
* returns the component folder name
|
9
|
-
*
|
10
8
|
* @param componentName
|
11
9
|
*/
|
12
10
|
export declare function getComponentFolderName(componentName: string): string;
|
13
11
|
/**
|
14
12
|
* Returns the component file name
|
15
|
-
*
|
16
13
|
* @param componentName
|
17
14
|
* @param componentStructureDef
|
18
15
|
*/
|
19
16
|
export declare function getComponentFileName(componentName: string, componentStructureDef: string): string;
|
20
17
|
/**
|
21
18
|
* Returns the component selector without suffix
|
22
|
-
*
|
23
19
|
* @param componentName
|
24
20
|
* @param prefix
|
25
21
|
*/
|
26
22
|
export declare function getComponentSelectorWithoutSuffix(componentName: string, prefix: string | null): string;
|
27
23
|
/**
|
28
24
|
* Returns the component module name (e.g. AirOfferModule)
|
29
|
-
*
|
30
25
|
* @param componentName
|
31
26
|
* @param componentStructureDef
|
32
27
|
*/
|
33
28
|
export declare function getComponentModuleName(componentName: string, componentStructureDef: string): string;
|
34
29
|
/**
|
35
30
|
* Returns the component analytics name (e.g. AirOfferAnalytics)
|
36
|
-
*
|
37
31
|
* @param componentName
|
38
32
|
* @param componentStructureDef
|
39
33
|
*/
|
40
34
|
export declare function getComponentAnalyticsName(componentName: string, componentStructureDef: string): string;
|
41
35
|
/**
|
42
36
|
* Returns the component name (e.g. AirOfferComponent)
|
43
|
-
*
|
44
37
|
* @param componentName
|
45
38
|
* @param componentStructureDef
|
46
39
|
*/
|
47
40
|
export declare function getComponentName(componentName: string, componentStructureDef: string): string;
|
48
41
|
/**
|
49
42
|
* Returns the component block name (e.g. AirOffer)
|
50
|
-
*
|
51
43
|
* @param componentName
|
52
44
|
*/
|
53
45
|
export declare function getComponentBlockName(componentName: string): string;
|
54
46
|
/**
|
55
47
|
* Return the component in kebab-case (e.g. air-offer)
|
56
|
-
*
|
57
48
|
* @param blockName
|
58
49
|
*/
|
59
50
|
export declare function getKebabCaseBlockName(blockName: string): string;
|
60
51
|
/**
|
61
52
|
* Returns the component config name (e.g. AirOfferConfig)
|
62
|
-
*
|
63
53
|
* @param componentName
|
64
54
|
* @param componentStructureDef
|
65
55
|
*/
|
66
56
|
export declare function getComponentConfigName(componentName: string, componentStructureDef: string): string;
|
67
57
|
/**
|
68
58
|
* Returns the component translation name (e.g. AirOfferTranslation)
|
69
|
-
*
|
70
59
|
* @param componentName
|
71
60
|
* @param componentStructureDef
|
72
61
|
*/
|
73
62
|
export declare function getComponentTranslationName(componentName: string, componentStructureDef: string): string;
|
74
63
|
/**
|
75
64
|
* Returns the component context name (e.g. AirOfferContext)
|
76
|
-
*
|
77
65
|
* @param componentName
|
78
66
|
* @param componentStructureDef
|
79
67
|
*/
|
80
68
|
export declare function getComponentContextName(componentName: string, componentStructureDef: string): string;
|
81
69
|
/**
|
82
70
|
* Returns the component fixture name (e.g. AirOfferFixture)
|
83
|
-
*
|
84
71
|
* @param componentName
|
85
72
|
* @param componentStructureDef
|
86
73
|
*/
|
87
74
|
export declare function getComponentFixtureName(componentName: string, componentStructureDef: string): string;
|
88
75
|
/**
|
89
76
|
* Returns the component config key name (e.g. AIR_OFFER_CONT or AIR_OFFER_PRES)
|
90
|
-
*
|
91
77
|
* @param componentName
|
92
78
|
* @param componentStructureDef
|
93
79
|
*/
|
94
80
|
export declare function getComponentConfigKey(componentName: string, componentStructureDef: string): string;
|
95
81
|
/**
|
96
82
|
* Return the library name from path in a monorepos
|
97
|
-
*
|
98
83
|
* @param path
|
99
84
|
*/
|
100
85
|
export declare function getLibraryNameFromPath(path: string | null | undefined): string | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template-property.helper.d.ts","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"template-property.helper.d.ts","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":"AAUA;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAGnE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAGpE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,GAAG,MAAM,CAGjG;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,UAG7F;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG1F;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG7F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAGpF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,UAG1D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,UAEtD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG1F;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG/F;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG3F;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAG3F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,UAGzF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,iBAMrE"}
|
@@ -4,7 +4,6 @@ exports.getLibraryNameFromPath = exports.getComponentConfigKey = exports.getComp
|
|
4
4
|
const core_1 = require("@angular-devkit/core");
|
5
5
|
/**
|
6
6
|
* Returns all elements from the provided component name path
|
7
|
-
*
|
8
7
|
* @param componentName
|
9
8
|
*/
|
10
9
|
function getComponentModuleItems(componentName) {
|
@@ -12,7 +11,6 @@ function getComponentModuleItems(componentName) {
|
|
12
11
|
}
|
13
12
|
/**
|
14
13
|
* Returns the component name as the last element of the provided component name path
|
15
|
-
*
|
16
14
|
* @param componentName
|
17
15
|
*/
|
18
16
|
function getInputComponentName(componentName) {
|
@@ -22,7 +20,6 @@ function getInputComponentName(componentName) {
|
|
22
20
|
exports.getInputComponentName = getInputComponentName;
|
23
21
|
/**
|
24
22
|
* returns the component folder name
|
25
|
-
*
|
26
23
|
* @param componentName
|
27
24
|
*/
|
28
25
|
function getComponentFolderName(componentName) {
|
@@ -32,7 +29,6 @@ function getComponentFolderName(componentName) {
|
|
32
29
|
exports.getComponentFolderName = getComponentFolderName;
|
33
30
|
/**
|
34
31
|
* Returns the component file name
|
35
|
-
*
|
36
32
|
* @param componentName
|
37
33
|
* @param componentStructureDef
|
38
34
|
*/
|
@@ -43,7 +39,6 @@ function getComponentFileName(componentName, componentStructureDef) {
|
|
43
39
|
exports.getComponentFileName = getComponentFileName;
|
44
40
|
/**
|
45
41
|
* Returns the component selector without suffix
|
46
|
-
*
|
47
42
|
* @param componentName
|
48
43
|
* @param prefix
|
49
44
|
*/
|
@@ -54,7 +49,6 @@ function getComponentSelectorWithoutSuffix(componentName, prefix) {
|
|
54
49
|
exports.getComponentSelectorWithoutSuffix = getComponentSelectorWithoutSuffix;
|
55
50
|
/**
|
56
51
|
* Returns the component module name (e.g. AirOfferModule)
|
57
|
-
*
|
58
52
|
* @param componentName
|
59
53
|
* @param componentStructureDef
|
60
54
|
*/
|
@@ -65,7 +59,6 @@ function getComponentModuleName(componentName, componentStructureDef) {
|
|
65
59
|
exports.getComponentModuleName = getComponentModuleName;
|
66
60
|
/**
|
67
61
|
* Returns the component analytics name (e.g. AirOfferAnalytics)
|
68
|
-
*
|
69
62
|
* @param componentName
|
70
63
|
* @param componentStructureDef
|
71
64
|
*/
|
@@ -76,7 +69,6 @@ function getComponentAnalyticsName(componentName, componentStructureDef) {
|
|
76
69
|
exports.getComponentAnalyticsName = getComponentAnalyticsName;
|
77
70
|
/**
|
78
71
|
* Returns the component name (e.g. AirOfferComponent)
|
79
|
-
*
|
80
72
|
* @param componentName
|
81
73
|
* @param componentStructureDef
|
82
74
|
*/
|
@@ -87,7 +79,6 @@ function getComponentName(componentName, componentStructureDef) {
|
|
87
79
|
exports.getComponentName = getComponentName;
|
88
80
|
/**
|
89
81
|
* Returns the component block name (e.g. AirOffer)
|
90
|
-
*
|
91
82
|
* @param componentName
|
92
83
|
*/
|
93
84
|
function getComponentBlockName(componentName) {
|
@@ -97,7 +88,6 @@ function getComponentBlockName(componentName) {
|
|
97
88
|
exports.getComponentBlockName = getComponentBlockName;
|
98
89
|
/**
|
99
90
|
* Return the component in kebab-case (e.g. air-offer)
|
100
|
-
*
|
101
91
|
* @param blockName
|
102
92
|
*/
|
103
93
|
function getKebabCaseBlockName(blockName) {
|
@@ -106,7 +96,6 @@ function getKebabCaseBlockName(blockName) {
|
|
106
96
|
exports.getKebabCaseBlockName = getKebabCaseBlockName;
|
107
97
|
/**
|
108
98
|
* Returns the component config name (e.g. AirOfferConfig)
|
109
|
-
*
|
110
99
|
* @param componentName
|
111
100
|
* @param componentStructureDef
|
112
101
|
*/
|
@@ -117,7 +106,6 @@ function getComponentConfigName(componentName, componentStructureDef) {
|
|
117
106
|
exports.getComponentConfigName = getComponentConfigName;
|
118
107
|
/**
|
119
108
|
* Returns the component translation name (e.g. AirOfferTranslation)
|
120
|
-
*
|
121
109
|
* @param componentName
|
122
110
|
* @param componentStructureDef
|
123
111
|
*/
|
@@ -128,7 +116,6 @@ function getComponentTranslationName(componentName, componentStructureDef) {
|
|
128
116
|
exports.getComponentTranslationName = getComponentTranslationName;
|
129
117
|
/**
|
130
118
|
* Returns the component context name (e.g. AirOfferContext)
|
131
|
-
*
|
132
119
|
* @param componentName
|
133
120
|
* @param componentStructureDef
|
134
121
|
*/
|
@@ -139,7 +126,6 @@ function getComponentContextName(componentName, componentStructureDef) {
|
|
139
126
|
exports.getComponentContextName = getComponentContextName;
|
140
127
|
/**
|
141
128
|
* Returns the component fixture name (e.g. AirOfferFixture)
|
142
|
-
*
|
143
129
|
* @param componentName
|
144
130
|
* @param componentStructureDef
|
145
131
|
*/
|
@@ -150,7 +136,6 @@ function getComponentFixtureName(componentName, componentStructureDef) {
|
|
150
136
|
exports.getComponentFixtureName = getComponentFixtureName;
|
151
137
|
/**
|
152
138
|
* Returns the component config key name (e.g. AIR_OFFER_CONT or AIR_OFFER_PRES)
|
153
|
-
*
|
154
139
|
* @param componentName
|
155
140
|
* @param componentStructureDef
|
156
141
|
*/
|
@@ -161,7 +146,6 @@ function getComponentConfigKey(componentName, componentStructureDef) {
|
|
161
146
|
exports.getComponentConfigKey = getComponentConfigKey;
|
162
147
|
/**
|
163
148
|
* Return the library name from path in a monorepos
|
164
|
-
*
|
165
149
|
* @param path
|
166
150
|
*/
|
167
151
|
function getLibraryNameFromPath(path) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"template-property.helper.js","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAE7C
|
1
|
+
{"version":3,"file":"template-property.helper.js","sourceRoot":"","sources":["../../../src/utility/template-property.helper.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAE7C;;;GAGG;AACH,SAAS,uBAAuB,CAAC,aAAqB;IACpD,OAAO,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CAAC,aAAqB;IACzD,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACpE,OAAO,oBAAoB,CAAC,oBAAoB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC;AAHD,sDAGC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,aAAqB;IAC1D,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAChE,OAAO,cAAO,CAAC,SAAS,CAAC,kBAAkB,CAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,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,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CAC5F;AAGD
|
1
|
+
{"version":3,"file":"update-imports.d.ts","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAavD,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,CAAC,WAAW,EAAE,MAAM,GAAG;QAAE,CAAC,UAAU,EAAE,MAAM,GAAG;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;CAC5F;AAGD;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,OAAO,CAAC,SAAS,EACzB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,EAAE,CAAC,UAAU,EACzB,aAAa,EAAE,MAAM,EACrB,oBAAoB,EAAE,MAAM,EAC5B,UAAU,GAAE,cAAmB,EAC/B,eAAe,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,UAkF7C"}
|
@@ -5,7 +5,6 @@ const ts = require("typescript");
|
|
5
5
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
6
6
|
/**
|
7
7
|
* Update the imports of a given file according to replace mapping
|
8
|
-
*
|
9
8
|
* @param logger Logger to report messages
|
10
9
|
* @param tree File System tree
|
11
10
|
* @param sourceFile Source file to analyze
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AAEjC,qEAAkE;AAoBlE
|
1
|
+
{"version":3,"file":"update-imports.js","sourceRoot":"","sources":["../../../src/utility/update-imports.ts"],"names":[],"mappings":";;;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