@uniformdev/transformer 1.1.17 → 1.1.18
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/dist/cli/index.js +35 -7
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +34 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1786,9 +1786,23 @@ var ComponentAdderService = class {
|
|
|
1786
1786
|
throw error;
|
|
1787
1787
|
}
|
|
1788
1788
|
let allowedComponentsUpdated = false;
|
|
1789
|
+
const resolvedParentTypes = [];
|
|
1789
1790
|
for (const parentType of parentTypes) {
|
|
1790
|
-
this.logger.info(`Loading
|
|
1791
|
-
|
|
1791
|
+
this.logger.info(`Loading component: ${parentType}`);
|
|
1792
|
+
let parentComponent;
|
|
1793
|
+
let parentComponentFilePath;
|
|
1794
|
+
try {
|
|
1795
|
+
const result = await this.componentService.loadComponent(fullComponentsDir, parentType, findOptions);
|
|
1796
|
+
parentComponent = result.component;
|
|
1797
|
+
parentComponentFilePath = result.filePath;
|
|
1798
|
+
} catch (error) {
|
|
1799
|
+
if (error instanceof ComponentNotFoundError) {
|
|
1800
|
+
this.logger.warn(`Component not found: ${parentType} (searched: ${fullComponentsDir})`);
|
|
1801
|
+
continue;
|
|
1802
|
+
}
|
|
1803
|
+
throw error;
|
|
1804
|
+
}
|
|
1805
|
+
resolvedParentTypes.push(parentType);
|
|
1792
1806
|
if (!parentComponent.slots) {
|
|
1793
1807
|
parentComponent.slots = [];
|
|
1794
1808
|
}
|
|
@@ -1856,7 +1870,7 @@ var ComponentAdderService = class {
|
|
|
1856
1870
|
);
|
|
1857
1871
|
this.logger.info("");
|
|
1858
1872
|
this.logger.info(
|
|
1859
|
-
`Summary: ${allowedComponentsUpdated ? `${
|
|
1873
|
+
`Summary: ${allowedComponentsUpdated ? `${resolvedParentTypes.length} component definition(s) updated, ` : ""}${compositionsResult} composition(s), ${compositionPatternsResult} composition pattern(s), ${componentPatternsResult} component pattern(s) updated. ${compositionsResult + compositionPatternsResult + componentPatternsResult} instance(s) added.`
|
|
1860
1874
|
);
|
|
1861
1875
|
return {
|
|
1862
1876
|
allowedComponentsUpdated,
|
|
@@ -1905,9 +1919,23 @@ var ComponentAdderService = class {
|
|
|
1905
1919
|
}
|
|
1906
1920
|
const componentTypeInPattern = patternDefinition.type;
|
|
1907
1921
|
let allowedComponentsUpdated = false;
|
|
1922
|
+
const resolvedParentTypes = [];
|
|
1908
1923
|
for (const parentType of parentTypes) {
|
|
1909
|
-
this.logger.info(`Loading
|
|
1910
|
-
|
|
1924
|
+
this.logger.info(`Loading component: ${parentType}`);
|
|
1925
|
+
let parentComponent;
|
|
1926
|
+
let parentComponentFilePath;
|
|
1927
|
+
try {
|
|
1928
|
+
const result = await this.componentService.loadComponent(fullComponentsDir, parentType, findOptions);
|
|
1929
|
+
parentComponent = result.component;
|
|
1930
|
+
parentComponentFilePath = result.filePath;
|
|
1931
|
+
} catch (error) {
|
|
1932
|
+
if (error instanceof ComponentNotFoundError) {
|
|
1933
|
+
this.logger.warn(`Component not found: ${parentType} (searched: ${fullComponentsDir})`);
|
|
1934
|
+
continue;
|
|
1935
|
+
}
|
|
1936
|
+
throw error;
|
|
1937
|
+
}
|
|
1938
|
+
resolvedParentTypes.push(parentType);
|
|
1911
1939
|
if (!parentComponent.slots) {
|
|
1912
1940
|
parentComponent.slots = [];
|
|
1913
1941
|
}
|
|
@@ -1978,7 +2006,7 @@ var ComponentAdderService = class {
|
|
|
1978
2006
|
);
|
|
1979
2007
|
this.logger.info("");
|
|
1980
2008
|
this.logger.info(
|
|
1981
|
-
`Summary: ${allowedComponentsUpdated ? `${
|
|
2009
|
+
`Summary: ${allowedComponentsUpdated ? `${resolvedParentTypes.length} component definition(s) updated, ` : ""}${compositionsResult} composition(s), ${compositionPatternsResult} composition pattern(s), ${componentPatternsResult} component pattern(s) updated. ${compositionsResult + compositionPatternsResult + componentPatternsResult} instance(s) added.`
|
|
1982
2010
|
);
|
|
1983
2011
|
return {
|
|
1984
2012
|
allowedComponentsUpdated,
|