@yamada-ui/cli 0.7.1 → 0.8.0
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/bin/index.js +1 -1
- package/dist/command/colors/index.js +6441 -0
- package/dist/command/tokens/create-theme-typings.js +6 -5
- package/dist/command/tokens/index.js +59 -31
- package/dist/index.js +292 -247
- package/dist/utils/cli.js +18 -17
- package/dist/utils/index.js +21 -19
- package/dist/utils/prettier.js +3 -2
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.0.1_@swc+core@1.3.100_ts-node@10.9.1_typescript@5.3.2/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@
|
|
39
|
+
"../../node_modules/.pnpm/tsup@8.0.1_@swc+core@1.3.100_ts-node@10.9.1_typescript@5.3.2/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
41
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -4589,7 +4589,7 @@ var require_stream_readable = __commonJS({
|
|
|
4589
4589
|
});
|
|
4590
4590
|
for (var i in stream2) {
|
|
4591
4591
|
if (this[i] === void 0 && typeof stream2[i] === "function") {
|
|
4592
|
-
this[i] = function methodWrap(method) {
|
|
4592
|
+
this[i] = /* @__PURE__ */ function methodWrap(method) {
|
|
4593
4593
|
return function methodWrapReturnFunction() {
|
|
4594
4594
|
return stream2[method].apply(stream2, arguments);
|
|
4595
4595
|
};
|
|
@@ -5401,7 +5401,7 @@ var require_polyfills = __commonJS({
|
|
|
5401
5401
|
fs4.fstatSync = statFixSync(fs4.fstatSync);
|
|
5402
5402
|
fs4.lstatSync = statFixSync(fs4.lstatSync);
|
|
5403
5403
|
if (fs4.chmod && !fs4.lchmod) {
|
|
5404
|
-
fs4.lchmod = function(
|
|
5404
|
+
fs4.lchmod = function(path9, mode, cb) {
|
|
5405
5405
|
if (cb)
|
|
5406
5406
|
process.nextTick(cb);
|
|
5407
5407
|
};
|
|
@@ -5409,7 +5409,7 @@ var require_polyfills = __commonJS({
|
|
|
5409
5409
|
};
|
|
5410
5410
|
}
|
|
5411
5411
|
if (fs4.chown && !fs4.lchown) {
|
|
5412
|
-
fs4.lchown = function(
|
|
5412
|
+
fs4.lchown = function(path9, uid, gid, cb) {
|
|
5413
5413
|
if (cb)
|
|
5414
5414
|
process.nextTick(cb);
|
|
5415
5415
|
};
|
|
@@ -5463,7 +5463,7 @@ var require_polyfills = __commonJS({
|
|
|
5463
5463
|
Object.setPrototypeOf(read, fs$read);
|
|
5464
5464
|
return read;
|
|
5465
5465
|
}(fs4.read);
|
|
5466
|
-
fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : function(fs$readSync) {
|
|
5466
|
+
fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
5467
5467
|
return function(fd, buffer, offset, length, position) {
|
|
5468
5468
|
var eagCounter = 0;
|
|
5469
5469
|
while (true) {
|
|
@@ -5480,9 +5480,9 @@ var require_polyfills = __commonJS({
|
|
|
5480
5480
|
};
|
|
5481
5481
|
}(fs4.readSync);
|
|
5482
5482
|
function patchLchmod(fs5) {
|
|
5483
|
-
fs5.lchmod = function(
|
|
5483
|
+
fs5.lchmod = function(path9, mode, callback) {
|
|
5484
5484
|
fs5.open(
|
|
5485
|
-
|
|
5485
|
+
path9,
|
|
5486
5486
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
5487
5487
|
mode,
|
|
5488
5488
|
function(err, fd) {
|
|
@@ -5500,8 +5500,8 @@ var require_polyfills = __commonJS({
|
|
|
5500
5500
|
}
|
|
5501
5501
|
);
|
|
5502
5502
|
};
|
|
5503
|
-
fs5.lchmodSync = function(
|
|
5504
|
-
var fd = fs5.openSync(
|
|
5503
|
+
fs5.lchmodSync = function(path9, mode) {
|
|
5504
|
+
var fd = fs5.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
5505
5505
|
var threw = true;
|
|
5506
5506
|
var ret;
|
|
5507
5507
|
try {
|
|
@@ -5522,8 +5522,8 @@ var require_polyfills = __commonJS({
|
|
|
5522
5522
|
}
|
|
5523
5523
|
function patchLutimes(fs5) {
|
|
5524
5524
|
if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
|
|
5525
|
-
fs5.lutimes = function(
|
|
5526
|
-
fs5.open(
|
|
5525
|
+
fs5.lutimes = function(path9, at, mt, cb) {
|
|
5526
|
+
fs5.open(path9, constants.O_SYMLINK, function(er, fd) {
|
|
5527
5527
|
if (er) {
|
|
5528
5528
|
if (cb)
|
|
5529
5529
|
cb(er);
|
|
@@ -5537,8 +5537,8 @@ var require_polyfills = __commonJS({
|
|
|
5537
5537
|
});
|
|
5538
5538
|
});
|
|
5539
5539
|
};
|
|
5540
|
-
fs5.lutimesSync = function(
|
|
5541
|
-
var fd = fs5.openSync(
|
|
5540
|
+
fs5.lutimesSync = function(path9, at, mt) {
|
|
5541
|
+
var fd = fs5.openSync(path9, constants.O_SYMLINK);
|
|
5542
5542
|
var ret;
|
|
5543
5543
|
var threw = true;
|
|
5544
5544
|
try {
|
|
@@ -5676,12 +5676,12 @@ var require_legacy_streams = __commonJS({
|
|
|
5676
5676
|
ReadStream,
|
|
5677
5677
|
WriteStream
|
|
5678
5678
|
};
|
|
5679
|
-
function ReadStream(
|
|
5679
|
+
function ReadStream(path9, options) {
|
|
5680
5680
|
if (!(this instanceof ReadStream))
|
|
5681
|
-
return new ReadStream(
|
|
5681
|
+
return new ReadStream(path9, options);
|
|
5682
5682
|
Stream.call(this);
|
|
5683
5683
|
var self2 = this;
|
|
5684
|
-
this.path =
|
|
5684
|
+
this.path = path9;
|
|
5685
5685
|
this.fd = null;
|
|
5686
5686
|
this.readable = true;
|
|
5687
5687
|
this.paused = false;
|
|
@@ -5727,11 +5727,11 @@ var require_legacy_streams = __commonJS({
|
|
|
5727
5727
|
self2._read();
|
|
5728
5728
|
});
|
|
5729
5729
|
}
|
|
5730
|
-
function WriteStream(
|
|
5730
|
+
function WriteStream(path9, options) {
|
|
5731
5731
|
if (!(this instanceof WriteStream))
|
|
5732
|
-
return new WriteStream(
|
|
5732
|
+
return new WriteStream(path9, options);
|
|
5733
5733
|
Stream.call(this);
|
|
5734
|
-
this.path =
|
|
5734
|
+
this.path = path9;
|
|
5735
5735
|
this.fd = null;
|
|
5736
5736
|
this.writable = true;
|
|
5737
5737
|
this.flags = "w";
|
|
@@ -5877,14 +5877,14 @@ var require_graceful_fs = __commonJS({
|
|
|
5877
5877
|
fs5.createWriteStream = createWriteStream;
|
|
5878
5878
|
var fs$readFile = fs5.readFile;
|
|
5879
5879
|
fs5.readFile = readFile;
|
|
5880
|
-
function readFile(
|
|
5880
|
+
function readFile(path9, options, cb) {
|
|
5881
5881
|
if (typeof options === "function")
|
|
5882
5882
|
cb = options, options = null;
|
|
5883
|
-
return go$readFile(
|
|
5884
|
-
function go$readFile(
|
|
5885
|
-
return fs$readFile(
|
|
5883
|
+
return go$readFile(path9, options, cb);
|
|
5884
|
+
function go$readFile(path10, options2, cb2, startTime) {
|
|
5885
|
+
return fs$readFile(path10, options2, function(err) {
|
|
5886
5886
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5887
|
-
enqueue([go$readFile, [
|
|
5887
|
+
enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5888
5888
|
else {
|
|
5889
5889
|
if (typeof cb2 === "function")
|
|
5890
5890
|
cb2.apply(this, arguments);
|
|
@@ -5894,14 +5894,14 @@ var require_graceful_fs = __commonJS({
|
|
|
5894
5894
|
}
|
|
5895
5895
|
var fs$writeFile = fs5.writeFile;
|
|
5896
5896
|
fs5.writeFile = writeFile2;
|
|
5897
|
-
function writeFile2(
|
|
5897
|
+
function writeFile2(path9, data, options, cb) {
|
|
5898
5898
|
if (typeof options === "function")
|
|
5899
5899
|
cb = options, options = null;
|
|
5900
|
-
return go$writeFile(
|
|
5901
|
-
function go$writeFile(
|
|
5902
|
-
return fs$writeFile(
|
|
5900
|
+
return go$writeFile(path9, data, options, cb);
|
|
5901
|
+
function go$writeFile(path10, data2, options2, cb2, startTime) {
|
|
5902
|
+
return fs$writeFile(path10, data2, options2, function(err) {
|
|
5903
5903
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5904
|
-
enqueue([go$writeFile, [
|
|
5904
|
+
enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5905
5905
|
else {
|
|
5906
5906
|
if (typeof cb2 === "function")
|
|
5907
5907
|
cb2.apply(this, arguments);
|
|
@@ -5912,14 +5912,14 @@ var require_graceful_fs = __commonJS({
|
|
|
5912
5912
|
var fs$appendFile = fs5.appendFile;
|
|
5913
5913
|
if (fs$appendFile)
|
|
5914
5914
|
fs5.appendFile = appendFile;
|
|
5915
|
-
function appendFile(
|
|
5915
|
+
function appendFile(path9, data, options, cb) {
|
|
5916
5916
|
if (typeof options === "function")
|
|
5917
5917
|
cb = options, options = null;
|
|
5918
|
-
return go$appendFile(
|
|
5919
|
-
function go$appendFile(
|
|
5920
|
-
return fs$appendFile(
|
|
5918
|
+
return go$appendFile(path9, data, options, cb);
|
|
5919
|
+
function go$appendFile(path10, data2, options2, cb2, startTime) {
|
|
5920
|
+
return fs$appendFile(path10, data2, options2, function(err) {
|
|
5921
5921
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5922
|
-
enqueue([go$appendFile, [
|
|
5922
|
+
enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
5923
5923
|
else {
|
|
5924
5924
|
if (typeof cb2 === "function")
|
|
5925
5925
|
cb2.apply(this, arguments);
|
|
@@ -5950,31 +5950,31 @@ var require_graceful_fs = __commonJS({
|
|
|
5950
5950
|
var fs$readdir = fs5.readdir;
|
|
5951
5951
|
fs5.readdir = readdir;
|
|
5952
5952
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
5953
|
-
function readdir(
|
|
5953
|
+
function readdir(path9, options, cb) {
|
|
5954
5954
|
if (typeof options === "function")
|
|
5955
5955
|
cb = options, options = null;
|
|
5956
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
5957
|
-
return fs$readdir(
|
|
5958
|
-
|
|
5956
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
|
|
5957
|
+
return fs$readdir(path10, fs$readdirCallback(
|
|
5958
|
+
path10,
|
|
5959
5959
|
options2,
|
|
5960
5960
|
cb2,
|
|
5961
5961
|
startTime
|
|
5962
5962
|
));
|
|
5963
|
-
} : function go$readdir2(
|
|
5964
|
-
return fs$readdir(
|
|
5965
|
-
|
|
5963
|
+
} : function go$readdir2(path10, options2, cb2, startTime) {
|
|
5964
|
+
return fs$readdir(path10, options2, fs$readdirCallback(
|
|
5965
|
+
path10,
|
|
5966
5966
|
options2,
|
|
5967
5967
|
cb2,
|
|
5968
5968
|
startTime
|
|
5969
5969
|
));
|
|
5970
5970
|
};
|
|
5971
|
-
return go$readdir(
|
|
5972
|
-
function fs$readdirCallback(
|
|
5971
|
+
return go$readdir(path9, options, cb);
|
|
5972
|
+
function fs$readdirCallback(path10, options2, cb2, startTime) {
|
|
5973
5973
|
return function(err, files) {
|
|
5974
5974
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
5975
5975
|
enqueue([
|
|
5976
5976
|
go$readdir,
|
|
5977
|
-
[
|
|
5977
|
+
[path10, options2, cb2],
|
|
5978
5978
|
err,
|
|
5979
5979
|
startTime || Date.now(),
|
|
5980
5980
|
Date.now()
|
|
@@ -6045,7 +6045,7 @@ var require_graceful_fs = __commonJS({
|
|
|
6045
6045
|
enumerable: true,
|
|
6046
6046
|
configurable: true
|
|
6047
6047
|
});
|
|
6048
|
-
function ReadStream(
|
|
6048
|
+
function ReadStream(path9, options) {
|
|
6049
6049
|
if (this instanceof ReadStream)
|
|
6050
6050
|
return fs$ReadStream.apply(this, arguments), this;
|
|
6051
6051
|
else
|
|
@@ -6065,7 +6065,7 @@ var require_graceful_fs = __commonJS({
|
|
|
6065
6065
|
}
|
|
6066
6066
|
});
|
|
6067
6067
|
}
|
|
6068
|
-
function WriteStream(
|
|
6068
|
+
function WriteStream(path9, options) {
|
|
6069
6069
|
if (this instanceof WriteStream)
|
|
6070
6070
|
return fs$WriteStream.apply(this, arguments), this;
|
|
6071
6071
|
else
|
|
@@ -6083,22 +6083,22 @@ var require_graceful_fs = __commonJS({
|
|
|
6083
6083
|
}
|
|
6084
6084
|
});
|
|
6085
6085
|
}
|
|
6086
|
-
function createReadStream(
|
|
6087
|
-
return new fs5.ReadStream(
|
|
6086
|
+
function createReadStream(path9, options) {
|
|
6087
|
+
return new fs5.ReadStream(path9, options);
|
|
6088
6088
|
}
|
|
6089
|
-
function createWriteStream(
|
|
6090
|
-
return new fs5.WriteStream(
|
|
6089
|
+
function createWriteStream(path9, options) {
|
|
6090
|
+
return new fs5.WriteStream(path9, options);
|
|
6091
6091
|
}
|
|
6092
6092
|
var fs$open = fs5.open;
|
|
6093
6093
|
fs5.open = open;
|
|
6094
|
-
function open(
|
|
6094
|
+
function open(path9, flags, mode, cb) {
|
|
6095
6095
|
if (typeof mode === "function")
|
|
6096
6096
|
cb = mode, mode = null;
|
|
6097
|
-
return go$open(
|
|
6098
|
-
function go$open(
|
|
6099
|
-
return fs$open(
|
|
6097
|
+
return go$open(path9, flags, mode, cb);
|
|
6098
|
+
function go$open(path10, flags2, mode2, cb2, startTime) {
|
|
6099
|
+
return fs$open(path10, flags2, mode2, function(err, fd) {
|
|
6100
6100
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
6101
|
-
enqueue([go$open, [
|
|
6101
|
+
enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
6102
6102
|
else {
|
|
6103
6103
|
if (typeof cb2 === "function")
|
|
6104
6104
|
cb2.apply(this, arguments);
|
|
@@ -6325,7 +6325,7 @@ var require_write_file_atomic = __commonJS({
|
|
|
6325
6325
|
var fs4 = require("fs");
|
|
6326
6326
|
var MurmurHash3 = require_imurmurhash();
|
|
6327
6327
|
var onExit = require_signal_exit();
|
|
6328
|
-
var
|
|
6328
|
+
var path9 = require("path");
|
|
6329
6329
|
var isTypedArray = require_is_typedarray();
|
|
6330
6330
|
var typedArrayToBuffer = require_typedarray_to_buffer();
|
|
6331
6331
|
var { promisify: promisify7 } = require("util");
|
|
@@ -6378,7 +6378,7 @@ var require_write_file_atomic = __commonJS({
|
|
|
6378
6378
|
let fd;
|
|
6379
6379
|
let tmpfile;
|
|
6380
6380
|
const removeOnExitHandler = onExit(cleanupOnExit(() => tmpfile));
|
|
6381
|
-
const absoluteName =
|
|
6381
|
+
const absoluteName = path9.resolve(filename);
|
|
6382
6382
|
try {
|
|
6383
6383
|
await serializeActiveFile(absoluteName);
|
|
6384
6384
|
const truename = await promisify7(fs4.realpath)(filename).catch(() => filename);
|
|
@@ -6561,8 +6561,8 @@ var require_dot_prop = __commonJS({
|
|
|
6561
6561
|
"constructor"
|
|
6562
6562
|
]);
|
|
6563
6563
|
var isValidPath = (pathSegments) => !pathSegments.some((segment) => disallowedKeys.has(segment));
|
|
6564
|
-
function getPathSegments(
|
|
6565
|
-
const pathArray =
|
|
6564
|
+
function getPathSegments(path9) {
|
|
6565
|
+
const pathArray = path9.split(".");
|
|
6566
6566
|
const parts = [];
|
|
6567
6567
|
for (let i = 0; i < pathArray.length; i++) {
|
|
6568
6568
|
let p = pathArray[i];
|
|
@@ -6578,11 +6578,11 @@ var require_dot_prop = __commonJS({
|
|
|
6578
6578
|
return parts;
|
|
6579
6579
|
}
|
|
6580
6580
|
module2.exports = {
|
|
6581
|
-
get(object,
|
|
6582
|
-
if (!isObj(object) || typeof
|
|
6581
|
+
get(object, path9, value) {
|
|
6582
|
+
if (!isObj(object) || typeof path9 !== "string") {
|
|
6583
6583
|
return value === void 0 ? object : value;
|
|
6584
6584
|
}
|
|
6585
|
-
const pathArray = getPathSegments(
|
|
6585
|
+
const pathArray = getPathSegments(path9);
|
|
6586
6586
|
if (pathArray.length === 0) {
|
|
6587
6587
|
return;
|
|
6588
6588
|
}
|
|
@@ -6597,12 +6597,12 @@ var require_dot_prop = __commonJS({
|
|
|
6597
6597
|
}
|
|
6598
6598
|
return object === void 0 ? value : object;
|
|
6599
6599
|
},
|
|
6600
|
-
set(object,
|
|
6601
|
-
if (!isObj(object) || typeof
|
|
6600
|
+
set(object, path9, value) {
|
|
6601
|
+
if (!isObj(object) || typeof path9 !== "string") {
|
|
6602
6602
|
return object;
|
|
6603
6603
|
}
|
|
6604
6604
|
const root = object;
|
|
6605
|
-
const pathArray = getPathSegments(
|
|
6605
|
+
const pathArray = getPathSegments(path9);
|
|
6606
6606
|
for (let i = 0; i < pathArray.length; i++) {
|
|
6607
6607
|
const p = pathArray[i];
|
|
6608
6608
|
if (!isObj(object[p])) {
|
|
@@ -6615,11 +6615,11 @@ var require_dot_prop = __commonJS({
|
|
|
6615
6615
|
}
|
|
6616
6616
|
return root;
|
|
6617
6617
|
},
|
|
6618
|
-
delete(object,
|
|
6619
|
-
if (!isObj(object) || typeof
|
|
6618
|
+
delete(object, path9) {
|
|
6619
|
+
if (!isObj(object) || typeof path9 !== "string") {
|
|
6620
6620
|
return false;
|
|
6621
6621
|
}
|
|
6622
|
-
const pathArray = getPathSegments(
|
|
6622
|
+
const pathArray = getPathSegments(path9);
|
|
6623
6623
|
for (let i = 0; i < pathArray.length; i++) {
|
|
6624
6624
|
const p = pathArray[i];
|
|
6625
6625
|
if (i === pathArray.length - 1) {
|
|
@@ -6632,11 +6632,11 @@ var require_dot_prop = __commonJS({
|
|
|
6632
6632
|
}
|
|
6633
6633
|
}
|
|
6634
6634
|
},
|
|
6635
|
-
has(object,
|
|
6636
|
-
if (!isObj(object) || typeof
|
|
6635
|
+
has(object, path9) {
|
|
6636
|
+
if (!isObj(object) || typeof path9 !== "string") {
|
|
6637
6637
|
return false;
|
|
6638
6638
|
}
|
|
6639
|
-
const pathArray = getPathSegments(
|
|
6639
|
+
const pathArray = getPathSegments(path9);
|
|
6640
6640
|
if (pathArray.length === 0) {
|
|
6641
6641
|
return false;
|
|
6642
6642
|
}
|
|
@@ -13522,7 +13522,7 @@ var require_auto = __commonJS({
|
|
|
13522
13522
|
const result = await queue2.get(name);
|
|
13523
13523
|
return { alpnProtocol: result.alpnProtocol };
|
|
13524
13524
|
}
|
|
13525
|
-
const { path:
|
|
13525
|
+
const { path: path9 } = options;
|
|
13526
13526
|
options.path = options.socketPath;
|
|
13527
13527
|
const resultPromise = resolveALPN(options, connect);
|
|
13528
13528
|
queue2.set(name, resultPromise);
|
|
@@ -13530,11 +13530,11 @@ var require_auto = __commonJS({
|
|
|
13530
13530
|
const result = await resultPromise;
|
|
13531
13531
|
cache2.set(name, result.alpnProtocol);
|
|
13532
13532
|
queue2.delete(name);
|
|
13533
|
-
options.path =
|
|
13533
|
+
options.path = path9;
|
|
13534
13534
|
return result;
|
|
13535
13535
|
} catch (error) {
|
|
13536
13536
|
queue2.delete(name);
|
|
13537
|
-
options.path =
|
|
13537
|
+
options.path = path9;
|
|
13538
13538
|
throw error;
|
|
13539
13539
|
}
|
|
13540
13540
|
}
|
|
@@ -14208,7 +14208,7 @@ var require_utils = __commonJS({
|
|
|
14208
14208
|
init_cjs_shims();
|
|
14209
14209
|
var fs4 = require("fs");
|
|
14210
14210
|
var ini = require_ini();
|
|
14211
|
-
var
|
|
14211
|
+
var path9 = require("path");
|
|
14212
14212
|
var stripJsonComments = require_strip_json_comments();
|
|
14213
14213
|
var parse = exports.parse = function(content) {
|
|
14214
14214
|
if (/^\s*{/.test(content))
|
|
@@ -14222,7 +14222,7 @@ var require_utils = __commonJS({
|
|
|
14222
14222
|
for (var i in args)
|
|
14223
14223
|
if ("string" !== typeof args[i])
|
|
14224
14224
|
return;
|
|
14225
|
-
var file2 =
|
|
14225
|
+
var file2 = path9.join.apply(null, args);
|
|
14226
14226
|
var content;
|
|
14227
14227
|
try {
|
|
14228
14228
|
return fs4.readFileSync(file2, "utf-8");
|
|
@@ -14260,15 +14260,15 @@ var require_utils = __commonJS({
|
|
|
14260
14260
|
return obj;
|
|
14261
14261
|
};
|
|
14262
14262
|
var find = exports.find = function() {
|
|
14263
|
-
var rel =
|
|
14263
|
+
var rel = path9.join.apply(null, [].slice.call(arguments));
|
|
14264
14264
|
function find2(start, rel2) {
|
|
14265
|
-
var file2 =
|
|
14265
|
+
var file2 = path9.join(start, rel2);
|
|
14266
14266
|
try {
|
|
14267
14267
|
fs4.statSync(file2);
|
|
14268
14268
|
return file2;
|
|
14269
14269
|
} catch (err) {
|
|
14270
|
-
if (
|
|
14271
|
-
return find2(
|
|
14270
|
+
if (path9.dirname(start) !== start)
|
|
14271
|
+
return find2(path9.dirname(start), rel2);
|
|
14272
14272
|
}
|
|
14273
14273
|
}
|
|
14274
14274
|
return find2(process.cwd(), rel);
|
|
@@ -14638,9 +14638,9 @@ var require_rc = __commonJS({
|
|
|
14638
14638
|
}
|
|
14639
14639
|
});
|
|
14640
14640
|
|
|
14641
|
-
// ../../node_modules/.pnpm/
|
|
14641
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js
|
|
14642
14642
|
var require_polyfills2 = __commonJS({
|
|
14643
|
-
"../../node_modules/.pnpm/
|
|
14643
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/polyfills.js"(exports, module2) {
|
|
14644
14644
|
"use strict";
|
|
14645
14645
|
init_cjs_shims();
|
|
14646
14646
|
var constants = require("constants");
|
|
@@ -14693,7 +14693,7 @@ var require_polyfills2 = __commonJS({
|
|
|
14693
14693
|
fs4.fstatSync = statFixSync(fs4.fstatSync);
|
|
14694
14694
|
fs4.lstatSync = statFixSync(fs4.lstatSync);
|
|
14695
14695
|
if (fs4.chmod && !fs4.lchmod) {
|
|
14696
|
-
fs4.lchmod = function(
|
|
14696
|
+
fs4.lchmod = function(path9, mode, cb) {
|
|
14697
14697
|
if (cb)
|
|
14698
14698
|
process.nextTick(cb);
|
|
14699
14699
|
};
|
|
@@ -14701,7 +14701,7 @@ var require_polyfills2 = __commonJS({
|
|
|
14701
14701
|
};
|
|
14702
14702
|
}
|
|
14703
14703
|
if (fs4.chown && !fs4.lchown) {
|
|
14704
|
-
fs4.lchown = function(
|
|
14704
|
+
fs4.lchown = function(path9, uid, gid, cb) {
|
|
14705
14705
|
if (cb)
|
|
14706
14706
|
process.nextTick(cb);
|
|
14707
14707
|
};
|
|
@@ -14755,7 +14755,7 @@ var require_polyfills2 = __commonJS({
|
|
|
14755
14755
|
Object.setPrototypeOf(read, fs$read);
|
|
14756
14756
|
return read;
|
|
14757
14757
|
}(fs4.read);
|
|
14758
|
-
fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : function(fs$readSync) {
|
|
14758
|
+
fs4.readSync = typeof fs4.readSync !== "function" ? fs4.readSync : /* @__PURE__ */ function(fs$readSync) {
|
|
14759
14759
|
return function(fd, buffer, offset, length, position) {
|
|
14760
14760
|
var eagCounter = 0;
|
|
14761
14761
|
while (true) {
|
|
@@ -14772,9 +14772,9 @@ var require_polyfills2 = __commonJS({
|
|
|
14772
14772
|
};
|
|
14773
14773
|
}(fs4.readSync);
|
|
14774
14774
|
function patchLchmod(fs5) {
|
|
14775
|
-
fs5.lchmod = function(
|
|
14775
|
+
fs5.lchmod = function(path9, mode, callback) {
|
|
14776
14776
|
fs5.open(
|
|
14777
|
-
|
|
14777
|
+
path9,
|
|
14778
14778
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
14779
14779
|
mode,
|
|
14780
14780
|
function(err, fd) {
|
|
@@ -14792,8 +14792,8 @@ var require_polyfills2 = __commonJS({
|
|
|
14792
14792
|
}
|
|
14793
14793
|
);
|
|
14794
14794
|
};
|
|
14795
|
-
fs5.lchmodSync = function(
|
|
14796
|
-
var fd = fs5.openSync(
|
|
14795
|
+
fs5.lchmodSync = function(path9, mode) {
|
|
14796
|
+
var fd = fs5.openSync(path9, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
14797
14797
|
var threw = true;
|
|
14798
14798
|
var ret;
|
|
14799
14799
|
try {
|
|
@@ -14814,8 +14814,8 @@ var require_polyfills2 = __commonJS({
|
|
|
14814
14814
|
}
|
|
14815
14815
|
function patchLutimes(fs5) {
|
|
14816
14816
|
if (constants.hasOwnProperty("O_SYMLINK") && fs5.futimes) {
|
|
14817
|
-
fs5.lutimes = function(
|
|
14818
|
-
fs5.open(
|
|
14817
|
+
fs5.lutimes = function(path9, at, mt, cb) {
|
|
14818
|
+
fs5.open(path9, constants.O_SYMLINK, function(er, fd) {
|
|
14819
14819
|
if (er) {
|
|
14820
14820
|
if (cb)
|
|
14821
14821
|
cb(er);
|
|
@@ -14829,8 +14829,8 @@ var require_polyfills2 = __commonJS({
|
|
|
14829
14829
|
});
|
|
14830
14830
|
});
|
|
14831
14831
|
};
|
|
14832
|
-
fs5.lutimesSync = function(
|
|
14833
|
-
var fd = fs5.openSync(
|
|
14832
|
+
fs5.lutimesSync = function(path9, at, mt) {
|
|
14833
|
+
var fd = fs5.openSync(path9, constants.O_SYMLINK);
|
|
14834
14834
|
var ret;
|
|
14835
14835
|
var threw = true;
|
|
14836
14836
|
try {
|
|
@@ -14956,9 +14956,9 @@ var require_polyfills2 = __commonJS({
|
|
|
14956
14956
|
}
|
|
14957
14957
|
});
|
|
14958
14958
|
|
|
14959
|
-
// ../../node_modules/.pnpm/
|
|
14959
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js
|
|
14960
14960
|
var require_legacy_streams2 = __commonJS({
|
|
14961
|
-
"../../node_modules/.pnpm/
|
|
14961
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
|
|
14962
14962
|
"use strict";
|
|
14963
14963
|
init_cjs_shims();
|
|
14964
14964
|
var Stream = require("stream").Stream;
|
|
@@ -14968,12 +14968,12 @@ var require_legacy_streams2 = __commonJS({
|
|
|
14968
14968
|
ReadStream,
|
|
14969
14969
|
WriteStream
|
|
14970
14970
|
};
|
|
14971
|
-
function ReadStream(
|
|
14971
|
+
function ReadStream(path9, options) {
|
|
14972
14972
|
if (!(this instanceof ReadStream))
|
|
14973
|
-
return new ReadStream(
|
|
14973
|
+
return new ReadStream(path9, options);
|
|
14974
14974
|
Stream.call(this);
|
|
14975
14975
|
var self2 = this;
|
|
14976
|
-
this.path =
|
|
14976
|
+
this.path = path9;
|
|
14977
14977
|
this.fd = null;
|
|
14978
14978
|
this.readable = true;
|
|
14979
14979
|
this.paused = false;
|
|
@@ -15019,11 +15019,11 @@ var require_legacy_streams2 = __commonJS({
|
|
|
15019
15019
|
self2._read();
|
|
15020
15020
|
});
|
|
15021
15021
|
}
|
|
15022
|
-
function WriteStream(
|
|
15022
|
+
function WriteStream(path9, options) {
|
|
15023
15023
|
if (!(this instanceof WriteStream))
|
|
15024
|
-
return new WriteStream(
|
|
15024
|
+
return new WriteStream(path9, options);
|
|
15025
15025
|
Stream.call(this);
|
|
15026
|
-
this.path =
|
|
15026
|
+
this.path = path9;
|
|
15027
15027
|
this.fd = null;
|
|
15028
15028
|
this.writable = true;
|
|
15029
15029
|
this.flags = "w";
|
|
@@ -15057,9 +15057,9 @@ var require_legacy_streams2 = __commonJS({
|
|
|
15057
15057
|
}
|
|
15058
15058
|
});
|
|
15059
15059
|
|
|
15060
|
-
// ../../node_modules/.pnpm/
|
|
15060
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js
|
|
15061
15061
|
var require_clone2 = __commonJS({
|
|
15062
|
-
"../../node_modules/.pnpm/
|
|
15062
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/clone.js"(exports, module2) {
|
|
15063
15063
|
"use strict";
|
|
15064
15064
|
init_cjs_shims();
|
|
15065
15065
|
module2.exports = clone;
|
|
@@ -15081,9 +15081,9 @@ var require_clone2 = __commonJS({
|
|
|
15081
15081
|
}
|
|
15082
15082
|
});
|
|
15083
15083
|
|
|
15084
|
-
// ../../node_modules/.pnpm/
|
|
15084
|
+
// ../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js
|
|
15085
15085
|
var require_graceful_fs2 = __commonJS({
|
|
15086
|
-
"../../node_modules/.pnpm/
|
|
15086
|
+
"../../node_modules/.pnpm/graceful-fs@4.2.10/node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
|
|
15087
15087
|
"use strict";
|
|
15088
15088
|
init_cjs_shims();
|
|
15089
15089
|
var fs4 = require("fs");
|
|
@@ -15169,14 +15169,14 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15169
15169
|
fs5.createWriteStream = createWriteStream;
|
|
15170
15170
|
var fs$readFile = fs5.readFile;
|
|
15171
15171
|
fs5.readFile = readFile;
|
|
15172
|
-
function readFile(
|
|
15172
|
+
function readFile(path9, options, cb) {
|
|
15173
15173
|
if (typeof options === "function")
|
|
15174
15174
|
cb = options, options = null;
|
|
15175
|
-
return go$readFile(
|
|
15176
|
-
function go$readFile(
|
|
15177
|
-
return fs$readFile(
|
|
15175
|
+
return go$readFile(path9, options, cb);
|
|
15176
|
+
function go$readFile(path10, options2, cb2, startTime) {
|
|
15177
|
+
return fs$readFile(path10, options2, function(err) {
|
|
15178
15178
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
15179
|
-
enqueue([go$readFile, [
|
|
15179
|
+
enqueue([go$readFile, [path10, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
15180
15180
|
else {
|
|
15181
15181
|
if (typeof cb2 === "function")
|
|
15182
15182
|
cb2.apply(this, arguments);
|
|
@@ -15186,14 +15186,14 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15186
15186
|
}
|
|
15187
15187
|
var fs$writeFile = fs5.writeFile;
|
|
15188
15188
|
fs5.writeFile = writeFile2;
|
|
15189
|
-
function writeFile2(
|
|
15189
|
+
function writeFile2(path9, data, options, cb) {
|
|
15190
15190
|
if (typeof options === "function")
|
|
15191
15191
|
cb = options, options = null;
|
|
15192
|
-
return go$writeFile(
|
|
15193
|
-
function go$writeFile(
|
|
15194
|
-
return fs$writeFile(
|
|
15192
|
+
return go$writeFile(path9, data, options, cb);
|
|
15193
|
+
function go$writeFile(path10, data2, options2, cb2, startTime) {
|
|
15194
|
+
return fs$writeFile(path10, data2, options2, function(err) {
|
|
15195
15195
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
15196
|
-
enqueue([go$writeFile, [
|
|
15196
|
+
enqueue([go$writeFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
15197
15197
|
else {
|
|
15198
15198
|
if (typeof cb2 === "function")
|
|
15199
15199
|
cb2.apply(this, arguments);
|
|
@@ -15204,14 +15204,14 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15204
15204
|
var fs$appendFile = fs5.appendFile;
|
|
15205
15205
|
if (fs$appendFile)
|
|
15206
15206
|
fs5.appendFile = appendFile;
|
|
15207
|
-
function appendFile(
|
|
15207
|
+
function appendFile(path9, data, options, cb) {
|
|
15208
15208
|
if (typeof options === "function")
|
|
15209
15209
|
cb = options, options = null;
|
|
15210
|
-
return go$appendFile(
|
|
15211
|
-
function go$appendFile(
|
|
15212
|
-
return fs$appendFile(
|
|
15210
|
+
return go$appendFile(path9, data, options, cb);
|
|
15211
|
+
function go$appendFile(path10, data2, options2, cb2, startTime) {
|
|
15212
|
+
return fs$appendFile(path10, data2, options2, function(err) {
|
|
15213
15213
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
15214
|
-
enqueue([go$appendFile, [
|
|
15214
|
+
enqueue([go$appendFile, [path10, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
15215
15215
|
else {
|
|
15216
15216
|
if (typeof cb2 === "function")
|
|
15217
15217
|
cb2.apply(this, arguments);
|
|
@@ -15242,31 +15242,31 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15242
15242
|
var fs$readdir = fs5.readdir;
|
|
15243
15243
|
fs5.readdir = readdir;
|
|
15244
15244
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
15245
|
-
function readdir(
|
|
15245
|
+
function readdir(path9, options, cb) {
|
|
15246
15246
|
if (typeof options === "function")
|
|
15247
15247
|
cb = options, options = null;
|
|
15248
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
15249
|
-
return fs$readdir(
|
|
15250
|
-
|
|
15248
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path10, options2, cb2, startTime) {
|
|
15249
|
+
return fs$readdir(path10, fs$readdirCallback(
|
|
15250
|
+
path10,
|
|
15251
15251
|
options2,
|
|
15252
15252
|
cb2,
|
|
15253
15253
|
startTime
|
|
15254
15254
|
));
|
|
15255
|
-
} : function go$readdir2(
|
|
15256
|
-
return fs$readdir(
|
|
15257
|
-
|
|
15255
|
+
} : function go$readdir2(path10, options2, cb2, startTime) {
|
|
15256
|
+
return fs$readdir(path10, options2, fs$readdirCallback(
|
|
15257
|
+
path10,
|
|
15258
15258
|
options2,
|
|
15259
15259
|
cb2,
|
|
15260
15260
|
startTime
|
|
15261
15261
|
));
|
|
15262
15262
|
};
|
|
15263
|
-
return go$readdir(
|
|
15264
|
-
function fs$readdirCallback(
|
|
15263
|
+
return go$readdir(path9, options, cb);
|
|
15264
|
+
function fs$readdirCallback(path10, options2, cb2, startTime) {
|
|
15265
15265
|
return function(err, files) {
|
|
15266
15266
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
15267
15267
|
enqueue([
|
|
15268
15268
|
go$readdir,
|
|
15269
|
-
[
|
|
15269
|
+
[path10, options2, cb2],
|
|
15270
15270
|
err,
|
|
15271
15271
|
startTime || Date.now(),
|
|
15272
15272
|
Date.now()
|
|
@@ -15337,7 +15337,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15337
15337
|
enumerable: true,
|
|
15338
15338
|
configurable: true
|
|
15339
15339
|
});
|
|
15340
|
-
function ReadStream(
|
|
15340
|
+
function ReadStream(path9, options) {
|
|
15341
15341
|
if (this instanceof ReadStream)
|
|
15342
15342
|
return fs$ReadStream.apply(this, arguments), this;
|
|
15343
15343
|
else
|
|
@@ -15357,7 +15357,7 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15357
15357
|
}
|
|
15358
15358
|
});
|
|
15359
15359
|
}
|
|
15360
|
-
function WriteStream(
|
|
15360
|
+
function WriteStream(path9, options) {
|
|
15361
15361
|
if (this instanceof WriteStream)
|
|
15362
15362
|
return fs$WriteStream.apply(this, arguments), this;
|
|
15363
15363
|
else
|
|
@@ -15375,22 +15375,22 @@ var require_graceful_fs2 = __commonJS({
|
|
|
15375
15375
|
}
|
|
15376
15376
|
});
|
|
15377
15377
|
}
|
|
15378
|
-
function createReadStream(
|
|
15379
|
-
return new fs5.ReadStream(
|
|
15378
|
+
function createReadStream(path9, options) {
|
|
15379
|
+
return new fs5.ReadStream(path9, options);
|
|
15380
15380
|
}
|
|
15381
|
-
function createWriteStream(
|
|
15382
|
-
return new fs5.WriteStream(
|
|
15381
|
+
function createWriteStream(path9, options) {
|
|
15382
|
+
return new fs5.WriteStream(path9, options);
|
|
15383
15383
|
}
|
|
15384
15384
|
var fs$open = fs5.open;
|
|
15385
15385
|
fs5.open = open;
|
|
15386
|
-
function open(
|
|
15386
|
+
function open(path9, flags, mode, cb) {
|
|
15387
15387
|
if (typeof mode === "function")
|
|
15388
15388
|
cb = mode, mode = null;
|
|
15389
|
-
return go$open(
|
|
15390
|
-
function go$open(
|
|
15391
|
-
return fs$open(
|
|
15389
|
+
return go$open(path9, flags, mode, cb);
|
|
15390
|
+
function go$open(path10, flags2, mode2, cb2, startTime) {
|
|
15391
|
+
return fs$open(path10, flags2, mode2, function(err, fd) {
|
|
15392
15392
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
15393
|
-
enqueue([go$open, [
|
|
15393
|
+
enqueue([go$open, [path10, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
15394
15394
|
else {
|
|
15395
15395
|
if (typeof cb2 === "function")
|
|
15396
15396
|
cb2.apply(this, arguments);
|
|
@@ -15618,7 +15618,7 @@ var require_config_chain = __commonJS({
|
|
|
15618
15618
|
"use strict";
|
|
15619
15619
|
init_cjs_shims();
|
|
15620
15620
|
var ProtoList = require_proto_list();
|
|
15621
|
-
var
|
|
15621
|
+
var path9 = require("path");
|
|
15622
15622
|
var fs4 = require("fs");
|
|
15623
15623
|
var ini = require_ini();
|
|
15624
15624
|
var EE = require("events").EventEmitter;
|
|
@@ -15634,15 +15634,15 @@ var require_config_chain = __commonJS({
|
|
|
15634
15634
|
return conf;
|
|
15635
15635
|
};
|
|
15636
15636
|
var find = exports.find = function() {
|
|
15637
|
-
var rel =
|
|
15637
|
+
var rel = path9.join.apply(null, [].slice.call(arguments));
|
|
15638
15638
|
function find2(start, rel2) {
|
|
15639
|
-
var file =
|
|
15639
|
+
var file = path9.join(start, rel2);
|
|
15640
15640
|
try {
|
|
15641
15641
|
fs4.statSync(file);
|
|
15642
15642
|
return file;
|
|
15643
15643
|
} catch (err) {
|
|
15644
|
-
if (
|
|
15645
|
-
return find2(
|
|
15644
|
+
if (path9.dirname(start) !== start)
|
|
15645
|
+
return find2(path9.dirname(start), rel2);
|
|
15646
15646
|
}
|
|
15647
15647
|
}
|
|
15648
15648
|
return find2(__dirname, rel);
|
|
@@ -15673,7 +15673,7 @@ var require_config_chain = __commonJS({
|
|
|
15673
15673
|
var args = [].slice.call(arguments).filter(function(arg) {
|
|
15674
15674
|
return arg != null;
|
|
15675
15675
|
});
|
|
15676
|
-
var file =
|
|
15676
|
+
var file = path9.join.apply(null, args);
|
|
15677
15677
|
var content;
|
|
15678
15678
|
try {
|
|
15679
15679
|
content = fs4.readFileSync(file, "utf-8");
|
|
@@ -15949,14 +15949,14 @@ var require_util = __commonJS({
|
|
|
15949
15949
|
"use strict";
|
|
15950
15950
|
init_cjs_shims();
|
|
15951
15951
|
var fs4 = require("fs");
|
|
15952
|
-
var
|
|
15952
|
+
var path9 = require("path");
|
|
15953
15953
|
var { envReplace } = require_dist2();
|
|
15954
15954
|
var parseField = (types2, field, key) => {
|
|
15955
15955
|
if (typeof field !== "string") {
|
|
15956
15956
|
return field;
|
|
15957
15957
|
}
|
|
15958
15958
|
const typeList = [].concat(types2[key]);
|
|
15959
|
-
const isPath = typeList.indexOf(
|
|
15959
|
+
const isPath = typeList.indexOf(path9) !== -1;
|
|
15960
15960
|
const isBool = typeList.indexOf(Boolean) !== -1;
|
|
15961
15961
|
const isString = typeList.indexOf(String) !== -1;
|
|
15962
15962
|
const isNumber = typeList.indexOf(Number) !== -1;
|
|
@@ -15989,9 +15989,9 @@ var require_util = __commonJS({
|
|
|
15989
15989
|
if (isPath) {
|
|
15990
15990
|
const regex2 = process.platform === "win32" ? /^~(\/|\\)/ : /^~\//;
|
|
15991
15991
|
if (regex2.test(field) && process.env.HOME) {
|
|
15992
|
-
field =
|
|
15992
|
+
field = path9.resolve(process.env.HOME, field.substr(2));
|
|
15993
15993
|
}
|
|
15994
|
-
field =
|
|
15994
|
+
field = path9.resolve(field);
|
|
15995
15995
|
}
|
|
15996
15996
|
if (isNumber && !isNaN(field)) {
|
|
15997
15997
|
field = Number(field);
|
|
@@ -15999,10 +15999,10 @@ var require_util = __commonJS({
|
|
|
15999
15999
|
return field;
|
|
16000
16000
|
};
|
|
16001
16001
|
var findPrefix = (name) => {
|
|
16002
|
-
name =
|
|
16002
|
+
name = path9.resolve(name);
|
|
16003
16003
|
let walkedUp = false;
|
|
16004
|
-
while (
|
|
16005
|
-
name =
|
|
16004
|
+
while (path9.basename(name) === "node_modules") {
|
|
16005
|
+
name = path9.dirname(name);
|
|
16006
16006
|
walkedUp = true;
|
|
16007
16007
|
}
|
|
16008
16008
|
if (walkedUp) {
|
|
@@ -16018,7 +16018,7 @@ var require_util = __commonJS({
|
|
|
16018
16018
|
if (files.includes("node_modules") || files.includes("package.json") || files.includes("package.json5") || files.includes("package.yaml") || files.includes("pnpm-workspace.yaml")) {
|
|
16019
16019
|
return name2;
|
|
16020
16020
|
}
|
|
16021
|
-
const dirname =
|
|
16021
|
+
const dirname = path9.dirname(name2);
|
|
16022
16022
|
if (dirname === name2) {
|
|
16023
16023
|
return original;
|
|
16024
16024
|
}
|
|
@@ -16046,7 +16046,7 @@ var require_types = __commonJS({
|
|
|
16046
16046
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/lib/types.js"(exports) {
|
|
16047
16047
|
"use strict";
|
|
16048
16048
|
init_cjs_shims();
|
|
16049
|
-
var
|
|
16049
|
+
var path9 = require("path");
|
|
16050
16050
|
var Stream = require("stream").Stream;
|
|
16051
16051
|
var url = require("url");
|
|
16052
16052
|
var Umask = () => {
|
|
@@ -16064,8 +16064,8 @@ var require_types = __commonJS({
|
|
|
16064
16064
|
"bin-links": Boolean,
|
|
16065
16065
|
browser: [null, String],
|
|
16066
16066
|
ca: [null, String, Array],
|
|
16067
|
-
cafile:
|
|
16068
|
-
cache:
|
|
16067
|
+
cafile: path9,
|
|
16068
|
+
cache: path9,
|
|
16069
16069
|
"cache-lock-stale": Number,
|
|
16070
16070
|
"cache-lock-retries": Number,
|
|
16071
16071
|
"cache-lock-wait": Number,
|
|
@@ -16089,7 +16089,7 @@ var require_types = __commonJS({
|
|
|
16089
16089
|
"git-tag-version": Boolean,
|
|
16090
16090
|
"commit-hooks": Boolean,
|
|
16091
16091
|
global: Boolean,
|
|
16092
|
-
globalconfig:
|
|
16092
|
+
globalconfig: path9,
|
|
16093
16093
|
"global-style": Boolean,
|
|
16094
16094
|
group: [Number, String],
|
|
16095
16095
|
"https-proxy": [null, url],
|
|
@@ -16099,7 +16099,7 @@ var require_types = __commonJS({
|
|
|
16099
16099
|
"if-present": Boolean,
|
|
16100
16100
|
"ignore-prepublish": Boolean,
|
|
16101
16101
|
"ignore-scripts": Boolean,
|
|
16102
|
-
"init-module":
|
|
16102
|
+
"init-module": path9,
|
|
16103
16103
|
"init-author-name": String,
|
|
16104
16104
|
"init-author-email": String,
|
|
16105
16105
|
"init-author-url": ["", url],
|
|
@@ -16132,7 +16132,7 @@ var require_types = __commonJS({
|
|
|
16132
16132
|
parseable: Boolean,
|
|
16133
16133
|
"prefer-offline": Boolean,
|
|
16134
16134
|
"prefer-online": Boolean,
|
|
16135
|
-
prefix:
|
|
16135
|
+
prefix: path9,
|
|
16136
16136
|
production: Boolean,
|
|
16137
16137
|
progress: Boolean,
|
|
16138
16138
|
proxy: [null, false, url],
|
|
@@ -16165,12 +16165,12 @@ var require_types = __commonJS({
|
|
|
16165
16165
|
"strict-ssl": Boolean,
|
|
16166
16166
|
tag: String,
|
|
16167
16167
|
timing: Boolean,
|
|
16168
|
-
tmp:
|
|
16168
|
+
tmp: path9,
|
|
16169
16169
|
unicode: Boolean,
|
|
16170
16170
|
"unsafe-perm": Boolean,
|
|
16171
16171
|
usage: Boolean,
|
|
16172
16172
|
user: [Number, String],
|
|
16173
|
-
userconfig:
|
|
16173
|
+
userconfig: path9,
|
|
16174
16174
|
umask: Umask,
|
|
16175
16175
|
version: Boolean,
|
|
16176
16176
|
"tag-version-prefix": String,
|
|
@@ -16188,7 +16188,7 @@ var require_conf = __commonJS({
|
|
|
16188
16188
|
init_cjs_shims();
|
|
16189
16189
|
var { readCAFileSync } = require_dist();
|
|
16190
16190
|
var fs4 = require("fs");
|
|
16191
|
-
var
|
|
16191
|
+
var path9 = require("path");
|
|
16192
16192
|
var { ConfigChain } = require_config_chain();
|
|
16193
16193
|
var envKeyToSetting = require_envKeyToSetting();
|
|
16194
16194
|
var util = require_util();
|
|
@@ -16260,7 +16260,7 @@ var require_conf = __commonJS({
|
|
|
16260
16260
|
this.set("prefix", prefix);
|
|
16261
16261
|
},
|
|
16262
16262
|
get: () => {
|
|
16263
|
-
return
|
|
16263
|
+
return path9.resolve(this.get("prefix"));
|
|
16264
16264
|
}
|
|
16265
16265
|
});
|
|
16266
16266
|
let p;
|
|
@@ -16274,7 +16274,7 @@ var require_conf = __commonJS({
|
|
|
16274
16274
|
}
|
|
16275
16275
|
});
|
|
16276
16276
|
if (Object.prototype.hasOwnProperty.call(cli, "prefix")) {
|
|
16277
|
-
p =
|
|
16277
|
+
p = path9.resolve(cli.prefix);
|
|
16278
16278
|
} else {
|
|
16279
16279
|
try {
|
|
16280
16280
|
const prefix = util.findPrefix(process.cwd());
|
|
@@ -16305,7 +16305,7 @@ var require_conf = __commonJS({
|
|
|
16305
16305
|
defConf.user = Number(process.env.SUDO_UID);
|
|
16306
16306
|
return;
|
|
16307
16307
|
}
|
|
16308
|
-
const prefix =
|
|
16308
|
+
const prefix = path9.resolve(this.get("prefix"));
|
|
16309
16309
|
try {
|
|
16310
16310
|
const stats = fs4.statSync(prefix);
|
|
16311
16311
|
defConf.user = stats.uid;
|
|
@@ -16327,7 +16327,7 @@ var require_defaults = __commonJS({
|
|
|
16327
16327
|
"use strict";
|
|
16328
16328
|
init_cjs_shims();
|
|
16329
16329
|
var os6 = require("os");
|
|
16330
|
-
var
|
|
16330
|
+
var path9 = require("path");
|
|
16331
16331
|
var temp = os6.tmpdir();
|
|
16332
16332
|
var uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
16333
16333
|
var hasUnicode = () => true;
|
|
@@ -16343,11 +16343,11 @@ var require_defaults = __commonJS({
|
|
|
16343
16343
|
if (home) {
|
|
16344
16344
|
process.env.HOME = home;
|
|
16345
16345
|
} else {
|
|
16346
|
-
home =
|
|
16346
|
+
home = path9.resolve(temp, "npm-" + uidOrPid);
|
|
16347
16347
|
}
|
|
16348
16348
|
var cacheExtra = process.platform === "win32" ? "npm-cache" : ".npm";
|
|
16349
16349
|
var cacheRoot = process.platform === "win32" ? process.env.APPDATA : home;
|
|
16350
|
-
var cache =
|
|
16350
|
+
var cache = path9.resolve(cacheRoot, cacheExtra);
|
|
16351
16351
|
var defaults2;
|
|
16352
16352
|
var globalPrefix;
|
|
16353
16353
|
Object.defineProperty(exports, "defaults", {
|
|
@@ -16357,11 +16357,11 @@ var require_defaults = __commonJS({
|
|
|
16357
16357
|
if (process.env.PREFIX) {
|
|
16358
16358
|
globalPrefix = process.env.PREFIX;
|
|
16359
16359
|
} else if (process.platform === "win32") {
|
|
16360
|
-
globalPrefix =
|
|
16360
|
+
globalPrefix = path9.dirname(process.execPath);
|
|
16361
16361
|
} else {
|
|
16362
|
-
globalPrefix =
|
|
16362
|
+
globalPrefix = path9.dirname(path9.dirname(process.execPath));
|
|
16363
16363
|
if (process.env.DESTDIR) {
|
|
16364
|
-
globalPrefix =
|
|
16364
|
+
globalPrefix = path9.join(process.env.DESTDIR, globalPrefix);
|
|
16365
16365
|
}
|
|
16366
16366
|
}
|
|
16367
16367
|
defaults2 = {
|
|
@@ -16399,7 +16399,7 @@ var require_defaults = __commonJS({
|
|
|
16399
16399
|
"git-tag-version": true,
|
|
16400
16400
|
"commit-hooks": true,
|
|
16401
16401
|
global: false,
|
|
16402
|
-
globalconfig:
|
|
16402
|
+
globalconfig: path9.resolve(globalPrefix, "etc", "npmrc"),
|
|
16403
16403
|
"global-style": false,
|
|
16404
16404
|
group: process.platform === "win32" ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(),
|
|
16405
16405
|
"ham-it-up": false,
|
|
@@ -16407,7 +16407,7 @@ var require_defaults = __commonJS({
|
|
|
16407
16407
|
"if-present": false,
|
|
16408
16408
|
"ignore-prepublish": false,
|
|
16409
16409
|
"ignore-scripts": false,
|
|
16410
|
-
"init-module":
|
|
16410
|
+
"init-module": path9.resolve(home, ".npm-init.js"),
|
|
16411
16411
|
"init-author-name": "",
|
|
16412
16412
|
"init-author-email": "",
|
|
16413
16413
|
"init-author-url": "",
|
|
@@ -16478,7 +16478,7 @@ var require_defaults = __commonJS({
|
|
|
16478
16478
|
"unsafe-perm": process.platform === "win32" || process.platform === "cygwin" || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0,
|
|
16479
16479
|
usage: false,
|
|
16480
16480
|
user: process.platform === "win32" ? 0 : "nobody",
|
|
16481
|
-
userconfig:
|
|
16481
|
+
userconfig: path9.resolve(home, ".npmrc"),
|
|
16482
16482
|
umask: process.umask ? process.umask() : umask.fromString("022"),
|
|
16483
16483
|
version: false,
|
|
16484
16484
|
versions: false,
|
|
@@ -16496,7 +16496,7 @@ var require_npm_conf = __commonJS({
|
|
|
16496
16496
|
"../../node_modules/.pnpm/@pnpm+npm-conf@2.2.0/node_modules/@pnpm/npm-conf/index.js"(exports, module2) {
|
|
16497
16497
|
"use strict";
|
|
16498
16498
|
init_cjs_shims();
|
|
16499
|
-
var
|
|
16499
|
+
var path9 = require("path");
|
|
16500
16500
|
var Conf = require_conf();
|
|
16501
16501
|
var _defaults = require_defaults();
|
|
16502
16502
|
module2.exports = (opts, types2, defaults2) => {
|
|
@@ -16513,12 +16513,12 @@ var require_npm_conf = __commonJS({
|
|
|
16513
16513
|
failedToLoadBuiltInConfig = true;
|
|
16514
16514
|
}
|
|
16515
16515
|
if (npmPath) {
|
|
16516
|
-
warnings.push(conf.addFile(
|
|
16516
|
+
warnings.push(conf.addFile(path9.resolve(path9.dirname(npmPath), "..", "npmrc"), "builtin"));
|
|
16517
16517
|
}
|
|
16518
16518
|
}
|
|
16519
16519
|
conf.addEnv();
|
|
16520
16520
|
conf.loadPrefix();
|
|
16521
|
-
const projectConf =
|
|
16521
|
+
const projectConf = path9.resolve(conf.localPrefix, ".npmrc");
|
|
16522
16522
|
const userConf = conf.get("userconfig");
|
|
16523
16523
|
if (!conf.get("global") && projectConf !== userConf) {
|
|
16524
16524
|
warnings.push(conf.addFile(projectConf, "project"));
|
|
@@ -16526,14 +16526,14 @@ var require_npm_conf = __commonJS({
|
|
|
16526
16526
|
conf.add({}, "project");
|
|
16527
16527
|
}
|
|
16528
16528
|
if (conf.get("workspace-prefix") && conf.get("workspace-prefix") !== projectConf) {
|
|
16529
|
-
const workspaceConf =
|
|
16529
|
+
const workspaceConf = path9.resolve(conf.get("workspace-prefix"), ".npmrc");
|
|
16530
16530
|
warnings.push(conf.addFile(workspaceConf, "workspace"));
|
|
16531
16531
|
}
|
|
16532
16532
|
warnings.push(conf.addFile(conf.get("userconfig"), "user"));
|
|
16533
16533
|
if (conf.get("prefix")) {
|
|
16534
|
-
const etc =
|
|
16535
|
-
conf.root.globalconfig =
|
|
16536
|
-
conf.root.globalignorefile =
|
|
16534
|
+
const etc = path9.resolve(conf.get("prefix"), "etc");
|
|
16535
|
+
conf.root.globalconfig = path9.resolve(etc, "npmrc");
|
|
16536
|
+
conf.root.globalignorefile = path9.resolve(etc, "npmignore");
|
|
16537
16537
|
}
|
|
16538
16538
|
warnings.push(conf.addFile(conf.get("globalconfig"), "global"));
|
|
16539
16539
|
conf.loadUser();
|
|
@@ -16612,8 +16612,8 @@ var require_registry_auth_token = __commonJS({
|
|
|
16612
16612
|
const token = replaceEnvironmentVariable(npmrc.get("_auth"));
|
|
16613
16613
|
return { token, type: "Basic" };
|
|
16614
16614
|
}
|
|
16615
|
-
function normalizePath(
|
|
16616
|
-
return
|
|
16615
|
+
function normalizePath(path9) {
|
|
16616
|
+
return path9[path9.length - 1] === "/" ? path9 : path9 + "/";
|
|
16617
16617
|
}
|
|
16618
16618
|
function getAuthInfoForUrl(regUrl, npmrc) {
|
|
16619
16619
|
const bearerAuth = getBearerToken(npmrc.get(regUrl + tokenKey) || npmrc.get(regUrl + "/" + tokenKey));
|
|
@@ -16828,7 +16828,7 @@ var require_global_dirs = __commonJS({
|
|
|
16828
16828
|
"../../node_modules/.pnpm/global-dirs@3.0.1/node_modules/global-dirs/index.js"(exports) {
|
|
16829
16829
|
"use strict";
|
|
16830
16830
|
init_cjs_shims();
|
|
16831
|
-
var
|
|
16831
|
+
var path9 = require("path");
|
|
16832
16832
|
var os6 = require("os");
|
|
16833
16833
|
var fs4 = require("fs");
|
|
16834
16834
|
var ini = require_ini2();
|
|
@@ -16846,30 +16846,30 @@ var require_global_dirs = __commonJS({
|
|
|
16846
16846
|
};
|
|
16847
16847
|
var getGlobalNpmrc = () => {
|
|
16848
16848
|
if (isWindows && process.env.APPDATA) {
|
|
16849
|
-
return
|
|
16849
|
+
return path9.join(process.env.APPDATA, "/npm/etc/npmrc");
|
|
16850
16850
|
}
|
|
16851
16851
|
if (process.execPath.includes("/Cellar/node")) {
|
|
16852
16852
|
const homebrewPrefix = process.execPath.slice(0, process.execPath.indexOf("/Cellar/node"));
|
|
16853
|
-
return
|
|
16853
|
+
return path9.join(homebrewPrefix, "/lib/node_modules/npm/npmrc");
|
|
16854
16854
|
}
|
|
16855
16855
|
if (process.execPath.endsWith("/bin/node")) {
|
|
16856
|
-
const installDir =
|
|
16857
|
-
return
|
|
16856
|
+
const installDir = path9.dirname(path9.dirname(process.execPath));
|
|
16857
|
+
return path9.join(installDir, "/etc/npmrc");
|
|
16858
16858
|
}
|
|
16859
16859
|
};
|
|
16860
16860
|
var getDefaultNpmPrefix = () => {
|
|
16861
16861
|
if (isWindows) {
|
|
16862
16862
|
const { APPDATA } = process.env;
|
|
16863
|
-
return APPDATA ?
|
|
16863
|
+
return APPDATA ? path9.join(APPDATA, "npm") : path9.dirname(process.execPath);
|
|
16864
16864
|
}
|
|
16865
|
-
return
|
|
16865
|
+
return path9.dirname(path9.dirname(process.execPath));
|
|
16866
16866
|
};
|
|
16867
16867
|
var getNpmPrefix = () => {
|
|
16868
16868
|
const envPrefix = getEnvNpmPrefix();
|
|
16869
16869
|
if (envPrefix) {
|
|
16870
16870
|
return envPrefix;
|
|
16871
16871
|
}
|
|
16872
|
-
const homePrefix = readRc(
|
|
16872
|
+
const homePrefix = readRc(path9.join(os6.homedir(), ".npmrc"));
|
|
16873
16873
|
if (homePrefix) {
|
|
16874
16874
|
return homePrefix;
|
|
16875
16875
|
}
|
|
@@ -16882,10 +16882,10 @@ var require_global_dirs = __commonJS({
|
|
|
16882
16882
|
}
|
|
16883
16883
|
return getDefaultNpmPrefix();
|
|
16884
16884
|
};
|
|
16885
|
-
var npmPrefix =
|
|
16885
|
+
var npmPrefix = path9.resolve(getNpmPrefix());
|
|
16886
16886
|
var getYarnWindowsDirectory = () => {
|
|
16887
16887
|
if (isWindows && process.env.LOCALAPPDATA) {
|
|
16888
|
-
const dir =
|
|
16888
|
+
const dir = path9.join(process.env.LOCALAPPDATA, "Yarn");
|
|
16889
16889
|
if (fs4.existsSync(dir)) {
|
|
16890
16890
|
return dir;
|
|
16891
16891
|
}
|
|
@@ -16900,11 +16900,11 @@ var require_global_dirs = __commonJS({
|
|
|
16900
16900
|
if (windowsPrefix) {
|
|
16901
16901
|
return windowsPrefix;
|
|
16902
16902
|
}
|
|
16903
|
-
const configPrefix =
|
|
16903
|
+
const configPrefix = path9.join(os6.homedir(), ".config/yarn");
|
|
16904
16904
|
if (fs4.existsSync(configPrefix)) {
|
|
16905
16905
|
return configPrefix;
|
|
16906
16906
|
}
|
|
16907
|
-
const homePrefix =
|
|
16907
|
+
const homePrefix = path9.join(os6.homedir(), ".yarn-config");
|
|
16908
16908
|
if (fs4.existsSync(homePrefix)) {
|
|
16909
16909
|
return homePrefix;
|
|
16910
16910
|
}
|
|
@@ -16912,13 +16912,13 @@ var require_global_dirs = __commonJS({
|
|
|
16912
16912
|
};
|
|
16913
16913
|
exports.npm = {};
|
|
16914
16914
|
exports.npm.prefix = npmPrefix;
|
|
16915
|
-
exports.npm.packages =
|
|
16916
|
-
exports.npm.binaries = isWindows ? npmPrefix :
|
|
16917
|
-
var yarnPrefix =
|
|
16915
|
+
exports.npm.packages = path9.join(npmPrefix, isWindows ? "node_modules" : "lib/node_modules");
|
|
16916
|
+
exports.npm.binaries = isWindows ? npmPrefix : path9.join(npmPrefix, "bin");
|
|
16917
|
+
var yarnPrefix = path9.resolve(getYarnPrefix());
|
|
16918
16918
|
exports.yarn = {};
|
|
16919
16919
|
exports.yarn.prefix = yarnPrefix;
|
|
16920
|
-
exports.yarn.packages =
|
|
16921
|
-
exports.yarn.binaries =
|
|
16920
|
+
exports.yarn.packages = path9.join(yarnPrefix, getYarnWindowsDirectory() ? "Data/global/node_modules" : "global/node_modules");
|
|
16921
|
+
exports.yarn.binaries = path9.join(exports.yarn.packages, ".bin");
|
|
16922
16922
|
}
|
|
16923
16923
|
});
|
|
16924
16924
|
|
|
@@ -16927,11 +16927,11 @@ var require_is_path_inside = __commonJS({
|
|
|
16927
16927
|
"../../node_modules/.pnpm/is-path-inside@3.0.3/node_modules/is-path-inside/index.js"(exports, module2) {
|
|
16928
16928
|
"use strict";
|
|
16929
16929
|
init_cjs_shims();
|
|
16930
|
-
var
|
|
16930
|
+
var path9 = require("path");
|
|
16931
16931
|
module2.exports = (childPath, parentPath) => {
|
|
16932
|
-
const relation =
|
|
16932
|
+
const relation = path9.relative(parentPath, childPath);
|
|
16933
16933
|
return Boolean(
|
|
16934
|
-
relation && relation !== ".." && !relation.startsWith(`..${
|
|
16934
|
+
relation && relation !== ".." && !relation.startsWith(`..${path9.sep}`) && relation !== path9.resolve(childPath)
|
|
16935
16935
|
);
|
|
16936
16936
|
};
|
|
16937
16937
|
}
|
|
@@ -17640,8 +17640,7 @@ __export(src_exports, {
|
|
|
17640
17640
|
});
|
|
17641
17641
|
module.exports = __toCommonJS(src_exports);
|
|
17642
17642
|
init_cjs_shims();
|
|
17643
|
-
var
|
|
17644
|
-
var import_chokidar = __toESM(require("chokidar"));
|
|
17643
|
+
var path8 = __toESM(require("path"));
|
|
17645
17644
|
var import_commander = require("commander");
|
|
17646
17645
|
|
|
17647
17646
|
// src/command/tokens/index.ts
|
|
@@ -18735,7 +18734,7 @@ var import_cli_welcome = __toESM(require("cli-welcome"));
|
|
|
18735
18734
|
// package.json
|
|
18736
18735
|
var package_default = {
|
|
18737
18736
|
name: "@yamada-ui/cli",
|
|
18738
|
-
version: "0.
|
|
18737
|
+
version: "0.8.0",
|
|
18739
18738
|
description: "Generate theme tokens for autocomplete",
|
|
18740
18739
|
keywords: [
|
|
18741
18740
|
"theme",
|
|
@@ -18781,15 +18780,16 @@ var package_default = {
|
|
|
18781
18780
|
"cli-check-node": "^1.3.4",
|
|
18782
18781
|
"cli-handle-unhandled": "^1.1.1",
|
|
18783
18782
|
"cli-welcome": "^2.2.2",
|
|
18783
|
+
color2k: "^2.0.2",
|
|
18784
18784
|
commander: "^11.0.0",
|
|
18785
18785
|
prettier: "^3.0.1"
|
|
18786
18786
|
},
|
|
18787
18787
|
devDependencies: {
|
|
18788
|
-
ora: "^7.0.1",
|
|
18789
|
-
"update-notifier": "^6.0.2",
|
|
18790
|
-
"@types/update-notifier": "6.0.4",
|
|
18791
18788
|
"@types/cli-welcome": "^2.2.0",
|
|
18792
|
-
"@types/prettier": "^3.0.0"
|
|
18789
|
+
"@types/prettier": "^3.0.0",
|
|
18790
|
+
"@types/update-notifier": "6.0.8",
|
|
18791
|
+
ora: "^7.0.1",
|
|
18792
|
+
"update-notifier": "^6.0.2"
|
|
18793
18793
|
}
|
|
18794
18794
|
};
|
|
18795
18795
|
|
|
@@ -22491,10 +22491,10 @@ var Options = class _Options {
|
|
|
22491
22491
|
}
|
|
22492
22492
|
const matches = /(?<socketPath>.+?):(?<path>.+)/.exec(`${url.pathname}${url.search}`);
|
|
22493
22493
|
if (matches?.groups) {
|
|
22494
|
-
const { socketPath, path:
|
|
22494
|
+
const { socketPath, path: path9 } = matches.groups;
|
|
22495
22495
|
this._unixOptions = {
|
|
22496
22496
|
socketPath,
|
|
22497
|
-
path:
|
|
22497
|
+
path: path9,
|
|
22498
22498
|
host: ""
|
|
22499
22499
|
};
|
|
22500
22500
|
} else {
|
|
@@ -25885,12 +25885,13 @@ ${package_default.description}`,
|
|
|
25885
25885
|
// src/utils/prettier.ts
|
|
25886
25886
|
init_cjs_shims();
|
|
25887
25887
|
var import_prettier = require("prettier");
|
|
25888
|
-
var prettier = async (content) => {
|
|
25888
|
+
var prettier = async (content, options) => {
|
|
25889
25889
|
const prettierConfig = await (0, import_prettier.resolveConfig)(process.cwd());
|
|
25890
25890
|
try {
|
|
25891
25891
|
return (0, import_prettier.format)(content, {
|
|
25892
25892
|
...prettierConfig,
|
|
25893
|
-
parser: "typescript"
|
|
25893
|
+
parser: "typescript",
|
|
25894
|
+
...options
|
|
25894
25895
|
});
|
|
25895
25896
|
} catch {
|
|
25896
25897
|
return content;
|
|
@@ -26059,7 +26060,7 @@ var createThemeTypings = async (theme) => {
|
|
|
26059
26060
|
const { transitionProperty, transitionDuration, transitionEasing } = extractTransitions(theme);
|
|
26060
26061
|
const componentTypes = extractComponents(theme);
|
|
26061
26062
|
return prettier(
|
|
26062
|
-
`import { UITheme } from './ui-theme.types'
|
|
26063
|
+
`import type { UITheme } from './ui-theme.types'
|
|
26063
26064
|
|
|
26064
26065
|
export interface GeneratedTheme extends UITheme { ${print(
|
|
26065
26066
|
{
|
|
@@ -26077,6 +26078,9 @@ export interface GeneratedTheme extends UITheme { ${print(
|
|
|
26077
26078
|
};
|
|
26078
26079
|
|
|
26079
26080
|
// src/command/tokens/index.ts
|
|
26081
|
+
var path7 = __toESM(require("path"));
|
|
26082
|
+
var import_bundle_n_require = require("bundle-n-require");
|
|
26083
|
+
var import_chokidar = __toESM(require("chokidar"));
|
|
26080
26084
|
var writeFileAsync = (0, import_util4.promisify)(import_fs2.writeFile);
|
|
26081
26085
|
var generateThemeTypings = async ({
|
|
26082
26086
|
theme,
|
|
@@ -26092,7 +26096,69 @@ var generateThemeTypings = async ({
|
|
|
26092
26096
|
await writeFileAsync(outPath, generatedTheme, "utf8");
|
|
26093
26097
|
const end = process.hrtime.bigint();
|
|
26094
26098
|
const duration = (Number(end - start) / 1e9).toFixed(2);
|
|
26095
|
-
spinner.succeed(`Done in ${duration}s
|
|
26099
|
+
spinner.succeed(`Done in ${duration}s
|
|
26100
|
+
`);
|
|
26101
|
+
} catch (e) {
|
|
26102
|
+
spinner.fail("An error occurred\n");
|
|
26103
|
+
if (e instanceof Error)
|
|
26104
|
+
console.error(e.message);
|
|
26105
|
+
} finally {
|
|
26106
|
+
spinner.stop();
|
|
26107
|
+
}
|
|
26108
|
+
};
|
|
26109
|
+
var actionTokens = async (themeFile, { out: outFile, watch: watchFile }) => {
|
|
26110
|
+
const readFile = async () => {
|
|
26111
|
+
const filePath = path7.resolve(themeFile);
|
|
26112
|
+
const { mod: theme, dependencies } = await (0, import_bundle_n_require.bundleNRequire)(filePath);
|
|
26113
|
+
return { theme, dependencies };
|
|
26114
|
+
};
|
|
26115
|
+
let file = await readFile();
|
|
26116
|
+
const buildFile = async () => {
|
|
26117
|
+
await generateThemeTypings({ theme: file.theme, outFile });
|
|
26118
|
+
if (watchFile)
|
|
26119
|
+
console.log("\n", "\u231B\uFE0F Watching for changes...");
|
|
26120
|
+
};
|
|
26121
|
+
if (watchFile) {
|
|
26122
|
+
const watchPath = typeof watchFile === "string" ? watchFile : file.dependencies;
|
|
26123
|
+
import_chokidar.default.watch(watchPath).on("ready", buildFile).on("change", async (filePath) => {
|
|
26124
|
+
console.log("\u{1F4E6} File changed", filePath);
|
|
26125
|
+
file = await readFile();
|
|
26126
|
+
return buildFile();
|
|
26127
|
+
});
|
|
26128
|
+
} else {
|
|
26129
|
+
await buildFile();
|
|
26130
|
+
}
|
|
26131
|
+
};
|
|
26132
|
+
|
|
26133
|
+
// src/command/colors/index.ts
|
|
26134
|
+
init_cjs_shims();
|
|
26135
|
+
var import_color2k = require("color2k");
|
|
26136
|
+
var toneColor = (color, hue) => {
|
|
26137
|
+
const coef = 0.75;
|
|
26138
|
+
const amount = (500 - hue) * 1e-3 * coef;
|
|
26139
|
+
return (0, import_color2k.toHex)((0, import_color2k.lighten)(color, amount));
|
|
26140
|
+
};
|
|
26141
|
+
var hues2 = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
26142
|
+
var actionColors = async (color, { name }) => {
|
|
26143
|
+
const spinner = ora("Generating Hue colors").start();
|
|
26144
|
+
try {
|
|
26145
|
+
const start = process.hrtime.bigint();
|
|
26146
|
+
let result = hues2.reduce((prev, hue) => {
|
|
26147
|
+
prev[hue] = toneColor(color, hue);
|
|
26148
|
+
return prev;
|
|
26149
|
+
}, {});
|
|
26150
|
+
if (name) {
|
|
26151
|
+
result = { [name]: result };
|
|
26152
|
+
}
|
|
26153
|
+
const end = process.hrtime.bigint();
|
|
26154
|
+
const duration = (Number(end - start) / 1e9).toFixed(2);
|
|
26155
|
+
spinner.succeed(`Done in ${duration}s
|
|
26156
|
+
`);
|
|
26157
|
+
let data = await prettier(JSON.stringify(result), { parser: "json" });
|
|
26158
|
+
if (name) {
|
|
26159
|
+
data = data.replace(/^{/, "").replace(/}\s+$/, "").replace(/\s+}/g, "\n}").trim();
|
|
26160
|
+
}
|
|
26161
|
+
console.log(data + "\n");
|
|
26096
26162
|
} catch (e) {
|
|
26097
26163
|
spinner.fail("An error occurred");
|
|
26098
26164
|
if (e instanceof Error)
|
|
@@ -26103,38 +26169,17 @@ var generateThemeTypings = async ({
|
|
|
26103
26169
|
};
|
|
26104
26170
|
|
|
26105
26171
|
// src/index.ts
|
|
26106
|
-
var import_bundle_n_require = require("bundle-n-require");
|
|
26107
26172
|
var run = async () => {
|
|
26108
26173
|
await initCLI();
|
|
26109
|
-
import_commander.program.command("tokens <source>").option("--out <path>", `
|
|
26110
|
-
|
|
26111
|
-
|
|
26112
|
-
const filePath = path7.resolve(themeFile);
|
|
26113
|
-
const { mod: theme, dependencies } = await (0, import_bundle_n_require.bundleNRequire)(filePath);
|
|
26114
|
-
return { theme, dependencies };
|
|
26115
|
-
};
|
|
26116
|
-
let file = await readFile();
|
|
26117
|
-
const buildFile = async () => {
|
|
26118
|
-
await generateThemeTypings({ theme: file.theme, outFile });
|
|
26119
|
-
if (watchFile)
|
|
26120
|
-
console.log("\n", "\u231B\uFE0F Watching for changes...");
|
|
26121
|
-
};
|
|
26122
|
-
if (watchFile) {
|
|
26123
|
-
const watchPath = typeof watchFile === "string" ? watchFile : file.dependencies;
|
|
26124
|
-
import_chokidar.default.watch(watchPath).on("ready", buildFile).on("change", async (filePath) => {
|
|
26125
|
-
console.log("\u{1F4E6} File changed", filePath);
|
|
26126
|
-
file = await readFile();
|
|
26127
|
-
return buildFile();
|
|
26128
|
-
});
|
|
26129
|
-
} else {
|
|
26130
|
-
await buildFile();
|
|
26131
|
-
}
|
|
26132
|
-
}
|
|
26133
|
-
);
|
|
26134
|
-
import_commander.program.on("--help", () => {
|
|
26174
|
+
import_commander.program.command("tokens <source>").option("-o, --out <path>", `Output file to ${path8.join(...themePath)}`).option("-w, --watch [path]", "Watch directory for changes and rebuild").action(actionTokens);
|
|
26175
|
+
import_commander.program.command("colors <color>").option("-n, --name <name>", "Token name of hue object to output").action(actionColors);
|
|
26176
|
+
import_commander.program.on("-h, --help", () => {
|
|
26135
26177
|
console.info(`
|
|
26136
26178
|
Example call:
|
|
26137
|
-
|
|
26179
|
+
`);
|
|
26180
|
+
console.info(`$ yamada-cli tokens theme.ts
|
|
26181
|
+
`);
|
|
26182
|
+
console.info(`$ yamada-cli colors #4285f4
|
|
26138
26183
|
`);
|
|
26139
26184
|
});
|
|
26140
26185
|
import_commander.program.parse();
|