@o3r/schematics 9.7.0-alpha.0 → 10.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +35 -36
- package/src/interfaces/angular-workspace.d.ts +0 -20
- package/src/interfaces/angular-workspace.d.ts.map +1 -1
- package/src/modules/modules.display.rule.d.ts +0 -9
- package/src/modules/modules.display.rule.d.ts.map +1 -1
- package/src/modules/modules.display.rule.js +1 -18
- package/src/modules/modules.display.rule.js.map +1 -1
- package/src/modules/modules.helpers.d.ts +2 -2
- package/src/modules/modules.helpers.d.ts.map +1 -1
- 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 +0 -3
- package/src/rule-factories/check-packages-peers/index.js.map +1 -1
- package/src/rule-factories/dev-tools/devtools-registration.d.ts.map +1 -1
- package/src/rule-factories/dev-tools/devtools-registration.js +1 -2
- package/src/rule-factories/dev-tools/devtools-registration.js.map +1 -1
- package/src/rule-factories/eslint-fix/index.d.ts +0 -1
- package/src/rule-factories/eslint-fix/index.d.ts.map +1 -1
- package/src/rule-factories/eslint-fix/index.js +1 -3
- 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/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 +0 -9
- package/src/tasks/eslint/index.d.ts.map +1 -1
- package/src/tasks/eslint/index.js +3 -4
- package/src/tasks/eslint/index.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/component.d.ts +0 -6
- package/src/utility/component.d.ts.map +1 -1
- package/src/utility/component.js +0 -6
- 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/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/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 +1 -0
- package/src/utility/index.d.ts.map +1 -1
- package/src/utility/index.js +1 -0
- package/src/utility/index.js.map +1 -1
- package/src/utility/loaders.d.ts +4 -44
- package/src/utility/loaders.d.ts.map +1 -1
- package/src/utility/loaders.js +10 -93
- 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 +2 -2
- package/src/utility/modules.d.ts.map +1 -1
- package/src/utility/modules.js +12 -12
- 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 +2 -2
- package/src/utility/package-manager-runner.d.ts.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
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,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
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,CAAC;AACnE,CAAC;AAHD,wDAGC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,aAAqB,EAAE,qBAA6B;IACvF,MAAM,mBAAmB,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC;IAClE,OAAO,qBAAqB,CAAC,CAAC,CAAC,GAAG,mBAAmB,IAAI,cAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,CAAC,m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AHD,0DAGC;AAED;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,aAAqB,EAAE,qBAA6B;IACxF,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,aAAa,EAAE,qBAAqB,CAAC,CAAC;IACrF,OAAO,GAAG,cAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;AAClE,CAAC;AAHD,sDAGC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CAAC,IAA+B;IACpE,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IACD,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC;IACnE,OAAO,UAAU,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC;AAND,wDAMC"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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":";;;AAAA,iCAAiC;AAEjC,qEAAkE;AAoBlE;;;;;;;;;GASG;AACH,SAAgB,mBAAmB,CACjC,MAAyB,EACzB,IAAU,EACV,UAAyB,EACzB,aAAqB,EACrB,oBAA4B,EAC5B,aAA6B,EAAE,EAC/B,kBAA0C,EAAE;IAE5C,MAAM,4BAA4B,GAAsC,EAAE,CAAC;IAC3E,MAAM,iBAAiB,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