@yamada-ui/cli 2.1.12-dev-20260804042548 → 2.1.12-dev-20260806061146
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 +24 -19
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
60
60
|
}
|
|
61
61
|
return to;
|
|
62
62
|
};
|
|
63
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
63
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
64
64
|
value: mod,
|
|
65
65
|
enumerable: true
|
|
66
66
|
}) : target, mod));
|
|
@@ -337,7 +337,7 @@ var require_legacy_streams$1 = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
337
337
|
this.paused = false;
|
|
338
338
|
this.flags = "r";
|
|
339
339
|
this.mode = 438;
|
|
340
|
-
this.bufferSize =
|
|
340
|
+
this.bufferSize = 65536;
|
|
341
341
|
options = options || {};
|
|
342
342
|
var keys = Object.keys(options);
|
|
343
343
|
for (var index = 0, length = keys.length; index < length; index++) {
|
|
@@ -1158,9 +1158,7 @@ function getPathSegments(path) {
|
|
|
1158
1158
|
parts.push(currentSegment);
|
|
1159
1159
|
break;
|
|
1160
1160
|
case "index": throw new Error("Index was not closed");
|
|
1161
|
-
case "start":
|
|
1162
|
-
parts.push("");
|
|
1163
|
-
break;
|
|
1161
|
+
case "start": parts.push("");
|
|
1164
1162
|
}
|
|
1165
1163
|
return parts;
|
|
1166
1164
|
}
|
|
@@ -3353,7 +3351,7 @@ var require_legacy_streams = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
3353
3351
|
this.paused = false;
|
|
3354
3352
|
this.flags = "r";
|
|
3355
3353
|
this.mode = 438;
|
|
3356
|
-
this.bufferSize =
|
|
3354
|
+
this.bufferSize = 65536;
|
|
3357
3355
|
options = options || {};
|
|
3358
3356
|
var keys = Object.keys(options);
|
|
3359
3357
|
for (var index = 0, length = keys.length; index < length; index++) {
|
|
@@ -3840,7 +3838,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3840
3838
|
__exportStar(require_ca_file(), exports);
|
|
3841
3839
|
}));
|
|
3842
3840
|
//#endregion
|
|
3843
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
3841
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@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
3842
|
var getFilename, getDirname, __dirname$2;
|
|
3845
3843
|
var init_esm_shims = __esmMin((() => {
|
|
3846
3844
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -5282,7 +5280,7 @@ function pupa(template, data, { ignoreMissing = false, transform = ({ value }) =
|
|
|
5282
5280
|
//#endregion
|
|
5283
5281
|
//#region ../../node_modules/.pnpm/update-notifier@7.3.1/node_modules/update-notifier/update-notifier.js
|
|
5284
5282
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
5285
|
-
const ONE_DAY =
|
|
5283
|
+
const ONE_DAY = 864e5;
|
|
5286
5284
|
var UpdateNotifier = class {
|
|
5287
5285
|
config;
|
|
5288
5286
|
update;
|
|
@@ -5590,8 +5588,9 @@ async function formatText(content, { configPath, enabled = true, ...options } =
|
|
|
5590
5588
|
if (!enabled) return content;
|
|
5591
5589
|
try {
|
|
5592
5590
|
configPath ??= await resolveConfigFile();
|
|
5591
|
+
const config = configPath ? await resolveConfig(configPath) : {};
|
|
5593
5592
|
return format$1(content, {
|
|
5594
|
-
...
|
|
5593
|
+
...config,
|
|
5595
5594
|
parser: "typescript",
|
|
5596
5595
|
...options
|
|
5597
5596
|
});
|
|
@@ -5663,11 +5662,13 @@ async function getFiles(pattern) {
|
|
|
5663
5662
|
await Promise.all(dirents.map(async (dirent) => {
|
|
5664
5663
|
if (dirent.isDirectory()) return;
|
|
5665
5664
|
if (dirent.name === "registry.json") return;
|
|
5666
|
-
const
|
|
5665
|
+
const targetPath = path.join(dirent.parentPath, dirent.name);
|
|
5666
|
+
const data = await readFile(targetPath, "utf-8");
|
|
5667
5667
|
files[`${name}/${dirent.name}`] = data;
|
|
5668
5668
|
}));
|
|
5669
5669
|
} else if (name !== "registry.json") {
|
|
5670
|
-
const
|
|
5670
|
+
const targetPath = path.join(dirent.parentPath, dirent.name);
|
|
5671
|
+
const data = await readFile(targetPath, "utf-8");
|
|
5671
5672
|
files[name] = data;
|
|
5672
5673
|
}
|
|
5673
5674
|
}));
|
|
@@ -5766,11 +5767,13 @@ function packageExecuteCommands(packageManager) {
|
|
|
5766
5767
|
}
|
|
5767
5768
|
async function installDependencies(dependencies, { cwd, dev, exact = true } = {}) {
|
|
5768
5769
|
const packageManager = getPackageManager();
|
|
5769
|
-
if (dependencies?.length)
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5770
|
+
if (dependencies?.length) {
|
|
5771
|
+
const args = packageAddArgs(packageManager, {
|
|
5772
|
+
dev,
|
|
5773
|
+
exact
|
|
5774
|
+
});
|
|
5775
|
+
await execFileAsync$1(packageManager, [...args, ...dependencies], { cwd });
|
|
5776
|
+
} else await execFileAsync$1(packageManager, ["install"], { cwd });
|
|
5774
5777
|
}
|
|
5775
5778
|
async function uninstallDependencies(dependencies, { cwd } = {}) {
|
|
5776
5779
|
const packageManager = getPackageManager();
|
|
@@ -6019,7 +6022,8 @@ async function fetchLocalRegistry(path) {
|
|
|
6019
6022
|
async function getGeneratedNameMap(config) {
|
|
6020
6023
|
const results = await Promise.all(SECTION_NAMES.map(async (section) => {
|
|
6021
6024
|
try {
|
|
6022
|
-
|
|
6025
|
+
const sectionPath = config.getSectionResolvedPath(section);
|
|
6026
|
+
return [section, (await readdir(sectionPath, { withFileTypes: true })).filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name)];
|
|
6023
6027
|
} catch {
|
|
6024
6028
|
return [section, []];
|
|
6025
6029
|
}
|
|
@@ -6250,7 +6254,8 @@ const add = new Command("add").description("add a component to your project.").a
|
|
|
6250
6254
|
tasks.add({
|
|
6251
6255
|
task: async (_, task) => {
|
|
6252
6256
|
const sectionPath = config.getSectionResolvedPath(section);
|
|
6253
|
-
const
|
|
6257
|
+
const dirPath = path.join(sectionPath, name);
|
|
6258
|
+
const dirents = await readdir(dirPath, { withFileTypes: true });
|
|
6254
6259
|
await Promise.all(dirents.map(async (dirent) => {
|
|
6255
6260
|
if (dirent.isDirectory()) {
|
|
6256
6261
|
const dirents = await readdir(path.join(dirent.parentPath, name), { withFileTypes: true });
|
|
@@ -7514,7 +7519,7 @@ function run() {
|
|
|
7514
7519
|
updateNotifier({
|
|
7515
7520
|
pkg: package_default,
|
|
7516
7521
|
shouldNotifyInNpmScript: true,
|
|
7517
|
-
updateCheckInterval:
|
|
7522
|
+
updateCheckInterval: 2592e5
|
|
7518
7523
|
}).notify({ isGlobal: true });
|
|
7519
7524
|
console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${package_default.version} ${c.dim("by Yamada UI")}`);
|
|
7520
7525
|
console.log(`${c.dim(package_default.description)}\n`);
|