@yamada-ui/cli 2.1.8-dev-20260624122859 → 2.1.9-dev-20260629090928

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.mjs +31 -21
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -41,7 +41,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
41
41
  var __getOwnPropNames = Object.getOwnPropertyNames;
42
42
  var __getProtoOf = Object.getPrototypeOf;
43
43
  var __hasOwnProp = Object.prototype.hasOwnProperty;
44
- var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
44
+ var __esmMin = (fn, res, err) => () => {
45
+ if (err) throw err[0];
46
+ try {
47
+ return fn && (res = fn(fn = 0)), res;
48
+ } catch (e) {
49
+ throw err = [e], e;
50
+ }
51
+ };
45
52
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
46
53
  var __copyProps = (to, from, except, desc) => {
47
54
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
@@ -57,7 +64,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
57
64
  value: mod,
58
65
  enumerable: true
59
66
  }) : target, mod));
60
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
67
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
61
68
  //#endregion
62
69
  //#region ../../node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
63
70
  var require_polyfills$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1073,7 +1080,7 @@ const isObject$2 = (value) => {
1073
1080
  const type = typeof value;
1074
1081
  return value !== null && (type === "object" || type === "function");
1075
1082
  };
1076
- const disallowedKeys = new Set([
1083
+ const disallowedKeys = /* @__PURE__ */ new Set([
1077
1084
  "__proto__",
1078
1085
  "prototype",
1079
1086
  "constructor"
@@ -3833,7 +3840,7 @@ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
3833
3840
  __exportStar(require_ca_file(), exports);
3834
3841
  }));
3835
3842
  //#endregion
3836
- //#region ../../node_modules/.pnpm/tsdown@0.22.2_@typescript+native-preview@7.0.0-dev.20260614.1_oxc-resolver@11.21.3_tsx@4.22.4_typescript@6.0.3/node_modules/tsdown/esm-shims.js
3843
+ //#region ../../node_modules/.pnpm/tsdown@0.22.3_@typescript+native-preview@7.0.0-dev.20260621.1_oxc-resolver@11.21.3_tsx@4.22.4_typescript@6.0.3/node_modules/tsdown/esm-shims.js
3837
3844
  var getFilename, getDirname, __dirname$2;
3838
3845
  var init_esm_shims = __esmMin((() => {
3839
3846
  getFilename = () => fileURLToPath(import.meta.url);
@@ -4136,7 +4143,7 @@ var require_config_chain = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4136
4143
  };
4137
4144
  }));
4138
4145
  //#endregion
4139
- //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
4146
+ //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js
4140
4147
  var require_envKeyToSetting = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4141
4148
  module.exports = function(x) {
4142
4149
  const colonIndex = x.indexOf(":");
@@ -4190,7 +4197,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
4190
4197
  });
4191
4198
  }));
4192
4199
  //#endregion
4193
- //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/util.js
4200
+ //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/util.js
4194
4201
  var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4195
4202
  const fs$2 = __require("fs");
4196
4203
  const path$6 = __require("path");
@@ -4261,7 +4268,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
4261
4268
  exports.parseKey = parseKey;
4262
4269
  }));
4263
4270
  //#endregion
4264
- //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/types.js
4271
+ //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/types.js
4265
4272
  var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4266
4273
  const path$5 = __require("path");
4267
4274
  const Stream = __require("stream").Stream;
@@ -4446,7 +4453,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
4446
4453
  };
4447
4454
  }));
4448
4455
  //#endregion
4449
- //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/conf.js
4456
+ //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/conf.js
4450
4457
  var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4451
4458
  const { readCAFileSync } = require_dist$1();
4452
4459
  const fs$1 = __require("fs");
@@ -4575,7 +4582,7 @@ var require_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4575
4582
  module.exports = Conf;
4576
4583
  }));
4577
4584
  //#endregion
4578
- //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/lib/defaults.js
4585
+ //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/lib/defaults.js
4579
4586
  var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
4580
4587
  const os$2 = __require("os");
4581
4588
  const path$3 = __require("path");
@@ -4728,7 +4735,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
4728
4735
  } });
4729
4736
  }));
4730
4737
  //#endregion
4731
- //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.2/node_modules/@pnpm/npm-conf/index.js
4738
+ //#region ../../node_modules/.pnpm/@pnpm+npm-conf@3.0.3/node_modules/@pnpm/npm-conf/index.js
4732
4739
  var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4733
4740
  const path$2 = __require("path");
4734
4741
  const Conf = require_conf();
