@storm-software/workspace-tools 1.31.13 → 1.31.15
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/CHANGELOG.md +14 -0
- package/index.js +1459 -1462
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +52 -55
- package/src/executors/design-tokens/executor.js +627 -630
- package/src/executors/tsup/executor.js +1453 -1456
- package/src/executors/tsup-browser/executor.js +1455 -1458
- package/src/executors/tsup-neutral/executor.js +1455 -1458
- package/src/executors/tsup-node/executor.js +1455 -1458
- package/src/generators/browser-library/generator.js +353 -356
- package/src/generators/config-schema/generator.js +153 -156
- package/src/generators/neutral-library/generator.js +353 -356
- package/src/generators/node-library/generator.js +353 -356
- package/src/generators/preset/generator.js +155 -158
|
@@ -606,7 +606,7 @@ var require_format_files = __commonJS({
|
|
|
606
606
|
"use strict";
|
|
607
607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
608
608
|
exports.formatFiles = void 0;
|
|
609
|
-
var
|
|
609
|
+
var path3 = require("path");
|
|
610
610
|
var nx_1 = require_nx();
|
|
611
611
|
var { updateJson, readJson, sortObjectByKeys } = (0, nx_1.requireNx)();
|
|
612
612
|
sortObjectByKeys = sortObjectByKeys ?? require("nx/src/utils/object-sort").sortObjectByKeys;
|
|
@@ -623,7 +623,7 @@ var require_format_files = __commonJS({
|
|
|
623
623
|
const changedPrettierInTree = getChangedPrettierConfigInTree(tree);
|
|
624
624
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
625
625
|
try {
|
|
626
|
-
const systemPath =
|
|
626
|
+
const systemPath = path3.join(tree.root, file.path);
|
|
627
627
|
const resolvedOptions = await prettier.resolveConfig(systemPath, {
|
|
628
628
|
editorconfig: true
|
|
629
629
|
});
|
|
@@ -667,9 +667,9 @@ var require_format_files = __commonJS({
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function getRootTsConfigPath(tree) {
|
|
670
|
-
for (const
|
|
671
|
-
if (tree.exists(
|
|
672
|
-
return
|
|
670
|
+
for (const path4 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
671
|
+
if (tree.exists(path4)) {
|
|
672
|
+
return path4;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
return null;
|
|
@@ -962,8 +962,8 @@ var require_binary_extensions = __commonJS({
|
|
|
962
962
|
".zip",
|
|
963
963
|
".zipx"
|
|
964
964
|
]);
|
|
965
|
-
function isBinaryPath(
|
|
966
|
-
return binaryExtensions.has((0, path_1.extname)(
|
|
965
|
+
function isBinaryPath(path3) {
|
|
966
|
+
return binaryExtensions.has((0, path_1.extname)(path3).toLowerCase());
|
|
967
967
|
}
|
|
968
968
|
exports.isBinaryPath = isBinaryPath;
|
|
969
969
|
}
|
|
@@ -1147,7 +1147,7 @@ var require_ejs = __commonJS({
|
|
|
1147
1147
|
"node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports) {
|
|
1148
1148
|
"use strict";
|
|
1149
1149
|
var fs2 = require("fs");
|
|
1150
|
-
var
|
|
1150
|
+
var path3 = require("path");
|
|
1151
1151
|
var utils = require_utils();
|
|
1152
1152
|
var scopeOptionWarned = false;
|
|
1153
1153
|
var _VERSION_STRING = require_package().version;
|
|
@@ -1178,9 +1178,9 @@ var require_ejs = __commonJS({
|
|
|
1178
1178
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
1179
1179
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
1180
1180
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
1181
|
-
var dirname2 =
|
|
1182
|
-
var extname =
|
|
1183
|
-
var resolve2 =
|
|
1181
|
+
var dirname2 = path3.dirname;
|
|
1182
|
+
var extname = path3.extname;
|
|
1183
|
+
var resolve2 = path3.resolve;
|
|
1184
1184
|
var includePath = resolve2(isDir ? filename : dirname2(filename), name);
|
|
1185
1185
|
var ext = extname(name);
|
|
1186
1186
|
if (!ext) {
|
|
@@ -1197,30 +1197,30 @@ var require_ejs = __commonJS({
|
|
|
1197
1197
|
return filePath;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
function getIncludePath(
|
|
1200
|
+
function getIncludePath(path4, options) {
|
|
1201
1201
|
var includePath;
|
|
1202
1202
|
var filePath;
|
|
1203
1203
|
var views = options.views;
|
|
1204
|
-
var match = /^[A-Za-z]+:\\|^\//.exec(
|
|
1204
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path4);
|
|
1205
1205
|
if (match && match.length) {
|
|
1206
|
-
|
|
1206
|
+
path4 = path4.replace(/^\/*/, "");
|
|
1207
1207
|
if (Array.isArray(options.root)) {
|
|
1208
|
-
includePath = resolvePaths(
|
|
1208
|
+
includePath = resolvePaths(path4, options.root);
|
|
1209
1209
|
} else {
|
|
1210
|
-
includePath = exports.resolveInclude(
|
|
1210
|
+
includePath = exports.resolveInclude(path4, options.root || "/", true);
|
|
1211
1211
|
}
|
|
1212
1212
|
} else {
|
|
1213
1213
|
if (options.filename) {
|
|
1214
|
-
filePath = exports.resolveInclude(
|
|
1214
|
+
filePath = exports.resolveInclude(path4, options.filename);
|
|
1215
1215
|
if (fs2.existsSync(filePath)) {
|
|
1216
1216
|
includePath = filePath;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
if (!includePath && Array.isArray(views)) {
|
|
1220
|
-
includePath = resolvePaths(
|
|
1220
|
+
includePath = resolvePaths(path4, views);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (!includePath && typeof options.includer !== "function") {
|
|
1223
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
|
1223
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path4) + '"');
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return includePath;
|
|
@@ -1279,11 +1279,11 @@ var require_ejs = __commonJS({
|
|
|
1279
1279
|
function fileLoader(filePath) {
|
|
1280
1280
|
return exports.fileLoader(filePath);
|
|
1281
1281
|
}
|
|
1282
|
-
function includeFile(
|
|
1282
|
+
function includeFile(path4, options) {
|
|
1283
1283
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
1284
|
-
opts.filename = getIncludePath(
|
|
1284
|
+
opts.filename = getIncludePath(path4, opts);
|
|
1285
1285
|
if (typeof options.includer === "function") {
|
|
1286
|
-
var includerResult = options.includer(
|
|
1286
|
+
var includerResult = options.includer(path4, opts.filename);
|
|
1287
1287
|
if (includerResult) {
|
|
1288
1288
|
if (includerResult.filename) {
|
|
1289
1289
|
opts.filename = includerResult.filename;
|
|
@@ -1518,12 +1518,12 @@ var require_ejs = __commonJS({
|
|
|
1518
1518
|
throw e;
|
|
1519
1519
|
}
|
|
1520
1520
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
1521
|
-
var include = function(
|
|
1521
|
+
var include = function(path4, includeData) {
|
|
1522
1522
|
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
1523
1523
|
if (includeData) {
|
|
1524
1524
|
d = utils.shallowCopy(d, includeData);
|
|
1525
1525
|
}
|
|
1526
|
-
return includeFile(
|
|
1526
|
+
return includeFile(path4, opts)(d);
|
|
1527
1527
|
};
|
|
1528
1528
|
return fn.apply(
|
|
1529
1529
|
opts.context,
|
|
@@ -1532,7 +1532,7 @@ var require_ejs = __commonJS({
|
|
|
1532
1532
|
};
|
|
1533
1533
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
1534
1534
|
var filename = opts.filename;
|
|
1535
|
-
var basename =
|
|
1535
|
+
var basename = path3.basename(filename, path3.extname(filename));
|
|
1536
1536
|
try {
|
|
1537
1537
|
Object.defineProperty(returnedFn, "name", {
|
|
1538
1538
|
value: basename,
|
|
@@ -1695,7 +1695,7 @@ var require_generate_files = __commonJS({
|
|
|
1695
1695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1696
1696
|
exports.generateFiles = void 0;
|
|
1697
1697
|
var fs_1 = require("fs");
|
|
1698
|
-
var
|
|
1698
|
+
var path3 = require("path");
|
|
1699
1699
|
var nx_1 = require_nx();
|
|
1700
1700
|
var binary_extensions_1 = require_binary_extensions();
|
|
1701
1701
|
var { logger } = (0, nx_1.requireNx)();
|
|
@@ -1727,8 +1727,8 @@ var require_generate_files = __commonJS({
|
|
|
1727
1727
|
}
|
|
1728
1728
|
exports.generateFiles = generateFiles;
|
|
1729
1729
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
1730
|
-
const relativeFromSrcFolder =
|
|
1731
|
-
let computedPath =
|
|
1730
|
+
const relativeFromSrcFolder = path3.relative(srcFolder, filePath);
|
|
1731
|
+
let computedPath = path3.join(target, relativeFromSrcFolder);
|
|
1732
1732
|
if (computedPath.endsWith(".template")) {
|
|
1733
1733
|
computedPath = computedPath.substring(0, computedPath.length - 9);
|
|
1734
1734
|
}
|
|
@@ -1741,7 +1741,7 @@ var require_generate_files = __commonJS({
|
|
|
1741
1741
|
let res = [];
|
|
1742
1742
|
try {
|
|
1743
1743
|
(0, fs_1.readdirSync)(parent).forEach((c) => {
|
|
1744
|
-
const child =
|
|
1744
|
+
const child = path3.join(parent, c);
|
|
1745
1745
|
try {
|
|
1746
1746
|
const s = (0, fs_1.statSync)(child);
|
|
1747
1747
|
if (!s.isDirectory()) {
|
|
@@ -4731,7 +4731,7 @@ var require_minimatch = __commonJS({
|
|
|
4731
4731
|
"node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
4732
4732
|
module2.exports = minimatch;
|
|
4733
4733
|
minimatch.Minimatch = Minimatch;
|
|
4734
|
-
var
|
|
4734
|
+
var path3 = function() {
|
|
4735
4735
|
try {
|
|
4736
4736
|
return require("path");
|
|
4737
4737
|
} catch (e) {
|
|
@@ -4739,7 +4739,7 @@ var require_minimatch = __commonJS({
|
|
|
4739
4739
|
}() || {
|
|
4740
4740
|
sep: "/"
|
|
4741
4741
|
};
|
|
4742
|
-
minimatch.sep =
|
|
4742
|
+
minimatch.sep = path3.sep;
|
|
4743
4743
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
4744
4744
|
var expand = require_brace_expansion();
|
|
4745
4745
|
var plTypes = {
|
|
@@ -4830,8 +4830,8 @@ var require_minimatch = __commonJS({
|
|
|
4830
4830
|
if (!options)
|
|
4831
4831
|
options = {};
|
|
4832
4832
|
pattern = pattern.trim();
|
|
4833
|
-
if (!options.allowWindowsEscape &&
|
|
4834
|
-
pattern = pattern.split(
|
|
4833
|
+
if (!options.allowWindowsEscape && path3.sep !== "/") {
|
|
4834
|
+
pattern = pattern.split(path3.sep).join("/");
|
|
4835
4835
|
}
|
|
4836
4836
|
this.options = options;
|
|
4837
4837
|
this.set = [];
|
|
@@ -5208,8 +5208,8 @@ var require_minimatch = __commonJS({
|
|
|
5208
5208
|
if (f === "/" && partial)
|
|
5209
5209
|
return true;
|
|
5210
5210
|
var options = this.options;
|
|
5211
|
-
if (
|
|
5212
|
-
f = f.split(
|
|
5211
|
+
if (path3.sep !== "/") {
|
|
5212
|
+
f = f.split(path3.sep).join("/");
|
|
5213
5213
|
}
|
|
5214
5214
|
f = f.split(slashSplit);
|
|
5215
5215
|
this.debug(this.pattern, "split", f);
|
|
@@ -5367,12 +5367,12 @@ var require_inherits = __commonJS({
|
|
|
5367
5367
|
var require_path_is_absolute = __commonJS({
|
|
5368
5368
|
"node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
5369
5369
|
"use strict";
|
|
5370
|
-
function posix(
|
|
5371
|
-
return
|
|
5370
|
+
function posix(path3) {
|
|
5371
|
+
return path3.charAt(0) === "/";
|
|
5372
5372
|
}
|
|
5373
|
-
function win32(
|
|
5373
|
+
function win32(path3) {
|
|
5374
5374
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
5375
|
-
var result = splitDeviceRe.exec(
|
|
5375
|
+
var result = splitDeviceRe.exec(path3);
|
|
5376
5376
|
var device = result[1] || "";
|
|
5377
5377
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
5378
5378
|
return Boolean(result[2] || isUnc);
|
|
@@ -5397,7 +5397,7 @@ var require_common = __commonJS({
|
|
|
5397
5397
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
5398
5398
|
}
|
|
5399
5399
|
var fs2 = require("fs");
|
|
5400
|
-
var
|
|
5400
|
+
var path3 = require("path");
|
|
5401
5401
|
var minimatch = require_minimatch();
|
|
5402
5402
|
var isAbsolute = require_path_is_absolute();
|
|
5403
5403
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -5462,11 +5462,11 @@ var require_common = __commonJS({
|
|
|
5462
5462
|
if (!ownProp(options, "cwd"))
|
|
5463
5463
|
self2.cwd = cwd;
|
|
5464
5464
|
else {
|
|
5465
|
-
self2.cwd =
|
|
5465
|
+
self2.cwd = path3.resolve(options.cwd);
|
|
5466
5466
|
self2.changedCwd = self2.cwd !== cwd;
|
|
5467
5467
|
}
|
|
5468
|
-
self2.root = options.root ||
|
|
5469
|
-
self2.root =
|
|
5468
|
+
self2.root = options.root || path3.resolve(self2.cwd, "/");
|
|
5469
|
+
self2.root = path3.resolve(self2.root);
|
|
5470
5470
|
if (process.platform === "win32")
|
|
5471
5471
|
self2.root = self2.root.replace(/\\/g, "/");
|
|
5472
5472
|
self2.cwdAbs = isAbsolute(self2.cwd) ? self2.cwd : makeAbs(self2, self2.cwd);
|
|
@@ -5548,30 +5548,30 @@ var require_common = __commonJS({
|
|
|
5548
5548
|
function makeAbs(self2, f) {
|
|
5549
5549
|
var abs = f;
|
|
5550
5550
|
if (f.charAt(0) === "/") {
|
|
5551
|
-
abs =
|
|
5551
|
+
abs = path3.join(self2.root, f);
|
|
5552
5552
|
} else if (isAbsolute(f) || f === "") {
|
|
5553
5553
|
abs = f;
|
|
5554
5554
|
} else if (self2.changedCwd) {
|
|
5555
|
-
abs =
|
|
5555
|
+
abs = path3.resolve(self2.cwd, f);
|
|
5556
5556
|
} else {
|
|
5557
|
-
abs =
|
|
5557
|
+
abs = path3.resolve(f);
|
|
5558
5558
|
}
|
|
5559
5559
|
if (process.platform === "win32")
|
|
5560
5560
|
abs = abs.replace(/\\/g, "/");
|
|
5561
5561
|
return abs;
|
|
5562
5562
|
}
|
|
5563
|
-
function isIgnored(self2,
|
|
5563
|
+
function isIgnored(self2, path4) {
|
|
5564
5564
|
if (!self2.ignore.length)
|
|
5565
5565
|
return false;
|
|
5566
5566
|
return self2.ignore.some(function(item) {
|
|
5567
|
-
return item.matcher.match(
|
|
5567
|
+
return item.matcher.match(path4) || !!(item.gmatcher && item.gmatcher.match(path4));
|
|
5568
5568
|
});
|
|
5569
5569
|
}
|
|
5570
|
-
function childrenIgnored(self2,
|
|
5570
|
+
function childrenIgnored(self2, path4) {
|
|
5571
5571
|
if (!self2.ignore.length)
|
|
5572
5572
|
return false;
|
|
5573
5573
|
return self2.ignore.some(function(item) {
|
|
5574
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
5574
|
+
return !!(item.gmatcher && item.gmatcher.match(path4));
|
|
5575
5575
|
});
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
@@ -5587,7 +5587,7 @@ var require_sync = __commonJS({
|
|
|
5587
5587
|
var Minimatch = minimatch.Minimatch;
|
|
5588
5588
|
var Glob = require_glob().Glob;
|
|
5589
5589
|
var util2 = require("util");
|
|
5590
|
-
var
|
|
5590
|
+
var path3 = require("path");
|
|
5591
5591
|
var assert = require("assert");
|
|
5592
5592
|
var isAbsolute = require_path_is_absolute();
|
|
5593
5593
|
var common = require_common();
|
|
@@ -5715,7 +5715,7 @@ var require_sync = __commonJS({
|
|
|
5715
5715
|
e = prefix + e;
|
|
5716
5716
|
}
|
|
5717
5717
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
5718
|
-
e =
|
|
5718
|
+
e = path3.join(this.root, e);
|
|
5719
5719
|
}
|
|
5720
5720
|
this._emitMatch(index, e);
|
|
5721
5721
|
}
|
|
@@ -5864,9 +5864,9 @@ var require_sync = __commonJS({
|
|
|
5864
5864
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
5865
5865
|
var trail = /[\/\\]$/.test(prefix);
|
|
5866
5866
|
if (prefix.charAt(0) === "/") {
|
|
5867
|
-
prefix =
|
|
5867
|
+
prefix = path3.join(this.root, prefix);
|
|
5868
5868
|
} else {
|
|
5869
|
-
prefix =
|
|
5869
|
+
prefix = path3.resolve(this.root, prefix);
|
|
5870
5870
|
if (trail)
|
|
5871
5871
|
prefix += "/";
|
|
5872
5872
|
}
|
|
@@ -6061,7 +6061,7 @@ var require_glob = __commonJS({
|
|
|
6061
6061
|
var Minimatch = minimatch.Minimatch;
|
|
6062
6062
|
var inherits = require_inherits();
|
|
6063
6063
|
var EE = require("events").EventEmitter;
|
|
6064
|
-
var
|
|
6064
|
+
var path3 = require("path");
|
|
6065
6065
|
var assert = require("assert");
|
|
6066
6066
|
var isAbsolute = require_path_is_absolute();
|
|
6067
6067
|
var globSync = require_sync();
|
|
@@ -6344,7 +6344,7 @@ var require_glob = __commonJS({
|
|
|
6344
6344
|
e = prefix + e;
|
|
6345
6345
|
}
|
|
6346
6346
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
6347
|
-
e =
|
|
6347
|
+
e = path3.join(this.root, e);
|
|
6348
6348
|
}
|
|
6349
6349
|
this._emitMatch(index, e);
|
|
6350
6350
|
}
|
|
@@ -6531,9 +6531,9 @@ var require_glob = __commonJS({
|
|
|
6531
6531
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
6532
6532
|
var trail = /[\/\\]$/.test(prefix);
|
|
6533
6533
|
if (prefix.charAt(0) === "/") {
|
|
6534
|
-
prefix =
|
|
6534
|
+
prefix = path3.join(this.root, prefix);
|
|
6535
6535
|
} else {
|
|
6536
|
-
prefix =
|
|
6536
|
+
prefix = path3.resolve(this.root, prefix);
|
|
6537
6537
|
if (trail)
|
|
6538
6538
|
prefix += "/";
|
|
6539
6539
|
}
|
|
@@ -6611,7 +6611,7 @@ var require_glob = __commonJS({
|
|
|
6611
6611
|
var require_rimraf = __commonJS({
|
|
6612
6612
|
"node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module2) {
|
|
6613
6613
|
var assert = require("assert");
|
|
6614
|
-
var
|
|
6614
|
+
var path3 = require("path");
|
|
6615
6615
|
var fs2 = require("fs");
|
|
6616
6616
|
var glob = void 0;
|
|
6617
6617
|
try {
|
|
@@ -6793,7 +6793,7 @@ var require_rimraf = __commonJS({
|
|
|
6793
6793
|
return options.rmdir(p, cb);
|
|
6794
6794
|
let errState;
|
|
6795
6795
|
files.forEach((f) => {
|
|
6796
|
-
rimraf(
|
|
6796
|
+
rimraf(path3.join(p, f), options, (er2) => {
|
|
6797
6797
|
if (errState)
|
|
6798
6798
|
return;
|
|
6799
6799
|
if (er2)
|
|
@@ -6868,7 +6868,7 @@ var require_rimraf = __commonJS({
|
|
|
6868
6868
|
var rmkidsSync = (p, options) => {
|
|
6869
6869
|
assert(p);
|
|
6870
6870
|
assert(options);
|
|
6871
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
6871
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path3.join(p, f), options));
|
|
6872
6872
|
const retries = isWindows ? 100 : 1;
|
|
6873
6873
|
let i = 0;
|
|
6874
6874
|
do {
|
|
@@ -6893,7 +6893,7 @@ var require_tmp = __commonJS({
|
|
|
6893
6893
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
6894
6894
|
var fs2 = require("fs");
|
|
6895
6895
|
var os = require("os");
|
|
6896
|
-
var
|
|
6896
|
+
var path3 = require("path");
|
|
6897
6897
|
var crypto = require("crypto");
|
|
6898
6898
|
var _c = { fs: fs2.constants, os: os.constants };
|
|
6899
6899
|
var rimraf = require_rimraf();
|
|
@@ -7116,9 +7116,9 @@ var require_tmp = __commonJS({
|
|
|
7116
7116
|
function _generateTmpName(opts) {
|
|
7117
7117
|
const tmpDir = opts.tmpdir;
|
|
7118
7118
|
if (!_isUndefined(opts.name))
|
|
7119
|
-
return
|
|
7119
|
+
return path3.join(tmpDir, opts.dir, opts.name);
|
|
7120
7120
|
if (!_isUndefined(opts.template))
|
|
7121
|
-
return
|
|
7121
|
+
return path3.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
7122
7122
|
const name = [
|
|
7123
7123
|
opts.prefix ? opts.prefix : "tmp",
|
|
7124
7124
|
"-",
|
|
@@ -7127,7 +7127,7 @@ var require_tmp = __commonJS({
|
|
|
7127
7127
|
_randomChars(12),
|
|
7128
7128
|
opts.postfix ? "-" + opts.postfix : ""
|
|
7129
7129
|
].join("");
|
|
7130
|
-
return
|
|
7130
|
+
return path3.join(tmpDir, opts.dir, name);
|
|
7131
7131
|
}
|
|
7132
7132
|
function _assertAndSanitizeOptions(options) {
|
|
7133
7133
|
options.tmpdir = _getTmpDir(options);
|
|
@@ -7148,9 +7148,9 @@ var require_tmp = __commonJS({
|
|
|
7148
7148
|
options.detachDescriptor = !!options.detachDescriptor;
|
|
7149
7149
|
options.discardDescriptor = !!options.discardDescriptor;
|
|
7150
7150
|
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
7151
|
-
options.dir = _isUndefined(options.dir) ? "" :
|
|
7152
|
-
options.template = _isUndefined(options.template) ? void 0 :
|
|
7153
|
-
options.template = _isBlank(options.template) ? void 0 :
|
|
7151
|
+
options.dir = _isUndefined(options.dir) ? "" : path3.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
7152
|
+
options.template = _isUndefined(options.template) ? void 0 : path3.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
7153
|
+
options.template = _isBlank(options.template) ? void 0 : path3.relative(options.dir, options.template);
|
|
7154
7154
|
options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
|
|
7155
7155
|
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
7156
7156
|
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
@@ -7158,9 +7158,9 @@ var require_tmp = __commonJS({
|
|
|
7158
7158
|
function _resolvePath(name, tmpDir) {
|
|
7159
7159
|
const sanitizedName = _sanitizeName(name);
|
|
7160
7160
|
if (sanitizedName.startsWith(tmpDir)) {
|
|
7161
|
-
return
|
|
7161
|
+
return path3.resolve(sanitizedName);
|
|
7162
7162
|
} else {
|
|
7163
|
-
return
|
|
7163
|
+
return path3.resolve(path3.join(tmpDir, sanitizedName));
|
|
7164
7164
|
}
|
|
7165
7165
|
}
|
|
7166
7166
|
function _sanitizeName(name) {
|
|
@@ -7171,13 +7171,13 @@ var require_tmp = __commonJS({
|
|
|
7171
7171
|
}
|
|
7172
7172
|
function _assertIsRelative(name, option, tmpDir) {
|
|
7173
7173
|
if (option === "name") {
|
|
7174
|
-
if (
|
|
7174
|
+
if (path3.isAbsolute(name))
|
|
7175
7175
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
7176
|
-
let basename =
|
|
7176
|
+
let basename = path3.basename(name);
|
|
7177
7177
|
if (basename === ".." || basename === "." || basename !== name)
|
|
7178
7178
|
throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
7179
7179
|
} else {
|
|
7180
|
-
if (
|
|
7180
|
+
if (path3.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
7181
7181
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
7182
7182
|
}
|
|
7183
7183
|
let resolvedPath = _resolvePath(name, tmpDir);
|
|
@@ -7198,7 +7198,7 @@ var require_tmp = __commonJS({
|
|
|
7198
7198
|
_gracefulCleanup = true;
|
|
7199
7199
|
}
|
|
7200
7200
|
function _getTmpDir(options) {
|
|
7201
|
-
return
|
|
7201
|
+
return path3.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
|
|
7202
7202
|
}
|
|
7203
7203
|
process.addListener(EXIT, _garbageCollector);
|
|
7204
7204
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -7809,17 +7809,17 @@ var require_ignore = __commonJS({
|
|
|
7809
7809
|
var throwError = (message, Ctor) => {
|
|
7810
7810
|
throw new Ctor(message);
|
|
7811
7811
|
};
|
|
7812
|
-
var checkPath = (
|
|
7813
|
-
if (!isString(
|
|
7812
|
+
var checkPath = (path3, originalPath, doThrow) => {
|
|
7813
|
+
if (!isString(path3)) {
|
|
7814
7814
|
return doThrow(
|
|
7815
7815
|
`path must be a string, but got \`${originalPath}\``,
|
|
7816
7816
|
TypeError
|
|
7817
7817
|
);
|
|
7818
7818
|
}
|
|
7819
|
-
if (!
|
|
7819
|
+
if (!path3) {
|
|
7820
7820
|
return doThrow(`path must not be empty`, TypeError);
|
|
7821
7821
|
}
|
|
7822
|
-
if (checkPath.isNotRelative(
|
|
7822
|
+
if (checkPath.isNotRelative(path3)) {
|
|
7823
7823
|
const r = "`path.relative()`d";
|
|
7824
7824
|
return doThrow(
|
|
7825
7825
|
`path should be a ${r} string, but got "${originalPath}"`,
|
|
@@ -7828,7 +7828,7 @@ var require_ignore = __commonJS({
|
|
|
7828
7828
|
}
|
|
7829
7829
|
return true;
|
|
7830
7830
|
};
|
|
7831
|
-
var isNotRelative = (
|
|
7831
|
+
var isNotRelative = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
|
|
7832
7832
|
checkPath.isNotRelative = isNotRelative;
|
|
7833
7833
|
checkPath.convert = (p) => p;
|
|
7834
7834
|
var Ignore = class {
|
|
@@ -7887,7 +7887,7 @@ var require_ignore = __commonJS({
|
|
|
7887
7887
|
// setting `checkUnignored` to `false` could reduce additional
|
|
7888
7888
|
// path matching.
|
|
7889
7889
|
// @returns {TestResult} true if a file is ignored
|
|
7890
|
-
_testOne(
|
|
7890
|
+
_testOne(path3, checkUnignored) {
|
|
7891
7891
|
let ignored = false;
|
|
7892
7892
|
let unignored = false;
|
|
7893
7893
|
this._rules.forEach((rule) => {
|
|
@@ -7895,7 +7895,7 @@ var require_ignore = __commonJS({
|
|
|
7895
7895
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
7896
7896
|
return;
|
|
7897
7897
|
}
|
|
7898
|
-
const matched = rule.regex.test(
|
|
7898
|
+
const matched = rule.regex.test(path3);
|
|
7899
7899
|
if (matched) {
|
|
7900
7900
|
ignored = !negative;
|
|
7901
7901
|
unignored = negative;
|
|
@@ -7908,24 +7908,24 @@ var require_ignore = __commonJS({
|
|
|
7908
7908
|
}
|
|
7909
7909
|
// @returns {TestResult}
|
|
7910
7910
|
_test(originalPath, cache, checkUnignored, slices) {
|
|
7911
|
-
const
|
|
7911
|
+
const path3 = originalPath && checkPath.convert(originalPath);
|
|
7912
7912
|
checkPath(
|
|
7913
|
-
|
|
7913
|
+
path3,
|
|
7914
7914
|
originalPath,
|
|
7915
7915
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
7916
7916
|
);
|
|
7917
|
-
return this._t(
|
|
7917
|
+
return this._t(path3, cache, checkUnignored, slices);
|
|
7918
7918
|
}
|
|
7919
|
-
_t(
|
|
7920
|
-
if (
|
|
7921
|
-
return cache[
|
|
7919
|
+
_t(path3, cache, checkUnignored, slices) {
|
|
7920
|
+
if (path3 in cache) {
|
|
7921
|
+
return cache[path3];
|
|
7922
7922
|
}
|
|
7923
7923
|
if (!slices) {
|
|
7924
|
-
slices =
|
|
7924
|
+
slices = path3.split(SLASH);
|
|
7925
7925
|
}
|
|
7926
7926
|
slices.pop();
|
|
7927
7927
|
if (!slices.length) {
|
|
7928
|
-
return cache[
|
|
7928
|
+
return cache[path3] = this._testOne(path3, checkUnignored);
|
|
7929
7929
|
}
|
|
7930
7930
|
const parent = this._t(
|
|
7931
7931
|
slices.join(SLASH) + SLASH,
|
|
@@ -7933,24 +7933,24 @@ var require_ignore = __commonJS({
|
|
|
7933
7933
|
checkUnignored,
|
|
7934
7934
|
slices
|
|
7935
7935
|
);
|
|
7936
|
-
return cache[
|
|
7936
|
+
return cache[path3] = parent.ignored ? parent : this._testOne(path3, checkUnignored);
|
|
7937
7937
|
}
|
|
7938
|
-
ignores(
|
|
7939
|
-
return this._test(
|
|
7938
|
+
ignores(path3) {
|
|
7939
|
+
return this._test(path3, this._ignoreCache, false).ignored;
|
|
7940
7940
|
}
|
|
7941
7941
|
createFilter() {
|
|
7942
|
-
return (
|
|
7942
|
+
return (path3) => !this.ignores(path3);
|
|
7943
7943
|
}
|
|
7944
7944
|
filter(paths) {
|
|
7945
7945
|
return makeArray(paths).filter(this.createFilter());
|
|
7946
7946
|
}
|
|
7947
7947
|
// @returns {TestResult}
|
|
7948
|
-
test(
|
|
7949
|
-
return this._test(
|
|
7948
|
+
test(path3) {
|
|
7949
|
+
return this._test(path3, this._testCache, true);
|
|
7950
7950
|
}
|
|
7951
7951
|
};
|
|
7952
7952
|
var factory = (options) => new Ignore(options);
|
|
7953
|
-
var isPathValid = (
|
|
7953
|
+
var isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
|
|
7954
7954
|
factory.isPathValid = isPathValid;
|
|
7955
7955
|
factory.default = factory;
|
|
7956
7956
|
module2.exports = factory;
|
|
@@ -7961,7 +7961,7 @@ var require_ignore = __commonJS({
|
|
|
7961
7961
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
7962
7962
|
checkPath.convert = makePosix;
|
|
7963
7963
|
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
7964
|
-
checkPath.isNotRelative = (
|
|
7964
|
+
checkPath.isNotRelative = (path3) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
|
|
7965
7965
|
}
|
|
7966
7966
|
}
|
|
7967
7967
|
});
|
|
@@ -8002,8 +8002,8 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
8004
|
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
8005
|
-
function normalizePathRelativeToRoot(
|
|
8006
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root,
|
|
8005
|
+
function normalizePathRelativeToRoot(path3, root) {
|
|
8006
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path3)).split(path_1.sep).join("/");
|
|
8007
8007
|
}
|
|
8008
8008
|
}
|
|
8009
8009
|
});
|
|
@@ -8384,8 +8384,8 @@ var require_invoke_nx_generator = __commonJS({
|
|
|
8384
8384
|
}
|
|
8385
8385
|
return fileChanges;
|
|
8386
8386
|
}
|
|
8387
|
-
normalize(
|
|
8388
|
-
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root,
|
|
8387
|
+
normalize(path3) {
|
|
8388
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path3));
|
|
8389
8389
|
}
|
|
8390
8390
|
read(filePath, encoding) {
|
|
8391
8391
|
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
@@ -19156,15 +19156,15 @@ var require_route = __commonJS({
|
|
|
19156
19156
|
};
|
|
19157
19157
|
}
|
|
19158
19158
|
function wrapConversion(toModel, graph) {
|
|
19159
|
-
const
|
|
19159
|
+
const path3 = [graph[toModel].parent, toModel];
|
|
19160
19160
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
19161
19161
|
let cur = graph[toModel].parent;
|
|
19162
19162
|
while (graph[cur].parent) {
|
|
19163
|
-
|
|
19163
|
+
path3.unshift(graph[cur].parent);
|
|
19164
19164
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
19165
19165
|
cur = graph[cur].parent;
|
|
19166
19166
|
}
|
|
19167
|
-
fn.conversion =
|
|
19167
|
+
fn.conversion = path3;
|
|
19168
19168
|
return fn;
|
|
19169
19169
|
}
|
|
19170
19170
|
module2.exports = function(fromModel) {
|
|
@@ -21567,7 +21567,7 @@ var require_transforms = __commonJS({
|
|
|
21567
21567
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/common/transforms.js"(exports, module2) {
|
|
21568
21568
|
var Color = require_tinycolor();
|
|
21569
21569
|
var _ = require_es6();
|
|
21570
|
-
var
|
|
21570
|
+
var path3 = require("path");
|
|
21571
21571
|
var convertToBase64 = require_convertToBase64();
|
|
21572
21572
|
var UNICODE_PATTERN = /&#x([^;]+);/g;
|
|
21573
21573
|
function isColor(token) {
|
|
@@ -21787,8 +21787,8 @@ var require_transforms = __commonJS({
|
|
|
21787
21787
|
"name/ti/constant": {
|
|
21788
21788
|
type: "name",
|
|
21789
21789
|
transformer: function(token, options) {
|
|
21790
|
-
var
|
|
21791
|
-
return _.snakeCase([options.prefix].concat(
|
|
21790
|
+
var path4 = token.path.slice(1);
|
|
21791
|
+
return _.snakeCase([options.prefix].concat(path4).join(" ")).toUpperCase();
|
|
21792
21792
|
}
|
|
21793
21793
|
},
|
|
21794
21794
|
/**
|
|
@@ -22543,7 +22543,7 @@ var require_transforms = __commonJS({
|
|
|
22543
22543
|
type: "value",
|
|
22544
22544
|
matcher: isAsset,
|
|
22545
22545
|
transformer: function(token) {
|
|
22546
|
-
return
|
|
22546
|
+
return path3.join(process.cwd(), token.value);
|
|
22547
22547
|
}
|
|
22548
22548
|
},
|
|
22549
22549
|
/**
|
|
@@ -24605,7 +24605,7 @@ var require_formatHelpers = __commonJS({
|
|
|
24605
24605
|
var require_formats = __commonJS({
|
|
24606
24606
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/common/formats.js"(exports, module2) {
|
|
24607
24607
|
var fs2 = require("fs");
|
|
24608
|
-
var
|
|
24608
|
+
var path3 = require("path");
|
|
24609
24609
|
var _template = require_template();
|
|
24610
24610
|
var GroupMessages = require_groupMessages();
|
|
24611
24611
|
var {
|
|
@@ -25038,7 +25038,7 @@ var require_formats = __commonJS({
|
|
|
25038
25038
|
return type;
|
|
25039
25039
|
}
|
|
25040
25040
|
const designTokenInterface = fs2.readFileSync(
|
|
25041
|
-
|
|
25041
|
+
path3.resolve(__dirname, `../../types/DesignToken.d.ts`),
|
|
25042
25042
|
{ encoding: "UTF-8" }
|
|
25043
25043
|
);
|
|
25044
25044
|
const lines = designTokenInterface.split("\n");
|
|
@@ -25828,7 +25828,7 @@ var require_polyfills = __commonJS({
|
|
|
25828
25828
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
25829
25829
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
25830
25830
|
if (fs2.chmod && !fs2.lchmod) {
|
|
25831
|
-
fs2.lchmod = function(
|
|
25831
|
+
fs2.lchmod = function(path3, mode, cb) {
|
|
25832
25832
|
if (cb)
|
|
25833
25833
|
process.nextTick(cb);
|
|
25834
25834
|
};
|
|
@@ -25836,7 +25836,7 @@ var require_polyfills = __commonJS({
|
|
|
25836
25836
|
};
|
|
25837
25837
|
}
|
|
25838
25838
|
if (fs2.chown && !fs2.lchown) {
|
|
25839
|
-
fs2.lchown = function(
|
|
25839
|
+
fs2.lchown = function(path3, uid, gid, cb) {
|
|
25840
25840
|
if (cb)
|
|
25841
25841
|
process.nextTick(cb);
|
|
25842
25842
|
};
|
|
@@ -25907,9 +25907,9 @@ var require_polyfills = __commonJS({
|
|
|
25907
25907
|
};
|
|
25908
25908
|
}(fs2.readSync);
|
|
25909
25909
|
function patchLchmod(fs3) {
|
|
25910
|
-
fs3.lchmod = function(
|
|
25910
|
+
fs3.lchmod = function(path3, mode, callback) {
|
|
25911
25911
|
fs3.open(
|
|
25912
|
-
|
|
25912
|
+
path3,
|
|
25913
25913
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
25914
25914
|
mode,
|
|
25915
25915
|
function(err, fd) {
|
|
@@ -25927,8 +25927,8 @@ var require_polyfills = __commonJS({
|
|
|
25927
25927
|
}
|
|
25928
25928
|
);
|
|
25929
25929
|
};
|
|
25930
|
-
fs3.lchmodSync = function(
|
|
25931
|
-
var fd = fs3.openSync(
|
|
25930
|
+
fs3.lchmodSync = function(path3, mode) {
|
|
25931
|
+
var fd = fs3.openSync(path3, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
25932
25932
|
var threw = true;
|
|
25933
25933
|
var ret;
|
|
25934
25934
|
try {
|
|
@@ -25949,8 +25949,8 @@ var require_polyfills = __commonJS({
|
|
|
25949
25949
|
}
|
|
25950
25950
|
function patchLutimes(fs3) {
|
|
25951
25951
|
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
25952
|
-
fs3.lutimes = function(
|
|
25953
|
-
fs3.open(
|
|
25952
|
+
fs3.lutimes = function(path3, at, mt, cb) {
|
|
25953
|
+
fs3.open(path3, constants.O_SYMLINK, function(er, fd) {
|
|
25954
25954
|
if (er) {
|
|
25955
25955
|
if (cb)
|
|
25956
25956
|
cb(er);
|
|
@@ -25964,8 +25964,8 @@ var require_polyfills = __commonJS({
|
|
|
25964
25964
|
});
|
|
25965
25965
|
});
|
|
25966
25966
|
};
|
|
25967
|
-
fs3.lutimesSync = function(
|
|
25968
|
-
var fd = fs3.openSync(
|
|
25967
|
+
fs3.lutimesSync = function(path3, at, mt) {
|
|
25968
|
+
var fd = fs3.openSync(path3, constants.O_SYMLINK);
|
|
25969
25969
|
var ret;
|
|
25970
25970
|
var threw = true;
|
|
25971
25971
|
try {
|
|
@@ -26101,12 +26101,12 @@ var require_legacy_streams = __commonJS({
|
|
|
26101
26101
|
ReadStream,
|
|
26102
26102
|
WriteStream
|
|
26103
26103
|
};
|
|
26104
|
-
function ReadStream(
|
|
26104
|
+
function ReadStream(path3, options) {
|
|
26105
26105
|
if (!(this instanceof ReadStream))
|
|
26106
|
-
return new ReadStream(
|
|
26106
|
+
return new ReadStream(path3, options);
|
|
26107
26107
|
Stream.call(this);
|
|
26108
26108
|
var self2 = this;
|
|
26109
|
-
this.path =
|
|
26109
|
+
this.path = path3;
|
|
26110
26110
|
this.fd = null;
|
|
26111
26111
|
this.readable = true;
|
|
26112
26112
|
this.paused = false;
|
|
@@ -26152,11 +26152,11 @@ var require_legacy_streams = __commonJS({
|
|
|
26152
26152
|
self2._read();
|
|
26153
26153
|
});
|
|
26154
26154
|
}
|
|
26155
|
-
function WriteStream(
|
|
26155
|
+
function WriteStream(path3, options) {
|
|
26156
26156
|
if (!(this instanceof WriteStream))
|
|
26157
|
-
return new WriteStream(
|
|
26157
|
+
return new WriteStream(path3, options);
|
|
26158
26158
|
Stream.call(this);
|
|
26159
|
-
this.path =
|
|
26159
|
+
this.path = path3;
|
|
26160
26160
|
this.fd = null;
|
|
26161
26161
|
this.writable = true;
|
|
26162
26162
|
this.flags = "w";
|
|
@@ -26299,14 +26299,14 @@ var require_graceful_fs = __commonJS({
|
|
|
26299
26299
|
fs3.createWriteStream = createWriteStream;
|
|
26300
26300
|
var fs$readFile = fs3.readFile;
|
|
26301
26301
|
fs3.readFile = readFile;
|
|
26302
|
-
function readFile(
|
|
26302
|
+
function readFile(path3, options, cb) {
|
|
26303
26303
|
if (typeof options === "function")
|
|
26304
26304
|
cb = options, options = null;
|
|
26305
|
-
return go$readFile(
|
|
26306
|
-
function go$readFile(
|
|
26307
|
-
return fs$readFile(
|
|
26305
|
+
return go$readFile(path3, options, cb);
|
|
26306
|
+
function go$readFile(path4, options2, cb2, startTime) {
|
|
26307
|
+
return fs$readFile(path4, options2, function(err) {
|
|
26308
26308
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
26309
|
-
enqueue([go$readFile, [
|
|
26309
|
+
enqueue([go$readFile, [path4, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
26310
26310
|
else {
|
|
26311
26311
|
if (typeof cb2 === "function")
|
|
26312
26312
|
cb2.apply(this, arguments);
|
|
@@ -26316,14 +26316,14 @@ var require_graceful_fs = __commonJS({
|
|
|
26316
26316
|
}
|
|
26317
26317
|
var fs$writeFile = fs3.writeFile;
|
|
26318
26318
|
fs3.writeFile = writeFile;
|
|
26319
|
-
function writeFile(
|
|
26319
|
+
function writeFile(path3, data, options, cb) {
|
|
26320
26320
|
if (typeof options === "function")
|
|
26321
26321
|
cb = options, options = null;
|
|
26322
|
-
return go$writeFile(
|
|
26323
|
-
function go$writeFile(
|
|
26324
|
-
return fs$writeFile(
|
|
26322
|
+
return go$writeFile(path3, data, options, cb);
|
|
26323
|
+
function go$writeFile(path4, data2, options2, cb2, startTime) {
|
|
26324
|
+
return fs$writeFile(path4, data2, options2, function(err) {
|
|
26325
26325
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
26326
|
-
enqueue([go$writeFile, [
|
|
26326
|
+
enqueue([go$writeFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
26327
26327
|
else {
|
|
26328
26328
|
if (typeof cb2 === "function")
|
|
26329
26329
|
cb2.apply(this, arguments);
|
|
@@ -26334,14 +26334,14 @@ var require_graceful_fs = __commonJS({
|
|
|
26334
26334
|
var fs$appendFile = fs3.appendFile;
|
|
26335
26335
|
if (fs$appendFile)
|
|
26336
26336
|
fs3.appendFile = appendFile;
|
|
26337
|
-
function appendFile(
|
|
26337
|
+
function appendFile(path3, data, options, cb) {
|
|
26338
26338
|
if (typeof options === "function")
|
|
26339
26339
|
cb = options, options = null;
|
|
26340
|
-
return go$appendFile(
|
|
26341
|
-
function go$appendFile(
|
|
26342
|
-
return fs$appendFile(
|
|
26340
|
+
return go$appendFile(path3, data, options, cb);
|
|
26341
|
+
function go$appendFile(path4, data2, options2, cb2, startTime) {
|
|
26342
|
+
return fs$appendFile(path4, data2, options2, function(err) {
|
|
26343
26343
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
26344
|
-
enqueue([go$appendFile, [
|
|
26344
|
+
enqueue([go$appendFile, [path4, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
26345
26345
|
else {
|
|
26346
26346
|
if (typeof cb2 === "function")
|
|
26347
26347
|
cb2.apply(this, arguments);
|
|
@@ -26372,31 +26372,31 @@ var require_graceful_fs = __commonJS({
|
|
|
26372
26372
|
var fs$readdir = fs3.readdir;
|
|
26373
26373
|
fs3.readdir = readdir;
|
|
26374
26374
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
26375
|
-
function readdir(
|
|
26375
|
+
function readdir(path3, options, cb) {
|
|
26376
26376
|
if (typeof options === "function")
|
|
26377
26377
|
cb = options, options = null;
|
|
26378
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
26379
|
-
return fs$readdir(
|
|
26380
|
-
|
|
26378
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path4, options2, cb2, startTime) {
|
|
26379
|
+
return fs$readdir(path4, fs$readdirCallback(
|
|
26380
|
+
path4,
|
|
26381
26381
|
options2,
|
|
26382
26382
|
cb2,
|
|
26383
26383
|
startTime
|
|
26384
26384
|
));
|
|
26385
|
-
} : function go$readdir2(
|
|
26386
|
-
return fs$readdir(
|
|
26387
|
-
|
|
26385
|
+
} : function go$readdir2(path4, options2, cb2, startTime) {
|
|
26386
|
+
return fs$readdir(path4, options2, fs$readdirCallback(
|
|
26387
|
+
path4,
|
|
26388
26388
|
options2,
|
|
26389
26389
|
cb2,
|
|
26390
26390
|
startTime
|
|
26391
26391
|
));
|
|
26392
26392
|
};
|
|
26393
|
-
return go$readdir(
|
|
26394
|
-
function fs$readdirCallback(
|
|
26393
|
+
return go$readdir(path3, options, cb);
|
|
26394
|
+
function fs$readdirCallback(path4, options2, cb2, startTime) {
|
|
26395
26395
|
return function(err, files) {
|
|
26396
26396
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
26397
26397
|
enqueue([
|
|
26398
26398
|
go$readdir,
|
|
26399
|
-
[
|
|
26399
|
+
[path4, options2, cb2],
|
|
26400
26400
|
err,
|
|
26401
26401
|
startTime || Date.now(),
|
|
26402
26402
|
Date.now()
|
|
@@ -26467,7 +26467,7 @@ var require_graceful_fs = __commonJS({
|
|
|
26467
26467
|
enumerable: true,
|
|
26468
26468
|
configurable: true
|
|
26469
26469
|
});
|
|
26470
|
-
function ReadStream(
|
|
26470
|
+
function ReadStream(path3, options) {
|
|
26471
26471
|
if (this instanceof ReadStream)
|
|
26472
26472
|
return fs$ReadStream.apply(this, arguments), this;
|
|
26473
26473
|
else
|
|
@@ -26487,7 +26487,7 @@ var require_graceful_fs = __commonJS({
|
|
|
26487
26487
|
}
|
|
26488
26488
|
});
|
|
26489
26489
|
}
|
|
26490
|
-
function WriteStream(
|
|
26490
|
+
function WriteStream(path3, options) {
|
|
26491
26491
|
if (this instanceof WriteStream)
|
|
26492
26492
|
return fs$WriteStream.apply(this, arguments), this;
|
|
26493
26493
|
else
|
|
@@ -26505,22 +26505,22 @@ var require_graceful_fs = __commonJS({
|
|
|
26505
26505
|
}
|
|
26506
26506
|
});
|
|
26507
26507
|
}
|
|
26508
|
-
function createReadStream(
|
|
26509
|
-
return new fs3.ReadStream(
|
|
26508
|
+
function createReadStream(path3, options) {
|
|
26509
|
+
return new fs3.ReadStream(path3, options);
|
|
26510
26510
|
}
|
|
26511
|
-
function createWriteStream(
|
|
26512
|
-
return new fs3.WriteStream(
|
|
26511
|
+
function createWriteStream(path3, options) {
|
|
26512
|
+
return new fs3.WriteStream(path3, options);
|
|
26513
26513
|
}
|
|
26514
26514
|
var fs$open = fs3.open;
|
|
26515
26515
|
fs3.open = open;
|
|
26516
|
-
function open(
|
|
26516
|
+
function open(path3, flags, mode, cb) {
|
|
26517
26517
|
if (typeof mode === "function")
|
|
26518
26518
|
cb = mode, mode = null;
|
|
26519
|
-
return go$open(
|
|
26520
|
-
function go$open(
|
|
26521
|
-
return fs$open(
|
|
26519
|
+
return go$open(path3, flags, mode, cb);
|
|
26520
|
+
function go$open(path4, flags2, mode2, cb2, startTime) {
|
|
26521
|
+
return fs$open(path4, flags2, mode2, function(err, fd) {
|
|
26522
26522
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
26523
|
-
enqueue([go$open, [
|
|
26523
|
+
enqueue([go$open, [path4, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
26524
26524
|
else {
|
|
26525
26525
|
if (typeof cb2 === "function")
|
|
26526
26526
|
cb2.apply(this, arguments);
|
|
@@ -26693,10 +26693,10 @@ var require_fs2 = __commonJS({
|
|
|
26693
26693
|
var require_utils2 = __commonJS({
|
|
26694
26694
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
26695
26695
|
"use strict";
|
|
26696
|
-
var
|
|
26696
|
+
var path3 = require("path");
|
|
26697
26697
|
module2.exports.checkPath = function checkPath(pth) {
|
|
26698
26698
|
if (process.platform === "win32") {
|
|
26699
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
26699
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
|
|
26700
26700
|
if (pathHasInvalidWinCharacters) {
|
|
26701
26701
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
26702
26702
|
error.code = "EINVAL";
|
|
@@ -26761,8 +26761,8 @@ var require_path_exists = __commonJS({
|
|
|
26761
26761
|
"use strict";
|
|
26762
26762
|
var u = require_universalify().fromPromise;
|
|
26763
26763
|
var fs2 = require_fs2();
|
|
26764
|
-
function pathExists(
|
|
26765
|
-
return fs2.access(
|
|
26764
|
+
function pathExists(path3) {
|
|
26765
|
+
return fs2.access(path3).then(() => true).catch(() => false);
|
|
26766
26766
|
}
|
|
26767
26767
|
module2.exports = {
|
|
26768
26768
|
pathExists: u(pathExists),
|
|
@@ -26776,8 +26776,8 @@ var require_utimes = __commonJS({
|
|
|
26776
26776
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
|
|
26777
26777
|
"use strict";
|
|
26778
26778
|
var fs2 = require_graceful_fs();
|
|
26779
|
-
function utimesMillis(
|
|
26780
|
-
fs2.open(
|
|
26779
|
+
function utimesMillis(path3, atime, mtime, callback) {
|
|
26780
|
+
fs2.open(path3, "r+", (err, fd) => {
|
|
26781
26781
|
if (err)
|
|
26782
26782
|
return callback(err);
|
|
26783
26783
|
fs2.futimes(fd, atime, mtime, (futimesErr) => {
|
|
@@ -26788,8 +26788,8 @@ var require_utimes = __commonJS({
|
|
|
26788
26788
|
});
|
|
26789
26789
|
});
|
|
26790
26790
|
}
|
|
26791
|
-
function utimesMillisSync(
|
|
26792
|
-
const fd = fs2.openSync(
|
|
26791
|
+
function utimesMillisSync(path3, atime, mtime) {
|
|
26792
|
+
const fd = fs2.openSync(path3, "r+");
|
|
26793
26793
|
fs2.futimesSync(fd, atime, mtime);
|
|
26794
26794
|
return fs2.closeSync(fd);
|
|
26795
26795
|
}
|
|
@@ -26805,7 +26805,7 @@ var require_stat = __commonJS({
|
|
|
26805
26805
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
26806
26806
|
"use strict";
|
|
26807
26807
|
var fs2 = require_fs2();
|
|
26808
|
-
var
|
|
26808
|
+
var path3 = require("path");
|
|
26809
26809
|
var util2 = require("util");
|
|
26810
26810
|
function getStats(src, dest, opts) {
|
|
26811
26811
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -26838,8 +26838,8 @@ var require_stat = __commonJS({
|
|
|
26838
26838
|
const { srcStat, destStat } = stats;
|
|
26839
26839
|
if (destStat) {
|
|
26840
26840
|
if (areIdentical(srcStat, destStat)) {
|
|
26841
|
-
const srcBaseName =
|
|
26842
|
-
const destBaseName =
|
|
26841
|
+
const srcBaseName = path3.basename(src);
|
|
26842
|
+
const destBaseName = path3.basename(dest);
|
|
26843
26843
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
26844
26844
|
return cb(null, { srcStat, destStat, isChangingCase: true });
|
|
26845
26845
|
}
|
|
@@ -26862,8 +26862,8 @@ var require_stat = __commonJS({
|
|
|
26862
26862
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
26863
26863
|
if (destStat) {
|
|
26864
26864
|
if (areIdentical(srcStat, destStat)) {
|
|
26865
|
-
const srcBaseName =
|
|
26866
|
-
const destBaseName =
|
|
26865
|
+
const srcBaseName = path3.basename(src);
|
|
26866
|
+
const destBaseName = path3.basename(dest);
|
|
26867
26867
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
26868
26868
|
return { srcStat, destStat, isChangingCase: true };
|
|
26869
26869
|
}
|
|
@@ -26882,9 +26882,9 @@ var require_stat = __commonJS({
|
|
|
26882
26882
|
return { srcStat, destStat };
|
|
26883
26883
|
}
|
|
26884
26884
|
function checkParentPaths(src, srcStat, dest, funcName, cb) {
|
|
26885
|
-
const srcParent =
|
|
26886
|
-
const destParent =
|
|
26887
|
-
if (destParent === srcParent || destParent ===
|
|
26885
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
26886
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
26887
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root)
|
|
26888
26888
|
return cb();
|
|
26889
26889
|
fs2.stat(destParent, { bigint: true }, (err, destStat) => {
|
|
26890
26890
|
if (err) {
|
|
@@ -26899,9 +26899,9 @@ var require_stat = __commonJS({
|
|
|
26899
26899
|
});
|
|
26900
26900
|
}
|
|
26901
26901
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
26902
|
-
const srcParent =
|
|
26903
|
-
const destParent =
|
|
26904
|
-
if (destParent === srcParent || destParent ===
|
|
26902
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
26903
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
26904
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root)
|
|
26905
26905
|
return;
|
|
26906
26906
|
let destStat;
|
|
26907
26907
|
try {
|
|
@@ -26920,8 +26920,8 @@ var require_stat = __commonJS({
|
|
|
26920
26920
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
26921
26921
|
}
|
|
26922
26922
|
function isSrcSubdir(src, dest) {
|
|
26923
|
-
const srcArr =
|
|
26924
|
-
const destArr =
|
|
26923
|
+
const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
|
|
26924
|
+
const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
|
|
26925
26925
|
return srcArr.reduce((acc, cur, i) => acc && destArr[i] === cur, true);
|
|
26926
26926
|
}
|
|
26927
26927
|
function errMsg(src, dest, funcName) {
|
|
@@ -26943,7 +26943,7 @@ var require_copy = __commonJS({
|
|
|
26943
26943
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
26944
26944
|
"use strict";
|
|
26945
26945
|
var fs2 = require_graceful_fs();
|
|
26946
|
-
var
|
|
26946
|
+
var path3 = require("path");
|
|
26947
26947
|
var mkdirs = require_mkdirs().mkdirs;
|
|
26948
26948
|
var pathExists = require_path_exists().pathExists;
|
|
26949
26949
|
var utimesMillis = require_utimes().utimesMillis;
|
|
@@ -26981,7 +26981,7 @@ var require_copy = __commonJS({
|
|
|
26981
26981
|
});
|
|
26982
26982
|
}
|
|
26983
26983
|
function checkParentDir(destStat, src, dest, opts, cb) {
|
|
26984
|
-
const destParent =
|
|
26984
|
+
const destParent = path3.dirname(dest);
|
|
26985
26985
|
pathExists(destParent, (err, dirExists) => {
|
|
26986
26986
|
if (err)
|
|
26987
26987
|
return cb(err);
|
|
@@ -27113,8 +27113,8 @@ var require_copy = __commonJS({
|
|
|
27113
27113
|
return copyDirItem(items, item, src, dest, opts, cb);
|
|
27114
27114
|
}
|
|
27115
27115
|
function copyDirItem(items, item, src, dest, opts, cb) {
|
|
27116
|
-
const srcItem =
|
|
27117
|
-
const destItem =
|
|
27116
|
+
const srcItem = path3.join(src, item);
|
|
27117
|
+
const destItem = path3.join(dest, item);
|
|
27118
27118
|
stat.checkPaths(srcItem, destItem, "copy", opts, (err, stats) => {
|
|
27119
27119
|
if (err)
|
|
27120
27120
|
return cb(err);
|
|
@@ -27131,7 +27131,7 @@ var require_copy = __commonJS({
|
|
|
27131
27131
|
if (err)
|
|
27132
27132
|
return cb(err);
|
|
27133
27133
|
if (opts.dereference) {
|
|
27134
|
-
resolvedSrc =
|
|
27134
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
27135
27135
|
}
|
|
27136
27136
|
if (!destStat) {
|
|
27137
27137
|
return fs2.symlink(resolvedSrc, dest, cb);
|
|
@@ -27143,7 +27143,7 @@ var require_copy = __commonJS({
|
|
|
27143
27143
|
return cb(err2);
|
|
27144
27144
|
}
|
|
27145
27145
|
if (opts.dereference) {
|
|
27146
|
-
resolvedDest =
|
|
27146
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
27147
27147
|
}
|
|
27148
27148
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
27149
27149
|
return cb(new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`));
|
|
@@ -27172,7 +27172,7 @@ var require_copy_sync = __commonJS({
|
|
|
27172
27172
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
27173
27173
|
"use strict";
|
|
27174
27174
|
var fs2 = require_graceful_fs();
|
|
27175
|
-
var
|
|
27175
|
+
var path3 = require("path");
|
|
27176
27176
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
27177
27177
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
27178
27178
|
var stat = require_stat();
|
|
@@ -27197,7 +27197,7 @@ var require_copy_sync = __commonJS({
|
|
|
27197
27197
|
function handleFilterAndCopy(destStat, src, dest, opts) {
|
|
27198
27198
|
if (opts.filter && !opts.filter(src, dest))
|
|
27199
27199
|
return;
|
|
27200
|
-
const destParent =
|
|
27200
|
+
const destParent = path3.dirname(dest);
|
|
27201
27201
|
if (!fs2.existsSync(destParent))
|
|
27202
27202
|
mkdirsSync(destParent);
|
|
27203
27203
|
return getStats(destStat, src, dest, opts);
|
|
@@ -27273,15 +27273,15 @@ var require_copy_sync = __commonJS({
|
|
|
27273
27273
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
27274
27274
|
}
|
|
27275
27275
|
function copyDirItem(item, src, dest, opts) {
|
|
27276
|
-
const srcItem =
|
|
27277
|
-
const destItem =
|
|
27276
|
+
const srcItem = path3.join(src, item);
|
|
27277
|
+
const destItem = path3.join(dest, item);
|
|
27278
27278
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
27279
27279
|
return startCopy(destStat, srcItem, destItem, opts);
|
|
27280
27280
|
}
|
|
27281
27281
|
function onLink(destStat, src, dest, opts) {
|
|
27282
27282
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
27283
27283
|
if (opts.dereference) {
|
|
27284
|
-
resolvedSrc =
|
|
27284
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
27285
27285
|
}
|
|
27286
27286
|
if (!destStat) {
|
|
27287
27287
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -27295,7 +27295,7 @@ var require_copy_sync = __commonJS({
|
|
|
27295
27295
|
throw err;
|
|
27296
27296
|
}
|
|
27297
27297
|
if (opts.dereference) {
|
|
27298
|
-
resolvedDest =
|
|
27298
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
27299
27299
|
}
|
|
27300
27300
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
27301
27301
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -27331,7 +27331,7 @@ var require_rimraf2 = __commonJS({
|
|
|
27331
27331
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
|
|
27332
27332
|
"use strict";
|
|
27333
27333
|
var fs2 = require_graceful_fs();
|
|
27334
|
-
var
|
|
27334
|
+
var path3 = require("path");
|
|
27335
27335
|
var assert = require("assert");
|
|
27336
27336
|
var isWindows = process.platform === "win32";
|
|
27337
27337
|
function defaults(options) {
|
|
@@ -27479,7 +27479,7 @@ var require_rimraf2 = __commonJS({
|
|
|
27479
27479
|
if (n === 0)
|
|
27480
27480
|
return options.rmdir(p, cb);
|
|
27481
27481
|
files.forEach((f) => {
|
|
27482
|
-
rimraf(
|
|
27482
|
+
rimraf(path3.join(p, f), options, (er2) => {
|
|
27483
27483
|
if (errState) {
|
|
27484
27484
|
return;
|
|
27485
27485
|
}
|
|
@@ -27545,7 +27545,7 @@ var require_rimraf2 = __commonJS({
|
|
|
27545
27545
|
function rmkidsSync(p, options) {
|
|
27546
27546
|
assert(p);
|
|
27547
27547
|
assert(options);
|
|
27548
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
27548
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path3.join(p, f), options));
|
|
27549
27549
|
if (isWindows) {
|
|
27550
27550
|
const startTime = Date.now();
|
|
27551
27551
|
do {
|
|
@@ -27572,15 +27572,15 @@ var require_remove = __commonJS({
|
|
|
27572
27572
|
var fs2 = require_graceful_fs();
|
|
27573
27573
|
var u = require_universalify().fromCallback;
|
|
27574
27574
|
var rimraf = require_rimraf2();
|
|
27575
|
-
function remove(
|
|
27575
|
+
function remove(path3, callback) {
|
|
27576
27576
|
if (fs2.rm)
|
|
27577
|
-
return fs2.rm(
|
|
27578
|
-
rimraf(
|
|
27577
|
+
return fs2.rm(path3, { recursive: true, force: true }, callback);
|
|
27578
|
+
rimraf(path3, callback);
|
|
27579
27579
|
}
|
|
27580
|
-
function removeSync(
|
|
27580
|
+
function removeSync(path3) {
|
|
27581
27581
|
if (fs2.rmSync)
|
|
27582
|
-
return fs2.rmSync(
|
|
27583
|
-
rimraf.sync(
|
|
27582
|
+
return fs2.rmSync(path3, { recursive: true, force: true });
|
|
27583
|
+
rimraf.sync(path3);
|
|
27584
27584
|
}
|
|
27585
27585
|
module2.exports = {
|
|
27586
27586
|
remove: u(remove),
|
|
@@ -27595,7 +27595,7 @@ var require_empty2 = __commonJS({
|
|
|
27595
27595
|
"use strict";
|
|
27596
27596
|
var u = require_universalify().fromPromise;
|
|
27597
27597
|
var fs2 = require_fs2();
|
|
27598
|
-
var
|
|
27598
|
+
var path3 = require("path");
|
|
27599
27599
|
var mkdir = require_mkdirs();
|
|
27600
27600
|
var remove = require_remove();
|
|
27601
27601
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -27605,7 +27605,7 @@ var require_empty2 = __commonJS({
|
|
|
27605
27605
|
} catch {
|
|
27606
27606
|
return mkdir.mkdirs(dir);
|
|
27607
27607
|
}
|
|
27608
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
27608
|
+
return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
|
|
27609
27609
|
});
|
|
27610
27610
|
function emptyDirSync(dir) {
|
|
27611
27611
|
let items;
|
|
@@ -27615,7 +27615,7 @@ var require_empty2 = __commonJS({
|
|
|
27615
27615
|
return mkdir.mkdirsSync(dir);
|
|
27616
27616
|
}
|
|
27617
27617
|
items.forEach((item) => {
|
|
27618
|
-
item =
|
|
27618
|
+
item = path3.join(dir, item);
|
|
27619
27619
|
remove.removeSync(item);
|
|
27620
27620
|
});
|
|
27621
27621
|
}
|
|
@@ -27633,7 +27633,7 @@ var require_file = __commonJS({
|
|
|
27633
27633
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
27634
27634
|
"use strict";
|
|
27635
27635
|
var u = require_universalify().fromCallback;
|
|
27636
|
-
var
|
|
27636
|
+
var path3 = require("path");
|
|
27637
27637
|
var fs2 = require_graceful_fs();
|
|
27638
27638
|
var mkdir = require_mkdirs();
|
|
27639
27639
|
function createFile(file, callback) {
|
|
@@ -27647,7 +27647,7 @@ var require_file = __commonJS({
|
|
|
27647
27647
|
fs2.stat(file, (err, stats) => {
|
|
27648
27648
|
if (!err && stats.isFile())
|
|
27649
27649
|
return callback();
|
|
27650
|
-
const dir =
|
|
27650
|
+
const dir = path3.dirname(file);
|
|
27651
27651
|
fs2.stat(dir, (err2, stats2) => {
|
|
27652
27652
|
if (err2) {
|
|
27653
27653
|
if (err2.code === "ENOENT") {
|
|
@@ -27678,7 +27678,7 @@ var require_file = __commonJS({
|
|
|
27678
27678
|
}
|
|
27679
27679
|
if (stats && stats.isFile())
|
|
27680
27680
|
return;
|
|
27681
|
-
const dir =
|
|
27681
|
+
const dir = path3.dirname(file);
|
|
27682
27682
|
try {
|
|
27683
27683
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
27684
27684
|
fs2.readdirSync(dir);
|
|
@@ -27703,7 +27703,7 @@ var require_link = __commonJS({
|
|
|
27703
27703
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
27704
27704
|
"use strict";
|
|
27705
27705
|
var u = require_universalify().fromCallback;
|
|
27706
|
-
var
|
|
27706
|
+
var path3 = require("path");
|
|
27707
27707
|
var fs2 = require_graceful_fs();
|
|
27708
27708
|
var mkdir = require_mkdirs();
|
|
27709
27709
|
var pathExists = require_path_exists().pathExists;
|
|
@@ -27724,7 +27724,7 @@ var require_link = __commonJS({
|
|
|
27724
27724
|
}
|
|
27725
27725
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
27726
27726
|
return callback(null);
|
|
27727
|
-
const dir =
|
|
27727
|
+
const dir = path3.dirname(dstpath);
|
|
27728
27728
|
pathExists(dir, (err2, dirExists) => {
|
|
27729
27729
|
if (err2)
|
|
27730
27730
|
return callback(err2);
|
|
@@ -27753,7 +27753,7 @@ var require_link = __commonJS({
|
|
|
27753
27753
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
27754
27754
|
throw err;
|
|
27755
27755
|
}
|
|
27756
|
-
const dir =
|
|
27756
|
+
const dir = path3.dirname(dstpath);
|
|
27757
27757
|
const dirExists = fs2.existsSync(dir);
|
|
27758
27758
|
if (dirExists)
|
|
27759
27759
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -27771,11 +27771,11 @@ var require_link = __commonJS({
|
|
|
27771
27771
|
var require_symlink_paths = __commonJS({
|
|
27772
27772
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
27773
27773
|
"use strict";
|
|
27774
|
-
var
|
|
27774
|
+
var path3 = require("path");
|
|
27775
27775
|
var fs2 = require_graceful_fs();
|
|
27776
27776
|
var pathExists = require_path_exists().pathExists;
|
|
27777
27777
|
function symlinkPaths(srcpath, dstpath, callback) {
|
|
27778
|
-
if (
|
|
27778
|
+
if (path3.isAbsolute(srcpath)) {
|
|
27779
27779
|
return fs2.lstat(srcpath, (err) => {
|
|
27780
27780
|
if (err) {
|
|
27781
27781
|
err.message = err.message.replace("lstat", "ensureSymlink");
|
|
@@ -27787,8 +27787,8 @@ var require_symlink_paths = __commonJS({
|
|
|
27787
27787
|
});
|
|
27788
27788
|
});
|
|
27789
27789
|
} else {
|
|
27790
|
-
const dstdir =
|
|
27791
|
-
const relativeToDst =
|
|
27790
|
+
const dstdir = path3.dirname(dstpath);
|
|
27791
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
27792
27792
|
return pathExists(relativeToDst, (err, exists) => {
|
|
27793
27793
|
if (err)
|
|
27794
27794
|
return callback(err);
|
|
@@ -27805,7 +27805,7 @@ var require_symlink_paths = __commonJS({
|
|
|
27805
27805
|
}
|
|
27806
27806
|
return callback(null, {
|
|
27807
27807
|
toCwd: srcpath,
|
|
27808
|
-
toDst:
|
|
27808
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
27809
27809
|
});
|
|
27810
27810
|
});
|
|
27811
27811
|
}
|
|
@@ -27814,7 +27814,7 @@ var require_symlink_paths = __commonJS({
|
|
|
27814
27814
|
}
|
|
27815
27815
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
27816
27816
|
let exists;
|
|
27817
|
-
if (
|
|
27817
|
+
if (path3.isAbsolute(srcpath)) {
|
|
27818
27818
|
exists = fs2.existsSync(srcpath);
|
|
27819
27819
|
if (!exists)
|
|
27820
27820
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -27823,8 +27823,8 @@ var require_symlink_paths = __commonJS({
|
|
|
27823
27823
|
toDst: srcpath
|
|
27824
27824
|
};
|
|
27825
27825
|
} else {
|
|
27826
|
-
const dstdir =
|
|
27827
|
-
const relativeToDst =
|
|
27826
|
+
const dstdir = path3.dirname(dstpath);
|
|
27827
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
27828
27828
|
exists = fs2.existsSync(relativeToDst);
|
|
27829
27829
|
if (exists) {
|
|
27830
27830
|
return {
|
|
@@ -27837,7 +27837,7 @@ var require_symlink_paths = __commonJS({
|
|
|
27837
27837
|
throw new Error("relative srcpath does not exist");
|
|
27838
27838
|
return {
|
|
27839
27839
|
toCwd: srcpath,
|
|
27840
|
-
toDst:
|
|
27840
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
27841
27841
|
};
|
|
27842
27842
|
}
|
|
27843
27843
|
}
|
|
@@ -27889,7 +27889,7 @@ var require_symlink = __commonJS({
|
|
|
27889
27889
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
27890
27890
|
"use strict";
|
|
27891
27891
|
var u = require_universalify().fromCallback;
|
|
27892
|
-
var
|
|
27892
|
+
var path3 = require("path");
|
|
27893
27893
|
var fs2 = require_fs2();
|
|
27894
27894
|
var _mkdirs = require_mkdirs();
|
|
27895
27895
|
var mkdirs = _mkdirs.mkdirs;
|
|
@@ -27927,7 +27927,7 @@ var require_symlink = __commonJS({
|
|
|
27927
27927
|
symlinkType(relative.toCwd, type, (err2, type2) => {
|
|
27928
27928
|
if (err2)
|
|
27929
27929
|
return callback(err2);
|
|
27930
|
-
const dir =
|
|
27930
|
+
const dir = path3.dirname(dstpath);
|
|
27931
27931
|
pathExists(dir, (err3, dirExists) => {
|
|
27932
27932
|
if (err3)
|
|
27933
27933
|
return callback(err3);
|
|
@@ -27957,7 +27957,7 @@ var require_symlink = __commonJS({
|
|
|
27957
27957
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
27958
27958
|
srcpath = relative.toDst;
|
|
27959
27959
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
27960
|
-
const dir =
|
|
27960
|
+
const dir = path3.dirname(dstpath);
|
|
27961
27961
|
const exists = fs2.existsSync(dir);
|
|
27962
27962
|
if (exists)
|
|
27963
27963
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -28109,7 +28109,7 @@ var require_output_file = __commonJS({
|
|
|
28109
28109
|
"use strict";
|
|
28110
28110
|
var u = require_universalify().fromCallback;
|
|
28111
28111
|
var fs2 = require_graceful_fs();
|
|
28112
|
-
var
|
|
28112
|
+
var path3 = require("path");
|
|
28113
28113
|
var mkdir = require_mkdirs();
|
|
28114
28114
|
var pathExists = require_path_exists().pathExists;
|
|
28115
28115
|
function outputFile(file, data, encoding, callback) {
|
|
@@ -28117,7 +28117,7 @@ var require_output_file = __commonJS({
|
|
|
28117
28117
|
callback = encoding;
|
|
28118
28118
|
encoding = "utf8";
|
|
28119
28119
|
}
|
|
28120
|
-
const dir =
|
|
28120
|
+
const dir = path3.dirname(file);
|
|
28121
28121
|
pathExists(dir, (err, itDoes) => {
|
|
28122
28122
|
if (err)
|
|
28123
28123
|
return callback(err);
|
|
@@ -28131,7 +28131,7 @@ var require_output_file = __commonJS({
|
|
|
28131
28131
|
});
|
|
28132
28132
|
}
|
|
28133
28133
|
function outputFileSync(file, ...args) {
|
|
28134
|
-
const dir =
|
|
28134
|
+
const dir = path3.dirname(file);
|
|
28135
28135
|
if (fs2.existsSync(dir)) {
|
|
28136
28136
|
return fs2.writeFileSync(file, ...args);
|
|
28137
28137
|
}
|
|
@@ -28196,7 +28196,7 @@ var require_move = __commonJS({
|
|
|
28196
28196
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
28197
28197
|
"use strict";
|
|
28198
28198
|
var fs2 = require_graceful_fs();
|
|
28199
|
-
var
|
|
28199
|
+
var path3 = require("path");
|
|
28200
28200
|
var copy = require_copy2().copy;
|
|
28201
28201
|
var remove = require_remove().remove;
|
|
28202
28202
|
var mkdirp = require_mkdirs().mkdirp;
|
|
@@ -28218,7 +28218,7 @@ var require_move = __commonJS({
|
|
|
28218
28218
|
return cb(err2);
|
|
28219
28219
|
if (isParentRoot(dest))
|
|
28220
28220
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
28221
|
-
mkdirp(
|
|
28221
|
+
mkdirp(path3.dirname(dest), (err3) => {
|
|
28222
28222
|
if (err3)
|
|
28223
28223
|
return cb(err3);
|
|
28224
28224
|
return doRename(src, dest, overwrite, isChangingCase, cb);
|
|
@@ -28227,8 +28227,8 @@ var require_move = __commonJS({
|
|
|
28227
28227
|
});
|
|
28228
28228
|
}
|
|
28229
28229
|
function isParentRoot(dest) {
|
|
28230
|
-
const parent =
|
|
28231
|
-
const parsedPath =
|
|
28230
|
+
const parent = path3.dirname(dest);
|
|
28231
|
+
const parsedPath = path3.parse(parent);
|
|
28232
28232
|
return parsedPath.root === parent;
|
|
28233
28233
|
}
|
|
28234
28234
|
function doRename(src, dest, overwrite, isChangingCase, cb) {
|
|
@@ -28278,7 +28278,7 @@ var require_move_sync = __commonJS({
|
|
|
28278
28278
|
"node_modules/.pnpm/fs-extra@10.1.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
28279
28279
|
"use strict";
|
|
28280
28280
|
var fs2 = require_graceful_fs();
|
|
28281
|
-
var
|
|
28281
|
+
var path3 = require("path");
|
|
28282
28282
|
var copySync = require_copy2().copySync;
|
|
28283
28283
|
var removeSync = require_remove().removeSync;
|
|
28284
28284
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -28289,12 +28289,12 @@ var require_move_sync = __commonJS({
|
|
|
28289
28289
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
28290
28290
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
28291
28291
|
if (!isParentRoot(dest))
|
|
28292
|
-
mkdirpSync(
|
|
28292
|
+
mkdirpSync(path3.dirname(dest));
|
|
28293
28293
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
28294
28294
|
}
|
|
28295
28295
|
function isParentRoot(dest) {
|
|
28296
|
-
const parent =
|
|
28297
|
-
const parsedPath =
|
|
28296
|
+
const parent = path3.dirname(dest);
|
|
28297
|
+
const parsedPath = path3.parse(parent);
|
|
28298
28298
|
return parsedPath.root === parent;
|
|
28299
28299
|
}
|
|
28300
28300
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -28644,12 +28644,12 @@ var require_usesReference = __commonJS({
|
|
|
28644
28644
|
var require_getName = __commonJS({
|
|
28645
28645
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/utils/references/getName.js"(exports, module2) {
|
|
28646
28646
|
var defaults = require_defaults();
|
|
28647
|
-
function getName(
|
|
28647
|
+
function getName(path3, opts = {}) {
|
|
28648
28648
|
const options = Object.assign({}, defaults, opts);
|
|
28649
|
-
if (!
|
|
28649
|
+
if (!path3 || !(path3 instanceof Array)) {
|
|
28650
28650
|
throw new Error("Getting name for path failed. Path must be an array");
|
|
28651
28651
|
}
|
|
28652
|
-
return
|
|
28652
|
+
return path3.join(options.separator);
|
|
28653
28653
|
}
|
|
28654
28654
|
module2.exports = getName;
|
|
28655
28655
|
}
|
|
@@ -28673,14 +28673,14 @@ var require_getPathFromName = __commonJS({
|
|
|
28673
28673
|
// node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/utils/references/resolveReference.js
|
|
28674
28674
|
var require_resolveReference = __commonJS({
|
|
28675
28675
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/utils/references/resolveReference.js"(exports, module2) {
|
|
28676
|
-
function resolveReference(
|
|
28676
|
+
function resolveReference(path3, obj) {
|
|
28677
28677
|
let i, ref = obj;
|
|
28678
|
-
if (!Array.isArray(
|
|
28678
|
+
if (!Array.isArray(path3)) {
|
|
28679
28679
|
return;
|
|
28680
28680
|
}
|
|
28681
|
-
for (i = 0; i <
|
|
28682
|
-
if (typeof ref[
|
|
28683
|
-
ref = ref[
|
|
28681
|
+
for (i = 0; i < path3.length; i++) {
|
|
28682
|
+
if (typeof ref[path3[i]] !== "undefined") {
|
|
28683
|
+
ref = ref[path3[i]];
|
|
28684
28684
|
} else {
|
|
28685
28685
|
ref = void 0;
|
|
28686
28686
|
break;
|
|
@@ -28836,11 +28836,11 @@ var require_property = __commonJS({
|
|
|
28836
28836
|
var require_deepExtend = __commonJS({
|
|
28837
28837
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/utils/deepExtend.js"(exports, module2) {
|
|
28838
28838
|
var _ = require_es6();
|
|
28839
|
-
function deepExtend(objects, collision,
|
|
28839
|
+
function deepExtend(objects, collision, path3) {
|
|
28840
28840
|
if (objects == null)
|
|
28841
28841
|
return {};
|
|
28842
28842
|
var src, copyIsArray, copy, name, options, clone, target = objects[0] || {}, i = 1, length = objects.length;
|
|
28843
|
-
|
|
28843
|
+
path3 = path3 || [];
|
|
28844
28844
|
if (typeof target !== "object") {
|
|
28845
28845
|
target = {};
|
|
28846
28846
|
}
|
|
@@ -28863,12 +28863,12 @@ var require_deepExtend = __commonJS({
|
|
|
28863
28863
|
} else {
|
|
28864
28864
|
clone = src && _.isPlainObject(src) ? src : {};
|
|
28865
28865
|
}
|
|
28866
|
-
var nextPath =
|
|
28866
|
+
var nextPath = path3.slice(0);
|
|
28867
28867
|
nextPath.push(name);
|
|
28868
28868
|
target[name] = deepExtend([clone, copy], collision, nextPath);
|
|
28869
28869
|
} else if (copy !== void 0) {
|
|
28870
28870
|
if (src != null && typeof collision == "function") {
|
|
28871
|
-
collision({ target, copy: options, path:
|
|
28871
|
+
collision({ target, copy: options, path: path3, key: name });
|
|
28872
28872
|
}
|
|
28873
28873
|
target[name] = copy;
|
|
28874
28874
|
}
|
|
@@ -28886,12 +28886,12 @@ var require_propertySetup = __commonJS({
|
|
|
28886
28886
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/transform/propertySetup.js"(exports, module2) {
|
|
28887
28887
|
var deepExtend = require_deepExtend();
|
|
28888
28888
|
var _ = require_es6();
|
|
28889
|
-
function propertySetup(property, name,
|
|
28889
|
+
function propertySetup(property, name, path3) {
|
|
28890
28890
|
if (!property && !_.isPlainObject(property))
|
|
28891
28891
|
throw new Error("Property object must be an object");
|
|
28892
28892
|
if (!name || !_.isString(name))
|
|
28893
28893
|
throw new Error("Name must be a string");
|
|
28894
|
-
if (!
|
|
28894
|
+
if (!path3 || !_.isArray(path3))
|
|
28895
28895
|
throw new Error("Path must be an array");
|
|
28896
28896
|
let to_ret = property;
|
|
28897
28897
|
if (!property.original) {
|
|
@@ -28902,7 +28902,7 @@ var require_propertySetup = __commonJS({
|
|
|
28902
28902
|
to_ret.original = to_ret_original;
|
|
28903
28903
|
to_ret.name = to_ret.name || name || "";
|
|
28904
28904
|
to_ret.attributes = to_ret.attributes || {};
|
|
28905
|
-
to_ret.path = _.clone(
|
|
28905
|
+
to_ret.path = _.clone(path3);
|
|
28906
28906
|
}
|
|
28907
28907
|
return to_ret;
|
|
28908
28908
|
}
|
|
@@ -28918,43 +28918,43 @@ var require_object = __commonJS({
|
|
|
28918
28918
|
var getName = require_getName();
|
|
28919
28919
|
var transformProperty = require_property();
|
|
28920
28920
|
var propertySetup = require_propertySetup();
|
|
28921
|
-
function transformObject(obj, options, transformationContext = {},
|
|
28921
|
+
function transformObject(obj, options, transformationContext = {}, path3, transformedObj) {
|
|
28922
28922
|
transformedObj = transformedObj || {};
|
|
28923
|
-
|
|
28923
|
+
path3 = path3 || [];
|
|
28924
28924
|
const { transformedPropRefs = [], deferredPropValueTransforms = [] } = transformationContext;
|
|
28925
28925
|
for (const name in obj) {
|
|
28926
28926
|
if (!obj.hasOwnProperty(name)) {
|
|
28927
28927
|
continue;
|
|
28928
28928
|
}
|
|
28929
|
-
|
|
28929
|
+
path3.push(name);
|
|
28930
28930
|
const objProp = obj[name];
|
|
28931
28931
|
const isPlainObject = _.isPlainObject(objProp);
|
|
28932
28932
|
if (isPlainObject && "value" in objProp) {
|
|
28933
|
-
const pathName = getName(
|
|
28933
|
+
const pathName = getName(path3);
|
|
28934
28934
|
const alreadyTransformed = transformedPropRefs.indexOf(pathName) !== -1;
|
|
28935
28935
|
if (alreadyTransformed) {
|
|
28936
28936
|
transformedObj[name] = objProp;
|
|
28937
|
-
|
|
28937
|
+
path3.pop();
|
|
28938
28938
|
continue;
|
|
28939
28939
|
}
|
|
28940
|
-
const setupProperty = propertySetup(objProp, name,
|
|
28940
|
+
const setupProperty = propertySetup(objProp, name, path3);
|
|
28941
28941
|
if (usesValueReference(setupProperty.value, options)) {
|
|
28942
28942
|
if (deferredPropValueTransforms.indexOf(pathName) === -1) {
|
|
28943
28943
|
deferredPropValueTransforms.push(pathName);
|
|
28944
28944
|
}
|
|
28945
28945
|
transformedObj[name] = setupProperty;
|
|
28946
|
-
|
|
28946
|
+
path3.pop();
|
|
28947
28947
|
continue;
|
|
28948
28948
|
}
|
|
28949
28949
|
transformedObj[name] = transformProperty(setupProperty, options);
|
|
28950
28950
|
_.pull(deferredPropValueTransforms, pathName);
|
|
28951
28951
|
transformedPropRefs.push(pathName);
|
|
28952
28952
|
} else if (isPlainObject) {
|
|
28953
|
-
transformedObj[name] = transformObject(objProp, options, transformationContext,
|
|
28953
|
+
transformedObj[name] = transformObject(objProp, options, transformationContext, path3, transformedObj[name]);
|
|
28954
28954
|
} else {
|
|
28955
28955
|
transformedObj[name] = objProp;
|
|
28956
28956
|
}
|
|
28957
|
-
|
|
28957
|
+
path3.pop();
|
|
28958
28958
|
}
|
|
28959
28959
|
return transformedObj;
|
|
28960
28960
|
}
|
|
@@ -29205,7 +29205,7 @@ var require_createFormatArgs = __commonJS({
|
|
|
29205
29205
|
// node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/buildFile.js
|
|
29206
29206
|
var require_buildFile = __commonJS({
|
|
29207
29207
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/buildFile.js"(exports, module2) {
|
|
29208
|
-
var
|
|
29208
|
+
var path3 = require("path");
|
|
29209
29209
|
var fs2 = require_lib();
|
|
29210
29210
|
var chalk2 = require_source();
|
|
29211
29211
|
var filterProperties = require_filterProperties();
|
|
@@ -29223,7 +29223,7 @@ var require_buildFile = __commonJS({
|
|
|
29223
29223
|
if (platform.buildPath) {
|
|
29224
29224
|
fullDestination = platform.buildPath + fullDestination;
|
|
29225
29225
|
}
|
|
29226
|
-
var dirname2 =
|
|
29226
|
+
var dirname2 = path3.dirname(fullDestination);
|
|
29227
29227
|
if (!fs2.existsSync(dirname2))
|
|
29228
29228
|
fs2.mkdirsSync(dirname2);
|
|
29229
29229
|
const filteredProperties = filterProperties(dictionary, filter);
|
|
@@ -29507,7 +29507,7 @@ var require_cleanFiles = __commonJS({
|
|
|
29507
29507
|
// node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/cleanDir.js
|
|
29508
29508
|
var require_cleanDir = __commonJS({
|
|
29509
29509
|
"node_modules/.pnpm/style-dictionary@3.9.1/node_modules/style-dictionary/lib/cleanDir.js"(exports, module2) {
|
|
29510
|
-
var
|
|
29510
|
+
var path3 = require("path");
|
|
29511
29511
|
var fs2 = require_lib();
|
|
29512
29512
|
var chalk2 = require_source();
|
|
29513
29513
|
function cleanDir(file = {}, platform = {}) {
|
|
@@ -29517,7 +29517,7 @@ var require_cleanDir = __commonJS({
|
|
|
29517
29517
|
if (platform.buildPath) {
|
|
29518
29518
|
destination = platform.buildPath + destination;
|
|
29519
29519
|
}
|
|
29520
|
-
var dirname2 =
|
|
29520
|
+
var dirname2 = path3.dirname(destination);
|
|
29521
29521
|
while (dirname2) {
|
|
29522
29522
|
if (fs2.existsSync(dirname2)) {
|
|
29523
29523
|
if (fs2.readdirSync(dirname2).length === 0) {
|
|
@@ -30861,8 +30861,8 @@ var require_main = __commonJS({
|
|
|
30861
30861
|
return formatter.format(documentText, range, options);
|
|
30862
30862
|
}
|
|
30863
30863
|
exports2.format = format;
|
|
30864
|
-
function modify(text,
|
|
30865
|
-
return edit.setProperty(text,
|
|
30864
|
+
function modify(text, path3, value2, options) {
|
|
30865
|
+
return edit.setProperty(text, path3, value2, options);
|
|
30866
30866
|
}
|
|
30867
30867
|
exports2.modify = modify;
|
|
30868
30868
|
function applyEdits(text, edits) {
|
|
@@ -31782,11 +31782,11 @@ var require_cjs2 = __commonJS({
|
|
|
31782
31782
|
return (f) => f.length === len && f !== "." && f !== "..";
|
|
31783
31783
|
};
|
|
31784
31784
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
31785
|
-
var
|
|
31785
|
+
var path3 = {
|
|
31786
31786
|
win32: { sep: "\\" },
|
|
31787
31787
|
posix: { sep: "/" }
|
|
31788
31788
|
};
|
|
31789
|
-
exports.sep = defaultPlatform === "win32" ?
|
|
31789
|
+
exports.sep = defaultPlatform === "win32" ? path3.win32.sep : path3.posix.sep;
|
|
31790
31790
|
exports.minimatch.sep = exports.sep;
|
|
31791
31791
|
exports.GLOBSTAR = Symbol("globstar **");
|
|
31792
31792
|
exports.minimatch.GLOBSTAR = exports.GLOBSTAR;
|
|
@@ -34890,12 +34890,12 @@ var require_cjs4 = __commonJS({
|
|
|
34890
34890
|
/**
|
|
34891
34891
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
34892
34892
|
*/
|
|
34893
|
-
resolve(
|
|
34894
|
-
if (!
|
|
34893
|
+
resolve(path3) {
|
|
34894
|
+
if (!path3) {
|
|
34895
34895
|
return this;
|
|
34896
34896
|
}
|
|
34897
|
-
const rootPath = this.getRootString(
|
|
34898
|
-
const dir =
|
|
34897
|
+
const rootPath = this.getRootString(path3);
|
|
34898
|
+
const dir = path3.substring(rootPath.length);
|
|
34899
34899
|
const dirParts = dir.split(this.splitSep);
|
|
34900
34900
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
34901
34901
|
return result;
|
|
@@ -35640,8 +35640,8 @@ var require_cjs4 = __commonJS({
|
|
|
35640
35640
|
/**
|
|
35641
35641
|
* @internal
|
|
35642
35642
|
*/
|
|
35643
|
-
getRootString(
|
|
35644
|
-
return path_1.win32.parse(
|
|
35643
|
+
getRootString(path3) {
|
|
35644
|
+
return path_1.win32.parse(path3).root;
|
|
35645
35645
|
}
|
|
35646
35646
|
/**
|
|
35647
35647
|
* @internal
|
|
@@ -35688,8 +35688,8 @@ var require_cjs4 = __commonJS({
|
|
|
35688
35688
|
/**
|
|
35689
35689
|
* @internal
|
|
35690
35690
|
*/
|
|
35691
|
-
getRootString(
|
|
35692
|
-
return
|
|
35691
|
+
getRootString(path3) {
|
|
35692
|
+
return path3.startsWith("/") ? "/" : "";
|
|
35693
35693
|
}
|
|
35694
35694
|
/**
|
|
35695
35695
|
* @internal
|
|
@@ -35779,11 +35779,11 @@ var require_cjs4 = __commonJS({
|
|
|
35779
35779
|
/**
|
|
35780
35780
|
* Get the depth of a provided path, string, or the cwd
|
|
35781
35781
|
*/
|
|
35782
|
-
depth(
|
|
35783
|
-
if (typeof
|
|
35784
|
-
|
|
35782
|
+
depth(path3 = this.cwd) {
|
|
35783
|
+
if (typeof path3 === "string") {
|
|
35784
|
+
path3 = this.cwd.resolve(path3);
|
|
35785
35785
|
}
|
|
35786
|
-
return
|
|
35786
|
+
return path3.depth();
|
|
35787
35787
|
}
|
|
35788
35788
|
/**
|
|
35789
35789
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -36270,9 +36270,9 @@ var require_cjs4 = __commonJS({
|
|
|
36270
36270
|
process3();
|
|
36271
36271
|
return results;
|
|
36272
36272
|
}
|
|
36273
|
-
chdir(
|
|
36273
|
+
chdir(path3 = this.cwd) {
|
|
36274
36274
|
const oldCwd = this.cwd;
|
|
36275
|
-
this.cwd = typeof
|
|
36275
|
+
this.cwd = typeof path3 === "string" ? this.cwd.resolve(path3) : path3;
|
|
36276
36276
|
this.cwd[setAsCwd](oldCwd);
|
|
36277
36277
|
}
|
|
36278
36278
|
};
|
|
@@ -36651,8 +36651,8 @@ var require_processor = __commonJS({
|
|
|
36651
36651
|
}
|
|
36652
36652
|
// match, absolute, ifdir
|
|
36653
36653
|
entries() {
|
|
36654
|
-
return [...this.store.entries()].map(([
|
|
36655
|
-
|
|
36654
|
+
return [...this.store.entries()].map(([path3, n]) => [
|
|
36655
|
+
path3,
|
|
36656
36656
|
!!(n & 2),
|
|
36657
36657
|
!!(n & 1)
|
|
36658
36658
|
]);
|
|
@@ -36869,9 +36869,9 @@ var require_walker = __commonJS({
|
|
|
36869
36869
|
#sep;
|
|
36870
36870
|
signal;
|
|
36871
36871
|
maxDepth;
|
|
36872
|
-
constructor(patterns,
|
|
36872
|
+
constructor(patterns, path3, opts) {
|
|
36873
36873
|
this.patterns = patterns;
|
|
36874
|
-
this.path =
|
|
36874
|
+
this.path = path3;
|
|
36875
36875
|
this.opts = opts;
|
|
36876
36876
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
36877
36877
|
if (opts.ignore) {
|
|
@@ -36885,11 +36885,11 @@ var require_walker = __commonJS({
|
|
|
36885
36885
|
});
|
|
36886
36886
|
}
|
|
36887
36887
|
}
|
|
36888
|
-
#ignored(
|
|
36889
|
-
return this.seen.has(
|
|
36888
|
+
#ignored(path3) {
|
|
36889
|
+
return this.seen.has(path3) || !!this.#ignore?.ignored?.(path3);
|
|
36890
36890
|
}
|
|
36891
|
-
#childrenIgnored(
|
|
36892
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
36891
|
+
#childrenIgnored(path3) {
|
|
36892
|
+
return !!this.#ignore?.childrenIgnored?.(path3);
|
|
36893
36893
|
}
|
|
36894
36894
|
// backpressure mechanism
|
|
36895
36895
|
pause() {
|
|
@@ -37087,8 +37087,8 @@ var require_walker = __commonJS({
|
|
|
37087
37087
|
exports.GlobUtil = GlobUtil;
|
|
37088
37088
|
var GlobWalker = class extends GlobUtil {
|
|
37089
37089
|
matches;
|
|
37090
|
-
constructor(patterns,
|
|
37091
|
-
super(patterns,
|
|
37090
|
+
constructor(patterns, path3, opts) {
|
|
37091
|
+
super(patterns, path3, opts);
|
|
37092
37092
|
this.matches = /* @__PURE__ */ new Set();
|
|
37093
37093
|
}
|
|
37094
37094
|
matchEmit(e) {
|
|
@@ -37127,8 +37127,8 @@ var require_walker = __commonJS({
|
|
|
37127
37127
|
exports.GlobWalker = GlobWalker;
|
|
37128
37128
|
var GlobStream = class extends GlobUtil {
|
|
37129
37129
|
results;
|
|
37130
|
-
constructor(patterns,
|
|
37131
|
-
super(patterns,
|
|
37130
|
+
constructor(patterns, path3, opts) {
|
|
37131
|
+
super(patterns, path3, opts);
|
|
37132
37132
|
this.results = new minipass_1.Minipass({
|
|
37133
37133
|
signal: this.signal,
|
|
37134
37134
|
objectMode: true
|
|
@@ -37477,7 +37477,7 @@ var require_combineJSON = __commonJS({
|
|
|
37477
37477
|
require.extensions[".jsonc"] = require_jsonc().register;
|
|
37478
37478
|
var { globSync } = require_commonjs2();
|
|
37479
37479
|
var deepExtend = require_deepExtend();
|
|
37480
|
-
var
|
|
37480
|
+
var path3 = require("path");
|
|
37481
37481
|
var fs2 = require("fs");
|
|
37482
37482
|
function traverseObj(obj, fn) {
|
|
37483
37483
|
for (let key in obj) {
|
|
@@ -37495,7 +37495,7 @@ var require_combineJSON = __commonJS({
|
|
|
37495
37495
|
}
|
|
37496
37496
|
for (i = 0; i < files.length; i++) {
|
|
37497
37497
|
var filePath = files[i];
|
|
37498
|
-
var resolvedPath =
|
|
37498
|
+
var resolvedPath = path3.isAbsolute(files[i]) ? files[i] : path3.resolve(process.cwd(), files[i]);
|
|
37499
37499
|
var file_content = null;
|
|
37500
37500
|
try {
|
|
37501
37501
|
delete require.cache[resolvedPath];
|
|
@@ -37539,7 +37539,7 @@ var require_extend = __commonJS({
|
|
|
37539
37539
|
require.extensions[".jsonc"] = require_jsonc().register;
|
|
37540
37540
|
var combineJSON = require_combineJSON();
|
|
37541
37541
|
var deepExtend = require_deepExtend();
|
|
37542
|
-
var
|
|
37542
|
+
var path3 = require("path");
|
|
37543
37543
|
var _ = require_es6();
|
|
37544
37544
|
var GroupMessages = require_groupMessages();
|
|
37545
37545
|
var PROPERTY_VALUE_COLLISIONS = GroupMessages.GROUP.PropertyValueCollisions;
|
|
@@ -37549,7 +37549,7 @@ var require_extend = __commonJS({
|
|
|
37549
37549
|
let includeTokens = {};
|
|
37550
37550
|
let sourceTokens = {};
|
|
37551
37551
|
if (_.isString(opts)) {
|
|
37552
|
-
options = require(
|
|
37552
|
+
options = require(path3.resolve(process.cwd(), opts));
|
|
37553
37553
|
} else {
|
|
37554
37554
|
options = opts;
|
|
37555
37555
|
}
|
|
@@ -37837,10 +37837,10 @@ var require_fs3 = __commonJS({
|
|
|
37837
37837
|
var require_utils4 = __commonJS({
|
|
37838
37838
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
37839
37839
|
"use strict";
|
|
37840
|
-
var
|
|
37840
|
+
var path3 = require("path");
|
|
37841
37841
|
module2.exports.checkPath = function checkPath(pth) {
|
|
37842
37842
|
if (process.platform === "win32") {
|
|
37843
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
37843
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path3.parse(pth).root, ""));
|
|
37844
37844
|
if (pathHasInvalidWinCharacters) {
|
|
37845
37845
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
37846
37846
|
error.code = "EINVAL";
|
|
@@ -37905,8 +37905,8 @@ var require_path_exists2 = __commonJS({
|
|
|
37905
37905
|
"use strict";
|
|
37906
37906
|
var u = require_universalify().fromPromise;
|
|
37907
37907
|
var fs2 = require_fs3();
|
|
37908
|
-
function pathExists(
|
|
37909
|
-
return fs2.access(
|
|
37908
|
+
function pathExists(path3) {
|
|
37909
|
+
return fs2.access(path3).then(() => true).catch(() => false);
|
|
37910
37910
|
}
|
|
37911
37911
|
module2.exports = {
|
|
37912
37912
|
pathExists: u(pathExists),
|
|
@@ -37921,8 +37921,8 @@ var require_utimes2 = __commonJS({
|
|
|
37921
37921
|
"use strict";
|
|
37922
37922
|
var fs2 = require_fs3();
|
|
37923
37923
|
var u = require_universalify().fromPromise;
|
|
37924
|
-
async function utimesMillis(
|
|
37925
|
-
const fd = await fs2.open(
|
|
37924
|
+
async function utimesMillis(path3, atime, mtime) {
|
|
37925
|
+
const fd = await fs2.open(path3, "r+");
|
|
37926
37926
|
let closeErr = null;
|
|
37927
37927
|
try {
|
|
37928
37928
|
await fs2.futimes(fd, atime, mtime);
|
|
@@ -37937,8 +37937,8 @@ var require_utimes2 = __commonJS({
|
|
|
37937
37937
|
throw closeErr;
|
|
37938
37938
|
}
|
|
37939
37939
|
}
|
|
37940
|
-
function utimesMillisSync(
|
|
37941
|
-
const fd = fs2.openSync(
|
|
37940
|
+
function utimesMillisSync(path3, atime, mtime) {
|
|
37941
|
+
const fd = fs2.openSync(path3, "r+");
|
|
37942
37942
|
fs2.futimesSync(fd, atime, mtime);
|
|
37943
37943
|
return fs2.closeSync(fd);
|
|
37944
37944
|
}
|
|
@@ -37954,7 +37954,7 @@ var require_stat2 = __commonJS({
|
|
|
37954
37954
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
37955
37955
|
"use strict";
|
|
37956
37956
|
var fs2 = require_fs3();
|
|
37957
|
-
var
|
|
37957
|
+
var path3 = require("path");
|
|
37958
37958
|
var u = require_universalify().fromPromise;
|
|
37959
37959
|
function getStats(src, dest, opts) {
|
|
37960
37960
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -37984,8 +37984,8 @@ var require_stat2 = __commonJS({
|
|
|
37984
37984
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
37985
37985
|
if (destStat) {
|
|
37986
37986
|
if (areIdentical(srcStat, destStat)) {
|
|
37987
|
-
const srcBaseName =
|
|
37988
|
-
const destBaseName =
|
|
37987
|
+
const srcBaseName = path3.basename(src);
|
|
37988
|
+
const destBaseName = path3.basename(dest);
|
|
37989
37989
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
37990
37990
|
return { srcStat, destStat, isChangingCase: true };
|
|
37991
37991
|
}
|
|
@@ -38007,8 +38007,8 @@ var require_stat2 = __commonJS({
|
|
|
38007
38007
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
38008
38008
|
if (destStat) {
|
|
38009
38009
|
if (areIdentical(srcStat, destStat)) {
|
|
38010
|
-
const srcBaseName =
|
|
38011
|
-
const destBaseName =
|
|
38010
|
+
const srcBaseName = path3.basename(src);
|
|
38011
|
+
const destBaseName = path3.basename(dest);
|
|
38012
38012
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
38013
38013
|
return { srcStat, destStat, isChangingCase: true };
|
|
38014
38014
|
}
|
|
@@ -38027,9 +38027,9 @@ var require_stat2 = __commonJS({
|
|
|
38027
38027
|
return { srcStat, destStat };
|
|
38028
38028
|
}
|
|
38029
38029
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
38030
|
-
const srcParent =
|
|
38031
|
-
const destParent =
|
|
38032
|
-
if (destParent === srcParent || destParent ===
|
|
38030
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
38031
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
38032
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root)
|
|
38033
38033
|
return;
|
|
38034
38034
|
let destStat;
|
|
38035
38035
|
try {
|
|
@@ -38045,9 +38045,9 @@ var require_stat2 = __commonJS({
|
|
|
38045
38045
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
38046
38046
|
}
|
|
38047
38047
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
38048
|
-
const srcParent =
|
|
38049
|
-
const destParent =
|
|
38050
|
-
if (destParent === srcParent || destParent ===
|
|
38048
|
+
const srcParent = path3.resolve(path3.dirname(src));
|
|
38049
|
+
const destParent = path3.resolve(path3.dirname(dest));
|
|
38050
|
+
if (destParent === srcParent || destParent === path3.parse(destParent).root)
|
|
38051
38051
|
return;
|
|
38052
38052
|
let destStat;
|
|
38053
38053
|
try {
|
|
@@ -38066,8 +38066,8 @@ var require_stat2 = __commonJS({
|
|
|
38066
38066
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
38067
38067
|
}
|
|
38068
38068
|
function isSrcSubdir(src, dest) {
|
|
38069
|
-
const srcArr =
|
|
38070
|
-
const destArr =
|
|
38069
|
+
const srcArr = path3.resolve(src).split(path3.sep).filter((i) => i);
|
|
38070
|
+
const destArr = path3.resolve(dest).split(path3.sep).filter((i) => i);
|
|
38071
38071
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
38072
38072
|
}
|
|
38073
38073
|
function errMsg(src, dest, funcName) {
|
|
@@ -38092,7 +38092,7 @@ var require_copy3 = __commonJS({
|
|
|
38092
38092
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
38093
38093
|
"use strict";
|
|
38094
38094
|
var fs2 = require_fs3();
|
|
38095
|
-
var
|
|
38095
|
+
var path3 = require("path");
|
|
38096
38096
|
var { mkdirs } = require_mkdirs2();
|
|
38097
38097
|
var { pathExists } = require_path_exists2();
|
|
38098
38098
|
var { utimesMillis } = require_utimes2();
|
|
@@ -38115,7 +38115,7 @@ var require_copy3 = __commonJS({
|
|
|
38115
38115
|
const include = await runFilter(src, dest, opts);
|
|
38116
38116
|
if (!include)
|
|
38117
38117
|
return;
|
|
38118
|
-
const destParent =
|
|
38118
|
+
const destParent = path3.dirname(dest);
|
|
38119
38119
|
const dirExists = await pathExists(destParent);
|
|
38120
38120
|
if (!dirExists) {
|
|
38121
38121
|
await mkdirs(destParent);
|
|
@@ -38176,8 +38176,8 @@ var require_copy3 = __commonJS({
|
|
|
38176
38176
|
}
|
|
38177
38177
|
const items = await fs2.readdir(src);
|
|
38178
38178
|
await Promise.all(items.map(async (item) => {
|
|
38179
|
-
const srcItem =
|
|
38180
|
-
const destItem =
|
|
38179
|
+
const srcItem = path3.join(src, item);
|
|
38180
|
+
const destItem = path3.join(dest, item);
|
|
38181
38181
|
const include = await runFilter(srcItem, destItem, opts);
|
|
38182
38182
|
if (!include)
|
|
38183
38183
|
return;
|
|
@@ -38191,7 +38191,7 @@ var require_copy3 = __commonJS({
|
|
|
38191
38191
|
async function onLink(destStat, src, dest, opts) {
|
|
38192
38192
|
let resolvedSrc = await fs2.readlink(src);
|
|
38193
38193
|
if (opts.dereference) {
|
|
38194
|
-
resolvedSrc =
|
|
38194
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
38195
38195
|
}
|
|
38196
38196
|
if (!destStat) {
|
|
38197
38197
|
return fs2.symlink(resolvedSrc, dest);
|
|
@@ -38205,7 +38205,7 @@ var require_copy3 = __commonJS({
|
|
|
38205
38205
|
throw e;
|
|
38206
38206
|
}
|
|
38207
38207
|
if (opts.dereference) {
|
|
38208
|
-
resolvedDest =
|
|
38208
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
38209
38209
|
}
|
|
38210
38210
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
38211
38211
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -38225,7 +38225,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
38225
38225
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
38226
38226
|
"use strict";
|
|
38227
38227
|
var fs2 = require_graceful_fs();
|
|
38228
|
-
var
|
|
38228
|
+
var path3 = require("path");
|
|
38229
38229
|
var mkdirsSync = require_mkdirs2().mkdirsSync;
|
|
38230
38230
|
var utimesMillisSync = require_utimes2().utimesMillisSync;
|
|
38231
38231
|
var stat = require_stat2();
|
|
@@ -38247,7 +38247,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
38247
38247
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
38248
38248
|
if (opts.filter && !opts.filter(src, dest))
|
|
38249
38249
|
return;
|
|
38250
|
-
const destParent =
|
|
38250
|
+
const destParent = path3.dirname(dest);
|
|
38251
38251
|
if (!fs2.existsSync(destParent))
|
|
38252
38252
|
mkdirsSync(destParent);
|
|
38253
38253
|
return getStats(destStat, src, dest, opts);
|
|
@@ -38318,8 +38318,8 @@ var require_copy_sync2 = __commonJS({
|
|
|
38318
38318
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
38319
38319
|
}
|
|
38320
38320
|
function copyDirItem(item, src, dest, opts) {
|
|
38321
|
-
const srcItem =
|
|
38322
|
-
const destItem =
|
|
38321
|
+
const srcItem = path3.join(src, item);
|
|
38322
|
+
const destItem = path3.join(dest, item);
|
|
38323
38323
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
38324
38324
|
return;
|
|
38325
38325
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
@@ -38328,7 +38328,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
38328
38328
|
function onLink(destStat, src, dest, opts) {
|
|
38329
38329
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
38330
38330
|
if (opts.dereference) {
|
|
38331
|
-
resolvedSrc =
|
|
38331
|
+
resolvedSrc = path3.resolve(process.cwd(), resolvedSrc);
|
|
38332
38332
|
}
|
|
38333
38333
|
if (!destStat) {
|
|
38334
38334
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -38342,7 +38342,7 @@ var require_copy_sync2 = __commonJS({
|
|
|
38342
38342
|
throw err;
|
|
38343
38343
|
}
|
|
38344
38344
|
if (opts.dereference) {
|
|
38345
|
-
resolvedDest =
|
|
38345
|
+
resolvedDest = path3.resolve(process.cwd(), resolvedDest);
|
|
38346
38346
|
}
|
|
38347
38347
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
38348
38348
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -38379,11 +38379,11 @@ var require_remove2 = __commonJS({
|
|
|
38379
38379
|
"use strict";
|
|
38380
38380
|
var fs2 = require_graceful_fs();
|
|
38381
38381
|
var u = require_universalify().fromCallback;
|
|
38382
|
-
function remove(
|
|
38383
|
-
fs2.rm(
|
|
38382
|
+
function remove(path3, callback) {
|
|
38383
|
+
fs2.rm(path3, { recursive: true, force: true }, callback);
|
|
38384
38384
|
}
|
|
38385
|
-
function removeSync(
|
|
38386
|
-
fs2.rmSync(
|
|
38385
|
+
function removeSync(path3) {
|
|
38386
|
+
fs2.rmSync(path3, { recursive: true, force: true });
|
|
38387
38387
|
}
|
|
38388
38388
|
module2.exports = {
|
|
38389
38389
|
remove: u(remove),
|
|
@@ -38398,7 +38398,7 @@ var require_empty3 = __commonJS({
|
|
|
38398
38398
|
"use strict";
|
|
38399
38399
|
var u = require_universalify().fromPromise;
|
|
38400
38400
|
var fs2 = require_fs3();
|
|
38401
|
-
var
|
|
38401
|
+
var path3 = require("path");
|
|
38402
38402
|
var mkdir = require_mkdirs2();
|
|
38403
38403
|
var remove = require_remove2();
|
|
38404
38404
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -38408,7 +38408,7 @@ var require_empty3 = __commonJS({
|
|
|
38408
38408
|
} catch {
|
|
38409
38409
|
return mkdir.mkdirs(dir);
|
|
38410
38410
|
}
|
|
38411
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
38411
|
+
return Promise.all(items.map((item) => remove.remove(path3.join(dir, item))));
|
|
38412
38412
|
});
|
|
38413
38413
|
function emptyDirSync(dir) {
|
|
38414
38414
|
let items;
|
|
@@ -38418,7 +38418,7 @@ var require_empty3 = __commonJS({
|
|
|
38418
38418
|
return mkdir.mkdirsSync(dir);
|
|
38419
38419
|
}
|
|
38420
38420
|
items.forEach((item) => {
|
|
38421
|
-
item =
|
|
38421
|
+
item = path3.join(dir, item);
|
|
38422
38422
|
remove.removeSync(item);
|
|
38423
38423
|
});
|
|
38424
38424
|
}
|
|
@@ -38436,7 +38436,7 @@ var require_file2 = __commonJS({
|
|
|
38436
38436
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
38437
38437
|
"use strict";
|
|
38438
38438
|
var u = require_universalify().fromPromise;
|
|
38439
|
-
var
|
|
38439
|
+
var path3 = require("path");
|
|
38440
38440
|
var fs2 = require_fs3();
|
|
38441
38441
|
var mkdir = require_mkdirs2();
|
|
38442
38442
|
async function createFile(file) {
|
|
@@ -38447,7 +38447,7 @@ var require_file2 = __commonJS({
|
|
|
38447
38447
|
}
|
|
38448
38448
|
if (stats && stats.isFile())
|
|
38449
38449
|
return;
|
|
38450
|
-
const dir =
|
|
38450
|
+
const dir = path3.dirname(file);
|
|
38451
38451
|
let dirStats = null;
|
|
38452
38452
|
try {
|
|
38453
38453
|
dirStats = await fs2.stat(dir);
|
|
@@ -38474,7 +38474,7 @@ var require_file2 = __commonJS({
|
|
|
38474
38474
|
}
|
|
38475
38475
|
if (stats && stats.isFile())
|
|
38476
38476
|
return;
|
|
38477
|
-
const dir =
|
|
38477
|
+
const dir = path3.dirname(file);
|
|
38478
38478
|
try {
|
|
38479
38479
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
38480
38480
|
fs2.readdirSync(dir);
|
|
@@ -38499,7 +38499,7 @@ var require_link2 = __commonJS({
|
|
|
38499
38499
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
38500
38500
|
"use strict";
|
|
38501
38501
|
var u = require_universalify().fromPromise;
|
|
38502
|
-
var
|
|
38502
|
+
var path3 = require("path");
|
|
38503
38503
|
var fs2 = require_fs3();
|
|
38504
38504
|
var mkdir = require_mkdirs2();
|
|
38505
38505
|
var { pathExists } = require_path_exists2();
|
|
@@ -38519,7 +38519,7 @@ var require_link2 = __commonJS({
|
|
|
38519
38519
|
}
|
|
38520
38520
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
38521
38521
|
return;
|
|
38522
|
-
const dir =
|
|
38522
|
+
const dir = path3.dirname(dstpath);
|
|
38523
38523
|
const dirExists = await pathExists(dir);
|
|
38524
38524
|
if (!dirExists) {
|
|
38525
38525
|
await mkdir.mkdirs(dir);
|
|
@@ -38540,7 +38540,7 @@ var require_link2 = __commonJS({
|
|
|
38540
38540
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
38541
38541
|
throw err;
|
|
38542
38542
|
}
|
|
38543
|
-
const dir =
|
|
38543
|
+
const dir = path3.dirname(dstpath);
|
|
38544
38544
|
const dirExists = fs2.existsSync(dir);
|
|
38545
38545
|
if (dirExists)
|
|
38546
38546
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -38558,12 +38558,12 @@ var require_link2 = __commonJS({
|
|
|
38558
38558
|
var require_symlink_paths2 = __commonJS({
|
|
38559
38559
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
38560
38560
|
"use strict";
|
|
38561
|
-
var
|
|
38561
|
+
var path3 = require("path");
|
|
38562
38562
|
var fs2 = require_fs3();
|
|
38563
38563
|
var { pathExists } = require_path_exists2();
|
|
38564
38564
|
var u = require_universalify().fromPromise;
|
|
38565
38565
|
async function symlinkPaths(srcpath, dstpath) {
|
|
38566
|
-
if (
|
|
38566
|
+
if (path3.isAbsolute(srcpath)) {
|
|
38567
38567
|
try {
|
|
38568
38568
|
await fs2.lstat(srcpath);
|
|
38569
38569
|
} catch (err) {
|
|
@@ -38575,8 +38575,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
38575
38575
|
toDst: srcpath
|
|
38576
38576
|
};
|
|
38577
38577
|
}
|
|
38578
|
-
const dstdir =
|
|
38579
|
-
const relativeToDst =
|
|
38578
|
+
const dstdir = path3.dirname(dstpath);
|
|
38579
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
38580
38580
|
const exists = await pathExists(relativeToDst);
|
|
38581
38581
|
if (exists) {
|
|
38582
38582
|
return {
|
|
@@ -38592,11 +38592,11 @@ var require_symlink_paths2 = __commonJS({
|
|
|
38592
38592
|
}
|
|
38593
38593
|
return {
|
|
38594
38594
|
toCwd: srcpath,
|
|
38595
|
-
toDst:
|
|
38595
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
38596
38596
|
};
|
|
38597
38597
|
}
|
|
38598
38598
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
38599
|
-
if (
|
|
38599
|
+
if (path3.isAbsolute(srcpath)) {
|
|
38600
38600
|
const exists2 = fs2.existsSync(srcpath);
|
|
38601
38601
|
if (!exists2)
|
|
38602
38602
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -38605,8 +38605,8 @@ var require_symlink_paths2 = __commonJS({
|
|
|
38605
38605
|
toDst: srcpath
|
|
38606
38606
|
};
|
|
38607
38607
|
}
|
|
38608
|
-
const dstdir =
|
|
38609
|
-
const relativeToDst =
|
|
38608
|
+
const dstdir = path3.dirname(dstpath);
|
|
38609
|
+
const relativeToDst = path3.join(dstdir, srcpath);
|
|
38610
38610
|
const exists = fs2.existsSync(relativeToDst);
|
|
38611
38611
|
if (exists) {
|
|
38612
38612
|
return {
|
|
@@ -38619,7 +38619,7 @@ var require_symlink_paths2 = __commonJS({
|
|
|
38619
38619
|
throw new Error("relative srcpath does not exist");
|
|
38620
38620
|
return {
|
|
38621
38621
|
toCwd: srcpath,
|
|
38622
|
-
toDst:
|
|
38622
|
+
toDst: path3.relative(dstdir, srcpath)
|
|
38623
38623
|
};
|
|
38624
38624
|
}
|
|
38625
38625
|
module2.exports = {
|
|
@@ -38669,7 +38669,7 @@ var require_symlink2 = __commonJS({
|
|
|
38669
38669
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
38670
38670
|
"use strict";
|
|
38671
38671
|
var u = require_universalify().fromPromise;
|
|
38672
|
-
var
|
|
38672
|
+
var path3 = require("path");
|
|
38673
38673
|
var fs2 = require_fs3();
|
|
38674
38674
|
var { mkdirs, mkdirsSync } = require_mkdirs2();
|
|
38675
38675
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths2();
|
|
@@ -38693,7 +38693,7 @@ var require_symlink2 = __commonJS({
|
|
|
38693
38693
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
38694
38694
|
srcpath = relative.toDst;
|
|
38695
38695
|
const toType = await symlinkType(relative.toCwd, type);
|
|
38696
|
-
const dir =
|
|
38696
|
+
const dir = path3.dirname(dstpath);
|
|
38697
38697
|
if (!await pathExists(dir)) {
|
|
38698
38698
|
await mkdirs(dir);
|
|
38699
38699
|
}
|
|
@@ -38714,7 +38714,7 @@ var require_symlink2 = __commonJS({
|
|
|
38714
38714
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
38715
38715
|
srcpath = relative.toDst;
|
|
38716
38716
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
38717
|
-
const dir =
|
|
38717
|
+
const dir = path3.dirname(dstpath);
|
|
38718
38718
|
const exists = fs2.existsSync(dir);
|
|
38719
38719
|
if (exists)
|
|
38720
38720
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -38776,18 +38776,18 @@ var require_output_file2 = __commonJS({
|
|
|
38776
38776
|
"use strict";
|
|
38777
38777
|
var u = require_universalify().fromPromise;
|
|
38778
38778
|
var fs2 = require_fs3();
|
|
38779
|
-
var
|
|
38779
|
+
var path3 = require("path");
|
|
38780
38780
|
var mkdir = require_mkdirs2();
|
|
38781
38781
|
var pathExists = require_path_exists2().pathExists;
|
|
38782
38782
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
38783
|
-
const dir =
|
|
38783
|
+
const dir = path3.dirname(file);
|
|
38784
38784
|
if (!await pathExists(dir)) {
|
|
38785
38785
|
await mkdir.mkdirs(dir);
|
|
38786
38786
|
}
|
|
38787
38787
|
return fs2.writeFile(file, data, encoding);
|
|
38788
38788
|
}
|
|
38789
38789
|
function outputFileSync(file, ...args) {
|
|
38790
|
-
const dir =
|
|
38790
|
+
const dir = path3.dirname(file);
|
|
38791
38791
|
if (!fs2.existsSync(dir)) {
|
|
38792
38792
|
mkdir.mkdirsSync(dir);
|
|
38793
38793
|
}
|
|
@@ -38851,7 +38851,7 @@ var require_move3 = __commonJS({
|
|
|
38851
38851
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
38852
38852
|
"use strict";
|
|
38853
38853
|
var fs2 = require_fs3();
|
|
38854
|
-
var
|
|
38854
|
+
var path3 = require("path");
|
|
38855
38855
|
var { copy } = require_copy4();
|
|
38856
38856
|
var { remove } = require_remove2();
|
|
38857
38857
|
var { mkdirp } = require_mkdirs2();
|
|
@@ -38861,8 +38861,8 @@ var require_move3 = __commonJS({
|
|
|
38861
38861
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
38862
38862
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
38863
38863
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
38864
|
-
const destParent =
|
|
38865
|
-
const parsedParentPath =
|
|
38864
|
+
const destParent = path3.dirname(dest);
|
|
38865
|
+
const parsedParentPath = path3.parse(destParent);
|
|
38866
38866
|
if (parsedParentPath.root !== destParent) {
|
|
38867
38867
|
await mkdirp(destParent);
|
|
38868
38868
|
}
|
|
@@ -38903,7 +38903,7 @@ var require_move_sync2 = __commonJS({
|
|
|
38903
38903
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
38904
38904
|
"use strict";
|
|
38905
38905
|
var fs2 = require_graceful_fs();
|
|
38906
|
-
var
|
|
38906
|
+
var path3 = require("path");
|
|
38907
38907
|
var copySync = require_copy4().copySync;
|
|
38908
38908
|
var removeSync = require_remove2().removeSync;
|
|
38909
38909
|
var mkdirpSync = require_mkdirs2().mkdirpSync;
|
|
@@ -38914,12 +38914,12 @@ var require_move_sync2 = __commonJS({
|
|
|
38914
38914
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
38915
38915
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
38916
38916
|
if (!isParentRoot(dest))
|
|
38917
|
-
mkdirpSync(
|
|
38917
|
+
mkdirpSync(path3.dirname(dest));
|
|
38918
38918
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
38919
38919
|
}
|
|
38920
38920
|
function isParentRoot(dest) {
|
|
38921
|
-
const parent =
|
|
38922
|
-
const parsedPath =
|
|
38921
|
+
const parent = path3.dirname(dest);
|
|
38922
|
+
const parsedPath = path3.parse(parent);
|
|
38923
38923
|
return parsedPath.root === parent;
|
|
38924
38924
|
}
|
|
38925
38925
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -38994,10 +38994,10 @@ var require_delete_output_path = __commonJS({
|
|
|
38994
38994
|
"use strict";
|
|
38995
38995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38996
38996
|
exports.deleteOutputDir = void 0;
|
|
38997
|
-
var
|
|
38997
|
+
var path3 = require("path");
|
|
38998
38998
|
var fs_extra_1 = require_lib3();
|
|
38999
38999
|
function deleteOutputDir2(root, outputPath) {
|
|
39000
|
-
const resolvedOutputPath =
|
|
39000
|
+
const resolvedOutputPath = path3.resolve(root, outputPath);
|
|
39001
39001
|
if (resolvedOutputPath === root) {
|
|
39002
39002
|
throw new Error("Output path MUST not be project root directory!");
|
|
39003
39003
|
}
|
|
@@ -39271,14 +39271,14 @@ var require_yn = __commonJS({
|
|
|
39271
39271
|
var require_create_require = __commonJS({
|
|
39272
39272
|
"node_modules/.pnpm/create-require@1.1.1/node_modules/create-require/create-require.js"(exports, module2) {
|
|
39273
39273
|
var nativeModule = require("module");
|
|
39274
|
-
var
|
|
39274
|
+
var path3 = require("path");
|
|
39275
39275
|
var fs2 = require("fs");
|
|
39276
39276
|
function createRequire(filename) {
|
|
39277
39277
|
if (!filename) {
|
|
39278
39278
|
filename = process.cwd();
|
|
39279
39279
|
}
|
|
39280
39280
|
if (isDir(filename)) {
|
|
39281
|
-
filename =
|
|
39281
|
+
filename = path3.join(filename, "index.js");
|
|
39282
39282
|
}
|
|
39283
39283
|
if (nativeModule.createRequire) {
|
|
39284
39284
|
return nativeModule.createRequire(filename);
|
|
@@ -39291,13 +39291,13 @@ var require_create_require = __commonJS({
|
|
|
39291
39291
|
function _createRequire(filename) {
|
|
39292
39292
|
const mod = new nativeModule.Module(filename, null);
|
|
39293
39293
|
mod.filename = filename;
|
|
39294
|
-
mod.paths = nativeModule.Module._nodeModulePaths(
|
|
39294
|
+
mod.paths = nativeModule.Module._nodeModulePaths(path3.dirname(filename));
|
|
39295
39295
|
mod._compile("module.exports = require;", filename);
|
|
39296
39296
|
return mod.exports;
|
|
39297
39297
|
}
|
|
39298
|
-
function isDir(
|
|
39298
|
+
function isDir(path4) {
|
|
39299
39299
|
try {
|
|
39300
|
-
const stat = fs2.lstatSync(
|
|
39300
|
+
const stat = fs2.lstatSync(path4);
|
|
39301
39301
|
return stat.isDirectory();
|
|
39302
39302
|
} catch (e) {
|
|
39303
39303
|
return false;
|
|
@@ -39314,16 +39314,16 @@ var require_v8_compile_cache = __commonJS({
|
|
|
39314
39314
|
var Module = require("module");
|
|
39315
39315
|
var crypto = require("crypto");
|
|
39316
39316
|
var fs2 = require("fs");
|
|
39317
|
-
var
|
|
39317
|
+
var path3 = require("path");
|
|
39318
39318
|
var vm = require("vm");
|
|
39319
39319
|
var os = require("os");
|
|
39320
39320
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
39321
39321
|
var FileSystemBlobStore = class {
|
|
39322
39322
|
constructor(directory, prefix) {
|
|
39323
39323
|
const name = prefix ? slashEscape(prefix + ".") : "";
|
|
39324
|
-
this._blobFilename =
|
|
39325
|
-
this._mapFilename =
|
|
39326
|
-
this._lockFilename =
|
|
39324
|
+
this._blobFilename = path3.join(directory, name + "BLOB");
|
|
39325
|
+
this._mapFilename = path3.join(directory, name + "MAP");
|
|
39326
|
+
this._lockFilename = path3.join(directory, name + "LOCK");
|
|
39327
39327
|
this._directory = directory;
|
|
39328
39328
|
this._load();
|
|
39329
39329
|
}
|
|
@@ -39456,7 +39456,7 @@ var require_v8_compile_cache = __commonJS({
|
|
|
39456
39456
|
require2.main = process.mainModule;
|
|
39457
39457
|
require2.extensions = Module._extensions;
|
|
39458
39458
|
require2.cache = Module._cache;
|
|
39459
|
-
const dirname2 =
|
|
39459
|
+
const dirname2 = path3.dirname(filename);
|
|
39460
39460
|
const compiledWrapper = self2._moduleCompile(filename, content);
|
|
39461
39461
|
const args = [mod.exports, require2, mod, filename, dirname2, process, global, Buffer];
|
|
39462
39462
|
return compiledWrapper.apply(mod.exports, args);
|
|
@@ -39514,14 +39514,14 @@ var require_v8_compile_cache = __commonJS({
|
|
|
39514
39514
|
}
|
|
39515
39515
|
};
|
|
39516
39516
|
function mkdirpSync(p_) {
|
|
39517
|
-
_mkdirpSync(
|
|
39517
|
+
_mkdirpSync(path3.resolve(p_), 511);
|
|
39518
39518
|
}
|
|
39519
39519
|
function _mkdirpSync(p, mode) {
|
|
39520
39520
|
try {
|
|
39521
39521
|
fs2.mkdirSync(p, mode);
|
|
39522
39522
|
} catch (err0) {
|
|
39523
39523
|
if (err0.code === "ENOENT") {
|
|
39524
|
-
_mkdirpSync(
|
|
39524
|
+
_mkdirpSync(path3.dirname(p));
|
|
39525
39525
|
_mkdirpSync(p);
|
|
39526
39526
|
} else {
|
|
39527
39527
|
try {
|
|
@@ -39557,7 +39557,7 @@ var require_v8_compile_cache = __commonJS({
|
|
|
39557
39557
|
}
|
|
39558
39558
|
const dirname2 = typeof process.getuid === "function" ? "v8-compile-cache-" + process.getuid() : "v8-compile-cache";
|
|
39559
39559
|
const version = typeof process.versions.v8 === "string" ? process.versions.v8 : typeof process.versions.chakracore === "string" ? "chakracore-" + process.versions.chakracore : "node-" + process.version;
|
|
39560
|
-
const cacheDir =
|
|
39560
|
+
const cacheDir = path3.join(os.tmpdir(), dirname2, version);
|
|
39561
39561
|
return cacheDir;
|
|
39562
39562
|
}
|
|
39563
39563
|
function getMainName() {
|
|
@@ -39766,11 +39766,11 @@ var require_ts_internals = __commonJS({
|
|
|
39766
39766
|
}
|
|
39767
39767
|
return { getExtendsConfigPath };
|
|
39768
39768
|
}
|
|
39769
|
-
function isRootedDiskPath(
|
|
39770
|
-
return (0, path_1.isAbsolute)(
|
|
39769
|
+
function isRootedDiskPath(path3) {
|
|
39770
|
+
return (0, path_1.isAbsolute)(path3);
|
|
39771
39771
|
}
|
|
39772
|
-
function combinePaths(
|
|
39773
|
-
return (0, util_1.normalizeSlashes)((0, path_1.resolve)(
|
|
39772
|
+
function combinePaths(path3, ...paths) {
|
|
39773
|
+
return (0, util_1.normalizeSlashes)((0, path_1.resolve)(path3, ...paths.filter((path4) => path4)));
|
|
39774
39774
|
}
|
|
39775
39775
|
function getNormalizedAbsolutePath(fileName, currentDirectory) {
|
|
39776
39776
|
return (0, util_1.normalizeSlashes)(currentDirectory != null ? (0, path_1.resolve)(currentDirectory, fileName) : (0, path_1.resolve)(fileName));
|
|
@@ -39820,12 +39820,12 @@ var require_ts_internals = __commonJS({
|
|
|
39820
39820
|
doubleAsteriskRegexFragment: "(/.+?)?",
|
|
39821
39821
|
replaceWildcardCharacter: (match) => replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment)
|
|
39822
39822
|
};
|
|
39823
|
-
function getNormalizedPathComponents(
|
|
39824
|
-
return reducePathComponents(getPathComponents(
|
|
39823
|
+
function getNormalizedPathComponents(path3, currentDirectory) {
|
|
39824
|
+
return reducePathComponents(getPathComponents(path3, currentDirectory));
|
|
39825
39825
|
}
|
|
39826
|
-
function getPathComponents(
|
|
39827
|
-
|
|
39828
|
-
return pathComponents(
|
|
39826
|
+
function getPathComponents(path3, currentDirectory = "") {
|
|
39827
|
+
path3 = combinePaths(currentDirectory, path3);
|
|
39828
|
+
return pathComponents(path3, getRootLength(path3));
|
|
39829
39829
|
}
|
|
39830
39830
|
function reducePathComponents(components) {
|
|
39831
39831
|
if (!some(components))
|
|
@@ -39850,64 +39850,64 @@ var require_ts_internals = __commonJS({
|
|
|
39850
39850
|
}
|
|
39851
39851
|
return reduced;
|
|
39852
39852
|
}
|
|
39853
|
-
function getRootLength(
|
|
39854
|
-
const rootLength = getEncodedRootLength(
|
|
39853
|
+
function getRootLength(path3) {
|
|
39854
|
+
const rootLength = getEncodedRootLength(path3);
|
|
39855
39855
|
return rootLength < 0 ? ~rootLength : rootLength;
|
|
39856
39856
|
}
|
|
39857
|
-
function getEncodedRootLength(
|
|
39858
|
-
if (!
|
|
39857
|
+
function getEncodedRootLength(path3) {
|
|
39858
|
+
if (!path3)
|
|
39859
39859
|
return 0;
|
|
39860
|
-
const ch0 =
|
|
39860
|
+
const ch0 = path3.charCodeAt(0);
|
|
39861
39861
|
if (ch0 === 47 || ch0 === 92) {
|
|
39862
|
-
if (
|
|
39862
|
+
if (path3.charCodeAt(1) !== ch0)
|
|
39863
39863
|
return 1;
|
|
39864
|
-
const p1 =
|
|
39864
|
+
const p1 = path3.indexOf(ch0 === 47 ? directorySeparator : altDirectorySeparator, 2);
|
|
39865
39865
|
if (p1 < 0)
|
|
39866
|
-
return
|
|
39866
|
+
return path3.length;
|
|
39867
39867
|
return p1 + 1;
|
|
39868
39868
|
}
|
|
39869
|
-
if (isVolumeCharacter(ch0) &&
|
|
39870
|
-
const ch2 =
|
|
39869
|
+
if (isVolumeCharacter(ch0) && path3.charCodeAt(1) === 58) {
|
|
39870
|
+
const ch2 = path3.charCodeAt(2);
|
|
39871
39871
|
if (ch2 === 47 || ch2 === 92)
|
|
39872
39872
|
return 3;
|
|
39873
|
-
if (
|
|
39873
|
+
if (path3.length === 2)
|
|
39874
39874
|
return 2;
|
|
39875
39875
|
}
|
|
39876
|
-
const schemeEnd =
|
|
39876
|
+
const schemeEnd = path3.indexOf(urlSchemeSeparator);
|
|
39877
39877
|
if (schemeEnd !== -1) {
|
|
39878
39878
|
const authorityStart = schemeEnd + urlSchemeSeparator.length;
|
|
39879
|
-
const authorityEnd =
|
|
39879
|
+
const authorityEnd = path3.indexOf(directorySeparator, authorityStart);
|
|
39880
39880
|
if (authorityEnd !== -1) {
|
|
39881
|
-
const scheme =
|
|
39882
|
-
const authority =
|
|
39883
|
-
if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(
|
|
39884
|
-
const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(
|
|
39881
|
+
const scheme = path3.slice(0, schemeEnd);
|
|
39882
|
+
const authority = path3.slice(authorityStart, authorityEnd);
|
|
39883
|
+
if (scheme === "file" && (authority === "" || authority === "localhost") && isVolumeCharacter(path3.charCodeAt(authorityEnd + 1))) {
|
|
39884
|
+
const volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path3, authorityEnd + 2);
|
|
39885
39885
|
if (volumeSeparatorEnd !== -1) {
|
|
39886
|
-
if (
|
|
39886
|
+
if (path3.charCodeAt(volumeSeparatorEnd) === 47) {
|
|
39887
39887
|
return ~(volumeSeparatorEnd + 1);
|
|
39888
39888
|
}
|
|
39889
|
-
if (volumeSeparatorEnd ===
|
|
39889
|
+
if (volumeSeparatorEnd === path3.length) {
|
|
39890
39890
|
return ~volumeSeparatorEnd;
|
|
39891
39891
|
}
|
|
39892
39892
|
}
|
|
39893
39893
|
}
|
|
39894
39894
|
return ~(authorityEnd + 1);
|
|
39895
39895
|
}
|
|
39896
|
-
return ~
|
|
39896
|
+
return ~path3.length;
|
|
39897
39897
|
}
|
|
39898
39898
|
return 0;
|
|
39899
39899
|
}
|
|
39900
|
-
function hasTrailingDirectorySeparator(
|
|
39901
|
-
return
|
|
39900
|
+
function hasTrailingDirectorySeparator(path3) {
|
|
39901
|
+
return path3.length > 0 && isAnyDirectorySeparator(path3.charCodeAt(path3.length - 1));
|
|
39902
39902
|
}
|
|
39903
39903
|
function isAnyDirectorySeparator(charCode) {
|
|
39904
39904
|
return charCode === 47 || charCode === 92;
|
|
39905
39905
|
}
|
|
39906
|
-
function removeTrailingDirectorySeparator(
|
|
39907
|
-
if (hasTrailingDirectorySeparator(
|
|
39908
|
-
return
|
|
39906
|
+
function removeTrailingDirectorySeparator(path3) {
|
|
39907
|
+
if (hasTrailingDirectorySeparator(path3)) {
|
|
39908
|
+
return path3.substr(0, path3.length - 1);
|
|
39909
39909
|
}
|
|
39910
|
-
return
|
|
39910
|
+
return path3;
|
|
39911
39911
|
}
|
|
39912
39912
|
var directorySeparator = "/";
|
|
39913
39913
|
var altDirectorySeparator = "\\";
|
|
@@ -39940,9 +39940,9 @@ var require_ts_internals = __commonJS({
|
|
|
39940
39940
|
}
|
|
39941
39941
|
return false;
|
|
39942
39942
|
}
|
|
39943
|
-
function pathComponents(
|
|
39944
|
-
const root =
|
|
39945
|
-
const rest =
|
|
39943
|
+
function pathComponents(path3, rootLength) {
|
|
39944
|
+
const root = path3.substring(0, rootLength);
|
|
39945
|
+
const rest = path3.substring(rootLength).split(directorySeparator);
|
|
39946
39946
|
if (rest.length && !lastOrUndefined(rest))
|
|
39947
39947
|
rest.pop();
|
|
39948
39948
|
return [root, ...rest];
|
|
@@ -40204,7 +40204,7 @@ var require_configuration = __commonJS({
|
|
|
40204
40204
|
const options = filterRecognizedTsConfigTsNodeOptions(config2["ts-node"]).recognized;
|
|
40205
40205
|
if (options.require) {
|
|
40206
40206
|
const tsconfigRelativeResolver = (0, util_1.createProjectLocalResolveHelper)((0, path_1.dirname)(configPath));
|
|
40207
|
-
options.require = options.require.map((
|
|
40207
|
+
options.require = options.require.map((path3) => tsconfigRelativeResolver(path3, false));
|
|
40208
40208
|
}
|
|
40209
40209
|
if (options.scopeDir) {
|
|
40210
40210
|
options.scopeDir = (0, path_1.resolve)(basePath2, options.scopeDir);
|
|
@@ -40356,14 +40356,14 @@ var require_module_type_classifier = __commonJS({
|
|
|
40356
40356
|
}
|
|
40357
40357
|
};
|
|
40358
40358
|
const auto = classifications.package;
|
|
40359
|
-
function classifyModuleNonCached(
|
|
40360
|
-
const matched = matchPatterns(patternTypePairs, (_) => _.pattern,
|
|
40359
|
+
function classifyModuleNonCached(path3) {
|
|
40360
|
+
const matched = matchPatterns(patternTypePairs, (_) => _.pattern, path3);
|
|
40361
40361
|
if (matched)
|
|
40362
40362
|
return classifications[matched.type];
|
|
40363
40363
|
return auto;
|
|
40364
40364
|
}
|
|
40365
40365
|
const classifyModule = (0, util_1.cachedLookup)(classifyModuleNonCached);
|
|
40366
|
-
function classifyModuleAuto(
|
|
40366
|
+
function classifyModuleAuto(path3) {
|
|
40367
40367
|
return auto;
|
|
40368
40368
|
}
|
|
40369
40369
|
return {
|
|
@@ -40585,10 +40585,10 @@ var require_node_internalBinding_fs = __commonJS({
|
|
|
40585
40585
|
"node_modules/.pnpm/ts-node@10.9.1_@swc+core@1.3.96_@types+node@20.9.0_typescript@5.2.2/node_modules/ts-node/dist-raw/node-internalBinding-fs.js"(exports, module2) {
|
|
40586
40586
|
var fs2 = require("fs");
|
|
40587
40587
|
var { versionGteLt } = require_util3();
|
|
40588
|
-
function internalModuleReadJSON(
|
|
40588
|
+
function internalModuleReadJSON(path3) {
|
|
40589
40589
|
let string;
|
|
40590
40590
|
try {
|
|
40591
|
-
string = fs2.readFileSync(
|
|
40591
|
+
string = fs2.readFileSync(path3, "utf8");
|
|
40592
40592
|
} catch (e) {
|
|
40593
40593
|
if (e.code === "ENOENT")
|
|
40594
40594
|
return [];
|
|
@@ -40597,8 +40597,8 @@ var require_node_internalBinding_fs = __commonJS({
|
|
|
40597
40597
|
const containsKeys = true;
|
|
40598
40598
|
return [string, containsKeys];
|
|
40599
40599
|
}
|
|
40600
|
-
function internalModuleStat(
|
|
40601
|
-
const stat = fs2.statSync(
|
|
40600
|
+
function internalModuleStat(path3) {
|
|
40601
|
+
const stat = fs2.statSync(path3, { throwIfNoEntry: false });
|
|
40602
40602
|
if (!stat)
|
|
40603
40603
|
return -1;
|
|
40604
40604
|
if (stat.isFile())
|
|
@@ -40606,9 +40606,9 @@ var require_node_internalBinding_fs = __commonJS({
|
|
|
40606
40606
|
if (stat.isDirectory())
|
|
40607
40607
|
return 1;
|
|
40608
40608
|
}
|
|
40609
|
-
function internalModuleStatInefficient(
|
|
40609
|
+
function internalModuleStatInefficient(path3) {
|
|
40610
40610
|
try {
|
|
40611
|
-
const stat = fs2.statSync(
|
|
40611
|
+
const stat = fs2.statSync(path3);
|
|
40612
40612
|
if (stat.isFile())
|
|
40613
40613
|
return 0;
|
|
40614
40614
|
if (stat.isDirectory())
|
|
@@ -40918,7 +40918,7 @@ var require_node_internal_modules_cjs_helpers = __commonJS({
|
|
|
40918
40918
|
var require_node_internal_errors = __commonJS({
|
|
40919
40919
|
"node_modules/.pnpm/ts-node@10.9.1_@swc+core@1.3.96_@types+node@20.9.0_typescript@5.2.2/node_modules/ts-node/dist-raw/node-internal-errors.js"(exports) {
|
|
40920
40920
|
"use strict";
|
|
40921
|
-
var
|
|
40921
|
+
var path3 = require("path");
|
|
40922
40922
|
exports.codes = {
|
|
40923
40923
|
ERR_INPUT_TYPE_NOT_ALLOWED: createErrorCtor(joinArgs("ERR_INPUT_TYPE_NOT_ALLOWED")),
|
|
40924
40924
|
ERR_INVALID_ARG_VALUE: createErrorCtor(joinArgs("ERR_INVALID_ARG_VALUE")),
|
|
@@ -40926,8 +40926,8 @@ var require_node_internal_errors = __commonJS({
|
|
|
40926
40926
|
ERR_INVALID_PACKAGE_CONFIG: createErrorCtor(joinArgs("ERR_INVALID_PACKAGE_CONFIG")),
|
|
40927
40927
|
ERR_INVALID_PACKAGE_TARGET: createErrorCtor(joinArgs("ERR_INVALID_PACKAGE_TARGET")),
|
|
40928
40928
|
ERR_MANIFEST_DEPENDENCY_MISSING: createErrorCtor(joinArgs("ERR_MANIFEST_DEPENDENCY_MISSING")),
|
|
40929
|
-
ERR_MODULE_NOT_FOUND: createErrorCtor((
|
|
40930
|
-
return `Cannot find ${type} '${
|
|
40929
|
+
ERR_MODULE_NOT_FOUND: createErrorCtor((path4, base, type = "package") => {
|
|
40930
|
+
return `Cannot find ${type} '${path4}' imported from ${base}`;
|
|
40931
40931
|
}),
|
|
40932
40932
|
ERR_PACKAGE_IMPORT_NOT_DEFINED: createErrorCtor(joinArgs("ERR_PACKAGE_IMPORT_NOT_DEFINED")),
|
|
40933
40933
|
ERR_PACKAGE_PATH_NOT_EXPORTED: createErrorCtor(joinArgs("ERR_PACKAGE_PATH_NOT_EXPORTED")),
|
|
@@ -40963,11 +40963,11 @@ var require_node_internal_errors = __commonJS({
|
|
|
40963
40963
|
return err;
|
|
40964
40964
|
}
|
|
40965
40965
|
function getErrRequireEsmMessage(filename, parentPath = null, packageJsonPath = null) {
|
|
40966
|
-
const ext =
|
|
40966
|
+
const ext = path3.extname(filename);
|
|
40967
40967
|
let msg = `Must use import to load ES Module: ${filename}`;
|
|
40968
40968
|
if (parentPath && packageJsonPath) {
|
|
40969
|
-
const
|
|
40970
|
-
const basename =
|
|
40969
|
+
const path4 = require("path");
|
|
40970
|
+
const basename = path4.basename(filename) === path4.basename(parentPath) ? filename : path4.basename(filename);
|
|
40971
40971
|
msg += `
|
|
40972
40972
|
require() of ES modules is not supported.
|
|
40973
40973
|
require() of ${filename} ${parentPath ? `from ${parentPath} ` : ""}is an ES module file as it is a ${ext} file whose nearest parent package.json contains "type": "module" which defines all ${ext} files in that package scope as ES modules.
|
|
@@ -41015,8 +41015,8 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41015
41015
|
var { NativeModule } = require_node_nativemodule();
|
|
41016
41016
|
var { pathToFileURL, fileURLToPath: fileURLToPath3 } = require("url");
|
|
41017
41017
|
var fs2 = require("fs");
|
|
41018
|
-
var
|
|
41019
|
-
var { sep } =
|
|
41018
|
+
var path3 = require("path");
|
|
41019
|
+
var { sep } = path3;
|
|
41020
41020
|
var { internalModuleStat } = require_node_internalBinding_fs();
|
|
41021
41021
|
var packageJsonReader = require_node_internal_modules_package_json_reader();
|
|
41022
41022
|
var {
|
|
@@ -41039,7 +41039,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41039
41039
|
var isWindows = process.platform === "win32";
|
|
41040
41040
|
var statCache = null;
|
|
41041
41041
|
function stat(filename) {
|
|
41042
|
-
filename =
|
|
41042
|
+
filename = path3.toNamespacedPath(filename);
|
|
41043
41043
|
if (statCache !== null) {
|
|
41044
41044
|
const result2 = statCache.get(filename);
|
|
41045
41045
|
if (result2 !== void 0)
|
|
@@ -41054,7 +41054,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41054
41054
|
var moduleParentCache = new SafeWeakMap();
|
|
41055
41055
|
var packageJsonCache = new SafeMap();
|
|
41056
41056
|
function readPackage(requestPath) {
|
|
41057
|
-
const jsonPath =
|
|
41057
|
+
const jsonPath = path3.resolve(requestPath, "package.json");
|
|
41058
41058
|
const existing = packageJsonCache.get(jsonPath);
|
|
41059
41059
|
if (existing !== void 0)
|
|
41060
41060
|
return existing;
|
|
@@ -41110,22 +41110,22 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41110
41110
|
const tmp = readPackage(requestPath);
|
|
41111
41111
|
const pkg = tmp != null ? tmp.main : void 0;
|
|
41112
41112
|
if (!pkg) {
|
|
41113
|
-
return tryExtensions(
|
|
41113
|
+
return tryExtensions(path3.resolve(requestPath, "index"), exts, isMain);
|
|
41114
41114
|
}
|
|
41115
|
-
const filename =
|
|
41116
|
-
let actual = tryReplacementExtensions(filename, isMain) || tryFile(filename, isMain) || tryExtensions(filename, exts, isMain) || tryExtensions(
|
|
41115
|
+
const filename = path3.resolve(requestPath, pkg);
|
|
41116
|
+
let actual = tryReplacementExtensions(filename, isMain) || tryFile(filename, isMain) || tryExtensions(filename, exts, isMain) || tryExtensions(path3.resolve(filename, "index"), exts, isMain);
|
|
41117
41117
|
if (actual === false) {
|
|
41118
|
-
actual = tryExtensions(
|
|
41118
|
+
actual = tryExtensions(path3.resolve(requestPath, "index"), exts, isMain);
|
|
41119
41119
|
if (!actual) {
|
|
41120
41120
|
const err = new Error(
|
|
41121
41121
|
`Cannot find module '${filename}'. Please verify that the package.json has a valid "main" entry`
|
|
41122
41122
|
);
|
|
41123
41123
|
err.code = "MODULE_NOT_FOUND";
|
|
41124
|
-
err.path =
|
|
41124
|
+
err.path = path3.resolve(requestPath, "package.json");
|
|
41125
41125
|
err.requestPath = originalPath;
|
|
41126
41126
|
throw err;
|
|
41127
41127
|
} else {
|
|
41128
|
-
const jsonPath =
|
|
41128
|
+
const jsonPath = path3.resolve(requestPath, "package.json");
|
|
41129
41129
|
process.emitWarning(
|
|
41130
41130
|
`Invalid 'main' field in '${jsonPath}' of '${pkg}'. Please either fix that or report it to the module author`,
|
|
41131
41131
|
"DeprecationWarning",
|
|
@@ -41141,7 +41141,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41141
41141
|
if (rc !== 0)
|
|
41142
41142
|
return;
|
|
41143
41143
|
if (preserveSymlinks && !isMain) {
|
|
41144
|
-
return
|
|
41144
|
+
return path3.resolve(requestPath);
|
|
41145
41145
|
}
|
|
41146
41146
|
return toRealPath(requestPath);
|
|
41147
41147
|
}
|
|
@@ -41201,7 +41201,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41201
41201
|
return parent.filename;
|
|
41202
41202
|
} else if (parent.id === "<repl>" || parent.id === "internal/preload") {
|
|
41203
41203
|
try {
|
|
41204
|
-
return process.cwd() +
|
|
41204
|
+
return process.cwd() + path3.sep;
|
|
41205
41205
|
} catch {
|
|
41206
41206
|
return false;
|
|
41207
41207
|
}
|
|
@@ -41242,7 +41242,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41242
41242
|
const { 1: name, 2: expansion = "" } = StringPrototypeMatch(request, EXPORTS_PATTERN) || [];
|
|
41243
41243
|
if (!name)
|
|
41244
41244
|
return;
|
|
41245
|
-
const pkgPath =
|
|
41245
|
+
const pkgPath = path3.resolve(nmPath, name);
|
|
41246
41246
|
const pkg = readPackage(pkgPath);
|
|
41247
41247
|
if (pkg != null && pkg.exports != null) {
|
|
41248
41248
|
try {
|
|
@@ -41266,7 +41266,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41266
41266
|
const Module_pathCache_set = hasModulePathCache ? (cacheKey, value2) => Module._pathCache[cacheKey] = value2 : (cacheKey) => Module_pathCache[cacheKey] = value;
|
|
41267
41267
|
const trailingSlashRegex = /(?:^|\/)\.?\.$/;
|
|
41268
41268
|
const Module_findPath = function _findPath(request, paths, isMain) {
|
|
41269
|
-
const absoluteRequest =
|
|
41269
|
+
const absoluteRequest = path3.isAbsolute(request);
|
|
41270
41270
|
if (absoluteRequest) {
|
|
41271
41271
|
paths = [""];
|
|
41272
41272
|
} else if (!paths || paths.length === 0) {
|
|
@@ -41290,19 +41290,19 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41290
41290
|
if (exportsResolved)
|
|
41291
41291
|
return exportsResolved;
|
|
41292
41292
|
}
|
|
41293
|
-
const _basePath =
|
|
41293
|
+
const _basePath = path3.resolve(curPath, request);
|
|
41294
41294
|
let filename;
|
|
41295
41295
|
const [rc, basePath] = statReplacementExtensions(_basePath);
|
|
41296
41296
|
if (!trailingSlash) {
|
|
41297
41297
|
if (rc === 0) {
|
|
41298
41298
|
if (!isMain) {
|
|
41299
41299
|
if (preserveSymlinks) {
|
|
41300
|
-
filename =
|
|
41300
|
+
filename = path3.resolve(basePath);
|
|
41301
41301
|
} else {
|
|
41302
41302
|
filename = toRealPath(basePath);
|
|
41303
41303
|
}
|
|
41304
41304
|
} else if (preserveSymlinksMain) {
|
|
41305
|
-
filename =
|
|
41305
|
+
filename = path3.resolve(basePath);
|
|
41306
41306
|
} else {
|
|
41307
41307
|
filename = toRealPath(basePath);
|
|
41308
41308
|
}
|
|
@@ -41339,8 +41339,8 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41339
41339
|
const fakeParent = new Module("", null);
|
|
41340
41340
|
paths = [];
|
|
41341
41341
|
for (let i = 0; i < options.paths.length; i++) {
|
|
41342
|
-
const
|
|
41343
|
-
fakeParent.paths = Module._nodeModulePaths(
|
|
41342
|
+
const path4 = options.paths[i];
|
|
41343
|
+
fakeParent.paths = Module._nodeModulePaths(path4);
|
|
41344
41344
|
const lookupPaths = Module._resolveLookupPaths(request, fakeParent);
|
|
41345
41345
|
for (let j = 0; j < lookupPaths.length; j++) {
|
|
41346
41346
|
if (!ArrayPrototypeIncludes(paths, lookupPaths[j]))
|
|
@@ -41414,15 +41414,15 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41414
41414
|
return actual;
|
|
41415
41415
|
const err = createEsmNotFoundErr(
|
|
41416
41416
|
filename,
|
|
41417
|
-
|
|
41417
|
+
path3.resolve(pkgPath, "package.json")
|
|
41418
41418
|
);
|
|
41419
41419
|
throw err;
|
|
41420
41420
|
}
|
|
41421
|
-
function createEsmNotFoundErr(request,
|
|
41421
|
+
function createEsmNotFoundErr(request, path4) {
|
|
41422
41422
|
const err = new Error(`Cannot find module '${request}'`);
|
|
41423
41423
|
err.code = "MODULE_NOT_FOUND";
|
|
41424
|
-
if (
|
|
41425
|
-
err.path =
|
|
41424
|
+
if (path4)
|
|
41425
|
+
err.path = path4;
|
|
41426
41426
|
return err;
|
|
41427
41427
|
}
|
|
41428
41428
|
return {
|
|
@@ -41441,7 +41441,7 @@ var require_node_internal_modules_cjs_loader = __commonJS({
|
|
|
41441
41441
|
return;
|
|
41442
41442
|
if (ext === ".mts" || ext === ".mjs" || tsNodeClassification.moduleType === "esm" || pkg && pkg.data && pkg.data.type === "module") {
|
|
41443
41443
|
const parentPath = module3.parent && module3.parent.filename;
|
|
41444
|
-
const packageJsonPath = pkg ?
|
|
41444
|
+
const packageJsonPath = pkg ? path3.resolve(pkg.path, "package.json") : null;
|
|
41445
41445
|
throw createErrRequireEsm(filename, parentPath, packageJsonPath);
|
|
41446
41446
|
}
|
|
41447
41447
|
}
|
|
@@ -47976,10 +47976,10 @@ var require_base = __commonJS({
|
|
|
47976
47976
|
}
|
|
47977
47977
|
return components;
|
|
47978
47978
|
}
|
|
47979
|
-
function clonePath(
|
|
47979
|
+
function clonePath(path3) {
|
|
47980
47980
|
return {
|
|
47981
|
-
newPos:
|
|
47982
|
-
components:
|
|
47981
|
+
newPos: path3.newPos,
|
|
47982
|
+
components: path3.components.slice(0)
|
|
47983
47983
|
};
|
|
47984
47984
|
}
|
|
47985
47985
|
}
|
|
@@ -49678,8 +49678,8 @@ ${module_1.builtinModules.filter((name) => !name.startsWith("_") && !name.includ
|
|
|
49678
49678
|
}
|
|
49679
49679
|
exports.createRepl = createRepl;
|
|
49680
49680
|
var EvalState = class {
|
|
49681
|
-
constructor(
|
|
49682
|
-
this.path =
|
|
49681
|
+
constructor(path3) {
|
|
49682
|
+
this.path = path3;
|
|
49683
49683
|
this.input = "";
|
|
49684
49684
|
this.output = "";
|
|
49685
49685
|
this.version = 0;
|
|
@@ -49688,23 +49688,23 @@ ${module_1.builtinModules.filter((name) => !name.startsWith("_") && !name.includ
|
|
|
49688
49688
|
};
|
|
49689
49689
|
exports.EvalState = EvalState;
|
|
49690
49690
|
function createEvalAwarePartialHost(state, composeWith) {
|
|
49691
|
-
function readFile(
|
|
49692
|
-
if (
|
|
49691
|
+
function readFile(path3) {
|
|
49692
|
+
if (path3 === state.path)
|
|
49693
49693
|
return state.input;
|
|
49694
49694
|
if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.readFile)
|
|
49695
|
-
return composeWith.readFile(
|
|
49695
|
+
return composeWith.readFile(path3);
|
|
49696
49696
|
try {
|
|
49697
|
-
return (0, fs_1.readFileSync)(
|
|
49697
|
+
return (0, fs_1.readFileSync)(path3, "utf8");
|
|
49698
49698
|
} catch (err) {
|
|
49699
49699
|
}
|
|
49700
49700
|
}
|
|
49701
|
-
function fileExists(
|
|
49702
|
-
if (
|
|
49701
|
+
function fileExists(path3) {
|
|
49702
|
+
if (path3 === state.path)
|
|
49703
49703
|
return true;
|
|
49704
49704
|
if (composeWith === null || composeWith === void 0 ? void 0 : composeWith.fileExists)
|
|
49705
|
-
return composeWith.fileExists(
|
|
49705
|
+
return composeWith.fileExists(path3);
|
|
49706
49706
|
try {
|
|
49707
|
-
const stats = (0, fs_1.statSync)(
|
|
49707
|
+
const stats = (0, fs_1.statSync)(path3);
|
|
49708
49708
|
return stats.isFile() || stats.isFIFO();
|
|
49709
49709
|
} catch (err) {
|
|
49710
49710
|
return false;
|
|
@@ -50274,16 +50274,16 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
50274
50274
|
}
|
|
50275
50275
|
function parseFileUrl(input) {
|
|
50276
50276
|
const match = fileRegex.exec(input);
|
|
50277
|
-
const
|
|
50278
|
-
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(
|
|
50277
|
+
const path3 = match[2];
|
|
50278
|
+
return makeUrl("file:", "", match[1] || "", "", isAbsolutePath(path3) ? path3 : "/" + path3, match[3] || "", match[4] || "");
|
|
50279
50279
|
}
|
|
50280
|
-
function makeUrl(scheme, user, host, port,
|
|
50280
|
+
function makeUrl(scheme, user, host, port, path3, query, hash) {
|
|
50281
50281
|
return {
|
|
50282
50282
|
scheme,
|
|
50283
50283
|
user,
|
|
50284
50284
|
host,
|
|
50285
50285
|
port,
|
|
50286
|
-
path:
|
|
50286
|
+
path: path3,
|
|
50287
50287
|
query,
|
|
50288
50288
|
hash,
|
|
50289
50289
|
type: UrlType.Absolute
|
|
@@ -50313,11 +50313,11 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
50313
50313
|
url.type = input ? input.startsWith("?") ? UrlType.Query : input.startsWith("#") ? UrlType.Hash : UrlType.RelativePath : UrlType.Empty;
|
|
50314
50314
|
return url;
|
|
50315
50315
|
}
|
|
50316
|
-
function stripPathFilename(
|
|
50317
|
-
if (
|
|
50318
|
-
return
|
|
50319
|
-
const index =
|
|
50320
|
-
return
|
|
50316
|
+
function stripPathFilename(path3) {
|
|
50317
|
+
if (path3.endsWith("/.."))
|
|
50318
|
+
return path3;
|
|
50319
|
+
const index = path3.lastIndexOf("/");
|
|
50320
|
+
return path3.slice(0, index + 1);
|
|
50321
50321
|
}
|
|
50322
50322
|
function mergePaths(url, base) {
|
|
50323
50323
|
normalizePath(base, base.type);
|
|
@@ -50355,14 +50355,14 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
50355
50355
|
pieces[pointer++] = piece;
|
|
50356
50356
|
positive++;
|
|
50357
50357
|
}
|
|
50358
|
-
let
|
|
50358
|
+
let path3 = "";
|
|
50359
50359
|
for (let i = 1; i < pointer; i++) {
|
|
50360
|
-
|
|
50360
|
+
path3 += "/" + pieces[i];
|
|
50361
50361
|
}
|
|
50362
|
-
if (!
|
|
50363
|
-
|
|
50362
|
+
if (!path3 || addTrailingSlash && !path3.endsWith("/..")) {
|
|
50363
|
+
path3 += "/";
|
|
50364
50364
|
}
|
|
50365
|
-
url.path =
|
|
50365
|
+
url.path = path3;
|
|
50366
50366
|
}
|
|
50367
50367
|
function resolve2(input, base) {
|
|
50368
50368
|
if (!input && !base)
|
|
@@ -50397,13 +50397,13 @@ var require_resolve_uri_umd = __commonJS({
|
|
|
50397
50397
|
case UrlType.Query:
|
|
50398
50398
|
return queryHash;
|
|
50399
50399
|
case UrlType.RelativePath: {
|
|
50400
|
-
const
|
|
50401
|
-
if (!
|
|
50400
|
+
const path3 = url.path.slice(1);
|
|
50401
|
+
if (!path3)
|
|
50402
50402
|
return queryHash || ".";
|
|
50403
|
-
if (isRelative(base || input) && !isRelative(
|
|
50404
|
-
return "./" +
|
|
50403
|
+
if (isRelative(base || input) && !isRelative(path3)) {
|
|
50404
|
+
return "./" + path3 + queryHash;
|
|
50405
50405
|
}
|
|
50406
|
-
return
|
|
50406
|
+
return path3 + queryHash;
|
|
50407
50407
|
}
|
|
50408
50408
|
case UrlType.AbsolutePath:
|
|
50409
50409
|
return url.path + queryHash;
|
|
@@ -50432,11 +50432,11 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
50432
50432
|
base += "/";
|
|
50433
50433
|
return resolveUri__default["default"](input, base);
|
|
50434
50434
|
}
|
|
50435
|
-
function stripFilename(
|
|
50436
|
-
if (!
|
|
50435
|
+
function stripFilename(path3) {
|
|
50436
|
+
if (!path3)
|
|
50437
50437
|
return "";
|
|
50438
|
-
const index =
|
|
50439
|
-
return
|
|
50438
|
+
const index = path3.lastIndexOf("/");
|
|
50439
|
+
return path3.slice(0, index + 1);
|
|
50440
50440
|
}
|
|
50441
50441
|
const COLUMN = 0;
|
|
50442
50442
|
const SOURCES_INDEX = 1;
|
|
@@ -50841,7 +50841,7 @@ var require_trace_mapping_umd = __commonJS({
|
|
|
50841
50841
|
var require_source_map_support = __commonJS({
|
|
50842
50842
|
"node_modules/.pnpm/@cspotcode+source-map-support@0.8.1/node_modules/@cspotcode/source-map-support/source-map-support.js"(exports, module2) {
|
|
50843
50843
|
var { TraceMap, originalPositionFor, AnyMap } = require_trace_mapping_umd();
|
|
50844
|
-
var
|
|
50844
|
+
var path3 = require("path");
|
|
50845
50845
|
var { fileURLToPath: fileURLToPath3, pathToFileURL } = require("url");
|
|
50846
50846
|
var util2 = require("util");
|
|
50847
50847
|
var fs2;
|
|
@@ -50987,17 +50987,17 @@ var require_source_map_support = __commonJS({
|
|
|
50987
50987
|
};
|
|
50988
50988
|
}
|
|
50989
50989
|
var retrieveFile = handlerExec(sharedData.retrieveFileHandlers, sharedData.internalRetrieveFileHandlers);
|
|
50990
|
-
sharedData.internalRetrieveFileHandlers.push(function(
|
|
50991
|
-
|
|
50992
|
-
if (/^file:/.test(
|
|
50993
|
-
|
|
50990
|
+
sharedData.internalRetrieveFileHandlers.push(function(path4) {
|
|
50991
|
+
path4 = path4.trim();
|
|
50992
|
+
if (/^file:/.test(path4)) {
|
|
50993
|
+
path4 = path4.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
|
|
50994
50994
|
return drive ? "" : (
|
|
50995
50995
|
// file:///C:/dir/file -> C:/dir/file
|
|
50996
50996
|
"/"
|
|
50997
50997
|
);
|
|
50998
50998
|
});
|
|
50999
50999
|
}
|
|
51000
|
-
const key = getCacheKey(
|
|
51000
|
+
const key = getCacheKey(path4);
|
|
51001
51001
|
if (hasFileContentsCacheFromKey(key)) {
|
|
51002
51002
|
return getFileContentsCacheFromKey(key);
|
|
51003
51003
|
}
|
|
@@ -51007,7 +51007,7 @@ var require_source_map_support = __commonJS({
|
|
|
51007
51007
|
var xhr = new XMLHttpRequest();
|
|
51008
51008
|
xhr.open(
|
|
51009
51009
|
"GET",
|
|
51010
|
-
|
|
51010
|
+
path4,
|
|
51011
51011
|
/** async */
|
|
51012
51012
|
false
|
|
51013
51013
|
);
|
|
@@ -51015,12 +51015,12 @@ var require_source_map_support = __commonJS({
|
|
|
51015
51015
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
51016
51016
|
contents = xhr.responseText;
|
|
51017
51017
|
}
|
|
51018
|
-
} else if (fs2.existsSync(
|
|
51019
|
-
contents = fs2.readFileSync(
|
|
51018
|
+
} else if (fs2.existsSync(path4)) {
|
|
51019
|
+
contents = fs2.readFileSync(path4, "utf8");
|
|
51020
51020
|
}
|
|
51021
51021
|
} catch (er) {
|
|
51022
51022
|
}
|
|
51023
|
-
return setFileContentsCache(
|
|
51023
|
+
return setFileContentsCache(path4, contents);
|
|
51024
51024
|
});
|
|
51025
51025
|
function supportRelativeURL(file, url) {
|
|
51026
51026
|
if (!file)
|
|
@@ -51030,12 +51030,12 @@ var require_source_map_support = __commonJS({
|
|
|
51030
51030
|
if (isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
|
|
51031
51031
|
return new URL(url, file).toString();
|
|
51032
51032
|
}
|
|
51033
|
-
if (
|
|
51033
|
+
if (path3.isAbsolute(url)) {
|
|
51034
51034
|
return new URL(pathToFileURL(url), file).toString();
|
|
51035
51035
|
}
|
|
51036
51036
|
return new URL(url.replace(/\\/g, "/"), file).toString();
|
|
51037
51037
|
}
|
|
51038
|
-
if (
|
|
51038
|
+
if (path3.isAbsolute(file)) {
|
|
51039
51039
|
if (isFileUrl(url)) {
|
|
51040
51040
|
return fileURLToPath3(url);
|
|
51041
51041
|
}
|
|
@@ -51045,15 +51045,15 @@ var require_source_map_support = __commonJS({
|
|
|
51045
51045
|
if (isAbsoluteUrl(url)) {
|
|
51046
51046
|
return url;
|
|
51047
51047
|
}
|
|
51048
|
-
if (
|
|
51049
|
-
return
|
|
51048
|
+
if (path3.isAbsolute(url)) {
|
|
51049
|
+
return path3.normalize(url);
|
|
51050
51050
|
}
|
|
51051
|
-
return
|
|
51051
|
+
return path3.join(file, "..", decodeURI(url));
|
|
51052
51052
|
}
|
|
51053
51053
|
if (isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
|
|
51054
51054
|
return url;
|
|
51055
51055
|
}
|
|
51056
|
-
return
|
|
51056
|
+
return path3.join(file, "..", url);
|
|
51057
51057
|
} catch (e) {
|
|
51058
51058
|
return url;
|
|
51059
51059
|
}
|
|
@@ -51063,9 +51063,9 @@ var require_source_map_support = __commonJS({
|
|
|
51063
51063
|
if (isAbsoluteUrl(matchStyleOf) || isSchemeRelativeUrl(matchStyleOf)) {
|
|
51064
51064
|
if (isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl))
|
|
51065
51065
|
return pathOrUrl;
|
|
51066
|
-
if (
|
|
51066
|
+
if (path3.isAbsolute(pathOrUrl))
|
|
51067
51067
|
return pathToFileURL(pathOrUrl).toString();
|
|
51068
|
-
} else if (
|
|
51068
|
+
} else if (path3.isAbsolute(matchStyleOf)) {
|
|
51069
51069
|
if (isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) {
|
|
51070
51070
|
return fileURLToPath3(new URL(pathOrUrl, "file://"));
|
|
51071
51071
|
}
|
|
@@ -51317,7 +51317,7 @@ var require_source_map_support = __commonJS({
|
|
|
51317
51317
|
}
|
|
51318
51318
|
var kIsNodeError = void 0;
|
|
51319
51319
|
try {
|
|
51320
|
-
|
|
51320
|
+
path3.resolve(123);
|
|
51321
51321
|
} catch (e) {
|
|
51322
51322
|
const symbols = Object.getOwnPropertySymbols(e);
|
|
51323
51323
|
const symbol = symbols.find(function(s) {
|
|
@@ -51664,28 +51664,28 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51664
51664
|
const statSupportsThrowIfNoEntry = versionGteLt(process.versions.node, "15.3.0") || versionGteLt(process.versions.node, "14.17.0", "15.0.0");
|
|
51665
51665
|
const tryStatSync = statSupportsThrowIfNoEntry ? tryStatSyncWithoutErrors : tryStatSyncWithErrors;
|
|
51666
51666
|
const statsIfNotFound = new Stats();
|
|
51667
|
-
function tryStatSyncWithoutErrors(
|
|
51668
|
-
const stats = statSync(
|
|
51667
|
+
function tryStatSyncWithoutErrors(path3) {
|
|
51668
|
+
const stats = statSync(path3, { throwIfNoEntry: false });
|
|
51669
51669
|
if (stats != null)
|
|
51670
51670
|
return stats;
|
|
51671
51671
|
return statsIfNotFound;
|
|
51672
51672
|
}
|
|
51673
|
-
function tryStatSyncWithErrors(
|
|
51673
|
+
function tryStatSyncWithErrors(path3) {
|
|
51674
51674
|
try {
|
|
51675
|
-
return statSync(
|
|
51675
|
+
return statSync(path3);
|
|
51676
51676
|
} catch {
|
|
51677
51677
|
return statsIfNotFound;
|
|
51678
51678
|
}
|
|
51679
51679
|
}
|
|
51680
|
-
function getPackageConfig(
|
|
51681
|
-
const existing = packageJSONCache.get(
|
|
51680
|
+
function getPackageConfig(path3, specifier, base) {
|
|
51681
|
+
const existing = packageJSONCache.get(path3);
|
|
51682
51682
|
if (existing !== void 0) {
|
|
51683
51683
|
return existing;
|
|
51684
51684
|
}
|
|
51685
|
-
const source = packageJsonReader.read(
|
|
51685
|
+
const source = packageJsonReader.read(path3).string;
|
|
51686
51686
|
if (source === void 0) {
|
|
51687
51687
|
const packageConfig2 = {
|
|
51688
|
-
pjsonPath:
|
|
51688
|
+
pjsonPath: path3,
|
|
51689
51689
|
exists: false,
|
|
51690
51690
|
main: void 0,
|
|
51691
51691
|
name: void 0,
|
|
@@ -51693,7 +51693,7 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51693
51693
|
exports: void 0,
|
|
51694
51694
|
imports: void 0
|
|
51695
51695
|
};
|
|
51696
|
-
packageJSONCache.set(
|
|
51696
|
+
packageJSONCache.set(path3, packageConfig2);
|
|
51697
51697
|
return packageConfig2;
|
|
51698
51698
|
}
|
|
51699
51699
|
let packageJSON;
|
|
@@ -51701,7 +51701,7 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51701
51701
|
packageJSON = JSONParse(source);
|
|
51702
51702
|
} catch (error) {
|
|
51703
51703
|
throw new ERR_INVALID_PACKAGE_CONFIG(
|
|
51704
|
-
|
|
51704
|
+
path3,
|
|
51705
51705
|
(base ? `"${specifier}" from ` : "") + fileURLToPath3(base || specifier),
|
|
51706
51706
|
error.message
|
|
51707
51707
|
);
|
|
@@ -51717,7 +51717,7 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51717
51717
|
if (type !== "module" && type !== "commonjs")
|
|
51718
51718
|
type = "none";
|
|
51719
51719
|
const packageConfig = {
|
|
51720
|
-
pjsonPath:
|
|
51720
|
+
pjsonPath: path3,
|
|
51721
51721
|
exists: true,
|
|
51722
51722
|
main,
|
|
51723
51723
|
name,
|
|
@@ -51725,7 +51725,7 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51725
51725
|
exports: exports2,
|
|
51726
51726
|
imports
|
|
51727
51727
|
};
|
|
51728
|
-
packageJSONCache.set(
|
|
51728
|
+
packageJSONCache.set(path3, packageConfig);
|
|
51729
51729
|
return packageConfig;
|
|
51730
51730
|
}
|
|
51731
51731
|
function getPackageScopeConfig(resolved) {
|
|
@@ -51847,11 +51847,11 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51847
51847
|
fileURLToPath3(base)
|
|
51848
51848
|
);
|
|
51849
51849
|
if (experimentalSpecifierResolution === "node") {
|
|
51850
|
-
const
|
|
51850
|
+
const path4 = fileURLToPath3(resolved);
|
|
51851
51851
|
let file2 = resolveExtensionsWithTryExactName(resolved);
|
|
51852
51852
|
if (file2 !== void 0)
|
|
51853
51853
|
return file2;
|
|
51854
|
-
if (!StringPrototypeEndsWith(
|
|
51854
|
+
if (!StringPrototypeEndsWith(path4, "/")) {
|
|
51855
51855
|
file2 = resolveIndex(new URL2(`${resolved}/`));
|
|
51856
51856
|
if (file2 !== void 0)
|
|
51857
51857
|
return file2;
|
|
@@ -51865,15 +51865,15 @@ Update this package.json to use a subpath pattern like "${match}*".`,
|
|
|
51865
51865
|
);
|
|
51866
51866
|
}
|
|
51867
51867
|
const file = resolveReplacementExtensions(resolved) || resolved;
|
|
51868
|
-
const
|
|
51869
|
-
const stats = tryStatSync(StringPrototypeEndsWith(
|
|
51868
|
+
const path3 = fileURLToPath3(file);
|
|
51869
|
+
const stats = tryStatSync(StringPrototypeEndsWith(path3, "/") ? StringPrototypeSlice(path3, -1) : path3);
|
|
51870
51870
|
if (stats.isDirectory()) {
|
|
51871
|
-
const err = new ERR_UNSUPPORTED_DIR_IMPORT(
|
|
51871
|
+
const err = new ERR_UNSUPPORTED_DIR_IMPORT(path3, fileURLToPath3(base));
|
|
51872
51872
|
err.url = String(resolved);
|
|
51873
51873
|
throw err;
|
|
51874
51874
|
} else if (!stats.isFile()) {
|
|
51875
51875
|
throw new ERR_MODULE_NOT_FOUND(
|
|
51876
|
-
|
|
51876
|
+
path3 || resolved.pathname,
|
|
51877
51877
|
fileURLToPath3(base),
|
|
51878
51878
|
"module"
|
|
51879
51879
|
);
|
|
@@ -52928,15 +52928,15 @@ ${diagnosticText}`);
|
|
|
52928
52928
|
environment: "node",
|
|
52929
52929
|
retrieveFile(pathOrUrl) {
|
|
52930
52930
|
var _a3;
|
|
52931
|
-
let
|
|
52932
|
-
if (experimentalEsmLoader &&
|
|
52931
|
+
let path3 = pathOrUrl;
|
|
52932
|
+
if (experimentalEsmLoader && path3.startsWith("file://")) {
|
|
52933
52933
|
try {
|
|
52934
|
-
|
|
52934
|
+
path3 = (0, url_1.fileURLToPath)(path3);
|
|
52935
52935
|
} catch (e) {
|
|
52936
52936
|
}
|
|
52937
52937
|
}
|
|
52938
|
-
|
|
52939
|
-
return ((_a3 = outputCache.get(
|
|
52938
|
+
path3 = (0, util_1.normalizeSlashes)(path3);
|
|
52939
|
+
return ((_a3 = outputCache.get(path3)) === null || _a3 === void 0 ? void 0 : _a3.content) || "";
|
|
52940
52940
|
},
|
|
52941
52941
|
redirectConflictingLibrary: true,
|
|
52942
52942
|
onConflictingLibraryRedirect(request, parent, isMain, options2, redirectedRequest) {
|
|
@@ -52962,10 +52962,10 @@ ${diagnosticText}`);
|
|
|
52962
52962
|
if (configDiagnosticList.length)
|
|
52963
52963
|
reportTSError(configDiagnosticList);
|
|
52964
52964
|
const jsxEmitPreserve = config.options.jsx === ts.JsxEmit.Preserve;
|
|
52965
|
-
function getEmitExtension(
|
|
52966
|
-
const lastDotIndex =
|
|
52965
|
+
function getEmitExtension(path3) {
|
|
52966
|
+
const lastDotIndex = path3.lastIndexOf(".");
|
|
52967
52967
|
if (lastDotIndex >= 0) {
|
|
52968
|
-
const ext =
|
|
52968
|
+
const ext = path3.slice(lastDotIndex);
|
|
52969
52969
|
switch (ext) {
|
|
52970
52970
|
case ".js":
|
|
52971
52971
|
case ".ts":
|
|
@@ -53180,14 +53180,14 @@ This is usually the result of a faulty configuration or import. Make sure there
|
|
|
53180
53180
|
const diagnosticList = filterDiagnostics(diagnostics, diagnosticFilters);
|
|
53181
53181
|
if (diagnosticList.length)
|
|
53182
53182
|
reportTSError(diagnosticList);
|
|
53183
|
-
const result = builderProgram.emit(sourceFile, (
|
|
53184
|
-
if (
|
|
53183
|
+
const result = builderProgram.emit(sourceFile, (path3, file, writeByteOrderMark) => {
|
|
53184
|
+
if (path3.endsWith(".map")) {
|
|
53185
53185
|
outMap = file;
|
|
53186
53186
|
} else {
|
|
53187
53187
|
outText = file;
|
|
53188
53188
|
}
|
|
53189
53189
|
if (options.emit)
|
|
53190
|
-
sys.writeFile(
|
|
53190
|
+
sys.writeFile(path3, file, writeByteOrderMark);
|
|
53191
53191
|
}, void 0, void 0, customTransformers);
|
|
53192
53192
|
if (result.emitSkipped) {
|
|
53193
53193
|
return [void 0, void 0, true];
|
|
@@ -53352,8 +53352,8 @@ This is usually the result of a faulty configuration or import. Make sure there
|
|
|
53352
53352
|
function createIgnore(ignoreBaseDir, ignore) {
|
|
53353
53353
|
return (fileName) => {
|
|
53354
53354
|
const relname = (0, path_1.relative)(ignoreBaseDir, fileName);
|
|
53355
|
-
const
|
|
53356
|
-
return ignore.some((x) => x.test(
|
|
53355
|
+
const path3 = (0, util_1.normalizeSlashes)(relname);
|
|
53356
|
+
return ignore.some((x) => x.test(path3));
|
|
53357
53357
|
};
|
|
53358
53358
|
}
|
|
53359
53359
|
function registerExtensions(preferTsExts, extensions, service, originalJsHandler) {
|
|
@@ -53465,12 +53465,12 @@ var require_filesystem = __commonJS({
|
|
|
53465
53465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53466
53466
|
exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
|
|
53467
53467
|
var fs2 = require("fs");
|
|
53468
|
-
function fileExistsSync(
|
|
53469
|
-
if (!fs2.existsSync(
|
|
53468
|
+
function fileExistsSync(path3) {
|
|
53469
|
+
if (!fs2.existsSync(path3)) {
|
|
53470
53470
|
return false;
|
|
53471
53471
|
}
|
|
53472
53472
|
try {
|
|
53473
|
-
var stats = fs2.statSync(
|
|
53473
|
+
var stats = fs2.statSync(path3);
|
|
53474
53474
|
return stats.isFile();
|
|
53475
53475
|
} catch (err) {
|
|
53476
53476
|
return false;
|
|
@@ -53484,8 +53484,8 @@ var require_filesystem = __commonJS({
|
|
|
53484
53484
|
return require(packageJsonPath);
|
|
53485
53485
|
}
|
|
53486
53486
|
exports.readJsonFromDiskSync = readJsonFromDiskSync;
|
|
53487
|
-
function readJsonFromDiskAsync(
|
|
53488
|
-
fs2.readFile(
|
|
53487
|
+
function readJsonFromDiskAsync(path3, callback) {
|
|
53488
|
+
fs2.readFile(path3, "utf8", function(err, result) {
|
|
53489
53489
|
if (err || !result) {
|
|
53490
53490
|
return callback();
|
|
53491
53491
|
}
|
|
@@ -53503,8 +53503,8 @@ var require_filesystem = __commonJS({
|
|
|
53503
53503
|
});
|
|
53504
53504
|
}
|
|
53505
53505
|
exports.fileExistsAsync = fileExistsAsync;
|
|
53506
|
-
function removeExtension(
|
|
53507
|
-
return
|
|
53506
|
+
function removeExtension(path3) {
|
|
53507
|
+
return path3.substring(0, path3.lastIndexOf(".")) || path3;
|
|
53508
53508
|
}
|
|
53509
53509
|
exports.removeExtension = removeExtension;
|
|
53510
53510
|
}
|
|
@@ -53516,7 +53516,7 @@ var require_mapping_entry = __commonJS({
|
|
|
53516
53516
|
"use strict";
|
|
53517
53517
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53518
53518
|
exports.getAbsoluteMappingEntries = void 0;
|
|
53519
|
-
var
|
|
53519
|
+
var path3 = require("path");
|
|
53520
53520
|
function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) {
|
|
53521
53521
|
var sortedKeys = sortByLongestPrefix(Object.keys(paths));
|
|
53522
53522
|
var absolutePaths = [];
|
|
@@ -53525,7 +53525,7 @@ var require_mapping_entry = __commonJS({
|
|
|
53525
53525
|
absolutePaths.push({
|
|
53526
53526
|
pattern: key,
|
|
53527
53527
|
paths: paths[key].map(function(pathToResolve) {
|
|
53528
|
-
return
|
|
53528
|
+
return path3.resolve(absoluteBaseUrl, pathToResolve);
|
|
53529
53529
|
})
|
|
53530
53530
|
});
|
|
53531
53531
|
}
|
|
@@ -53556,7 +53556,7 @@ var require_try_path = __commonJS({
|
|
|
53556
53556
|
"use strict";
|
|
53557
53557
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53558
53558
|
exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0;
|
|
53559
|
-
var
|
|
53559
|
+
var path3 = require("path");
|
|
53560
53560
|
var path_1 = require("path");
|
|
53561
53561
|
var filesystem_1 = require_filesystem();
|
|
53562
53562
|
function getPathsToTry(extensions, absolutePathMappings, requestedModule) {
|
|
@@ -53576,9 +53576,9 @@ var require_try_path = __commonJS({
|
|
|
53576
53576
|
}));
|
|
53577
53577
|
pathsToTry.push({
|
|
53578
53578
|
type: "package",
|
|
53579
|
-
path:
|
|
53579
|
+
path: path3.join(physicalPath, "/package.json")
|
|
53580
53580
|
});
|
|
53581
|
-
var indexPath =
|
|
53581
|
+
var indexPath = path3.join(physicalPath, "/index");
|
|
53582
53582
|
pathsToTry.push.apply(pathsToTry, extensions.map(function(e) {
|
|
53583
53583
|
return { type: "index", path: indexPath + e };
|
|
53584
53584
|
}));
|
|
@@ -53630,7 +53630,7 @@ var require_match_path_sync = __commonJS({
|
|
|
53630
53630
|
"use strict";
|
|
53631
53631
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53632
53632
|
exports.matchFromAbsolutePaths = exports.createMatchPath = void 0;
|
|
53633
|
-
var
|
|
53633
|
+
var path3 = require("path");
|
|
53634
53634
|
var Filesystem = require_filesystem();
|
|
53635
53635
|
var MappingEntry = require_mapping_entry();
|
|
53636
53636
|
var TryPath = require_try_path();
|
|
@@ -53674,7 +53674,7 @@ var require_match_path_sync = __commonJS({
|
|
|
53674
53674
|
return obj[key];
|
|
53675
53675
|
}, packageJson);
|
|
53676
53676
|
if (candidateMapping && typeof candidateMapping === "string") {
|
|
53677
|
-
var candidateFilePath =
|
|
53677
|
+
var candidateFilePath = path3.join(path3.dirname(packageJsonPath), candidateMapping);
|
|
53678
53678
|
if (fileExists(candidateFilePath)) {
|
|
53679
53679
|
return candidateFilePath;
|
|
53680
53680
|
}
|
|
@@ -53718,7 +53718,7 @@ var require_match_path_async = __commonJS({
|
|
|
53718
53718
|
"use strict";
|
|
53719
53719
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53720
53720
|
exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0;
|
|
53721
|
-
var
|
|
53721
|
+
var path3 = require("path");
|
|
53722
53722
|
var TryPath = require_try_path();
|
|
53723
53723
|
var MappingEntry = require_mapping_entry();
|
|
53724
53724
|
var Filesystem = require_filesystem();
|
|
@@ -53772,7 +53772,7 @@ var require_match_path_async = __commonJS({
|
|
|
53772
53772
|
if (typeof mainFieldMapping !== "string") {
|
|
53773
53773
|
return tryNext();
|
|
53774
53774
|
}
|
|
53775
|
-
var mappedFilePath =
|
|
53775
|
+
var mappedFilePath = path3.join(path3.dirname(packageJsonPath), mainFieldMapping);
|
|
53776
53776
|
fileExistsAsync(mappedFilePath, function(err, exists) {
|
|
53777
53777
|
if (err) {
|
|
53778
53778
|
return doneCallback(err);
|
|
@@ -53863,7 +53863,7 @@ var require_tsconfig_loader = __commonJS({
|
|
|
53863
53863
|
};
|
|
53864
53864
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53865
53865
|
exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0;
|
|
53866
|
-
var
|
|
53866
|
+
var path3 = require("path");
|
|
53867
53867
|
var fs2 = require("fs");
|
|
53868
53868
|
var JSON5 = require_lib2();
|
|
53869
53869
|
var StripBom = require_strip_bom();
|
|
@@ -53893,14 +53893,14 @@ var require_tsconfig_loader = __commonJS({
|
|
|
53893
53893
|
}
|
|
53894
53894
|
function resolveConfigPath(cwd, filename) {
|
|
53895
53895
|
if (filename) {
|
|
53896
|
-
var absolutePath = fs2.lstatSync(filename).isDirectory() ?
|
|
53896
|
+
var absolutePath = fs2.lstatSync(filename).isDirectory() ? path3.resolve(filename, "./tsconfig.json") : path3.resolve(cwd, filename);
|
|
53897
53897
|
return absolutePath;
|
|
53898
53898
|
}
|
|
53899
53899
|
if (fs2.statSync(cwd).isFile()) {
|
|
53900
|
-
return
|
|
53900
|
+
return path3.resolve(cwd);
|
|
53901
53901
|
}
|
|
53902
53902
|
var configAbsolutePath = walkForTsConfig(cwd);
|
|
53903
|
-
return configAbsolutePath ?
|
|
53903
|
+
return configAbsolutePath ? path3.resolve(configAbsolutePath) : void 0;
|
|
53904
53904
|
}
|
|
53905
53905
|
function walkForTsConfig(directory, readdirSync) {
|
|
53906
53906
|
if (readdirSync === void 0) {
|
|
@@ -53911,10 +53911,10 @@ var require_tsconfig_loader = __commonJS({
|
|
|
53911
53911
|
for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) {
|
|
53912
53912
|
var fileToCheck = filesToCheck_1[_i];
|
|
53913
53913
|
if (files.indexOf(fileToCheck) !== -1) {
|
|
53914
|
-
return
|
|
53914
|
+
return path3.join(directory, fileToCheck);
|
|
53915
53915
|
}
|
|
53916
53916
|
}
|
|
53917
|
-
var parentDirectory =
|
|
53917
|
+
var parentDirectory = path3.dirname(directory);
|
|
53918
53918
|
if (directory === parentDirectory) {
|
|
53919
53919
|
return void 0;
|
|
53920
53920
|
}
|
|
@@ -53961,15 +53961,15 @@ var require_tsconfig_loader = __commonJS({
|
|
|
53961
53961
|
if (typeof extendedConfigValue === "string" && extendedConfigValue.indexOf(".json") === -1) {
|
|
53962
53962
|
extendedConfigValue += ".json";
|
|
53963
53963
|
}
|
|
53964
|
-
var currentDir =
|
|
53965
|
-
var extendedConfigPath =
|
|
53964
|
+
var currentDir = path3.dirname(configFilePath);
|
|
53965
|
+
var extendedConfigPath = path3.join(currentDir, extendedConfigValue);
|
|
53966
53966
|
if (extendedConfigValue.indexOf("/") !== -1 && extendedConfigValue.indexOf(".") !== -1 && !existsSync2(extendedConfigPath)) {
|
|
53967
|
-
extendedConfigPath =
|
|
53967
|
+
extendedConfigPath = path3.join(currentDir, "node_modules", extendedConfigValue);
|
|
53968
53968
|
}
|
|
53969
53969
|
var config = loadTsconfig(extendedConfigPath, existsSync2, readFileSync2) || {};
|
|
53970
53970
|
if ((_a = config.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl) {
|
|
53971
|
-
var extendsDir =
|
|
53972
|
-
config.compilerOptions.baseUrl =
|
|
53971
|
+
var extendsDir = path3.dirname(extendedConfigValue);
|
|
53972
|
+
config.compilerOptions.baseUrl = path3.join(extendsDir, config.compilerOptions.baseUrl);
|
|
53973
53973
|
}
|
|
53974
53974
|
return config;
|
|
53975
53975
|
}
|
|
@@ -53988,7 +53988,7 @@ var require_config_loader = __commonJS({
|
|
|
53988
53988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53989
53989
|
exports.configLoader = exports.loadConfig = void 0;
|
|
53990
53990
|
var TsConfigLoader2 = require_tsconfig_loader();
|
|
53991
|
-
var
|
|
53991
|
+
var path3 = require("path");
|
|
53992
53992
|
function loadConfig(cwd) {
|
|
53993
53993
|
if (cwd === void 0) {
|
|
53994
53994
|
cwd = process.cwd();
|
|
@@ -53999,7 +53999,7 @@ var require_config_loader = __commonJS({
|
|
|
53999
53999
|
function configLoader(_a) {
|
|
54000
54000
|
var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b;
|
|
54001
54001
|
if (explicitParams) {
|
|
54002
|
-
var absoluteBaseUrl =
|
|
54002
|
+
var absoluteBaseUrl = path3.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path3.join(cwd, explicitParams.baseUrl);
|
|
54003
54003
|
return {
|
|
54004
54004
|
resultType: "success",
|
|
54005
54005
|
configFileAbsolutePath: "",
|
|
@@ -54026,7 +54026,7 @@ var require_config_loader = __commonJS({
|
|
|
54026
54026
|
resultType: "success",
|
|
54027
54027
|
configFileAbsolutePath: loadResult.tsConfigPath,
|
|
54028
54028
|
baseUrl: loadResult.baseUrl,
|
|
54029
|
-
absoluteBaseUrl:
|
|
54029
|
+
absoluteBaseUrl: path3.resolve(path3.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""),
|
|
54030
54030
|
paths: loadResult.paths || {},
|
|
54031
54031
|
addMatchAll: loadResult.baseUrl !== void 0
|
|
54032
54032
|
};
|
|
@@ -54424,9 +54424,9 @@ var require_resolve_file = __commonJS({
|
|
|
54424
54424
|
}
|
|
54425
54425
|
}
|
|
54426
54426
|
exports.tsNodeRegister = tsNodeRegister;
|
|
54427
|
-
function resolveFile(
|
|
54428
|
-
tsNodeRegister(
|
|
54429
|
-
const resolvedObject = require(
|
|
54427
|
+
function resolveFile(path3, tsConfig) {
|
|
54428
|
+
tsNodeRegister(path3, tsConfig);
|
|
54429
|
+
const resolvedObject = require(path3);
|
|
54430
54430
|
return resolvedObject.default || resolvedObject;
|
|
54431
54431
|
}
|
|
54432
54432
|
exports.resolveFile = resolveFile;
|
|
@@ -54676,7 +54676,7 @@ var require_run_build = __commonJS({
|
|
|
54676
54676
|
var require_resolve_from = __commonJS({
|
|
54677
54677
|
"node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports, module2) {
|
|
54678
54678
|
"use strict";
|
|
54679
|
-
var
|
|
54679
|
+
var path3 = require("path");
|
|
54680
54680
|
var Module = require("module");
|
|
54681
54681
|
var fs2 = require("fs");
|
|
54682
54682
|
var resolveFrom = (fromDir, moduleId, silent) => {
|
|
@@ -54690,14 +54690,14 @@ var require_resolve_from = __commonJS({
|
|
|
54690
54690
|
fromDir = fs2.realpathSync(fromDir);
|
|
54691
54691
|
} catch (err) {
|
|
54692
54692
|
if (err.code === "ENOENT") {
|
|
54693
|
-
fromDir =
|
|
54693
|
+
fromDir = path3.resolve(fromDir);
|
|
54694
54694
|
} else if (silent) {
|
|
54695
54695
|
return null;
|
|
54696
54696
|
} else {
|
|
54697
54697
|
throw err;
|
|
54698
54698
|
}
|
|
54699
54699
|
}
|
|
54700
|
-
const fromFile =
|
|
54700
|
+
const fromFile = path3.join(fromDir, "noop.js");
|
|
54701
54701
|
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
54702
54702
|
id: fromFile,
|
|
54703
54703
|
filename: fromFile,
|
|
@@ -54769,7 +54769,7 @@ var require_parent_module = __commonJS({
|
|
|
54769
54769
|
var require_import_fresh = __commonJS({
|
|
54770
54770
|
"node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports, module2) {
|
|
54771
54771
|
"use strict";
|
|
54772
|
-
var
|
|
54772
|
+
var path3 = require("path");
|
|
54773
54773
|
var resolveFrom = require_resolve_from();
|
|
54774
54774
|
var parentModule = require_parent_module();
|
|
54775
54775
|
module2.exports = (moduleId) => {
|
|
@@ -54777,7 +54777,7 @@ var require_import_fresh = __commonJS({
|
|
|
54777
54777
|
throw new TypeError("Expected a string");
|
|
54778
54778
|
}
|
|
54779
54779
|
const parentPath = parentModule(__filename);
|
|
54780
|
-
const cwd = parentPath ?
|
|
54780
|
+
const cwd = parentPath ? path3.dirname(parentPath) : __dirname;
|
|
54781
54781
|
const filePath = resolveFrom(cwd, moduleId);
|
|
54782
54782
|
const oldModule = require.cache[filePath];
|
|
54783
54783
|
if (oldModule && oldModule.parent) {
|
|
@@ -56219,15 +56219,15 @@ var require_route2 = __commonJS({
|
|
|
56219
56219
|
};
|
|
56220
56220
|
}
|
|
56221
56221
|
function wrapConversion(toModel, graph) {
|
|
56222
|
-
var
|
|
56222
|
+
var path3 = [graph[toModel].parent, toModel];
|
|
56223
56223
|
var fn = conversions[graph[toModel].parent][toModel];
|
|
56224
56224
|
var cur = graph[toModel].parent;
|
|
56225
56225
|
while (graph[cur].parent) {
|
|
56226
|
-
|
|
56226
|
+
path3.unshift(graph[cur].parent);
|
|
56227
56227
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
56228
56228
|
cur = graph[cur].parent;
|
|
56229
56229
|
}
|
|
56230
|
-
fn.conversion =
|
|
56230
|
+
fn.conversion = path3;
|
|
56231
56231
|
return fn;
|
|
56232
56232
|
}
|
|
56233
56233
|
module2.exports = function(fromModel) {
|
|
@@ -60223,7 +60223,7 @@ ${error.message}`;
|
|
|
60223
60223
|
return typescript.sys.fileExists(fileName);
|
|
60224
60224
|
});
|
|
60225
60225
|
if (filePath !== void 0) {
|
|
60226
|
-
const { config, error } = typescript.readConfigFile(filePath, (
|
|
60226
|
+
const { config, error } = typescript.readConfigFile(filePath, (path3) => typescript.sys.readFile(path3));
|
|
60227
60227
|
if (error) {
|
|
60228
60228
|
throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
60229
60229
|
}
|
|
@@ -60346,42 +60346,42 @@ var require_defaults2 = __commonJS({
|
|
|
60346
60346
|
var require_env_paths = __commonJS({
|
|
60347
60347
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
|
|
60348
60348
|
"use strict";
|
|
60349
|
-
var
|
|
60349
|
+
var path3 = require("path");
|
|
60350
60350
|
var os = require("os");
|
|
60351
60351
|
var homedir = os.homedir();
|
|
60352
60352
|
var tmpdir = os.tmpdir();
|
|
60353
60353
|
var { env } = process;
|
|
60354
60354
|
var macos = (name) => {
|
|
60355
|
-
const library =
|
|
60355
|
+
const library = path3.join(homedir, "Library");
|
|
60356
60356
|
return {
|
|
60357
|
-
data:
|
|
60358
|
-
config:
|
|
60359
|
-
cache:
|
|
60360
|
-
log:
|
|
60361
|
-
temp:
|
|
60357
|
+
data: path3.join(library, "Application Support", name),
|
|
60358
|
+
config: path3.join(library, "Preferences", name),
|
|
60359
|
+
cache: path3.join(library, "Caches", name),
|
|
60360
|
+
log: path3.join(library, "Logs", name),
|
|
60361
|
+
temp: path3.join(tmpdir, name)
|
|
60362
60362
|
};
|
|
60363
60363
|
};
|
|
60364
60364
|
var windows = (name) => {
|
|
60365
|
-
const appData = env.APPDATA ||
|
|
60366
|
-
const localAppData = env.LOCALAPPDATA ||
|
|
60365
|
+
const appData = env.APPDATA || path3.join(homedir, "AppData", "Roaming");
|
|
60366
|
+
const localAppData = env.LOCALAPPDATA || path3.join(homedir, "AppData", "Local");
|
|
60367
60367
|
return {
|
|
60368
60368
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
60369
|
-
data:
|
|
60370
|
-
config:
|
|
60371
|
-
cache:
|
|
60372
|
-
log:
|
|
60373
|
-
temp:
|
|
60369
|
+
data: path3.join(localAppData, name, "Data"),
|
|
60370
|
+
config: path3.join(appData, name, "Config"),
|
|
60371
|
+
cache: path3.join(localAppData, name, "Cache"),
|
|
60372
|
+
log: path3.join(localAppData, name, "Log"),
|
|
60373
|
+
temp: path3.join(tmpdir, name)
|
|
60374
60374
|
};
|
|
60375
60375
|
};
|
|
60376
60376
|
var linux = (name) => {
|
|
60377
|
-
const username =
|
|
60377
|
+
const username = path3.basename(homedir);
|
|
60378
60378
|
return {
|
|
60379
|
-
data:
|
|
60380
|
-
config:
|
|
60381
|
-
cache:
|
|
60379
|
+
data: path3.join(env.XDG_DATA_HOME || path3.join(homedir, ".local", "share"), name),
|
|
60380
|
+
config: path3.join(env.XDG_CONFIG_HOME || path3.join(homedir, ".config"), name),
|
|
60381
|
+
cache: path3.join(env.XDG_CACHE_HOME || path3.join(homedir, ".cache"), name),
|
|
60382
60382
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
60383
|
-
log:
|
|
60384
|
-
temp:
|
|
60383
|
+
log: path3.join(env.XDG_STATE_HOME || path3.join(homedir, ".local", "state"), name),
|
|
60384
|
+
temp: path3.join(tmpdir, username, name)
|
|
60385
60385
|
};
|
|
60386
60386
|
};
|
|
60387
60387
|
var envPaths = (name, options) => {
|
|
@@ -60454,11 +60454,11 @@ var require_util4 = __commonJS({
|
|
|
60454
60454
|
return result;
|
|
60455
60455
|
}
|
|
60456
60456
|
exports.emplace = emplace;
|
|
60457
|
-
function getPropertyByPath(source,
|
|
60458
|
-
if (typeof
|
|
60459
|
-
return source[
|
|
60457
|
+
function getPropertyByPath(source, path3) {
|
|
60458
|
+
if (typeof path3 === "string" && Object.prototype.hasOwnProperty.call(source, path3)) {
|
|
60459
|
+
return source[path3];
|
|
60460
60460
|
}
|
|
60461
|
-
const parsedPath = typeof
|
|
60461
|
+
const parsedPath = typeof path3 === "string" ? path3.split(".") : path3;
|
|
60462
60462
|
return parsedPath.reduce((previous, key) => {
|
|
60463
60463
|
if (previous === void 0) {
|
|
60464
60464
|
return previous;
|
|
@@ -60471,9 +60471,9 @@ var require_util4 = __commonJS({
|
|
|
60471
60471
|
return Object.fromEntries(Object.entries(options).filter(([, value2]) => value2 !== void 0));
|
|
60472
60472
|
}
|
|
60473
60473
|
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
60474
|
-
async function isDirectory(
|
|
60474
|
+
async function isDirectory(path3) {
|
|
60475
60475
|
try {
|
|
60476
|
-
const stat = await fs_1.promises.stat(
|
|
60476
|
+
const stat = await fs_1.promises.stat(path3);
|
|
60477
60477
|
return stat.isDirectory();
|
|
60478
60478
|
} catch (e) {
|
|
60479
60479
|
if (e.code === "ENOENT") {
|
|
@@ -60483,9 +60483,9 @@ var require_util4 = __commonJS({
|
|
|
60483
60483
|
}
|
|
60484
60484
|
}
|
|
60485
60485
|
exports.isDirectory = isDirectory;
|
|
60486
|
-
function isDirectorySync(
|
|
60486
|
+
function isDirectorySync(path3) {
|
|
60487
60487
|
try {
|
|
60488
|
-
const stat = fs_1.default.statSync(
|
|
60488
|
+
const stat = fs_1.default.statSync(path3);
|
|
60489
60489
|
return stat.isDirectory();
|
|
60490
60490
|
} catch (e) {
|
|
60491
60491
|
if (e.code === "ENOENT") {
|
|
@@ -60583,7 +60583,7 @@ var require_ExplorerBase = __commonJS({
|
|
|
60583
60583
|
const idx = importStack.indexOf(fullPath);
|
|
60584
60584
|
if (idx !== -1) {
|
|
60585
60585
|
throw new Error(`Circular import detected:
|
|
60586
|
-
${[...importStack, fullPath].map((
|
|
60586
|
+
${[...importStack, fullPath].map((path3, i) => `${i + 1}. ${path3}`).join("\n")} (same as ${idx + 1}.)`);
|
|
60587
60587
|
}
|
|
60588
60588
|
}
|
|
60589
60589
|
}
|
|
@@ -60768,9 +60768,9 @@ var require_Explorer = __commonJS({
|
|
|
60768
60768
|
throw error;
|
|
60769
60769
|
}
|
|
60770
60770
|
}
|
|
60771
|
-
async #fileExists(
|
|
60771
|
+
async #fileExists(path3) {
|
|
60772
60772
|
try {
|
|
60773
|
-
await promises_1.default.stat(
|
|
60773
|
+
await promises_1.default.stat(path3);
|
|
60774
60774
|
return true;
|
|
60775
60775
|
} catch (e) {
|
|
60776
60776
|
return false;
|
|
@@ -60926,9 +60926,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
60926
60926
|
throw error;
|
|
60927
60927
|
}
|
|
60928
60928
|
}
|
|
60929
|
-
#fileExists(
|
|
60929
|
+
#fileExists(path3) {
|
|
60930
60930
|
try {
|
|
60931
|
-
fs_1.default.statSync(
|
|
60931
|
+
fs_1.default.statSync(path3);
|
|
60932
60932
|
return true;
|
|
60933
60933
|
} catch (e) {
|
|
60934
60934
|
return false;
|
|
@@ -61048,7 +61048,7 @@ var require_dist17 = __commonJS({
|
|
|
61048
61048
|
};
|
|
61049
61049
|
}
|
|
61050
61050
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
61051
|
-
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((
|
|
61051
|
+
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path3) => path3.replace("{name}", moduleName));
|
|
61052
61052
|
if (userConfiguredOptions.mergeSearchPlaces) {
|
|
61053
61053
|
return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
61054
61054
|
}
|
|
@@ -61828,8 +61828,8 @@ function getErrorMap() {
|
|
|
61828
61828
|
return overrideErrorMap;
|
|
61829
61829
|
}
|
|
61830
61830
|
var makeIssue = (params) => {
|
|
61831
|
-
const { data, path:
|
|
61832
|
-
const fullPath = [...
|
|
61831
|
+
const { data, path: path3, errorMaps, issueData } = params;
|
|
61832
|
+
const fullPath = [...path3, ...issueData.path || []];
|
|
61833
61833
|
const fullIssue = {
|
|
61834
61834
|
...issueData,
|
|
61835
61835
|
path: fullPath
|
|
@@ -61927,11 +61927,11 @@ var errorUtil;
|
|
|
61927
61927
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
61928
61928
|
})(errorUtil || (errorUtil = {}));
|
|
61929
61929
|
var ParseInputLazyPath = class {
|
|
61930
|
-
constructor(parent, value2,
|
|
61930
|
+
constructor(parent, value2, path3, key) {
|
|
61931
61931
|
this._cachedPath = [];
|
|
61932
61932
|
this.parent = parent;
|
|
61933
61933
|
this.data = value2;
|
|
61934
|
-
this._path =
|
|
61934
|
+
this._path = path3;
|
|
61935
61935
|
this._key = key;
|
|
61936
61936
|
}
|
|
61937
61937
|
get path() {
|
|
@@ -65119,9 +65119,6 @@ var StormConfigSchema = objectType({
|
|
|
65119
65119
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
65120
65120
|
);
|
|
65121
65121
|
|
|
65122
|
-
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
65123
|
-
var path3 = __toESM(require("path"), 1);
|
|
65124
|
-
|
|
65125
65122
|
// node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
|
|
65126
65123
|
var import_node_process = __toESM(require("node:process"), 1);
|
|
65127
65124
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
@@ -65302,7 +65299,7 @@ function findWorkspaceRoot(pathInsideMonorepo) {
|
|
|
65302
65299
|
${rootFiles.join(
|
|
65303
65300
|
"\n"
|
|
65304
65301
|
)}
|
|
65305
|
-
Path: ${
|
|
65302
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
65306
65303
|
);
|
|
65307
65304
|
}
|
|
65308
65305
|
return result;
|
|
@@ -65343,7 +65340,7 @@ var getDefaultConfig = (config = {}) => {
|
|
|
65343
65340
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
65344
65341
|
let license = DefaultStormConfig.license;
|
|
65345
65342
|
let homepage = DefaultStormConfig.homepage;
|
|
65346
|
-
const workspaceRoot = findWorkspaceRoot(
|
|
65343
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
65347
65344
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
65348
65345
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
65349
65346
|
encoding: "utf-8"
|