basuicn 0.3.1 → 0.3.2
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/ui-cli.cjs +3 -2
- package/package.json +1 -1
- package/scripts/ui-cli.ts +3 -2
package/dist/ui-cli.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var import_fs = __toESM(require("fs"), 1);
|
|
|
27
27
|
var import_path = __toESM(require("path"), 1);
|
|
28
28
|
var import_child_process = require("child_process");
|
|
29
29
|
var import_readline = __toESM(require("readline"), 1);
|
|
30
|
-
var VERSION = "0.3.
|
|
30
|
+
var VERSION = "0.3.2";
|
|
31
31
|
var REGISTRY_LOCAL = "./registry.json";
|
|
32
32
|
var REGISTRY_REMOTE = "https://raw.githubusercontent.com/Basuicn/basuicn-core/main/registry.json";
|
|
33
33
|
var c = {
|
|
@@ -899,9 +899,10 @@ ${c.bold}Available components (${all.length}):${c.reset}`);
|
|
|
899
899
|
console.log(` Run ${c.cyan}npx basuicn update --help${c.reset} for details.`);
|
|
900
900
|
return;
|
|
901
901
|
}
|
|
902
|
+
const updateFramework = detectFramework(cwd);
|
|
902
903
|
for (const name of componentNames) {
|
|
903
904
|
log(`Updating: ${c.bold}${name}${c.reset}...`);
|
|
904
|
-
addComponent(name, registry, cwd, { force: true });
|
|
905
|
+
addComponent(name, registry, cwd, { force: true, framework: updateFramework });
|
|
905
906
|
}
|
|
906
907
|
console.log("");
|
|
907
908
|
ok(`${c.bold}Update complete.${c.reset}`);
|
package/package.json
CHANGED
package/scripts/ui-cli.ts
CHANGED
|
@@ -6,7 +6,7 @@ import readline from 'readline';
|
|
|
6
6
|
|
|
7
7
|
// ─── Constants ────────────────────────────────────────────────────────────────
|
|
8
8
|
|
|
9
|
-
const VERSION = '0.3.
|
|
9
|
+
const VERSION = '0.3.2';
|
|
10
10
|
const REGISTRY_LOCAL = './registry.json';
|
|
11
11
|
const REGISTRY_REMOTE = 'https://raw.githubusercontent.com/Basuicn/basuicn-core/main/registry.json';
|
|
12
12
|
|
|
@@ -1093,9 +1093,10 @@ const main = async () => {
|
|
|
1093
1093
|
console.log(` Run ${c.cyan}npx basuicn update --help${c.reset} for details.`);
|
|
1094
1094
|
return;
|
|
1095
1095
|
}
|
|
1096
|
+
const updateFramework = detectFramework(cwd);
|
|
1096
1097
|
for (const name of componentNames) {
|
|
1097
1098
|
log(`Updating: ${c.bold}${name}${c.reset}...`);
|
|
1098
|
-
addComponent(name, registry, cwd, { force: true });
|
|
1099
|
+
addComponent(name, registry, cwd, { force: true, framework: updateFramework });
|
|
1099
1100
|
}
|
|
1100
1101
|
console.log('');
|
|
1101
1102
|
ok(`${c.bold}Update complete.${c.reset}`);
|