@yamada-ui/cli 2.0.3-dev-20251022091013 → 2.0.3-next-20251025000229
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.js +125 -195
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1797,7 +1797,7 @@ const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
|
1797
1797
|
var source_default = chalk;
|
|
1798
1798
|
|
|
1799
1799
|
//#endregion
|
|
1800
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
1800
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/HTTPError.js
|
|
1801
1801
|
var HTTPError = class extends Error {
|
|
1802
1802
|
response;
|
|
1803
1803
|
request;
|
|
@@ -1814,7 +1814,18 @@ var HTTPError = class extends Error {
|
|
|
1814
1814
|
};
|
|
1815
1815
|
|
|
1816
1816
|
//#endregion
|
|
1817
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
1817
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/errors/TimeoutError.js
|
|
1818
|
+
var TimeoutError = class extends Error {
|
|
1819
|
+
request;
|
|
1820
|
+
constructor(request) {
|
|
1821
|
+
super(`Request timed out: ${request.method} ${request.url}`);
|
|
1822
|
+
this.name = "TimeoutError";
|
|
1823
|
+
this.request = request;
|
|
1824
|
+
}
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
//#endregion
|
|
1828
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/constants.js
|
|
1818
1829
|
const supportsRequestStreams = (() => {
|
|
1819
1830
|
let duplexAccessed = false;
|
|
1820
1831
|
let hasContentType = false;
|
|
@@ -1888,11 +1899,13 @@ const requestOptionsRegistry = {
|
|
|
1888
1899
|
keepalive: true,
|
|
1889
1900
|
signal: true,
|
|
1890
1901
|
window: true,
|
|
1891
|
-
|
|
1902
|
+
dispatcher: true,
|
|
1903
|
+
duplex: true,
|
|
1904
|
+
priority: true
|
|
1892
1905
|
};
|
|
1893
1906
|
|
|
1894
1907
|
//#endregion
|
|
1895
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
1908
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/body.js
|
|
1896
1909
|
const getBodySize = (body) => {
|
|
1897
1910
|
if (!body) return 0;
|
|
1898
1911
|
if (body instanceof FormData) {
|
|
@@ -1971,11 +1984,11 @@ const streamRequest = (request, onUploadProgress, originalBody) => {
|
|
|
1971
1984
|
};
|
|
1972
1985
|
|
|
1973
1986
|
//#endregion
|
|
1974
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
1987
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/is.js
|
|
1975
1988
|
const isObject$1 = (value) => value !== null && typeof value === "object";
|
|
1976
1989
|
|
|
1977
1990
|
//#endregion
|
|
1978
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
1991
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/merge.js
|
|
1979
1992
|
const validateAndMerge = (...sources) => {
|
|
1980
1993
|
for (const source of sources) if ((!isObject$1(source) || Array.isArray(source)) && source !== void 0) throw new TypeError("The `options` argument must be an object");
|
|
1981
1994
|
return deepMerge({}, ...sources);
|
|
@@ -1997,44 +2010,15 @@ const mergeHooks = (original = {}, incoming = {}) => ({
|
|
|
1997
2010
|
afterResponse: newHookValue(original, incoming, "afterResponse"),
|
|
1998
2011
|
beforeError: newHookValue(original, incoming, "beforeError")
|
|
1999
2012
|
});
|
|
2000
|
-
const appendSearchParameters = (target, source) => {
|
|
2001
|
-
const result = new URLSearchParams();
|
|
2002
|
-
for (const input of [target, source]) {
|
|
2003
|
-
if (input === void 0) continue;
|
|
2004
|
-
if (input instanceof URLSearchParams) for (const [key, value] of input.entries()) result.append(key, value);
|
|
2005
|
-
else if (Array.isArray(input)) for (const pair of input) {
|
|
2006
|
-
if (!Array.isArray(pair) || pair.length !== 2) throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");
|
|
2007
|
-
result.append(String(pair[0]), String(pair[1]));
|
|
2008
|
-
}
|
|
2009
|
-
else if (isObject$1(input)) {
|
|
2010
|
-
for (const [key, value] of Object.entries(input)) if (value !== void 0) result.append(key, String(value));
|
|
2011
|
-
} else {
|
|
2012
|
-
const parameters = new URLSearchParams(input);
|
|
2013
|
-
for (const [key, value] of parameters.entries()) result.append(key, value);
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
return result;
|
|
2017
|
-
};
|
|
2018
2013
|
const deepMerge = (...sources) => {
|
|
2019
2014
|
let returnValue = {};
|
|
2020
2015
|
let headers = {};
|
|
2021
2016
|
let hooks = {};
|
|
2022
|
-
let searchParameters;
|
|
2023
|
-
const signals = [];
|
|
2024
2017
|
for (const source of sources) if (Array.isArray(source)) {
|
|
2025
2018
|
if (!Array.isArray(returnValue)) returnValue = [];
|
|
2026
2019
|
returnValue = [...returnValue, ...source];
|
|
2027
2020
|
} else if (isObject$1(source)) {
|
|
2028
2021
|
for (let [key, value] of Object.entries(source)) {
|
|
2029
|
-
if (key === "signal" && value instanceof globalThis.AbortSignal) {
|
|
2030
|
-
signals.push(value);
|
|
2031
|
-
continue;
|
|
2032
|
-
}
|
|
2033
|
-
if (key === "searchParams") {
|
|
2034
|
-
if (value === void 0 || value === null) searchParameters = void 0;
|
|
2035
|
-
else searchParameters = searchParameters === void 0 ? value : appendSearchParameters(searchParameters, value);
|
|
2036
|
-
continue;
|
|
2037
|
-
}
|
|
2038
2022
|
if (isObject$1(value) && key in returnValue) value = deepMerge(returnValue[key], value);
|
|
2039
2023
|
returnValue = {
|
|
2040
2024
|
...returnValue,
|
|
@@ -2050,15 +2034,11 @@ const deepMerge = (...sources) => {
|
|
|
2050
2034
|
returnValue.headers = headers;
|
|
2051
2035
|
}
|
|
2052
2036
|
}
|
|
2053
|
-
if (searchParameters !== void 0) returnValue.searchParams = searchParameters;
|
|
2054
|
-
if (signals.length > 0) if (signals.length === 1) returnValue.signal = signals[0];
|
|
2055
|
-
else if (supportsAbortSignal) returnValue.signal = AbortSignal.any(signals);
|
|
2056
|
-
else returnValue.signal = signals.at(-1);
|
|
2057
2037
|
return returnValue;
|
|
2058
2038
|
};
|
|
2059
2039
|
|
|
2060
2040
|
//#endregion
|
|
2061
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
2041
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/normalize.js
|
|
2062
2042
|
const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
2063
2043
|
const defaultRetryOptions = {
|
|
2064
2044
|
limit: 2,
|
|
@@ -2102,18 +2082,7 @@ const normalizeRetryOptions = (retry$2 = {}) => {
|
|
|
2102
2082
|
};
|
|
2103
2083
|
|
|
2104
2084
|
//#endregion
|
|
2105
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
2106
|
-
var TimeoutError = class extends Error {
|
|
2107
|
-
request;
|
|
2108
|
-
constructor(request) {
|
|
2109
|
-
super(`Request timed out: ${request.method} ${request.url}`);
|
|
2110
|
-
this.name = "TimeoutError";
|
|
2111
|
-
this.request = request;
|
|
2112
|
-
}
|
|
2113
|
-
};
|
|
2114
|
-
|
|
2115
|
-
//#endregion
|
|
2116
|
-
//#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/utils/timeout.js
|
|
2085
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/timeout.js
|
|
2117
2086
|
async function timeout(request, init$1, abortController, options) {
|
|
2118
2087
|
return new Promise((resolve, reject) => {
|
|
2119
2088
|
const timeoutId = setTimeout(() => {
|
|
@@ -2127,7 +2096,7 @@ async function timeout(request, init$1, abortController, options) {
|
|
|
2127
2096
|
}
|
|
2128
2097
|
|
|
2129
2098
|
//#endregion
|
|
2130
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
2099
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/delay.js
|
|
2131
2100
|
async function delay(ms, { signal }) {
|
|
2132
2101
|
return new Promise((resolve, reject) => {
|
|
2133
2102
|
if (signal) {
|
|
@@ -2146,7 +2115,7 @@ async function delay(ms, { signal }) {
|
|
|
2146
2115
|
}
|
|
2147
2116
|
|
|
2148
2117
|
//#endregion
|
|
2149
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
2118
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/utils/options.js
|
|
2150
2119
|
const findUnknownOptions = (request, options) => {
|
|
2151
2120
|
const unknownOptions = {};
|
|
2152
2121
|
for (const key in options) if (!(key in requestOptionsRegistry) && !(key in kyOptionKeys) && !(key in request)) unknownOptions[key] = options[key];
|
|
@@ -2162,52 +2131,7 @@ const hasSearchParameters = (search) => {
|
|
|
2162
2131
|
};
|
|
2163
2132
|
|
|
2164
2133
|
//#endregion
|
|
2165
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
2166
|
-
/**
|
|
2167
|
-
* Type guard to check if an error is an HTTPError.
|
|
2168
|
-
*
|
|
2169
|
-
* @param error - The error to check
|
|
2170
|
-
* @returns `true` if the error is an HTTPError, `false` otherwise
|
|
2171
|
-
*
|
|
2172
|
-
* @example
|
|
2173
|
-
* ```
|
|
2174
|
-
* import ky, {isHTTPError} from 'ky';
|
|
2175
|
-
* try {
|
|
2176
|
-
* const response = await ky.get('/api/data');
|
|
2177
|
-
* } catch (error) {
|
|
2178
|
-
* if (isHTTPError(error)) {
|
|
2179
|
-
* console.log('HTTP error status:', error.response.status);
|
|
2180
|
-
* }
|
|
2181
|
-
* }
|
|
2182
|
-
* ```
|
|
2183
|
-
*/
|
|
2184
|
-
function isHTTPError(error) {
|
|
2185
|
-
return error instanceof HTTPError || error?.name === HTTPError.name;
|
|
2186
|
-
}
|
|
2187
|
-
/**
|
|
2188
|
-
* Type guard to check if an error is a TimeoutError.
|
|
2189
|
-
*
|
|
2190
|
-
* @param error - The error to check
|
|
2191
|
-
* @returns `true` if the error is a TimeoutError, `false` otherwise
|
|
2192
|
-
*
|
|
2193
|
-
* @example
|
|
2194
|
-
* ```
|
|
2195
|
-
* import ky, {isTimeoutError} from 'ky';
|
|
2196
|
-
* try {
|
|
2197
|
-
* const response = await ky.get('/api/data', { timeout: 1000 });
|
|
2198
|
-
* } catch (error) {
|
|
2199
|
-
* if (isTimeoutError(error)) {
|
|
2200
|
-
* console.log('Request timed out:', error.request.url);
|
|
2201
|
-
* }
|
|
2202
|
-
* }
|
|
2203
|
-
* ```
|
|
2204
|
-
*/
|
|
2205
|
-
function isTimeoutError(error) {
|
|
2206
|
-
return error instanceof TimeoutError || error?.name === TimeoutError.name;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
//#endregion
|
|
2210
|
-
//#region ../../node_modules/.pnpm/ky@1.12.0/node_modules/ky/distribution/core/Ky.js
|
|
2134
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/core/Ky.js
|
|
2211
2135
|
var Ky = class Ky {
|
|
2212
2136
|
static create(input, options) {
|
|
2213
2137
|
const ky$1 = new Ky(input, options);
|
|
@@ -2216,13 +2140,13 @@ var Ky = class Ky {
|
|
|
2216
2140
|
await Promise.resolve();
|
|
2217
2141
|
let response = await ky$1._fetch();
|
|
2218
2142
|
for (const hook of ky$1._options.hooks.afterResponse) {
|
|
2219
|
-
const modifiedResponse = await hook(ky$1.request, ky$1
|
|
2143
|
+
const modifiedResponse = await hook(ky$1.request, ky$1._options, ky$1._decorateResponse(response.clone()));
|
|
2220
2144
|
if (modifiedResponse instanceof globalThis.Response) response = modifiedResponse;
|
|
2221
2145
|
}
|
|
2222
2146
|
ky$1._decorateResponse(response);
|
|
2223
2147
|
if (!response.ok && ky$1._options.throwHttpErrors) {
|
|
2224
|
-
let error = new HTTPError(response, ky$1.request, ky$1
|
|
2225
|
-
for (const hook of ky$1._options.hooks.beforeError) error = await hook(error
|
|
2148
|
+
let error = new HTTPError(response, ky$1.request, ky$1._options);
|
|
2149
|
+
for (const hook of ky$1._options.hooks.beforeError) error = await hook(error);
|
|
2226
2150
|
throw error;
|
|
2227
2151
|
}
|
|
2228
2152
|
if (ky$1._options.onDownloadProgress) {
|
|
@@ -2266,7 +2190,6 @@ var Ky = class Ky {
|
|
|
2266
2190
|
_input;
|
|
2267
2191
|
_options;
|
|
2268
2192
|
_originalRequest;
|
|
2269
|
-
#cachedNormalizedOptions;
|
|
2270
2193
|
constructor(input, options = {}) {
|
|
2271
2194
|
this._input = input;
|
|
2272
2195
|
this._options = {
|
|
@@ -2301,12 +2224,11 @@ var Ky = class Ky {
|
|
|
2301
2224
|
this._options.body = this._options.stringifyJson?.(this._options.json) ?? JSON.stringify(this._options.json);
|
|
2302
2225
|
this._options.headers.set("content-type", this._options.headers.get("content-type") ?? "application/json");
|
|
2303
2226
|
}
|
|
2304
|
-
const userProvidedContentType = options.headers && new globalThis.Headers(options.headers).has("content-type");
|
|
2305
|
-
if (this._input instanceof globalThis.Request && (supportsFormData && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !userProvidedContentType) this._options.headers.delete("content-type");
|
|
2306
2227
|
this.request = new globalThis.Request(this._input, this._options);
|
|
2307
2228
|
if (hasSearchParameters(this._options.searchParams)) {
|
|
2308
2229
|
const searchParams = "?" + (typeof this._options.searchParams === "string" ? this._options.searchParams.replace(/^\?/, "") : new URLSearchParams(Ky.#normalizeSearchParams(this._options.searchParams)).toString());
|
|
2309
2230
|
const url$2 = this.request.url.replace(/(?:\?.*?)?(?=#|$)/, searchParams);
|
|
2231
|
+
if ((supportsFormData && this._options.body instanceof globalThis.FormData || this._options.body instanceof URLSearchParams) && !(this._options.headers && this._options.headers["content-type"])) this.request.headers.delete("content-type");
|
|
2310
2232
|
this.request = new globalThis.Request(new globalThis.Request(url$2, { ...this.request }), this._options);
|
|
2311
2233
|
}
|
|
2312
2234
|
if (this._options.onUploadProgress) {
|
|
@@ -2317,8 +2239,8 @@ var Ky = class Ky {
|
|
|
2317
2239
|
}
|
|
2318
2240
|
_calculateRetryDelay(error) {
|
|
2319
2241
|
this._retryCount++;
|
|
2320
|
-
if (this._retryCount > this._options.retry.limit ||
|
|
2321
|
-
if (
|
|
2242
|
+
if (this._retryCount > this._options.retry.limit || error instanceof TimeoutError) throw error;
|
|
2243
|
+
if (error instanceof HTTPError) {
|
|
2322
2244
|
if (!this._options.retry.statusCodes.includes(error.response.status)) throw error;
|
|
2323
2245
|
const retryAfter = error.response.headers.get("Retry-After") ?? error.response.headers.get("RateLimit-Reset") ?? error.response.headers.get("X-RateLimit-Reset") ?? error.response.headers.get("X-Rate-Limit-Reset");
|
|
2324
2246
|
if (retryAfter && this._options.retry.afterStatusCodes.includes(error.response.status)) {
|
|
@@ -2346,7 +2268,7 @@ var Ky = class Ky {
|
|
|
2346
2268
|
await delay(ms, { signal: this._options.signal });
|
|
2347
2269
|
for (const hook of this._options.hooks.beforeRetry) if (await hook({
|
|
2348
2270
|
request: this.request,
|
|
2349
|
-
options: this
|
|
2271
|
+
options: this._options,
|
|
2350
2272
|
error,
|
|
2351
2273
|
retryCount: this._retryCount
|
|
2352
2274
|
}) === stop) return;
|
|
@@ -2355,7 +2277,7 @@ var Ky = class Ky {
|
|
|
2355
2277
|
}
|
|
2356
2278
|
async _fetch() {
|
|
2357
2279
|
for (const hook of this._options.hooks.beforeRequest) {
|
|
2358
|
-
const result = await hook(this.request, this
|
|
2280
|
+
const result = await hook(this.request, this._options);
|
|
2359
2281
|
if (result instanceof Request) {
|
|
2360
2282
|
this.request = result;
|
|
2361
2283
|
break;
|
|
@@ -2368,17 +2290,10 @@ var Ky = class Ky {
|
|
|
2368
2290
|
if (this._options.timeout === false) return this._options.fetch(this._originalRequest, nonRequestOptions);
|
|
2369
2291
|
return timeout(this._originalRequest, nonRequestOptions, this.abortController, this._options);
|
|
2370
2292
|
}
|
|
2371
|
-
#getNormalizedOptions() {
|
|
2372
|
-
if (!this.#cachedNormalizedOptions) {
|
|
2373
|
-
const { hooks,...normalizedOptions } = this._options;
|
|
2374
|
-
this.#cachedNormalizedOptions = Object.freeze(normalizedOptions);
|
|
2375
|
-
}
|
|
2376
|
-
return this.#cachedNormalizedOptions;
|
|
2377
|
-
}
|
|
2378
2293
|
};
|
|
2379
2294
|
|
|
2380
2295
|
//#endregion
|
|
2381
|
-
//#region ../../node_modules/.pnpm/ky@1.
|
|
2296
|
+
//#region ../../node_modules/.pnpm/ky@1.11.0/node_modules/ky/distribution/index.js
|
|
2382
2297
|
const createInstance = (defaults$1) => {
|
|
2383
2298
|
const ky$1 = (input, options) => Ky.create(input, validateAndMerge(defaults$1, options));
|
|
2384
2299
|
for (const method of requestMethods) ky$1[method] = (input, options) => Ky.create(input, validateAndMerge(defaults$1, options, { method }));
|
|
@@ -3709,9 +3624,9 @@ var require_dist$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@pnp
|
|
|
3709
3624
|
}) });
|
|
3710
3625
|
|
|
3711
3626
|
//#endregion
|
|
3712
|
-
//#region ../../node_modules/.pnpm/tsdown@0.15.
|
|
3627
|
+
//#region ../../node_modules/.pnpm/tsdown@0.15.6_typescript@5.9.3/node_modules/tsdown/esm-shims.js
|
|
3713
3628
|
var getFilename, getDirname, __dirname$2;
|
|
3714
|
-
var init_esm_shims = __esm({ "../../node_modules/.pnpm/tsdown@0.15.
|
|
3629
|
+
var init_esm_shims = __esm({ "../../node_modules/.pnpm/tsdown@0.15.6_typescript@5.9.3/node_modules/tsdown/esm-shims.js": (() => {
|
|
3715
3630
|
getFilename = () => fileURLToPath(import.meta.url);
|
|
3716
3631
|
getDirname = () => path.dirname(getFilename());
|
|
3717
3632
|
__dirname$2 = /* @__PURE__ */ getDirname();
|
|
@@ -5273,81 +5188,96 @@ function updateNotifier(options) {
|
|
|
5273
5188
|
//#endregion
|
|
5274
5189
|
//#region package.json
|
|
5275
5190
|
var name = "@yamada-ui/cli";
|
|
5191
|
+
var type = "module";
|
|
5276
5192
|
var version = "2.0.2";
|
|
5277
5193
|
var description = "The official CLI for Yamada UI projects";
|
|
5194
|
+
var keywords = [
|
|
5195
|
+
"theme",
|
|
5196
|
+
"theming",
|
|
5197
|
+
"typings",
|
|
5198
|
+
"generator",
|
|
5199
|
+
"yamada ui",
|
|
5200
|
+
"yamada",
|
|
5201
|
+
"ui mode",
|
|
5202
|
+
"ui"
|
|
5203
|
+
];
|
|
5204
|
+
var author = "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>";
|
|
5205
|
+
var license = "MIT";
|
|
5206
|
+
var main = "dist/index.js";
|
|
5207
|
+
var files = ["dist"];
|
|
5208
|
+
var sideEffects = false;
|
|
5209
|
+
var publishConfig = { "access": "public" };
|
|
5210
|
+
var homepage = "https://yamada-ui.com";
|
|
5211
|
+
var repository = {
|
|
5212
|
+
"type": "git",
|
|
5213
|
+
"url": "https://github.com/yamada-ui/yamada-ui",
|
|
5214
|
+
"directory": "packages/cli"
|
|
5215
|
+
};
|
|
5216
|
+
var bugs = { "url": "https://github.com/yamada-ui/yamada-ui/issues" };
|
|
5217
|
+
var bin = { "yamada-cli": "dist/index.js" };
|
|
5218
|
+
var scripts = {
|
|
5219
|
+
"clean": "rimraf node_modules dist trace coverage .turbo .eslintcache",
|
|
5220
|
+
"dev": "tsx src/index.ts",
|
|
5221
|
+
"build": "tsdown",
|
|
5222
|
+
"typecheck": " tsc --noEmit",
|
|
5223
|
+
"typetrace": "tsc --noEmit --generateTrace ./trace --incremental false",
|
|
5224
|
+
"typeanalyze": "npx analyze-trace ./trace --expandTypes=false",
|
|
5225
|
+
"lint": "eslint . --max-warnings=0 --cache",
|
|
5226
|
+
"format": "prettier . --ignore-path ../../.prettierignore --check --cache"
|
|
5227
|
+
};
|
|
5228
|
+
var dependencies = {
|
|
5229
|
+
"@yamada-ui/utils": "workspace:*",
|
|
5230
|
+
"boxen": "^8.0.1",
|
|
5231
|
+
"cli-check-node": "^1.3.4",
|
|
5232
|
+
"commander": "^14.0.1",
|
|
5233
|
+
"diff": "^8.0.2",
|
|
5234
|
+
"esbuild": "^0.25.10",
|
|
5235
|
+
"eslint": "^9.37.0",
|
|
5236
|
+
"execa": "9.3.1",
|
|
5237
|
+
"glob": "^11.0.3",
|
|
5238
|
+
"https-proxy-agent": "^7.0.6",
|
|
5239
|
+
"listr2": "^9.0.4",
|
|
5240
|
+
"node-eval": "^2.0.0",
|
|
5241
|
+
"node-fetch": "^3.3.2",
|
|
5242
|
+
"ora": "^9.0.0",
|
|
5243
|
+
"picocolors": "^1.1.1",
|
|
5244
|
+
"prettier": "^3.6.2",
|
|
5245
|
+
"prompts": "^2.4.2",
|
|
5246
|
+
"rimraf": "^6.0.1",
|
|
5247
|
+
"semver": "^7.7.2",
|
|
5248
|
+
"sucrase": "^3.35.0",
|
|
5249
|
+
"validate-npm-package-name": "^6.0.2",
|
|
5250
|
+
"yamljs": "^0.3.0"
|
|
5251
|
+
};
|
|
5252
|
+
var devDependencies = {
|
|
5253
|
+
"@types/prompts": "^2.4.9",
|
|
5254
|
+
"@types/semver": "^7.7.1",
|
|
5255
|
+
"@types/update-notifier": "6.0.8",
|
|
5256
|
+
"@types/validate-npm-package-name": "^4.0.2",
|
|
5257
|
+
"@types/yamljs": "^0.2.34",
|
|
5258
|
+
"tsx": "^4.20.6",
|
|
5259
|
+
"typescript": "^5.9.3",
|
|
5260
|
+
"update-notifier": "^7.3.1"
|
|
5261
|
+
};
|
|
5278
5262
|
var package_default = {
|
|
5279
5263
|
name,
|
|
5280
|
-
type
|
|
5264
|
+
type,
|
|
5281
5265
|
version,
|
|
5282
5266
|
description,
|
|
5283
|
-
keywords
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
sideEffects: false,
|
|
5298
|
-
publishConfig: { "access": "public" },
|
|
5299
|
-
homepage: "https://yamada-ui.com",
|
|
5300
|
-
repository: {
|
|
5301
|
-
"type": "git",
|
|
5302
|
-
"url": "https://github.com/yamada-ui/yamada-ui",
|
|
5303
|
-
"directory": "packages/cli"
|
|
5304
|
-
},
|
|
5305
|
-
bugs: { "url": "https://github.com/yamada-ui/yamada-ui/issues" },
|
|
5306
|
-
bin: { "yamada-cli": "dist/index.js" },
|
|
5307
|
-
scripts: {
|
|
5308
|
-
"clean": "rimraf node_modules dist trace coverage .turbo .eslintcache",
|
|
5309
|
-
"dev": "tsx src/index.ts",
|
|
5310
|
-
"build": "tsdown",
|
|
5311
|
-
"typecheck": " tsc --noEmit",
|
|
5312
|
-
"typetrace": "tsc --noEmit --generateTrace ./trace --incremental false",
|
|
5313
|
-
"typeanalyze": "npx analyze-trace ./trace --expandTypes=false",
|
|
5314
|
-
"lint": "eslint . --max-warnings=0 --cache",
|
|
5315
|
-
"format": "prettier . --ignore-path ../../.prettierignore --check --cache"
|
|
5316
|
-
},
|
|
5317
|
-
dependencies: {
|
|
5318
|
-
"@yamada-ui/utils": "workspace:*",
|
|
5319
|
-
"boxen": "^8.0.1",
|
|
5320
|
-
"cli-check-node": "^1.3.4",
|
|
5321
|
-
"commander": "^14.0.1",
|
|
5322
|
-
"diff": "^8.0.2",
|
|
5323
|
-
"esbuild": "^0.25.11",
|
|
5324
|
-
"eslint": "^9.38.0",
|
|
5325
|
-
"execa": "9.3.1",
|
|
5326
|
-
"glob": "^11.0.3",
|
|
5327
|
-
"https-proxy-agent": "^7.0.6",
|
|
5328
|
-
"listr2": "^9.0.5",
|
|
5329
|
-
"node-eval": "^2.0.0",
|
|
5330
|
-
"node-fetch": "^3.3.2",
|
|
5331
|
-
"ora": "^9.0.0",
|
|
5332
|
-
"picocolors": "^1.1.1",
|
|
5333
|
-
"prettier": "^3.6.2",
|
|
5334
|
-
"prompts": "^2.4.2",
|
|
5335
|
-
"rimraf": "^6.0.1",
|
|
5336
|
-
"semver": "^7.7.3",
|
|
5337
|
-
"sucrase": "^3.35.0",
|
|
5338
|
-
"validate-npm-package-name": "^6.0.2",
|
|
5339
|
-
"yamljs": "^0.3.0"
|
|
5340
|
-
},
|
|
5341
|
-
devDependencies: {
|
|
5342
|
-
"@types/prompts": "^2.4.9",
|
|
5343
|
-
"@types/semver": "^7.7.1",
|
|
5344
|
-
"@types/update-notifier": "6.0.8",
|
|
5345
|
-
"@types/validate-npm-package-name": "^4.0.2",
|
|
5346
|
-
"@types/yamljs": "^0.2.34",
|
|
5347
|
-
"tsx": "^4.20.6",
|
|
5348
|
-
"typescript": "^5.9.3",
|
|
5349
|
-
"update-notifier": "^7.3.1"
|
|
5350
|
-
}
|
|
5267
|
+
keywords,
|
|
5268
|
+
author,
|
|
5269
|
+
license,
|
|
5270
|
+
main,
|
|
5271
|
+
files,
|
|
5272
|
+
sideEffects,
|
|
5273
|
+
publishConfig,
|
|
5274
|
+
homepage,
|
|
5275
|
+
repository,
|
|
5276
|
+
bugs,
|
|
5277
|
+
bin,
|
|
5278
|
+
scripts,
|
|
5279
|
+
dependencies,
|
|
5280
|
+
devDependencies
|
|
5351
5281
|
};
|
|
5352
5282
|
|
|
5353
5283
|
//#endregion
|
|
@@ -5794,7 +5724,7 @@ async function getConfig(cwd$3, configPath, { format: format$2, jsx, lint } = {}
|
|
|
5794
5724
|
} catch {
|
|
5795
5725
|
const { args, command } = packageExecuteCommands(getPackageManager());
|
|
5796
5726
|
const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
|
|
5797
|
-
throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${name}@latest init`)}.`);
|
|
5727
|
+
throw new Error(`No ${c.yellow("config")} found. Please run ${c.cyan(`${prefix} ${package_default.name}@latest init`)}.`);
|
|
5798
5728
|
}
|
|
5799
5729
|
}
|
|
5800
5730
|
|
|
@@ -6607,7 +6537,7 @@ const diff = new Command("diff").description("check for updates against the regi
|
|
|
6607
6537
|
const { end } = timer();
|
|
6608
6538
|
const { args, command } = packageExecuteCommands(getPackageManager());
|
|
6609
6539
|
const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
|
|
6610
|
-
const getCommand = (command$1) => c.cyan(`${prefix} ${name}@latest ${command$1}`);
|
|
6540
|
+
const getCommand = (command$1) => c.cyan(`${prefix} ${package_default.name}@latest ${command$1}`);
|
|
6611
6541
|
spinner.start("Validating directory");
|
|
6612
6542
|
await validateDir(cwd$3);
|
|
6613
6543
|
spinner.succeed("Validated directory");
|
|
@@ -7318,7 +7248,7 @@ const update = new Command("update").description("update components in your proj
|
|
|
7318
7248
|
const { end } = timer();
|
|
7319
7249
|
const { args, command } = packageExecuteCommands(getPackageManager());
|
|
7320
7250
|
const prefix = `${command}${args.length ? ` ${args.join(" ")}` : ""}`;
|
|
7321
|
-
const getCommand = (command$1) => c.cyan(`${prefix} ${name}@latest ${command$1}`);
|
|
7251
|
+
const getCommand = (command$1) => c.cyan(`${prefix} ${package_default.name}@latest ${command$1}`);
|
|
7322
7252
|
spinner.start("Validating directory");
|
|
7323
7253
|
await validateDir(cwd$3);
|
|
7324
7254
|
spinner.succeed("Validated directory");
|
|
@@ -7392,9 +7322,9 @@ function run() {
|
|
|
7392
7322
|
shouldNotifyInNpmScript: true,
|
|
7393
7323
|
updateCheckInterval: 1e3 * 60 * 60 * 24 * 3
|
|
7394
7324
|
}).notify({ isGlobal: true });
|
|
7395
|
-
console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${version} ${c.dim("by Yamada UI")}`);
|
|
7396
|
-
console.log(`${c.dim(description)}\n`);
|
|
7397
|
-
const program = new Command("Yamada UI CLI").version(version, "-v, --version", "display the version number").usage(`${c.green("<command>")} [options]`);
|
|
7325
|
+
console.log(`\n${c.bold(c.green("Yamada UI CLI"))} v${package_default.version} ${c.dim("by Yamada UI")}`);
|
|
7326
|
+
console.log(`${c.dim(package_default.description)}\n`);
|
|
7327
|
+
const program = new Command("Yamada UI CLI").version(package_default.version, "-v, --version", "display the version number").usage(`${c.green("<command>")} [options]`);
|
|
7398
7328
|
program.addCommand(init);
|
|
7399
7329
|
program.addCommand(add);
|
|
7400
7330
|
program.addCommand(update);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.3-
|
|
4
|
+
"version": "2.0.3-next-20251025000229",
|
|
5
5
|
"description": "The official CLI for Yamada UI projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"theme",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"cli-check-node": "^1.3.4",
|
|
41
41
|
"commander": "^14.0.1",
|
|
42
42
|
"diff": "^8.0.2",
|
|
43
|
-
"esbuild": "^0.25.
|
|
44
|
-
"eslint": "^9.
|
|
43
|
+
"esbuild": "^0.25.10",
|
|
44
|
+
"eslint": "^9.37.0",
|
|
45
45
|
"execa": "9.3.1",
|
|
46
46
|
"glob": "^11.0.3",
|
|
47
47
|
"https-proxy-agent": "^7.0.6",
|
|
48
|
-
"listr2": "^9.0.
|
|
48
|
+
"listr2": "^9.0.4",
|
|
49
49
|
"node-eval": "^2.0.0",
|
|
50
50
|
"node-fetch": "^3.3.2",
|
|
51
51
|
"ora": "^9.0.0",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"prettier": "^3.6.2",
|
|
54
54
|
"prompts": "^2.4.2",
|
|
55
55
|
"rimraf": "^6.0.1",
|
|
56
|
-
"semver": "^7.7.
|
|
56
|
+
"semver": "^7.7.2",
|
|
57
57
|
"sucrase": "^3.35.0",
|
|
58
58
|
"validate-npm-package-name": "^6.0.2",
|
|
59
59
|
"yamljs": "^0.3.0",
|
|
60
|
-
"@yamada-ui/utils": "2.0
|
|
60
|
+
"@yamada-ui/utils": "2.1.0-next-20251025000229"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/prompts": "^2.4.9",
|