@uniformdev/transformer 1.1.26 → 1.1.27
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 +21 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1279,8 +1279,16 @@ var PropertyPropagatorService = class {
|
|
|
1279
1279
|
const sourceComponents = [];
|
|
1280
1280
|
for (const sourceType of compositionTypes) {
|
|
1281
1281
|
this.logger.info(`Loading component: ${sourceType}`);
|
|
1282
|
-
|
|
1283
|
-
|
|
1282
|
+
try {
|
|
1283
|
+
const { component: sourceComponent, filePath: sourceFilePath } = await this.componentService.loadComponent(fullComponentsDir, sourceType, findOptions);
|
|
1284
|
+
sourceComponents.push({ sourceType, sourceFilePath, sourceComponent });
|
|
1285
|
+
} catch (error) {
|
|
1286
|
+
if (error instanceof ComponentNotFoundError) {
|
|
1287
|
+
this.logger.warn(`Component not found: ${sourceType} (searched: ${fullComponentsDir})`);
|
|
1288
|
+
continue;
|
|
1289
|
+
}
|
|
1290
|
+
throw error;
|
|
1291
|
+
}
|
|
1284
1292
|
}
|
|
1285
1293
|
this.logger.info(`Loading component: ${targetComponentType}`);
|
|
1286
1294
|
const { component: targetComponent, filePath: targetFilePath } = await this.componentService.loadComponent(fullComponentsDir, targetComponentType, findOptions);
|
|
@@ -4060,8 +4068,16 @@ var SlotPropagatorService = class {
|
|
|
4060
4068
|
const sourceComponents = [];
|
|
4061
4069
|
for (const sourceType of compositionTypes) {
|
|
4062
4070
|
this.logger.info(`Loading component: ${sourceType}`);
|
|
4063
|
-
|
|
4064
|
-
|
|
4071
|
+
try {
|
|
4072
|
+
const { component: sourceComponent, filePath: sourceFilePath } = await this.componentService.loadComponent(fullComponentsDir, sourceType, findOptions);
|
|
4073
|
+
sourceComponents.push({ sourceType, sourceFilePath, sourceComponent });
|
|
4074
|
+
} catch (error) {
|
|
4075
|
+
if (error instanceof ComponentNotFoundError) {
|
|
4076
|
+
this.logger.warn(`Component not found: ${sourceType} (searched: ${fullComponentsDir})`);
|
|
4077
|
+
continue;
|
|
4078
|
+
}
|
|
4079
|
+
throw error;
|
|
4080
|
+
}
|
|
4065
4081
|
}
|
|
4066
4082
|
this.logger.info(`Loading component: ${targetComponentType}`);
|
|
4067
4083
|
const { component: targetComponent, filePath: targetFilePath } = await this.componentService.loadComponent(fullComponentsDir, targetComponentType, findOptions);
|
|
@@ -4949,7 +4965,7 @@ function createRemoveFieldCommand() {
|
|
|
4949
4965
|
// package.json
|
|
4950
4966
|
var package_default = {
|
|
4951
4967
|
name: "@uniformdev/transformer",
|
|
4952
|
-
version: "1.1.
|
|
4968
|
+
version: "1.1.27",
|
|
4953
4969
|
description: "CLI tool for transforming Uniform.dev serialization files offline",
|
|
4954
4970
|
type: "module",
|
|
4955
4971
|
bin: {
|