myoperator-ui 0.0.216-beta.6 → 0.0.216-beta.7
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/index.js +14 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22336,38 +22336,29 @@ async function sync(options) {
|
|
|
22336
22336
|
grouped.get(group).push(c);
|
|
22337
22337
|
}
|
|
22338
22338
|
const sortedGroups = [...grouped.keys()].sort();
|
|
22339
|
-
const choices = [];
|
|
22340
|
-
for (const group of sortedGroups) {
|
|
22341
|
-
const components = grouped.get(group).sort();
|
|
22342
|
-
choices.push({
|
|
22343
|
-
title: chalk5.bold.underline(group),
|
|
22344
|
-
value: `__group_${group}`,
|
|
22345
|
-
selected: false,
|
|
22346
|
-
disabled: true
|
|
22347
|
-
});
|
|
22348
|
-
for (const c of components) {
|
|
22349
|
-
const comp = registry[c];
|
|
22350
|
-
const fileCount = comp.isMultiFile ? ` (${comp.files.length} files)` : "";
|
|
22351
|
-
choices.push({
|
|
22352
|
-
title: ` ${c}${fileCount}`,
|
|
22353
|
-
value: c,
|
|
22354
|
-
selected: false,
|
|
22355
|
-
description: comp.description
|
|
22356
|
-
});
|
|
22357
|
-
}
|
|
22358
|
-
}
|
|
22359
22339
|
console.log(chalk5.cyan.bold("\n \u2500\u2500 Custom \u2500\u2500\n"));
|
|
22360
22340
|
const { selected } = await prompts3({
|
|
22361
22341
|
type: "multiselect",
|
|
22362
22342
|
name: "selected",
|
|
22363
|
-
message: "Select
|
|
22364
|
-
choices
|
|
22343
|
+
message: "Select custom component folders to add",
|
|
22344
|
+
choices: sortedGroups.map((group) => {
|
|
22345
|
+
const components = grouped.get(group);
|
|
22346
|
+
const count = components.length;
|
|
22347
|
+
return {
|
|
22348
|
+
title: group,
|
|
22349
|
+
value: group,
|
|
22350
|
+
selected: false,
|
|
22351
|
+
description: `${count} component${count === 1 ? "" : "s"}`
|
|
22352
|
+
};
|
|
22353
|
+
})
|
|
22365
22354
|
});
|
|
22366
22355
|
if (!selected) {
|
|
22367
22356
|
console.log(chalk5.yellow("\n Sync cancelled.\n"));
|
|
22368
22357
|
process.exit(0);
|
|
22369
22358
|
}
|
|
22370
|
-
|
|
22359
|
+
for (const group of selected) {
|
|
22360
|
+
picked.push(...grouped.get(group));
|
|
22361
|
+
}
|
|
22371
22362
|
}
|
|
22372
22363
|
selectedToAdd = picked;
|
|
22373
22364
|
}
|