@@ -4755,21 +4762,24 @@ var require_npm_conf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4755
4762
  }
4756
4763
  conf.addEnv();
4757
4764
  conf.loadPrefix();
4765
+ const trustedUserconfig = conf.get("userconfig");
4766
+ const trustedPrefix = conf.get("prefix");
4767
+ if (trustedPrefix) {
4768
+ const etc = path$2.resolve(trustedPrefix, "etc");
4769
+ conf.root.globalconfig = path$2.resolve(etc, "npmrc");
4770
+ conf.root.globalignorefile = path$2.resolve(etc, "npmignore");
4771
+ }
4772
+ const trustedGlobalconfig = conf.get("globalconfig");
4758
4773
  const projectConf = path$2.resolve(conf.localPrefix, ".npmrc");
4759
- const userConf = conf.get("userconfig");
4774
+ const userConf = trustedUserconfig;
4760
4775
  if (!conf.get("global") && projectConf !== userConf) warnings.push(conf.addFile(projectConf, "project"));
4761
4776
  else conf.add({}, "project");
4762
4777
  if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
4763
4778
  const workspaceConf = path$2.resolve(conf.get("workspace-prefix"), ".npmrc");
4764
4779
  warnings.push(conf.addFile(workspaceConf, "workspace"));
4765
4780
  }
4766
- warnings.push(conf.addFile(conf.get("userconfig"), "user"));
4767
- if (conf.get("prefix")) {
4768
- const etc = path$2.resolve(conf.get("prefix"), "etc");
4769
- conf.root.globalconfig = path$2.resolve(etc, "npmrc");
4770
- conf.root.globalignorefile = path$2.resolve(etc, "npmignore");
4771
- }
4772
- warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
4781
+ warnings.push(conf.addFile(trustedUserconfig, "user"));
4782
+ warnings.push(conf.addFile(trustedGlobalconfig, "global"));
4773
4783
  conf.loadUser();
4774
4784
  const caFile = conf.get("cafile");
4775
4785
  if (caFile) conf.loadCAFile(caFile);
@@ -5365,7 +5375,7 @@ function updateNotifier(options) {
5365
5375
  //#endregion
5366
5376
  //#region package.json
5367
5377
  var name = "@yamada-ui/cli";
5368
- var version = "2.1.7";
5378
+ var version = "2.1.8";
5369
5379
  var description = "The official CLI for Yamada UI projects";
5370
5380
  var package_default = {
5371
5381
  name,
@@ -5428,7 +5438,7 @@ var package_default = {
5428
5438
  "prettier": "catalog:",
5429
5439
  "prompts": "^2.4.2",
5430
5440
  "rimraf": "catalog:",
5431
- "semver": "^7.8.2",
5441
+ "semver": "^7.8.5",
5432
5442
  "sucrase": "^3.35.1",
5433
5443
  "validate-npm-package-name": "^7.0.2",
5434
5444
  "yamljs": "catalog:"
@@ -6204,7 +6214,7 @@ const add = new Command("add").description("add a component to your project.").a
6204
6214
  if (!proceed) process.exit(0);
6205
6215
  }
6206
6216
  }
6207
- const targetNames = [...new Set([...omittedGeneratedNames, ...registryNames])];
6217
+ const targetNames = [.../* @__PURE__ */ new Set([...omittedGeneratedNames, ...registryNames])];
6208
6218
  const tasks = new Listr(Object.entries(registries).map(([name, registry]) => {
6209
6219
  if (!config.isSection(registry.section)) return;
6210
6220
  const sectionPath = config.getSectionResolvedPath(registry.section);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/cli",
3
3
  "type": "module",
4
- "version": "2.1.8-dev-20260624122859",
4
+ "version": "2.1.9-dev-20260629090928",
5
5
  "description": "The official CLI for Yamada UI projects",
6
6
  "keywords": [
7
7
  "theme",
@@ -48,11 +48,11 @@
48
48
  "prettier": "^3.8.1",
49
49
  "prompts": "^2.4.2",
50
50
  "rimraf": "^6.1.3",
51
- "semver": "^7.8.2",
51
+ "semver": "^7.8.5",
52
52
  "sucrase": "^3.35.1",
53
53
  "validate-npm-package-name": "^7.0.2",
54
54
  "yamljs": "^0.3.0",
55
- "@yamada-ui/utils": "2.1.4-dev-20260624122859"
55
+ "@yamada-ui/utils": "2.1.4"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/prompts": "^2.4.9",