@yamada-ui/cli 2.0.0-dev-20250904200953 → 2.0.0-dev-20250905201744

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 +14 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6439,6 +6439,17 @@ async function updateFiles(changeMap, { add: add$1, remove, update: update$1 },
6439
6439
  return conflictMap;
6440
6440
  }
6441
6441
 
6442
+ //#endregion
6443
+ //#region src/commands/update/validate-diff-3.ts
6444
+ async function validateDiff3() {
6445
+ try {
6446
+ await execa("diff3", ["--version"]);
6447
+ return true;
6448
+ } catch {
6449
+ throw new Error(`${c.yellow("diff3")} is not installed. Please install it.`);
6450
+ }
6451
+ }
6452
+
6442
6453
  //#endregion
6443
6454
  //#region src/commands/diff/get-registries-and-files.ts
6444
6455
  async function getRegistriesAndFiles(componentNames, config$1, { concurrent = true, index = false, theme: theme$1 = false } = {}) {
@@ -6626,6 +6637,9 @@ const diff = new Command("diff").description("check for updates against the regi
6626
6637
  message: c.reset("Do you want to update the files?")
6627
6638
  });
6628
6639
  if (update$1) {
6640
+ spinner.start("Validating methods");
6641
+ await validateDiff3();
6642
+ spinner.succeed("Validated methods");
6629
6643
  const conflictMap = await updateFiles(changeMap, dependencyMap, registryMap, config$1, { concurrent: !sequential });
6630
6644
  if (Object.keys(conflictMap).length) {
6631
6645
  console.log("---------------------------------");
@@ -7173,17 +7187,6 @@ const tokens = new Command("tokens").description("generate theme typings").argum
7173
7187
  }
7174
7188
  });
7175
7189
 
7176
- //#endregion
7177
- //#region src/commands/update/validate-diff-3.ts
7178
- async function validateDiff3() {
7179
- try {
7180
- await execa("diff3", ["--version"]);
7181
- return true;
7182
- } catch {
7183
- throw new Error(`${c.yellow("diff3")} is not installed. Please install it.`);
7184
- }
7185
- }
7186
-
7187
7190
  //#endregion
7188
7191
  //#region src/commands/update/index.ts
7189
7192
  const update = new Command("update").description("update components in your project").argument("[components...]", "components to update").option("--cwd <path>", "current working directory", cwd).option("-c, --config <path>", "path to the config file", CONFIG_FILE_NAME).option("-i, --install", "install dependencies", false).option("-s, --sequential", "run tasks sequentially.", false).option("-f, --format", "format the output files.").option("-l, --lint", "lint the output files.").action(async function(targetNames, { config: configPath, cwd: cwd$3, format: format$2, install, lint, sequential }) {
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-20250904200953",
4
+ "version": "2.0.0-dev-20250905201744",
5
5
  "description": "The official CLI for Yamada UI projects",
6
6
  "keywords": [
7
7
  "theme",