@yamada-ui/cli 2.0.0-dev-20250908131135 → 2.0.0-dev-20250908163631

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.
Files changed (2) hide show
  1. package/dist/index.js +9 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5368,12 +5368,10 @@ async function writeFile$1(path$9, content, options = {}) {
5368
5368
  });
5369
5369
  await formatFiles(path$9, options.format);
5370
5370
  }
5371
- async function writeFileSafe(path$9, content, options) {
5372
- if (path$9.includes("/")) {
5373
- const dirPath = path$9.split("/").slice(0, -1).join("/");
5374
- if (!existsSync(dirPath)) await mkdir(dirPath, { recursive: true });
5375
- }
5376
- await writeFile$1(path$9, content, options);
5371
+ async function writeFileSafe(targetPath, content, options) {
5372
+ const dirPath = path$1.dirname(targetPath);
5373
+ if (!existsSync(dirPath)) await mkdir(dirPath, { recursive: true });
5374
+ await writeFile$1(targetPath, content, options);
5377
5375
  }
5378
5376
  async function validateDir(path$9) {
5379
5377
  const writeable = await isWriteable(path$9);
@@ -5706,11 +5704,11 @@ async function getModule(file$1, cwd$3) {
5706
5704
  const agent = process.env.https_proxy ? new HttpsProxyAgent(process.env.https_proxy) : void 0;
5707
5705
  const registryStore = /* @__PURE__ */ new Map();
5708
5706
  function getRegistryUrl(name$1) {
5709
- if (name$1 === "index") return path$1.join(REGISTRY_URL, "index.json");
5710
- else if (name$1 === "theme") return path$1.join(REGISTRY_URL, "theme.json");
5711
- else if (name$1.startsWith("use-")) return path$1.join(REGISTRY_URL, "hooks", `${name$1}.json`);
5712
- else if (name$1.endsWith("-provider")) return path$1.join(REGISTRY_URL, "providers", `${name$1}.json`);
5713
- else return path$1.join(REGISTRY_URL, "components", `${name$1}.json`);
5707
+ if (name$1 === "index") return path$1.posix.join(REGISTRY_URL, "index.json");
5708
+ else if (name$1 === "theme") return path$1.posix.join(REGISTRY_URL, "theme.json");
5709
+ else if (name$1.startsWith("use-")) return path$1.posix.join(REGISTRY_URL, "hooks", `${name$1}.json`);
5710
+ else if (name$1.endsWith("-provider")) return path$1.posix.join(REGISTRY_URL, "providers", `${name$1}.json`);
5711
+ else return path$1.posix.join(REGISTRY_URL, "components", `${name$1}.json`);
5714
5712
  }
5715
5713
  async function fetchRegistryNames() {
5716
5714
  const { sources } = await fetchRegistry("index");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
3
  "type": "module",
4
- "version": "2.0.0-dev-20250908131135",
4
+ "version": "2.0.0-dev-20250908163631",
5
5
  "description": "The official CLI for Yamada UI projects",
6
6
  "keywords": [
7
7
  "theme",