@yamada-ui/cli 1.2.1 → 1.2.2-dev-20241010145523

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.
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.0.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.3.3_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.0.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.3.3_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -44,12 +44,6 @@ __export(theme_exports, {
44
44
  });
45
45
  module.exports = __toCommonJS(theme_exports);
46
46
  init_cjs_shims();
47
- var import_dns = __toESM(require("dns"));
48
- var import_fs2 = require("fs");
49
- var import_promises = require("fs/promises");
50
- var import_node_stream = require("stream");
51
- var import_promises2 = require("stream/promises");
52
- var import_path2 = __toESM(require("path"));
53
47
  var p = __toESM(require("@clack/prompts"));
54
48
 
55
49
  // ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
@@ -548,6 +542,12 @@ var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
548
542
  var source_default = chalk;
549
543
 
550
544
  // src/command/theme/index.ts
545
+ var import_dns = __toESM(require("dns"));
546
+ var import_fs2 = require("fs");
547
+ var import_promises = require("fs/promises");
548
+ var import_node_stream = require("stream");
549
+ var import_promises2 = require("stream/promises");
550
+ var import_path2 = __toESM(require("path"));
551
551
  var import_tar = require("tar");
552
552
  var import_typescript = require("typescript");
553
553
 
@@ -575,7 +575,10 @@ init_cjs_shims();
575
575
  var import_fs = __toESM(require("fs"));
