@yamada-ui/cli 2.1.10-dev-20260720092031 → 2.1.10-dev-20260720123845
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.mjs +26 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3840,7 +3840,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3840
3840
|
__exportStar(require_ca_file(), exports);
|
|
3841
3841
|
}));
|
|
3842
3842
|
//#endregion
|
|
3843
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
3843
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.7_@typescript+native-preview@7.0.0-dev.20260707.2_oxc-resolver@11.24.2_tsx@4.23.1_typescript@6.0.3/node_modules/tsdown/esm-shims.js
|
|
3844
3844
|
var getFilename, getDirname, __dirname$2;
|
|
3845
3845
|
var init_esm_shims = __esmMin((() => {
|
|
3846
3846
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -3932,7 +3932,13 @@ var require_proto_list = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3932
3932
|
//#region ../../node_modules/.pnpm/config-chain@1.1.13/node_modules/config-chain/index.js
|
|
3933
3933
|
var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3934
3934
|
init_esm_shims();
|
|
3935
|
-
var ProtoList = require_proto_list()
|
|
3935
|
+
var ProtoList = require_proto_list();
|
|
3936
|
+
var path$7 = __require("path");
|
|
3937
|
+
var fs$3 = __require("fs");
|
|
3938
|
+
var ini = require_ini$1();
|
|
3939
|
+
var EE = __require("events").EventEmitter;
|
|
3940
|
+
var url$1 = __require("url");
|
|
3941
|
+
var http = __require("http");
|
|
3936
3942
|
var exports = module.exports = function() {
|
|
3937
3943
|
var args = [].slice.call(arguments), conf = new ConfigChain();
|
|
3938
3944
|
while (args.length) {
|
|
@@ -3959,7 +3965,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3959
3965
|
if (!type) try {
|
|
3960
3966
|
return JSON.parse(content);
|
|
3961
3967
|
} catch (er) {
|
|
3962
|
-
return ini
|
|
3968
|
+
return ini.parse(content);
|
|
3963
3969
|
}
|
|
3964
3970
|
else if (type === "json") if (this.emit) try {
|
|
3965
3971
|
return JSON.parse(content);
|
|
@@ -3967,7 +3973,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3967
3973
|
this.emit("error", er);
|
|
3968
3974
|
}
|
|
3969
3975
|
else return JSON.parse(content);
|
|
3970
|
-
else return ini
|
|
3976
|
+
else return ini.parse(content);
|
|
3971
3977
|
};
|
|
3972
3978
|
var json = exports.json = function() {
|
|
3973
3979
|
var args = [].slice.call(arguments).filter(function(arg) {
|
|
@@ -4047,7 +4053,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4047
4053
|
var type = type || target.type;
|
|
4048
4054
|
var data = target.data;
|
|
4049
4055
|
if (target.type === "json") data = JSON.stringify(data);
|
|
4050
|
-
else data = ini
|
|
4056
|
+
else data = ini.stringify(data);
|
|
4051
4057
|
this._saving++;
|
|
4052
4058
|
fs$3.writeFile(target.path, data, "utf8", function(er) {
|
|
4053
4059
|
this._saving--;
|
|
@@ -5374,14 +5380,11 @@ function updateNotifier(options) {
|
|
|
5374
5380
|
}
|
|
5375
5381
|
//#endregion
|
|
5376
5382
|
//#region package.json
|
|
5377
|
-
var name = "@yamada-ui/cli";
|
|
5378
|
-
var version = "2.1.9";
|
|
5379
|
-
var description = "The official CLI for Yamada UI projects";
|
|
5380
5383
|
var package_default = {
|
|
5381
|
-
name,
|
|
5384
|
+
name: "@yamada-ui/cli",
|
|
5382
5385
|
type: "module",
|
|
5383
|
-
version,
|
|
5384
|
-
description,
|
|
5386
|
+
version: "2.1.9",
|
|
5387
|
+
description: "The official CLI for Yamada UI projects",
|
|
5385
5388
|
keywords: [
|
|
5386
5389
|
"theme",
|
|
5387
5390
|
"theming",
|
|
@@ -5663,7 +5666,10 @@ async function getFiles(pattern) {
|
|
|
5663
5666
|
const data = await readFile(path.join(dirent.parentPath, dirent.name), "utf-8");
|
|
5664
5667
|
files[`${name}/${dirent.name}`] = data;
|
|
5665
5668
|
}));
|
|
5666
|
-
} else if (name !== "registry.json")
|
|
5669
|
+
} else if (name !== "registry.json") {
|
|
5670
|
+
const data = await readFile(path.join(dirent.parentPath, dirent.name), "utf-8");
|
|
5671
|
+
files[name] = data;
|
|
5672
|
+
}
|
|
5667
5673
|
}));
|
|
5668
5674
|
return {
|
|
5669
5675
|
dirPath,
|
|
@@ -5892,7 +5898,7 @@ async function getConfig(cwd, configPath, { format, jsx, lint } = {}) {
|
|
|
5892
5898
|
} catch {
|
|
5893
5899
|
const { args, command } = packageExecuteCommands(getPackageManager());
|
|
5894
5900
|
const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
|
|
5895
|
-
throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${name}@latest init`)}.`);
|
|
5901
|
+
throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${package_default.name}@latest init`)}.`);
|
|
5896
5902
|
}
|
|
5897
5903
|
}
|
|
5898
5904
|
//#endregion
|
|
@@ -6607,7 +6613,8 @@ async function getRegistriesAndFiles(componentNames, config, { concurrent = true
|
|
|
6607
6613
|
const tasks = new Listr([], { concurrent });
|
|
6608
6614
|
if (index) tasks.add([{
|
|
6609
6615
|
task: async (_, task) => {
|
|
6610
|
-
|
|
6616
|
+
const indexFileName = transformExtension("index.ts", config.jsx);
|
|
6617
|
+
fileMap.index = { [indexFileName]: await readFile(config.paths.ui.index, "utf-8") };
|
|
6611
6618
|
registryMap.local.index = await fetchLocalRegistry(config.paths.ui.registry);
|
|
6612
6619
|
task.title = `Got ${c.cyan("index")} file`;
|
|
6613
6620
|
},
|
|
@@ -6712,7 +6719,7 @@ const diff = new Command("diff").description("check for updates against the regi
|
|
|
6712
6719
|
const { end } = timer();
|
|
6713
6720
|
const { args, command } = packageExecuteCommands(getPackageManager());
|
|
6714
6721
|
const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
|
|
6715
|
-
const getCommand = (command) => c.cyan(`${prefix} ${name}@latest ${command}`);
|
|
6722
|
+
const getCommand = (command) => c.cyan(`${prefix} ${package_default.name}@latest ${command}`);
|
|
6716
6723
|
spinner.start("Validating directory");
|
|
6717
6724
|
await validateDir(cwd);
|
|
6718
6725
|
spinner.succeed("Validated directory");
|
|
@@ -7431,7 +7438,7 @@ const update = new Command("update").description("update components in your proj
|
|
|
7431
7438
|
const { end } = timer();
|
|
7432
7439
|
const { args, command } = packageExecuteCommands(getPackageManager());
|
|
7433
7440
|
const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
|
|
7434
|
-
const getCommand = (command) => c.cyan(`${prefix} ${name}@latest ${command}`);
|
|
7441
|
+
const getCommand = (command) => c.cyan(`${prefix} ${package_default.name}@latest ${command}`);
|
|
7435
7442
|
spinner.start("Validating directory");
|
|
7436
7443
|
await validateDir(cwd);
|
|
7437
7444
|
spinner.succeed("Validated directory");
|
|
@@ -7509,9 +7516,9 @@ function run() {
|
|
|
7509
7516
|
shouldNotifyInNpmScript: true,
|
|
7510
7517
|
updateCheckInterval: 1e3 * 60 * 60 * 24 * 3
|
|
7511
7518
|
}).notify({ isGlobal: true });
|
|
7512
|
-
console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${version} ${c.dim("by Yamada UI")}`);
|
|
7513
|
-
console.log(`${c.dim(description)}\n`);
|
|
7514
|
-
const program = new Command("Yamada UI CLI").version(version, "-v, --version", "display the version number").usage(`${c.green("<command>")} [options]`);
|
|
7519
|
+
console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${package_default.version} ${c.dim("by Yamada UI")}`);
|
|
7520
|
+
console.log(`${c.dim(package_default.description)}\n`);
|
|
7521
|
+
const program = new Command("Yamada UI CLI").version(package_default.version, "-v, --version", "display the version number").usage(`${c.green("<command>")} [options]`);
|
|
7515
7522
|
program.addCommand(init);
|
|
7516
7523
|
program.addCommand(add);
|
|
7517
7524
|
program.addCommand(update);
|