myoperator-ui 0.0.160-beta.3 → 0.0.160
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 +10 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10203,6 +10203,16 @@ async function sync(options) {
|
|
|
10203
10203
|
console.log(chalk5.yellow(` Components to update: ${toUpdate.length}`));
|
|
10204
10204
|
console.log(chalk5.gray(` Already up to date: ${upToDate.length}`));
|
|
10205
10205
|
console.log("");
|
|
10206
|
+
if (prefix) {
|
|
10207
|
+
const utilsResult = await ensureUtilsPrefixConfig(cwd);
|
|
10208
|
+
if (utilsResult.fixed) {
|
|
10209
|
+
if (utilsResult.existed) {
|
|
10210
|
+
console.log(chalk5.green(" \u2713 Fixed src/lib/utils.ts \u2014 cn() is now prefix-aware\n"));
|
|
10211
|
+
} else {
|
|
10212
|
+
console.log(chalk5.green(" \u2713 Created src/lib/utils.ts with prefix-aware cn()\n"));
|
|
10213
|
+
}
|
|
10214
|
+
}
|
|
10215
|
+
}
|
|
10206
10216
|
if (toAdd.length === 0 && toUpdate.length === 0) {
|
|
10207
10217
|
console.log(chalk5.green(" \u2713 All components are up to date!\n"));
|
|
10208
10218
|
return;
|
|
@@ -10274,17 +10284,6 @@ async function sync(options) {
|
|
|
10274
10284
|
for (const componentName of toUpdate) {
|
|
10275
10285
|
await installComponent(componentName, "updated");
|
|
10276
10286
|
}
|
|
10277
|
-
if (prefix) {
|
|
10278
|
-
spinner.text = "Checking utils.ts prefix configuration...";
|
|
10279
|
-
const utilsResult = await ensureUtilsPrefixConfig(cwd);
|
|
10280
|
-
if (utilsResult.fixed) {
|
|
10281
|
-
if (utilsResult.existed) {
|
|
10282
|
-
console.log(chalk5.green("\n \u2713 Fixed src/lib/utils.ts \u2014 cn() is now prefix-aware"));
|
|
10283
|
-
} else {
|
|
10284
|
-
console.log(chalk5.green("\n \u2713 Created src/lib/utils.ts with prefix-aware cn()"));
|
|
10285
|
-
}
|
|
10286
|
-
}
|
|
10287
|
-
}
|
|
10288
10287
|
spinner.succeed("Sync complete!");
|
|
10289
10288
|
const added = installed.filter((f) => f.action === "added");
|
|
10290
10289
|
const updated = installed.filter((f) => f.action === "updated");
|