576
576
  var isWriteable = async (directory) => {
577
577
  try {
578
- await import_fs.default.promises.access(directory, (import_fs.default.constants || import_fs.default).W_OK);
578
+ await import_fs.default.promises.access(
579
+ directory,
580
+ ("constants" in import_fs.default ? import_fs.default.constants : import_fs.default).W_OK
581
+ );
579
582
  return true;
580
583
  } catch {
581
584
  return false;
@@ -586,7 +589,7 @@ var isWriteable = async (directory) => {
586
589
  var ORG_NAME = "yamada-ui";
587
590
  var REPO_NAME = "yamada-ui";
588
591
  var DEFAULT_BRANCH_NAME = "main";
589
- var isOnline = () => {
592
+ var isOnline = async () => {
590
593
  return new Promise((resolve) => {
591
594
  import_dns.default.lookup("github.com", (err) => {
592
595
  if (err && err.code === "ENOTFOUND") {
@@ -641,9 +644,9 @@ var getFileMap = async (cwd, branch) => {
641
644
  (0, import_tar.t)({
642
645
  cwd,
643
646
  filter,
644
- onReadEntry,
647
+ newer: true,
645
648
  strip: 4,
646
- newer: true
649
+ onReadEntry
647
650
  })
648
651
  );
649
652
  return fileMap;
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.0.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.3.3_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.0.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.3.3_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -50,6 +50,13 @@ init_cjs_shims();
50
50
  var isObject = (obj) => obj !== null && (typeof obj === "object" || typeof obj === "function") && !isArray(obj);
51
51
  var isArray = (value) => Array.isArray(value);
52
52
 
53
+ // src/utils/object.ts
54
+ init_cjs_shims();
55
+ var getObject = (obj, path2) => {
56
+ const keys = path2.split(".");
57
+ return keys.reduce((obj2, key) => obj2[key] ?? {}, obj);
58
+ };
59
+
53
60
  // src/utils/prettier.ts
54
61
  init_cjs_shims();
55
62
  var import_path = __toESM(require("path"));
@@ -69,13 +76,6 @@ var prettier = async (content, options) => {
69
76
  }
70
77
  };
71
78
 
72
- // src/utils/object.ts
73
- init_cjs_shims();
74
- var getObject = (obj, path2) => {
75
- const keys = path2.split(".");
76
- return keys.reduce((obj2, key) => obj2[key] ?? {}, obj);
77
- };
78
-
79
79
  // src/command/tokens/config.ts
80
80
  init_cjs_shims();
81
81
  var config = [
@@ -111,18 +111,15 @@ var printComponent = (components) => `components: { ${Object.entries(components)
111
111
  var print = (unions) => Object.entries(unions).sort(([a], [b]) => a.localeCompare(b)).map(
112
112
  ([key, union]) => `${key}: ${union.map((value) => `"${value}"`).concat(["(string & {})"]).join(" | ")};`
113
113
  ).join("\n");
114
- var extractComponents = ({ components = {} }) => Object.entries(components).reduce(
115
- (obj, [key, { sizes, variants }]) => {
116
- if (sizes || variants) {
117
- obj[key] = {
118
- sizes: Object.keys(sizes ?? {}),
119
- variants: Object.keys(variants ?? {})
120
- };
121
- }
122
- return obj;
123
- },
124
- {}
125
- );
114
+ var extractComponents = ({ components = {} }) => Object.entries(components).reduce((obj, [key, { sizes, variants }]) => {
115
+ if (sizes || variants) {
116
+ obj[key] = {
117
+ sizes: Object.keys(sizes ?? {}),
118
+ variants: Object.keys(variants ?? {})
119
+ };
120
+ }
121
+ return obj;
122
+ }, {});
126
123
  var isTone = (value) => {
127
124
  if (!isObject(value)) return false;
128
125
  const keys = Object.keys(value);
@@ -132,13 +129,13 @@ var extractColorSchemes = (theme) => {
132
129
  const { colors, semantics } = theme;
133
130
  let colorSchemes = [];
134
131
  let colorSchemeColors = [];
135
- if (!isObject(colors)) return { colorSchemes, colorSchemeColors };
132
+ if (!isObject(colors)) return { colorSchemeColors, colorSchemes };
136
133
  Object.entries(colors).forEach(([key, value]) => {
137
134
  if (!isTone(value)) return;
138
135
  colorSchemes.push(key);
139
136
  });
140
137
  if (!isObject(semantics?.colorSchemes))
141
- return { colorSchemes, colorSchemeColors };
138
+ return { colorSchemeColors, colorSchemes };
142
139
  Object.entries(semantics.colorSchemes).forEach(([key, value]) => {
143
140
  if (isTone(value)) {
144
141
  colorSchemes.push(key);
@@ -150,7 +147,7 @@ var extractColorSchemes = (theme) => {
150
147
  colorSchemeColors.push(...TONES.map((tone) => `${key}.${tone}`));
151
148
  }
152
149
  });
153
- return { colorSchemes, colorSchemeColors };
150
+ return { colorSchemeColors, colorSchemes };
154
151
  };
155
152
  var extractThemeSchemes = (theme) => {
156
153
  const { themeSchemes } = theme;
@@ -190,10 +187,10 @@ var createThemeTypings = async (theme, { responsive = false }) => {
190
187
  const tokens = config.reduce(
191
188
  (prev, {
192
189
  key,
193
- replaceKey,
190
+ flatMap = (value) => value,
194
191
  maxScanDepth,
195
192
  omitScanKeys,
196
- flatMap = (value) => value
193
+ replaceKey
197
194
  }) => {
198
195
  const target = getObject(theme, key);
199
196
  prev[replaceKey ?? key] = [];
@@ -213,7 +210,7 @@ var createThemeTypings = async (theme, { responsive = false }) => {
213
210
  omitScanKeys,
214
211
  shouldProcess
215
212
  ).flatMap(flatMap);
216
- prev[replaceKey ?? key].push(...semanticKeys);
213
+ prev[replaceKey ?? key]?.push(...semanticKeys);
217
214
  }
218
215
  return prev;
219
216
  },
@@ -221,10 +218,10 @@ var createThemeTypings = async (theme, { responsive = false }) => {
221
218
  );
222
219
  const textStyles = extractKeys(theme, "styles.textStyles");
223
220
  const layerStyles = extractKeys(theme, "styles.layerStyles");
224
- const { colorSchemes, colorSchemeColors } = extractColorSchemes(theme);
221
+ const { colorSchemeColors, colorSchemes } = extractColorSchemes(theme);
225
222
  const themeSchemes = extractThemeSchemes(theme);
226
223
  const components = extractComponents(theme);
227
- tokens.colors = [...tokens.colors, ...colorSchemeColors];
224
+ tokens.colors = [...tokens.colors ?? [], ...colorSchemeColors];
228
225
  return prettier(
229
226
  [
230
227
  `import type { UITheme } from './ui-theme.types'`,
@@ -232,9 +229,9 @@ var createThemeTypings = async (theme, { responsive = false }) => {
232
229
  `export interface GeneratedTheme extends UITheme {`,
233
230
  print({
234
231
  ...tokens,
235
- textStyles,
236
- layerStyles,
237
232
  colorSchemes,
233
+ layerStyles,
234
+ textStyles,
238
235
  themeSchemes
239
236
  }),
240
237
  printComponent(components),
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
- // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.0.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
33
+ // ../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.3.3_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js
34
34
  var init_cjs_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.0.0_postcss@8.4.47_tsx@4.19.1_typescript@5.6.2_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.3.0_@swc+core@1.7.26_@swc+helpers@0.5.5__jiti@2.3.3_postcss@8.4.47_tsx@4.19.1_typescript@5.6.3_yaml@2.5.1/node_modules/tsup/assets/cjs_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -45,8 +45,6 @@ __export(tokens_exports, {
45
45
  });
46
46
  module.exports = __toCommonJS(tokens_exports);
47
47
  init_cjs_shims();
48
- var import_promises = require("fs/promises");
49
- var import_path3 = __toESM(require("path"));
50
48
  var p = __toESM(require("@clack/prompts"));
51
49
 
52
50
  // ../../node_modules/.pnpm/chalk@5.3.0/node_modules/chalk/source/index.js
@@ -546,69 +544,72 @@ var source_default = chalk;
546
544
 
547
545
  // src/command/tokens/index.ts
548
546
  var import_chokidar = __toESM(require("chokidar"));
547
+ var import_promises = require("fs/promises");
548
+ var import_path3 = __toESM(require("path"));
549
549
 
550
550
  // src/utils/assertion.ts
551
551
  init_cjs_shims();
552
552
  var isObject = (obj) => obj !== null && (typeof obj === "object" || typeof obj === "function") && !isArray(obj);
553
553
  var isArray = (value) => Array.isArray(value);
554
554
 
555
- // src/utils/prettier.ts
556
- init_cjs_shims();
557
- var import_path = __toESM(require("path"));
558
- var import_prettier = require("prettier");
559
- var prettier = async (content, options) => {
560
- const prettierConfig = await (0, import_prettier.resolveConfig)(
561
- import_path.default.join(process.cwd(), ".prettierrc")
562
- );
563
- try {
564
- return (0, import_prettier.format)(content, {
565
- ...prettierConfig,
566
- parser: "typescript",
567
- ...options
568
- });
569
- } catch {
570
- return content;
571
- }
572
- };
573
-
574
- // src/utils/object.ts
575
- init_cjs_shims();
576
- var getObject = (obj, path4) => {
577
- const keys = path4.split(".");
578
- return keys.reduce((obj2, key) => obj2[key] ?? {}, obj);
579
- };
580
-
581
555
  // src/utils/module.ts
582
556
  init_cjs_shims();
583
- var import_fs = require("fs");
584
- var import_vm = require("vm");
585
557
  var import_esbuild = require("esbuild");
558
+ var import_fs = require("fs");
586
559
  var import_node_eval = __toESM(require("node-eval"));
560
+ var import_vm = require("vm");
587
561
  var getModule = async (file, cwd) => {
588
562
  const result = await (0, import_esbuild.build)({
589
- platform: "node",
590
- format: "cjs",
591
- mainFields: ["module", "main"],
592
563
  absWorkingDir: cwd,
564
+ bundle: true,
593
565
  entryPoints: [file],
566
+ format: "cjs",
567
+ mainFields: ["module", "main"],
568
+ metafile: true,
594
569
  outfile: "out.js",
595
- write: false,
596
- bundle: true,
570
+ platform: "node",
597
571
  sourcemap: false,
598
- metafile: true
572
+ write: false
599
573
  });
600
- const { text: code } = result.outputFiles[0];
601
- const dependencies = result.metafile ? Object.keys(result.metafile.inputs) : [];
574
+ const { text: code } = result.outputFiles[0] ?? {};
575
+ const dependencies = isObject(result.metafile) ? Object.keys(result.metafile.inputs) : [];
602
576
  try {
603
577
  const realFileName = import_fs.realpathSync.native(file);
578
+ if (!code) throw new Error("code is undefined");
604
579
  const script = new import_vm.Script(code, { filename: realFileName });
605
580
  const mod = { exports: {} };
606
581
  const require2 = (id) => id === realFileName ? mod.exports : require2(id);
607
582
  script.runInThisContext()(mod.exports, require2, mod);
608
- return { mod, code, dependencies };
583
+ return { code, dependencies, mod };
609
584
  } catch {
610
585
  const mod = (0, import_node_eval.default)(code);
611
- return { mod, code, dependencies };
586
+ return { code, dependencies, mod };
587
+ }
588
+ };
589
+
590
+ // src/utils/object.ts
591
+ init_cjs_shims();
592
+ var getObject = (obj, path4) => {
593
+ const keys = path4.split(".");
594
+ return keys.reduce((obj2, key) => obj2[key] ?? {}, obj);
595
+ };
596
+
597
+ // src/utils/prettier.ts
598
+ init_cjs_shims();
599
+ var import_path = __toESM(require("path"));
600
+ var import_prettier = require("prettier");
601
+ var prettier = async (content, options) => {
602
+ const prettierConfig = await (0, import_prettier.resolveConfig)(
603
+ import_path.default.join(process.cwd(), ".prettierrc")
604
+ );
605
+ try {
606
+ return (0, import_prettier.format)(content, {
607
+ ...prettierConfig,
608
+ parser: "typescript",
609
+ ...options
610
+ });
611
+ } catch {
612
+ return content;
612
613
  }
613
614
  };
614
615
 
@@ -650,18 +651,15 @@ var printComponent = (components) => `components: { ${Object.entries(components)
650
651
  var print = (unions) => Object.entries(unions).sort(([a], [b]) => a.localeCompare(b)).map(
651
652
  ([key, union]) => `${key}: ${union.map((value) => `"${value}"`).concat(["(string & {})"]).join(" | ")};`
652
653
  ).join("\n");
653
- var extractComponents = ({ components = {} }) => Object.entries(components).reduce(
654
- (obj, [key, { sizes, variants }]) => {
655
- if (sizes || variants) {
656
- obj[key] = {
657
- sizes: Object.keys(sizes ?? {}),
658
- variants: Object.keys(variants ?? {})
659
- };
660
- }
661
- return obj;
662
- },
663
- {}
664
- );
654
+ var extractComponents = ({ components = {} }) => Object.entries(components).reduce((obj, [key, { sizes, variants }]) => {
655
+ if (sizes || variants) {
656
+ obj[key] = {
657
+ sizes: Object.keys(sizes ?? {}),
658
+ variants: Object.keys(variants ?? {})
659
+ };
660
+ }
661
+ return obj;
662
+ }, {});
665
663
  var isTone = (value) => {
666
664
  if (!isObject(value)) return false;
667
665
  const keys = Object.keys(value);
@@ -671,13 +669,13 @@ var extractColorSchemes = (theme) => {
671
669
  const { colors, semantics } = theme;
672
670
  let colorSchemes = [];
673
671
  let colorSchemeColors = [];
674
- if (!isObject(colors)) return { colorSchemes, colorSchemeColors };
672
+ if (!isObject(colors)) return { colorSchemeColors, colorSchemes };
675
673
  Object.entries(colors).forEach(([key, value]) => {
676
674
  if (!isTone(value)) return;
677
675
  colorSchemes.push(key);
678
676
  });
679
677
  if (!isObject(semantics?.colorSchemes))
680
- return { colorSchemes, colorSchemeColors };
678
+ return { colorSchemeColors, colorSchemes };
681
679
  Object.entries(semantics.colorSchemes).forEach(([key, value]) => {
682
680
  if (isTone(value)) {
683
681
  colorSchemes.push(key);
@@ -689,7 +687,7 @@ var extractColorSchemes = (theme) => {
689
687
  colorSchemeColors.push(...TONES.map((tone) => `${key}.${tone}`));
690
688
  }
691
689
  });
692
- return { colorSchemes, colorSchemeColors };
690
+ return { colorSchemeColors, colorSchemes };
693
691
  };
694
692
  var extractThemeSchemes = (theme) => {
695
693
  const { themeSchemes } = theme;
@@ -729,10 +727,10 @@ var createThemeTypings = async (theme, { responsive = false }) => {
729
727
  const tokens = config.reduce(
730
728
  (prev, {
731
729
  key,
732
- replaceKey,
730
+ flatMap = (value) => value,
733
731
  maxScanDepth,
734
732
  omitScanKeys,
735
- flatMap = (value) => value
733
+ replaceKey
736
734
  }) => {
737
735
  const target = getObject(theme, key);
738
736
  prev[replaceKey ?? key] = [];
@@ -752,7 +750,7 @@ var createThemeTypings = async (theme, { responsive = false }) => {
752
750
  omitScanKeys,
753
751
  shouldProcess
754
752
  ).flatMap(flatMap);
755
- prev[replaceKey ?? key].push(...semanticKeys);
753
+ prev[replaceKey ?? key]?.push(...semanticKeys);
756
754
  }
757
755
  return prev;
758
756
  },
@@ -760,10 +758,10 @@ var createThemeTypings = async (theme, { responsive = false }) => {
760
758
  );
761
759
  const textStyles = extractKeys(theme, "styles.textStyles");
762
760
  const layerStyles = extractKeys(theme, "styles.layerStyles");
763
- const { colorSchemes, colorSchemeColors } = extractColorSchemes(theme);
761
+ const { colorSchemeColors, colorSchemes } = extractColorSchemes(theme);
764
762
  const themeSchemes = extractThemeSchemes(theme);
765
763
  const components = extractComponents(theme);
766
- tokens.colors = [...tokens.colors, ...colorSchemeColors];
764
+ tokens.colors = [...tokens.colors ?? [], ...colorSchemeColors];
767
765
  return prettier(
768
766
  [
769
767
  `import type { UITheme } from './ui-theme.types'`,
@@ -771,9 +769,9 @@ var createThemeTypings = async (theme, { responsive = false }) => {
771
769
  `export interface GeneratedTheme extends UITheme {`,
772
770
  print({
773
771
  ...tokens,
774
- textStyles,
775
- layerStyles,
776
772
  colorSchemes,
773
+ layerStyles,
774
+ textStyles,
777
775
  themeSchemes
778
776
  }),
779
777
  printComponent(components),
@@ -784,8 +782,8 @@ var createThemeTypings = async (theme, { responsive = false }) => {
784
782
 
785
783
  // src/command/tokens/resolve-output-path.ts
786
784
  init_cjs_shims();
787
- var import_path2 = __toESM(require("path"));
788
785
  var import_glob = require("glob");
786
+ var import_path2 = __toESM(require("path"));
789
787
  var themePath = [
790
788
  "node_modules",
791
789
  "@yamada-ui",
@@ -823,9 +821,9 @@ var resolveOutputPath = async (outPath) => {
823
821
 
824
822
  // src/command/tokens/index.ts
825
823
  var generateThemeTypings = async ({
826
- theme,
827
824
  config: config2,
828
- outFile
825
+ outFile,
826
+ theme
829
827
  }) => {
830
828
  p.intro(source_default.magenta(`Generating Yamada UI theme typings`));
831
829
  const s = p.spinner();
@@ -853,15 +851,15 @@ var generateThemeTypings = async ({
853
851
  var actionTokens = async (themePath2, { cwd = import_path3.default.resolve(), out: outFile, watch: watchFile }) => {
854
852
  const readFile = async () => {
855
853
  const filePath = import_path3.default.resolve(themePath2);
856
- const { mod, dependencies: dependencies2 } = await getModule(filePath, cwd);
854
+ const { dependencies: dependencies2, mod } = await getModule(filePath, cwd);
857
855
  const theme2 = mod?.default ?? mod?.theme ?? mod?.customTheme ?? mod?.defaultTheme ?? {};
858
856
  const config3 = mod?.config ?? mod?.customConfig ?? mod?.defaultConfig ?? {};
859
- return { theme: theme2, config: config3, dependencies: dependencies2 };
857
+ return { config: config3, dependencies: dependencies2, theme: theme2 };
860
858
  };
861
859
  let file = await readFile();
862
- const { theme, config: config2, dependencies } = file;
860
+ const { config: config2, dependencies, theme } = file;
863
861
  const buildFile = async () => {
864
- await generateThemeTypings({ theme, config: config2, outFile });
862
+ await generateThemeTypings({ config: config2, outFile, theme });
865
863
  if (watchFile) console.log("\n", "\u231B\uFE0F Watching for changes...");
866
864
  };
867
865
  if (watchFile) {
@@ -34,8 +34,8 @@ __export(resolve_output_path_exports, {
34
34
  themePath: () => themePath
35
35
  });
36
36
  module.exports = __toCommonJS(resolve_output_path_exports);
37
- var import_path = __toESM(require("path"));
38
37
  var import_glob = require("glob");
38
+ var import_path = __toESM(require("path"));
39
39
  var themePath = [
40
40
  "node_modules",
41
41
  "@yamada-ui",