@storm-software/workspace-tools 1.33.0 → 1.33.1
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 +7 -0
- package/index.js +1496 -1496
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +60 -60
- package/src/executors/design-tokens/executor.js +637 -637
- package/src/executors/tsup/executor.js +1483 -1483
- package/src/executors/tsup-browser/executor.js +1489 -1489
- package/src/executors/tsup-neutral/executor.js +1489 -1489
- package/src/executors/tsup-node/executor.js +1489 -1489
- package/src/generators/browser-library/generator.js +361 -361
- package/src/generators/config-schema/generator.js +164 -164
- package/src/generators/neutral-library/generator.js +361 -361
- package/src/generators/node-library/generator.js +361 -361
- package/src/generators/preset/generator.js +163 -163
|
@@ -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 path2 = require("path");
|
|
610
610
|
var nx_1 = require_nx();
|
|
611
611
|
var { updateJson: updateJson2, readJson: readJson2, 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 = path2.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 path3 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
671
|
+
if (tree.exists(path3)) {
|
|
672
|
+
return path3;
|
|
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(path2) {
|
|
966
|
+
return binaryExtensions.has((0, path_1.extname)(path2).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 path2 = 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 = path2.dirname;
|
|
1182
|
+
var extname = path2.extname;
|
|
1183
|
+
var resolve2 = path2.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(path3, 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(path3);
|
|
1205
1205
|
if (match && match.length) {
|
|
1206
|
-
|
|
1206
|
+
path3 = path3.replace(/^\/*/, "");
|
|
1207
1207
|
if (Array.isArray(options.root)) {
|
|
1208
|
-
includePath = resolvePaths(
|
|
1208
|
+
includePath = resolvePaths(path3, options.root);
|
|
1209
1209
|
} else {
|
|
1210
|
-
includePath = exports.resolveInclude(
|
|
1210
|
+
includePath = exports.resolveInclude(path3, options.root || "/", true);
|
|
1211
1211
|
}
|
|
1212
1212
|
} else {
|
|
1213
1213
|
if (options.filename) {
|
|
1214
|
-
filePath = exports.resolveInclude(
|
|
1214
|
+
filePath = exports.resolveInclude(path3, 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(path3, 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(path3) + '"');
|
|
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(path3, options) {
|
|
1283
1283
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
1284
|
-
opts.filename = getIncludePath(
|
|
1284
|
+
opts.filename = getIncludePath(path3, opts);
|
|
1285
1285
|
if (typeof options.includer === "function") {
|
|
1286
|
-
var includerResult = options.includer(
|
|
1286
|
+
var includerResult = options.includer(path3, 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(path3, 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(path3, 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 = path2.basename(filename, path2.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 path2 = 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 = generateFiles2;
|
|
1729
1729
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
1730
|
-
const relativeFromSrcFolder =
|
|
1731
|
-
let computedPath =
|
|
1730
|
+
const relativeFromSrcFolder = path2.relative(srcFolder, filePath);
|
|
1731
|
+
let computedPath = path2.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 = path2.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 path2 = 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 = path2.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 && path2.sep !== "/") {
|
|
4834
|
+
pattern = pattern.split(path2.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 (path2.sep !== "/") {
|
|
5212
|
+
f = f.split(path2.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(path2) {
|
|
5371
|
+
return path2.charAt(0) === "/";
|
|
5372
5372
|
}
|
|
5373
|
-
function win32(
|
|
5373
|
+
function win32(path2) {
|
|
5374
5374
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
5375
|
-
var result = splitDeviceRe.exec(
|
|
5375
|
+
var result = splitDeviceRe.exec(path2);
|
|
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 path2 = 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
|
self.cwd = cwd;
|
|
5464
5464
|
else {
|
|
5465
|
-
self.cwd =
|
|
5465
|
+
self.cwd = path2.resolve(options.cwd);
|
|
5466
5466
|
self.changedCwd = self.cwd !== cwd;
|
|
5467
5467
|
}
|
|
5468
|
-
self.root = options.root ||
|
|
5469
|
-
self.root =
|
|
5468
|
+
self.root = options.root || path2.resolve(self.cwd, "/");
|
|
5469
|
+
self.root = path2.resolve(self.root);
|
|
5470
5470
|
if (process.platform === "win32")
|
|
5471
5471
|
self.root = self.root.replace(/\\/g, "/");
|
|
5472
5472
|
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
|
|
@@ -5548,30 +5548,30 @@ var require_common = __commonJS({
|
|
|
5548
5548
|
function makeAbs(self, f) {
|
|
5549
5549
|
var abs = f;
|
|
5550
5550
|
if (f.charAt(0) === "/") {
|
|
5551
|
-
abs =
|
|
5551
|
+
abs = path2.join(self.root, f);
|
|
5552
5552
|
} else if (isAbsolute(f) || f === "") {
|
|
5553
5553
|
abs = f;
|
|
5554
5554
|
} else if (self.changedCwd) {
|
|
5555
|
-
abs =
|
|
5555
|
+
abs = path2.resolve(self.cwd, f);
|
|
5556
5556
|
} else {
|
|
5557
|
-
abs =
|
|
5557
|
+
abs = path2.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(self,
|
|
5563
|
+
function isIgnored(self, path3) {
|
|
5564
5564
|
if (!self.ignore.length)
|
|
5565
5565
|
return false;
|
|
5566
5566
|
return self.ignore.some(function(item) {
|
|
5567
|
-
return item.matcher.match(
|
|
5567
|
+
return item.matcher.match(path3) || !!(item.gmatcher && item.gmatcher.match(path3));
|
|
5568
5568
|
});
|
|
5569
5569
|
}
|
|
5570
|
-
function childrenIgnored(self,
|
|
5570
|
+
function childrenIgnored(self, path3) {
|
|
5571
5571
|
if (!self.ignore.length)
|
|
5572
5572
|
return false;
|
|
5573
5573
|
return self.ignore.some(function(item) {
|
|
5574
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
5574
|
+
return !!(item.gmatcher && item.gmatcher.match(path3));
|
|
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 path2 = 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 = path2.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 = path2.join(this.root, prefix);
|
|
5868
5868
|
} else {
|
|
5869
|
-
prefix =
|
|
5869
|
+
prefix = path2.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 path2 = 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 = path2.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 = path2.join(this.root, prefix);
|
|
6535
6535
|
} else {
|
|
6536
|
-
prefix =
|
|
6536
|
+
prefix = path2.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 path2 = 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(path2.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(path2.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 path2 = 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 path2.join(tmpDir, opts.dir, opts.name);
|
|
7120
7120
|
if (!_isUndefined(opts.template))
|
|
7121
|
-
return
|
|
7121
|
+
return path2.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 path2.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) ? "" : path2.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
7152
|
+
options.template = _isUndefined(options.template) ? void 0 : path2.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
7153
|
+
options.template = _isBlank(options.template) ? void 0 : path2.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 path2.resolve(sanitizedName);
|
|
7162
7162
|
} else {
|
|
7163
|
-
return
|
|
7163
|
+
return path2.resolve(path2.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 (path2.isAbsolute(name))
|
|
7175
7175
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
7176
|
-
let basename =
|
|
7176
|
+
let basename = path2.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 (path2.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 path2.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 = (path2, originalPath, doThrow) => {
|
|
7813
|
+
if (!isString(path2)) {
|
|
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 (!path2) {
|
|
7820
7820
|
return doThrow(`path must not be empty`, TypeError);
|
|
7821
7821
|
}
|
|
7822
|
-
if (checkPath.isNotRelative(
|
|
7822
|
+
if (checkPath.isNotRelative(path2)) {
|
|
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 = (path2) => REGEX_TEST_INVALID_PATH.test(path2);
|
|
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(path2, 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(path2);
|
|
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 path2 = originalPath && checkPath.convert(originalPath);
|
|
7912
7912
|
checkPath(
|
|
7913
|
-
|
|
7913
|
+
path2,
|
|
7914
7914
|
originalPath,
|
|
7915
7915
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
7916
7916
|
);
|
|
7917
|
-
return this._t(
|
|
7917
|
+
return this._t(path2, cache, checkUnignored, slices);
|
|
7918
7918
|
}
|
|
7919
|
-
_t(
|
|
7920
|
-
if (
|
|
7921
|
-
return cache[
|
|
7919
|
+
_t(path2, cache, checkUnignored, slices) {
|
|
7920
|
+
if (path2 in cache) {
|
|
7921
|
+
return cache[path2];
|
|
7922
7922
|
}
|
|
7923
7923
|
if (!slices) {
|
|
7924
|
-
slices =
|
|
7924
|
+
slices = path2.split(SLASH);
|
|
7925
7925
|
}
|
|
7926
7926
|
slices.pop();
|
|
7927
7927
|
if (!slices.length) {
|
|
7928
|
-
return cache[
|
|
7928
|
+
return cache[path2] = this._testOne(path2, 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[path2] = parent.ignored ? parent : this._testOne(path2, checkUnignored);
|
|
7937
7937
|
}
|
|
7938
|
-
ignores(
|
|
7939
|
-
return this._test(
|
|
7938
|
+
ignores(path2) {
|
|
7939
|
+
return this._test(path2, this._ignoreCache, false).ignored;
|
|
7940
7940
|
}
|
|
7941
7941
|
createFilter() {
|
|
7942
|
-
return (
|
|
7942
|
+
return (path2) => !this.ignores(path2);
|
|
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(path2) {
|
|
7949
|
+
return this._test(path2, this._testCache, true);
|
|
7950
7950
|
}
|
|
7951
7951
|
};
|
|
7952
7952
|
var factory = (options) => new Ignore(options);
|
|
7953
|
-
var isPathValid = (
|
|
7953
|
+
var isPathValid = (path2) => checkPath(path2 && checkPath.convert(path2), path2, 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 = (path2) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path2) || isNotRelative(path2);
|
|
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(path2, root) {
|
|
8006
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path2)).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(path2) {
|
|
8388
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path2));
|
|
8389
8389
|
}
|
|
8390
8390
|
read(filePath, encoding) {
|
|
8391
8391
|
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
@@ -18236,7 +18236,7 @@ var require_devkit = __commonJS({
|
|
|
18236
18236
|
var require_resolve_from = __commonJS({
|
|
18237
18237
|
"node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports, module2) {
|
|
18238
18238
|
"use strict";
|
|
18239
|
-
var
|
|
18239
|
+
var path2 = require("path");
|
|
18240
18240
|
var Module = require("module");
|
|
18241
18241
|
var fs2 = require("fs");
|
|
18242
18242
|
var resolveFrom = (fromDir, moduleId, silent) => {
|
|
@@ -18250,14 +18250,14 @@ var require_resolve_from = __commonJS({
|
|
|
18250
18250
|
fromDir = fs2.realpathSync(fromDir);
|
|
18251
18251
|
} catch (err) {
|
|
18252
18252
|
if (err.code === "ENOENT") {
|
|
18253
|
-
fromDir =
|
|
18253
|
+
fromDir = path2.resolve(fromDir);
|
|
18254
18254
|
} else if (silent) {
|
|
18255
18255
|
return null;
|
|
18256
18256
|
} else {
|
|
18257
18257
|
throw err;
|
|
18258
18258
|
}
|
|
18259
18259
|
}
|
|
18260
|
-
const fromFile =
|
|
18260
|
+
const fromFile = path2.join(fromDir, "noop.js");
|
|
18261
18261
|
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
18262
18262
|
id: fromFile,
|
|
18263
18263
|
filename: fromFile,
|
|
@@ -18329,7 +18329,7 @@ var require_parent_module = __commonJS({
|
|
|
18329
18329
|
var require_import_fresh = __commonJS({
|
|
18330
18330
|
"node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports, module2) {
|
|
18331
18331
|
"use strict";
|
|
18332
|
-
var
|
|
18332
|
+
var path2 = require("path");
|
|
18333
18333
|
var resolveFrom = require_resolve_from();
|
|
18334
18334
|
var parentModule = require_parent_module();
|
|
18335
18335
|
module2.exports = (moduleId) => {
|
|
@@ -18337,7 +18337,7 @@ var require_import_fresh = __commonJS({
|
|
|
18337
18337
|
throw new TypeError("Expected a string");
|
|
18338
18338
|
}
|
|
18339
18339
|
const parentPath = parentModule(__filename);
|
|
18340
|
-
const cwd = parentPath ?
|
|
18340
|
+
const cwd = parentPath ? path2.dirname(parentPath) : __dirname;
|
|
18341
18341
|
const filePath = resolveFrom(cwd, moduleId);
|
|
18342
18342
|
const oldModule = require.cache[filePath];
|
|
18343
18343
|
if (oldModule && oldModule.parent) {
|
|
@@ -19779,15 +19779,15 @@ var require_route = __commonJS({
|
|
|
19779
19779
|
};
|
|
19780
19780
|
}
|
|
19781
19781
|
function wrapConversion(toModel, graph) {
|
|
19782
|
-
var
|
|
19782
|
+
var path2 = [graph[toModel].parent, toModel];
|
|
19783
19783
|
var fn = conversions[graph[toModel].parent][toModel];
|
|
19784
19784
|
var cur = graph[toModel].parent;
|
|
19785
19785
|
while (graph[cur].parent) {
|
|
19786
|
-
|
|
19786
|
+
path2.unshift(graph[cur].parent);
|
|
19787
19787
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
19788
19788
|
cur = graph[cur].parent;
|
|
19789
19789
|
}
|
|
19790
|
-
fn.conversion =
|
|
19790
|
+
fn.conversion = path2;
|
|
19791
19791
|
return fn;
|
|
19792
19792
|
}
|
|
19793
19793
|
module2.exports = function(fromModel) {
|
|
@@ -23783,7 +23783,7 @@ ${error.message}`;
|
|
|
23783
23783
|
return typescript.sys.fileExists(fileName);
|
|
23784
23784
|
});
|
|
23785
23785
|
if (filePath !== void 0) {
|
|
23786
|
-
const { config, error } = typescript.readConfigFile(filePath, (
|
|
23786
|
+
const { config, error } = typescript.readConfigFile(filePath, (path2) => typescript.sys.readFile(path2));
|
|
23787
23787
|
if (error) {
|
|
23788
23788
|
throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
23789
23789
|
}
|
|
@@ -23906,42 +23906,42 @@ var require_defaults = __commonJS({
|
|
|
23906
23906
|
var require_env_paths = __commonJS({
|
|
23907
23907
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports, module2) {
|
|
23908
23908
|
"use strict";
|
|
23909
|
-
var
|
|
23909
|
+
var path2 = require("path");
|
|
23910
23910
|
var os = require("os");
|
|
23911
23911
|
var homedir = os.homedir();
|
|
23912
23912
|
var tmpdir = os.tmpdir();
|
|
23913
23913
|
var { env } = process;
|
|
23914
23914
|
var macos = (name) => {
|
|
23915
|
-
const library =
|
|
23915
|
+
const library = path2.join(homedir, "Library");
|
|
23916
23916
|
return {
|
|
23917
|
-
data:
|
|
23918
|
-
config:
|
|
23919
|
-
cache:
|
|
23920
|
-
log:
|
|
23921
|
-
temp:
|
|
23917
|
+
data: path2.join(library, "Application Support", name),
|
|
23918
|
+
config: path2.join(library, "Preferences", name),
|
|
23919
|
+
cache: path2.join(library, "Caches", name),
|
|
23920
|
+
log: path2.join(library, "Logs", name),
|
|
23921
|
+
temp: path2.join(tmpdir, name)
|
|
23922
23922
|
};
|
|
23923
23923
|
};
|
|
23924
23924
|
var windows = (name) => {
|
|
23925
|
-
const appData = env.APPDATA ||
|
|
23926
|
-
const localAppData = env.LOCALAPPDATA ||
|
|
23925
|
+
const appData = env.APPDATA || path2.join(homedir, "AppData", "Roaming");
|
|
23926
|
+
const localAppData = env.LOCALAPPDATA || path2.join(homedir, "AppData", "Local");
|
|
23927
23927
|
return {
|
|
23928
23928
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
23929
|
-
data:
|
|
23930
|
-
config:
|
|
23931
|
-
cache:
|
|
23932
|
-
log:
|
|
23933
|
-
temp:
|
|
23929
|
+
data: path2.join(localAppData, name, "Data"),
|
|
23930
|
+
config: path2.join(appData, name, "Config"),
|
|
23931
|
+
cache: path2.join(localAppData, name, "Cache"),
|
|
23932
|
+
log: path2.join(localAppData, name, "Log"),
|
|
23933
|
+
temp: path2.join(tmpdir, name)
|
|
23934
23934
|
};
|
|
23935
23935
|
};
|
|
23936
23936
|
var linux = (name) => {
|
|
23937
|
-
const username =
|
|
23937
|
+
const username = path2.basename(homedir);
|
|
23938
23938
|
return {
|
|
23939
|
-
data:
|
|
23940
|
-
config:
|
|
23941
|
-
cache:
|
|
23939
|
+
data: path2.join(env.XDG_DATA_HOME || path2.join(homedir, ".local", "share"), name),
|
|
23940
|
+
config: path2.join(env.XDG_CONFIG_HOME || path2.join(homedir, ".config"), name),
|
|
23941
|
+
cache: path2.join(env.XDG_CACHE_HOME || path2.join(homedir, ".cache"), name),
|
|
23942
23942
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
23943
|
-
log:
|
|
23944
|
-
temp:
|
|
23943
|
+
log: path2.join(env.XDG_STATE_HOME || path2.join(homedir, ".local", "state"), name),
|
|
23944
|
+
temp: path2.join(tmpdir, username, name)
|
|
23945
23945
|
};
|
|
23946
23946
|
};
|
|
23947
23947
|
var envPaths = (name, options) => {
|
|
@@ -24014,11 +24014,11 @@ var require_util = __commonJS({
|
|
|
24014
24014
|
return result;
|
|
24015
24015
|
}
|
|
24016
24016
|
exports.emplace = emplace;
|
|
24017
|
-
function getPropertyByPath(source,
|
|
24018
|
-
if (typeof
|
|
24019
|
-
return source[
|
|
24017
|
+
function getPropertyByPath(source, path2) {
|
|
24018
|
+
if (typeof path2 === "string" && Object.prototype.hasOwnProperty.call(source, path2)) {
|
|
24019
|
+
return source[path2];
|
|
24020
24020
|
}
|
|
24021
|
-
const parsedPath = typeof
|
|
24021
|
+
const parsedPath = typeof path2 === "string" ? path2.split(".") : path2;
|
|
24022
24022
|
return parsedPath.reduce((previous, key) => {
|
|
24023
24023
|
if (previous === void 0) {
|
|
24024
24024
|
return previous;
|
|
@@ -24031,9 +24031,9 @@ var require_util = __commonJS({
|
|
|
24031
24031
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
24032
24032
|
}
|
|
24033
24033
|
exports.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
24034
|
-
async function isDirectory(
|
|
24034
|
+
async function isDirectory(path2) {
|
|
24035
24035
|
try {
|
|
24036
|
-
const stat = await fs_1.promises.stat(
|
|
24036
|
+
const stat = await fs_1.promises.stat(path2);
|
|
24037
24037
|
return stat.isDirectory();
|
|
24038
24038
|
} catch (e) {
|
|
24039
24039
|
if (e.code === "ENOENT") {
|
|
@@ -24043,9 +24043,9 @@ var require_util = __commonJS({
|
|
|
24043
24043
|
}
|
|
24044
24044
|
}
|
|
24045
24045
|
exports.isDirectory = isDirectory;
|
|
24046
|
-
function isDirectorySync(
|
|
24046
|
+
function isDirectorySync(path2) {
|
|
24047
24047
|
try {
|
|
24048
|
-
const stat = fs_1.default.statSync(
|
|
24048
|
+
const stat = fs_1.default.statSync(path2);
|
|
24049
24049
|
return stat.isDirectory();
|
|
24050
24050
|
} catch (e) {
|
|
24051
24051
|
if (e.code === "ENOENT") {
|
|
@@ -24143,7 +24143,7 @@ var require_ExplorerBase = __commonJS({
|
|
|
24143
24143
|
const idx = importStack.indexOf(fullPath);
|
|
24144
24144
|
if (idx !== -1) {
|
|
24145
24145
|
throw new Error(`Circular import detected:
|
|
24146
|
-
${[...importStack, fullPath].map((
|
|
24146
|
+
${[...importStack, fullPath].map((path2, i) => `${i + 1}. ${path2}`).join("\n")} (same as ${idx + 1}.)`);
|
|
24147
24147
|
}
|
|
24148
24148
|
}
|
|
24149
24149
|
}
|
|
@@ -24328,9 +24328,9 @@ var require_Explorer = __commonJS({
|
|
|
24328
24328
|
throw error;
|
|
24329
24329
|
}
|
|
24330
24330
|
}
|
|
24331
|
-
async #fileExists(
|
|
24331
|
+
async #fileExists(path2) {
|
|
24332
24332
|
try {
|
|
24333
|
-
await promises_1.default.stat(
|
|
24333
|
+
await promises_1.default.stat(path2);
|
|
24334
24334
|
return true;
|
|
24335
24335
|
} catch (e) {
|
|
24336
24336
|
return false;
|
|
@@ -24486,9 +24486,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
24486
24486
|
throw error;
|
|
24487
24487
|
}
|
|
24488
24488
|
}
|
|
24489
|
-
#fileExists(
|
|
24489
|
+
#fileExists(path2) {
|
|
24490
24490
|
try {
|
|
24491
|
-
fs_1.default.statSync(
|
|
24491
|
+
fs_1.default.statSync(path2);
|
|
24492
24492
|
return true;
|
|
24493
24493
|
} catch (e) {
|
|
24494
24494
|
return false;
|
|
@@ -24608,7 +24608,7 @@ var require_dist = __commonJS({
|
|
|
24608
24608
|
};
|
|
24609
24609
|
}
|
|
24610
24610
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
24611
|
-
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((
|
|
24611
|
+
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path2) => path2.replace("{name}", moduleName));
|
|
24612
24612
|
if (userConfiguredOptions.mergeSearchPlaces) {
|
|
24613
24613
|
return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
24614
24614
|
}
|
|
@@ -25575,15 +25575,15 @@ var require_route2 = __commonJS({
|
|
|
25575
25575
|
};
|
|
25576
25576
|
}
|
|
25577
25577
|
function wrapConversion(toModel, graph) {
|
|
25578
|
-
const
|
|
25578
|
+
const path2 = [graph[toModel].parent, toModel];
|
|
25579
25579
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
25580
25580
|
let cur = graph[toModel].parent;
|
|
25581
25581
|
while (graph[cur].parent) {
|
|
25582
|
-
|
|
25582
|
+
path2.unshift(graph[cur].parent);
|
|
25583
25583
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
25584
25584
|
cur = graph[cur].parent;
|
|
25585
25585
|
}
|
|
25586
|
-
fn.conversion =
|
|
25586
|
+
fn.conversion = path2;
|
|
25587
25587
|
return fn;
|
|
25588
25588
|
}
|
|
25589
25589
|
module2.exports = function(fromModel) {
|
|
@@ -31031,8 +31031,8 @@ var require_project_name_and_root_utils = __commonJS({
|
|
|
31031
31031
|
function getCwd() {
|
|
31032
31032
|
return process.env.INIT_CWD?.startsWith(workspaceRoot) ? process.env.INIT_CWD : process.cwd();
|
|
31033
31033
|
}
|
|
31034
|
-
function setCwd(
|
|
31035
|
-
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot,
|
|
31034
|
+
function setCwd(path2) {
|
|
31035
|
+
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot, path2);
|
|
31036
31036
|
}
|
|
31037
31037
|
exports.setCwd = setCwd;
|
|
31038
31038
|
}
|
|
@@ -31406,9 +31406,9 @@ var require_ts_config = __commonJS({
|
|
|
31406
31406
|
}
|
|
31407
31407
|
exports.readTsConfig = readTsConfig;
|
|
31408
31408
|
function getRootTsConfigPathInTree(tree) {
|
|
31409
|
-
for (const
|
|
31410
|
-
if (tree.exists(
|
|
31411
|
-
return
|
|
31409
|
+
for (const path2 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31410
|
+
if (tree.exists(path2)) {
|
|
31411
|
+
return path2;
|
|
31412
31412
|
}
|
|
31413
31413
|
}
|
|
31414
31414
|
return "tsconfig.base.json";
|
|
@@ -31478,7 +31478,7 @@ var require_run_type_check = __commonJS({
|
|
|
31478
31478
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31479
31479
|
exports.getFormattedDiagnostic = exports.runTypeCheck = exports.runTypeCheckWatch = void 0;
|
|
31480
31480
|
var chalk2 = require_source();
|
|
31481
|
-
var
|
|
31481
|
+
var path2 = require("path");
|
|
31482
31482
|
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
31483
31483
|
var highlight_1 = require_highlight();
|
|
31484
31484
|
var ts_config_1 = require_ts_config();
|
|
@@ -31511,7 +31511,7 @@ var require_run_type_check = __commonJS({
|
|
|
31511
31511
|
options: {
|
|
31512
31512
|
...compilerOptions,
|
|
31513
31513
|
incremental: true,
|
|
31514
|
-
tsBuildInfoFile:
|
|
31514
|
+
tsBuildInfoFile: path2.join(cacheDir, ".tsbuildinfo")
|
|
31515
31515
|
}
|
|
31516
31516
|
});
|
|
31517
31517
|
} else {
|
|
@@ -31576,7 +31576,7 @@ var require_run_type_check = __commonJS({
|
|
|
31576
31576
|
const pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
|
|
31577
31577
|
const line = pos.line + 1;
|
|
31578
31578
|
const column = pos.character + 1;
|
|
31579
|
-
const fileName =
|
|
31579
|
+
const fileName = path2.relative(workspaceRoot, diagnostic.file.fileName);
|
|
31580
31580
|
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
31581
31581
|
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
31582
31582
|
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
@@ -31894,9 +31894,9 @@ var require_ts_config2 = __commonJS({
|
|
|
31894
31894
|
}
|
|
31895
31895
|
exports.readTsConfig = readTsConfig;
|
|
31896
31896
|
function getRootTsConfigPathInTree(tree) {
|
|
31897
|
-
for (const
|
|
31898
|
-
if (tree.exists(
|
|
31899
|
-
return
|
|
31897
|
+
for (const path2 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31898
|
+
if (tree.exists(path2)) {
|
|
31899
|
+
return path2;
|
|
31900
31900
|
}
|
|
31901
31901
|
}
|
|
31902
31902
|
return "tsconfig.base.json";
|
|
@@ -32493,7 +32493,7 @@ var require_polyfills = __commonJS({
|
|
|
32493
32493
|
fs2.fstatSync = statFixSync(fs2.fstatSync);
|
|
32494
32494
|
fs2.lstatSync = statFixSync(fs2.lstatSync);
|
|
32495
32495
|
if (fs2.chmod && !fs2.lchmod) {
|
|
32496
|
-
fs2.lchmod = function(
|
|
32496
|
+
fs2.lchmod = function(path2, mode, cb) {
|
|
32497
32497
|
if (cb)
|
|
32498
32498
|
process.nextTick(cb);
|
|
32499
32499
|
};
|
|
@@ -32501,7 +32501,7 @@ var require_polyfills = __commonJS({
|
|
|
32501
32501
|
};
|
|
32502
32502
|
}
|
|
32503
32503
|
if (fs2.chown && !fs2.lchown) {
|
|
32504
|
-
fs2.lchown = function(
|
|
32504
|
+
fs2.lchown = function(path2, uid, gid, cb) {
|
|
32505
32505
|
if (cb)
|
|
32506
32506
|
process.nextTick(cb);
|
|
32507
32507
|
};
|
|
@@ -32572,9 +32572,9 @@ var require_polyfills = __commonJS({
|
|
|
32572
32572
|
};
|
|
32573
32573
|
}(fs2.readSync);
|
|
32574
32574
|
function patchLchmod(fs3) {
|
|
32575
|
-
fs3.lchmod = function(
|
|
32575
|
+
fs3.lchmod = function(path2, mode, callback) {
|
|
32576
32576
|
fs3.open(
|
|
32577
|
-
|
|
32577
|
+
path2,
|
|
32578
32578
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
32579
32579
|
mode,
|
|
32580
32580
|
function(err, fd) {
|
|
@@ -32592,8 +32592,8 @@ var require_polyfills = __commonJS({
|
|
|
32592
32592
|
}
|
|
32593
32593
|
);
|
|
32594
32594
|
};
|
|
32595
|
-
fs3.lchmodSync = function(
|
|
32596
|
-
var fd = fs3.openSync(
|
|
32595
|
+
fs3.lchmodSync = function(path2, mode) {
|
|
32596
|
+
var fd = fs3.openSync(path2, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
32597
32597
|
var threw = true;
|
|
32598
32598
|
var ret;
|
|
32599
32599
|
try {
|
|
@@ -32614,8 +32614,8 @@ var require_polyfills = __commonJS({
|
|
|
32614
32614
|
}
|
|
32615
32615
|
function patchLutimes(fs3) {
|
|
32616
32616
|
if (constants.hasOwnProperty("O_SYMLINK") && fs3.futimes) {
|
|
32617
|
-
fs3.lutimes = function(
|
|
32618
|
-
fs3.open(
|
|
32617
|
+
fs3.lutimes = function(path2, at, mt, cb) {
|
|
32618
|
+
fs3.open(path2, constants.O_SYMLINK, function(er, fd) {
|
|
32619
32619
|
if (er) {
|
|
32620
32620
|
if (cb)
|
|
32621
32621
|
cb(er);
|
|
@@ -32629,8 +32629,8 @@ var require_polyfills = __commonJS({
|
|
|
32629
32629
|
});
|
|
32630
32630
|
});
|
|
32631
32631
|
};
|
|
32632
|
-
fs3.lutimesSync = function(
|
|
32633
|
-
var fd = fs3.openSync(
|
|
32632
|
+
fs3.lutimesSync = function(path2, at, mt) {
|
|
32633
|
+
var fd = fs3.openSync(path2, constants.O_SYMLINK);
|
|
32634
32634
|
var ret;
|
|
32635
32635
|
var threw = true;
|
|
32636
32636
|
try {
|
|
@@ -32766,12 +32766,12 @@ var require_legacy_streams = __commonJS({
|
|
|
32766
32766
|
ReadStream,
|
|
32767
32767
|
WriteStream
|
|
32768
32768
|
};
|
|
32769
|
-
function ReadStream(
|
|
32769
|
+
function ReadStream(path2, options) {
|
|
32770
32770
|
if (!(this instanceof ReadStream))
|
|
32771
|
-
return new ReadStream(
|
|
32771
|
+
return new ReadStream(path2, options);
|
|
32772
32772
|
Stream.call(this);
|
|
32773
32773
|
var self = this;
|
|
32774
|
-
this.path =
|
|
32774
|
+
this.path = path2;
|
|
32775
32775
|
this.fd = null;
|
|
32776
32776
|
this.readable = true;
|
|
32777
32777
|
this.paused = false;
|
|
@@ -32817,11 +32817,11 @@ var require_legacy_streams = __commonJS({
|
|
|
32817
32817
|
self._read();
|
|
32818
32818
|
});
|
|
32819
32819
|
}
|
|
32820
|
-
function WriteStream(
|
|
32820
|
+
function WriteStream(path2, options) {
|
|
32821
32821
|
if (!(this instanceof WriteStream))
|
|
32822
|
-
return new WriteStream(
|
|
32822
|
+
return new WriteStream(path2, options);
|
|
32823
32823
|
Stream.call(this);
|
|
32824
|
-
this.path =
|
|
32824
|
+
this.path = path2;
|
|
32825
32825
|
this.fd = null;
|
|
32826
32826
|
this.writable = true;
|
|
32827
32827
|
this.flags = "w";
|
|
@@ -32964,14 +32964,14 @@ var require_graceful_fs = __commonJS({
|
|
|
32964
32964
|
fs3.createWriteStream = createWriteStream;
|
|
32965
32965
|
var fs$readFile = fs3.readFile;
|
|
32966
32966
|
fs3.readFile = readFile;
|
|
32967
|
-
function readFile(
|
|
32967
|
+
function readFile(path2, options, cb) {
|
|
32968
32968
|
if (typeof options === "function")
|
|
32969
32969
|
cb = options, options = null;
|
|
32970
|
-
return go$readFile(
|
|
32971
|
-
function go$readFile(
|
|
32972
|
-
return fs$readFile(
|
|
32970
|
+
return go$readFile(path2, options, cb);
|
|
32971
|
+
function go$readFile(path3, options2, cb2, startTime) {
|
|
32972
|
+
return fs$readFile(path3, options2, function(err) {
|
|
32973
32973
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
32974
|
-
enqueue([go$readFile, [
|
|
32974
|
+
enqueue([go$readFile, [path3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
32975
32975
|
else {
|
|
32976
32976
|
if (typeof cb2 === "function")
|
|
32977
32977
|
cb2.apply(this, arguments);
|
|
@@ -32981,14 +32981,14 @@ var require_graceful_fs = __commonJS({
|
|
|
32981
32981
|
}
|
|
32982
32982
|
var fs$writeFile = fs3.writeFile;
|
|
32983
32983
|
fs3.writeFile = writeFile;
|
|
32984
|
-
function writeFile(
|
|
32984
|
+
function writeFile(path2, data, options, cb) {
|
|
32985
32985
|
if (typeof options === "function")
|
|
32986
32986
|
cb = options, options = null;
|
|
32987
|
-
return go$writeFile(
|
|
32988
|
-
function go$writeFile(
|
|
32989
|
-
return fs$writeFile(
|
|
32987
|
+
return go$writeFile(path2, data, options, cb);
|
|
32988
|
+
function go$writeFile(path3, data2, options2, cb2, startTime) {
|
|
32989
|
+
return fs$writeFile(path3, data2, options2, function(err) {
|
|
32990
32990
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
32991
|
-
enqueue([go$writeFile, [
|
|
32991
|
+
enqueue([go$writeFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
32992
32992
|
else {
|
|
32993
32993
|
if (typeof cb2 === "function")
|
|
32994
32994
|
cb2.apply(this, arguments);
|
|
@@ -32999,14 +32999,14 @@ var require_graceful_fs = __commonJS({
|
|
|
32999
32999
|
var fs$appendFile = fs3.appendFile;
|
|
33000
33000
|
if (fs$appendFile)
|
|
33001
33001
|
fs3.appendFile = appendFile;
|
|
33002
|
-
function appendFile(
|
|
33002
|
+
function appendFile(path2, data, options, cb) {
|
|
33003
33003
|
if (typeof options === "function")
|
|
33004
33004
|
cb = options, options = null;
|
|
33005
|
-
return go$appendFile(
|
|
33006
|
-
function go$appendFile(
|
|
33007
|
-
return fs$appendFile(
|
|
33005
|
+
return go$appendFile(path2, data, options, cb);
|
|
33006
|
+
function go$appendFile(path3, data2, options2, cb2, startTime) {
|
|
33007
|
+
return fs$appendFile(path3, data2, options2, function(err) {
|
|
33008
33008
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33009
|
-
enqueue([go$appendFile, [
|
|
33009
|
+
enqueue([go$appendFile, [path3, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33010
33010
|
else {
|
|
33011
33011
|
if (typeof cb2 === "function")
|
|
33012
33012
|
cb2.apply(this, arguments);
|
|
@@ -33037,31 +33037,31 @@ var require_graceful_fs = __commonJS({
|
|
|
33037
33037
|
var fs$readdir = fs3.readdir;
|
|
33038
33038
|
fs3.readdir = readdir;
|
|
33039
33039
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
33040
|
-
function readdir(
|
|
33040
|
+
function readdir(path2, options, cb) {
|
|
33041
33041
|
if (typeof options === "function")
|
|
33042
33042
|
cb = options, options = null;
|
|
33043
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
33044
|
-
return fs$readdir(
|
|
33045
|
-
|
|
33043
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path3, options2, cb2, startTime) {
|
|
33044
|
+
return fs$readdir(path3, fs$readdirCallback(
|
|
33045
|
+
path3,
|
|
33046
33046
|
options2,
|
|
33047
33047
|
cb2,
|
|
33048
33048
|
startTime
|
|
33049
33049
|
));
|
|
33050
|
-
} : function go$readdir2(
|
|
33051
|
-
return fs$readdir(
|
|
33052
|
-
|
|
33050
|
+
} : function go$readdir2(path3, options2, cb2, startTime) {
|
|
33051
|
+
return fs$readdir(path3, options2, fs$readdirCallback(
|
|
33052
|
+
path3,
|
|
33053
33053
|
options2,
|
|
33054
33054
|
cb2,
|
|
33055
33055
|
startTime
|
|
33056
33056
|
));
|
|
33057
33057
|
};
|
|
33058
|
-
return go$readdir(
|
|
33059
|
-
function fs$readdirCallback(
|
|
33058
|
+
return go$readdir(path2, options, cb);
|
|
33059
|
+
function fs$readdirCallback(path3, options2, cb2, startTime) {
|
|
33060
33060
|
return function(err, files) {
|
|
33061
33061
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33062
33062
|
enqueue([
|
|
33063
33063
|
go$readdir,
|
|
33064
|
-
[
|
|
33064
|
+
[path3, options2, cb2],
|
|
33065
33065
|
err,
|
|
33066
33066
|
startTime || Date.now(),
|
|
33067
33067
|
Date.now()
|
|
@@ -33132,7 +33132,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33132
33132
|
enumerable: true,
|
|
33133
33133
|
configurable: true
|
|
33134
33134
|
});
|
|
33135
|
-
function ReadStream(
|
|
33135
|
+
function ReadStream(path2, options) {
|
|
33136
33136
|
if (this instanceof ReadStream)
|
|
33137
33137
|
return fs$ReadStream.apply(this, arguments), this;
|
|
33138
33138
|
else
|
|
@@ -33152,7 +33152,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33152
33152
|
}
|
|
33153
33153
|
});
|
|
33154
33154
|
}
|
|
33155
|
-
function WriteStream(
|
|
33155
|
+
function WriteStream(path2, options) {
|
|
33156
33156
|
if (this instanceof WriteStream)
|
|
33157
33157
|
return fs$WriteStream.apply(this, arguments), this;
|
|
33158
33158
|
else
|
|
@@ -33170,22 +33170,22 @@ var require_graceful_fs = __commonJS({
|
|
|
33170
33170
|
}
|
|
33171
33171
|
});
|
|
33172
33172
|
}
|
|
33173
|
-
function createReadStream(
|
|
33174
|
-
return new fs3.ReadStream(
|
|
33173
|
+
function createReadStream(path2, options) {
|
|
33174
|
+
return new fs3.ReadStream(path2, options);
|
|
33175
33175
|
}
|
|
33176
|
-
function createWriteStream(
|
|
33177
|
-
return new fs3.WriteStream(
|
|
33176
|
+
function createWriteStream(path2, options) {
|
|
33177
|
+
return new fs3.WriteStream(path2, options);
|
|
33178
33178
|
}
|
|
33179
33179
|
var fs$open = fs3.open;
|
|
33180
33180
|
fs3.open = open;
|
|
33181
|
-
function open(
|
|
33181
|
+
function open(path2, flags, mode, cb) {
|
|
33182
33182
|
if (typeof mode === "function")
|
|
33183
33183
|
cb = mode, mode = null;
|
|
33184
|
-
return go$open(
|
|
33185
|
-
function go$open(
|
|
33186
|
-
return fs$open(
|
|
33184
|
+
return go$open(path2, flags, mode, cb);
|
|
33185
|
+
function go$open(path3, flags2, mode2, cb2, startTime) {
|
|
33186
|
+
return fs$open(path3, flags2, mode2, function(err, fd) {
|
|
33187
33187
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33188
|
-
enqueue([go$open, [
|
|
33188
|
+
enqueue([go$open, [path3, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33189
33189
|
else {
|
|
33190
33190
|
if (typeof cb2 === "function")
|
|
33191
33191
|
cb2.apply(this, arguments);
|
|
@@ -33368,10 +33368,10 @@ var require_fs2 = __commonJS({
|
|
|
33368
33368
|
var require_utils3 = __commonJS({
|
|
33369
33369
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports, module2) {
|
|
33370
33370
|
"use strict";
|
|
33371
|
-
var
|
|
33371
|
+
var path2 = require("path");
|
|
33372
33372
|
module2.exports.checkPath = function checkPath(pth) {
|
|
33373
33373
|
if (process.platform === "win32") {
|
|
33374
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
33374
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path2.parse(pth).root, ""));
|
|
33375
33375
|
if (pathHasInvalidWinCharacters) {
|
|
33376
33376
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
33377
33377
|
error.code = "EINVAL";
|
|
@@ -33436,8 +33436,8 @@ var require_path_exists = __commonJS({
|
|
|
33436
33436
|
"use strict";
|
|
33437
33437
|
var u = require_universalify().fromPromise;
|
|
33438
33438
|
var fs2 = require_fs2();
|
|
33439
|
-
function pathExists(
|
|
33440
|
-
return fs2.access(
|
|
33439
|
+
function pathExists(path2) {
|
|
33440
|
+
return fs2.access(path2).then(() => true).catch(() => false);
|
|
33441
33441
|
}
|
|
33442
33442
|
module2.exports = {
|
|
33443
33443
|
pathExists: u(pathExists),
|
|
@@ -33452,8 +33452,8 @@ var require_utimes = __commonJS({
|
|
|
33452
33452
|
"use strict";
|
|
33453
33453
|
var fs2 = require_fs2();
|
|
33454
33454
|
var u = require_universalify().fromPromise;
|
|
33455
|
-
async function utimesMillis(
|
|
33456
|
-
const fd = await fs2.open(
|
|
33455
|
+
async function utimesMillis(path2, atime, mtime) {
|
|
33456
|
+
const fd = await fs2.open(path2, "r+");
|
|
33457
33457
|
let closeErr = null;
|
|
33458
33458
|
try {
|
|
33459
33459
|
await fs2.futimes(fd, atime, mtime);
|
|
@@ -33468,8 +33468,8 @@ var require_utimes = __commonJS({
|
|
|
33468
33468
|
throw closeErr;
|
|
33469
33469
|
}
|
|
33470
33470
|
}
|
|
33471
|
-
function utimesMillisSync(
|
|
33472
|
-
const fd = fs2.openSync(
|
|
33471
|
+
function utimesMillisSync(path2, atime, mtime) {
|
|
33472
|
+
const fd = fs2.openSync(path2, "r+");
|
|
33473
33473
|
fs2.futimesSync(fd, atime, mtime);
|
|
33474
33474
|
return fs2.closeSync(fd);
|
|
33475
33475
|
}
|
|
@@ -33485,7 +33485,7 @@ var require_stat = __commonJS({
|
|
|
33485
33485
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports, module2) {
|
|
33486
33486
|
"use strict";
|
|
33487
33487
|
var fs2 = require_fs2();
|
|
33488
|
-
var
|
|
33488
|
+
var path2 = require("path");
|
|
33489
33489
|
var u = require_universalify().fromPromise;
|
|
33490
33490
|
function getStats(src, dest, opts) {
|
|
33491
33491
|
const statFunc = opts.dereference ? (file) => fs2.stat(file, { bigint: true }) : (file) => fs2.lstat(file, { bigint: true });
|
|
@@ -33515,8 +33515,8 @@ var require_stat = __commonJS({
|
|
|
33515
33515
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
33516
33516
|
if (destStat) {
|
|
33517
33517
|
if (areIdentical(srcStat, destStat)) {
|
|
33518
|
-
const srcBaseName =
|
|
33519
|
-
const destBaseName =
|
|
33518
|
+
const srcBaseName = path2.basename(src);
|
|
33519
|
+
const destBaseName = path2.basename(dest);
|
|
33520
33520
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
33521
33521
|
return { srcStat, destStat, isChangingCase: true };
|
|
33522
33522
|
}
|
|
@@ -33538,8 +33538,8 @@ var require_stat = __commonJS({
|
|
|
33538
33538
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
33539
33539
|
if (destStat) {
|
|
33540
33540
|
if (areIdentical(srcStat, destStat)) {
|
|
33541
|
-
const srcBaseName =
|
|
33542
|
-
const destBaseName =
|
|
33541
|
+
const srcBaseName = path2.basename(src);
|
|
33542
|
+
const destBaseName = path2.basename(dest);
|
|
33543
33543
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
33544
33544
|
return { srcStat, destStat, isChangingCase: true };
|
|
33545
33545
|
}
|
|
@@ -33558,9 +33558,9 @@ var require_stat = __commonJS({
|
|
|
33558
33558
|
return { srcStat, destStat };
|
|
33559
33559
|
}
|
|
33560
33560
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
33561
|
-
const srcParent =
|
|
33562
|
-
const destParent =
|
|
33563
|
-
if (destParent === srcParent || destParent ===
|
|
33561
|
+
const srcParent = path2.resolve(path2.dirname(src));
|
|
33562
|
+
const destParent = path2.resolve(path2.dirname(dest));
|
|
33563
|
+
if (destParent === srcParent || destParent === path2.parse(destParent).root)
|
|
33564
33564
|
return;
|
|
33565
33565
|
let destStat;
|
|
33566
33566
|
try {
|
|
@@ -33576,9 +33576,9 @@ var require_stat = __commonJS({
|
|
|
33576
33576
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
33577
33577
|
}
|
|
33578
33578
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
33579
|
-
const srcParent =
|
|
33580
|
-
const destParent =
|
|
33581
|
-
if (destParent === srcParent || destParent ===
|
|
33579
|
+
const srcParent = path2.resolve(path2.dirname(src));
|
|
33580
|
+
const destParent = path2.resolve(path2.dirname(dest));
|
|
33581
|
+
if (destParent === srcParent || destParent === path2.parse(destParent).root)
|
|
33582
33582
|
return;
|
|
33583
33583
|
let destStat;
|
|
33584
33584
|
try {
|
|
@@ -33597,8 +33597,8 @@ var require_stat = __commonJS({
|
|
|
33597
33597
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
33598
33598
|
}
|
|
33599
33599
|
function isSrcSubdir(src, dest) {
|
|
33600
|
-
const srcArr =
|
|
33601
|
-
const destArr =
|
|
33600
|
+
const srcArr = path2.resolve(src).split(path2.sep).filter((i) => i);
|
|
33601
|
+
const destArr = path2.resolve(dest).split(path2.sep).filter((i) => i);
|
|
33602
33602
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
33603
33603
|
}
|
|
33604
33604
|
function errMsg(src, dest, funcName) {
|
|
@@ -33623,7 +33623,7 @@ var require_copy = __commonJS({
|
|
|
33623
33623
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
|
|
33624
33624
|
"use strict";
|
|
33625
33625
|
var fs2 = require_fs2();
|
|
33626
|
-
var
|
|
33626
|
+
var path2 = require("path");
|
|
33627
33627
|
var { mkdirs } = require_mkdirs();
|
|
33628
33628
|
var { pathExists } = require_path_exists();
|
|
33629
33629
|
var { utimesMillis } = require_utimes();
|
|
@@ -33646,7 +33646,7 @@ var require_copy = __commonJS({
|
|
|
33646
33646
|
const include = await runFilter(src, dest, opts);
|
|
33647
33647
|
if (!include)
|
|
33648
33648
|
return;
|
|
33649
|
-
const destParent =
|
|
33649
|
+
const destParent = path2.dirname(dest);
|
|
33650
33650
|
const dirExists = await pathExists(destParent);
|
|
33651
33651
|
if (!dirExists) {
|
|
33652
33652
|
await mkdirs(destParent);
|
|
@@ -33707,8 +33707,8 @@ var require_copy = __commonJS({
|
|
|
33707
33707
|
}
|
|
33708
33708
|
const items = await fs2.readdir(src);
|
|
33709
33709
|
await Promise.all(items.map(async (item) => {
|
|
33710
|
-
const srcItem =
|
|
33711
|
-
const destItem =
|
|
33710
|
+
const srcItem = path2.join(src, item);
|
|
33711
|
+
const destItem = path2.join(dest, item);
|
|
33712
33712
|
const include = await runFilter(srcItem, destItem, opts);
|
|
33713
33713
|
if (!include)
|
|
33714
33714
|
return;
|
|
@@ -33722,7 +33722,7 @@ var require_copy = __commonJS({
|
|
|
33722
33722
|
async function onLink(destStat, src, dest, opts) {
|
|
33723
33723
|
let resolvedSrc = await fs2.readlink(src);
|
|
33724
33724
|
if (opts.dereference) {
|
|
33725
|
-
resolvedSrc =
|
|
33725
|
+
resolvedSrc = path2.resolve(process.cwd(), resolvedSrc);
|
|
33726
33726
|
}
|
|
33727
33727
|
if (!destStat) {
|
|
33728
33728
|
return fs2.symlink(resolvedSrc, dest);
|
|
@@ -33736,7 +33736,7 @@ var require_copy = __commonJS({
|
|
|
33736
33736
|
throw e;
|
|
33737
33737
|
}
|
|
33738
33738
|
if (opts.dereference) {
|
|
33739
|
-
resolvedDest =
|
|
33739
|
+
resolvedDest = path2.resolve(process.cwd(), resolvedDest);
|
|
33740
33740
|
}
|
|
33741
33741
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
33742
33742
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -33756,7 +33756,7 @@ var require_copy_sync = __commonJS({
|
|
|
33756
33756
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports, module2) {
|
|
33757
33757
|
"use strict";
|
|
33758
33758
|
var fs2 = require_graceful_fs();
|
|
33759
|
-
var
|
|
33759
|
+
var path2 = require("path");
|
|
33760
33760
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
33761
33761
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
33762
33762
|
var stat = require_stat();
|
|
@@ -33778,7 +33778,7 @@ var require_copy_sync = __commonJS({
|
|
|
33778
33778
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
33779
33779
|
if (opts.filter && !opts.filter(src, dest))
|
|
33780
33780
|
return;
|
|
33781
|
-
const destParent =
|
|
33781
|
+
const destParent = path2.dirname(dest);
|
|
33782
33782
|
if (!fs2.existsSync(destParent))
|
|
33783
33783
|
mkdirsSync(destParent);
|
|
33784
33784
|
return getStats(destStat, src, dest, opts);
|
|
@@ -33849,8 +33849,8 @@ var require_copy_sync = __commonJS({
|
|
|
33849
33849
|
fs2.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
33850
33850
|
}
|
|
33851
33851
|
function copyDirItem(item, src, dest, opts) {
|
|
33852
|
-
const srcItem =
|
|
33853
|
-
const destItem =
|
|
33852
|
+
const srcItem = path2.join(src, item);
|
|
33853
|
+
const destItem = path2.join(dest, item);
|
|
33854
33854
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
33855
33855
|
return;
|
|
33856
33856
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
@@ -33859,7 +33859,7 @@ var require_copy_sync = __commonJS({
|
|
|
33859
33859
|
function onLink(destStat, src, dest, opts) {
|
|
33860
33860
|
let resolvedSrc = fs2.readlinkSync(src);
|
|
33861
33861
|
if (opts.dereference) {
|
|
33862
|
-
resolvedSrc =
|
|
33862
|
+
resolvedSrc = path2.resolve(process.cwd(), resolvedSrc);
|
|
33863
33863
|
}
|
|
33864
33864
|
if (!destStat) {
|
|
33865
33865
|
return fs2.symlinkSync(resolvedSrc, dest);
|
|
@@ -33873,7 +33873,7 @@ var require_copy_sync = __commonJS({
|
|
|
33873
33873
|
throw err;
|
|
33874
33874
|
}
|
|
33875
33875
|
if (opts.dereference) {
|
|
33876
|
-
resolvedDest =
|
|
33876
|
+
resolvedDest = path2.resolve(process.cwd(), resolvedDest);
|
|
33877
33877
|
}
|
|
33878
33878
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
33879
33879
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -33910,11 +33910,11 @@ var require_remove = __commonJS({
|
|
|
33910
33910
|
"use strict";
|
|
33911
33911
|
var fs2 = require_graceful_fs();
|
|
33912
33912
|
var u = require_universalify().fromCallback;
|
|
33913
|
-
function remove(
|
|
33914
|
-
fs2.rm(
|
|
33913
|
+
function remove(path2, callback) {
|
|
33914
|
+
fs2.rm(path2, { recursive: true, force: true }, callback);
|
|
33915
33915
|
}
|
|
33916
|
-
function removeSync(
|
|
33917
|
-
fs2.rmSync(
|
|
33916
|
+
function removeSync(path2) {
|
|
33917
|
+
fs2.rmSync(path2, { recursive: true, force: true });
|
|
33918
33918
|
}
|
|
33919
33919
|
module2.exports = {
|
|
33920
33920
|
remove: u(remove),
|
|
@@ -33929,7 +33929,7 @@ var require_empty2 = __commonJS({
|
|
|
33929
33929
|
"use strict";
|
|
33930
33930
|
var u = require_universalify().fromPromise;
|
|
33931
33931
|
var fs2 = require_fs2();
|
|
33932
|
-
var
|
|
33932
|
+
var path2 = require("path");
|
|
33933
33933
|
var mkdir = require_mkdirs();
|
|
33934
33934
|
var remove = require_remove();
|
|
33935
33935
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -33939,7 +33939,7 @@ var require_empty2 = __commonJS({
|
|
|
33939
33939
|
} catch {
|
|
33940
33940
|
return mkdir.mkdirs(dir);
|
|
33941
33941
|
}
|
|
33942
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
33942
|
+
return Promise.all(items.map((item) => remove.remove(path2.join(dir, item))));
|
|
33943
33943
|
});
|
|
33944
33944
|
function emptyDirSync(dir) {
|
|
33945
33945
|
let items;
|
|
@@ -33949,7 +33949,7 @@ var require_empty2 = __commonJS({
|
|
|
33949
33949
|
return mkdir.mkdirsSync(dir);
|
|
33950
33950
|
}
|
|
33951
33951
|
items.forEach((item) => {
|
|
33952
|
-
item =
|
|
33952
|
+
item = path2.join(dir, item);
|
|
33953
33953
|
remove.removeSync(item);
|
|
33954
33954
|
});
|
|
33955
33955
|
}
|
|
@@ -33967,7 +33967,7 @@ var require_file = __commonJS({
|
|
|
33967
33967
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
|
|
33968
33968
|
"use strict";
|
|
33969
33969
|
var u = require_universalify().fromPromise;
|
|
33970
|
-
var
|
|
33970
|
+
var path2 = require("path");
|
|
33971
33971
|
var fs2 = require_fs2();
|
|
33972
33972
|
var mkdir = require_mkdirs();
|
|
33973
33973
|
async function createFile(file) {
|
|
@@ -33978,7 +33978,7 @@ var require_file = __commonJS({
|
|
|
33978
33978
|
}
|
|
33979
33979
|
if (stats && stats.isFile())
|
|
33980
33980
|
return;
|
|
33981
|
-
const dir =
|
|
33981
|
+
const dir = path2.dirname(file);
|
|
33982
33982
|
let dirStats = null;
|
|
33983
33983
|
try {
|
|
33984
33984
|
dirStats = await fs2.stat(dir);
|
|
@@ -34005,7 +34005,7 @@ var require_file = __commonJS({
|
|
|
34005
34005
|
}
|
|
34006
34006
|
if (stats && stats.isFile())
|
|
34007
34007
|
return;
|
|
34008
|
-
const dir =
|
|
34008
|
+
const dir = path2.dirname(file);
|
|
34009
34009
|
try {
|
|
34010
34010
|
if (!fs2.statSync(dir).isDirectory()) {
|
|
34011
34011
|
fs2.readdirSync(dir);
|
|
@@ -34030,7 +34030,7 @@ var require_link = __commonJS({
|
|
|
34030
34030
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
|
|
34031
34031
|
"use strict";
|
|
34032
34032
|
var u = require_universalify().fromPromise;
|
|
34033
|
-
var
|
|
34033
|
+
var path2 = require("path");
|
|
34034
34034
|
var fs2 = require_fs2();
|
|
34035
34035
|
var mkdir = require_mkdirs();
|
|
34036
34036
|
var { pathExists } = require_path_exists();
|
|
@@ -34050,7 +34050,7 @@ var require_link = __commonJS({
|
|
|
34050
34050
|
}
|
|
34051
34051
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
34052
34052
|
return;
|
|
34053
|
-
const dir =
|
|
34053
|
+
const dir = path2.dirname(dstpath);
|
|
34054
34054
|
const dirExists = await pathExists(dir);
|
|
34055
34055
|
if (!dirExists) {
|
|
34056
34056
|
await mkdir.mkdirs(dir);
|
|
@@ -34071,7 +34071,7 @@ var require_link = __commonJS({
|
|
|
34071
34071
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34072
34072
|
throw err;
|
|
34073
34073
|
}
|
|
34074
|
-
const dir =
|
|
34074
|
+
const dir = path2.dirname(dstpath);
|
|
34075
34075
|
const dirExists = fs2.existsSync(dir);
|
|
34076
34076
|
if (dirExists)
|
|
34077
34077
|
return fs2.linkSync(srcpath, dstpath);
|
|
@@ -34089,12 +34089,12 @@ var require_link = __commonJS({
|
|
|
34089
34089
|
var require_symlink_paths = __commonJS({
|
|
34090
34090
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
|
|
34091
34091
|
"use strict";
|
|
34092
|
-
var
|
|
34092
|
+
var path2 = require("path");
|
|
34093
34093
|
var fs2 = require_fs2();
|
|
34094
34094
|
var { pathExists } = require_path_exists();
|
|
34095
34095
|
var u = require_universalify().fromPromise;
|
|
34096
34096
|
async function symlinkPaths(srcpath, dstpath) {
|
|
34097
|
-
if (
|
|
34097
|
+
if (path2.isAbsolute(srcpath)) {
|
|
34098
34098
|
try {
|
|
34099
34099
|
await fs2.lstat(srcpath);
|
|
34100
34100
|
} catch (err) {
|
|
@@ -34106,8 +34106,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34106
34106
|
toDst: srcpath
|
|
34107
34107
|
};
|
|
34108
34108
|
}
|
|
34109
|
-
const dstdir =
|
|
34110
|
-
const relativeToDst =
|
|
34109
|
+
const dstdir = path2.dirname(dstpath);
|
|
34110
|
+
const relativeToDst = path2.join(dstdir, srcpath);
|
|
34111
34111
|
const exists = await pathExists(relativeToDst);
|
|
34112
34112
|
if (exists) {
|
|
34113
34113
|
return {
|
|
@@ -34123,11 +34123,11 @@ var require_symlink_paths = __commonJS({
|
|
|
34123
34123
|
}
|
|
34124
34124
|
return {
|
|
34125
34125
|
toCwd: srcpath,
|
|
34126
|
-
toDst:
|
|
34126
|
+
toDst: path2.relative(dstdir, srcpath)
|
|
34127
34127
|
};
|
|
34128
34128
|
}
|
|
34129
34129
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
34130
|
-
if (
|
|
34130
|
+
if (path2.isAbsolute(srcpath)) {
|
|
34131
34131
|
const exists2 = fs2.existsSync(srcpath);
|
|
34132
34132
|
if (!exists2)
|
|
34133
34133
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -34136,8 +34136,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34136
34136
|
toDst: srcpath
|
|
34137
34137
|
};
|
|
34138
34138
|
}
|
|
34139
|
-
const dstdir =
|
|
34140
|
-
const relativeToDst =
|
|
34139
|
+
const dstdir = path2.dirname(dstpath);
|
|
34140
|
+
const relativeToDst = path2.join(dstdir, srcpath);
|
|
34141
34141
|
const exists = fs2.existsSync(relativeToDst);
|
|
34142
34142
|
if (exists) {
|
|
34143
34143
|
return {
|
|
@@ -34150,7 +34150,7 @@ var require_symlink_paths = __commonJS({
|
|
|
34150
34150
|
throw new Error("relative srcpath does not exist");
|
|
34151
34151
|
return {
|
|
34152
34152
|
toCwd: srcpath,
|
|
34153
|
-
toDst:
|
|
34153
|
+
toDst: path2.relative(dstdir, srcpath)
|
|
34154
34154
|
};
|
|
34155
34155
|
}
|
|
34156
34156
|
module2.exports = {
|
|
@@ -34200,7 +34200,7 @@ var require_symlink = __commonJS({
|
|
|
34200
34200
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
|
|
34201
34201
|
"use strict";
|
|
34202
34202
|
var u = require_universalify().fromPromise;
|
|
34203
|
-
var
|
|
34203
|
+
var path2 = require("path");
|
|
34204
34204
|
var fs2 = require_fs2();
|
|
34205
34205
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
34206
34206
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -34224,7 +34224,7 @@ var require_symlink = __commonJS({
|
|
|
34224
34224
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
34225
34225
|
srcpath = relative.toDst;
|
|
34226
34226
|
const toType = await symlinkType(relative.toCwd, type);
|
|
34227
|
-
const dir =
|
|
34227
|
+
const dir = path2.dirname(dstpath);
|
|
34228
34228
|
if (!await pathExists(dir)) {
|
|
34229
34229
|
await mkdirs(dir);
|
|
34230
34230
|
}
|
|
@@ -34245,7 +34245,7 @@ var require_symlink = __commonJS({
|
|
|
34245
34245
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
34246
34246
|
srcpath = relative.toDst;
|
|
34247
34247
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
34248
|
-
const dir =
|
|
34248
|
+
const dir = path2.dirname(dstpath);
|
|
34249
34249
|
const exists = fs2.existsSync(dir);
|
|
34250
34250
|
if (exists)
|
|
34251
34251
|
return fs2.symlinkSync(srcpath, dstpath, type);
|
|
@@ -34397,18 +34397,18 @@ var require_output_file = __commonJS({
|
|
|
34397
34397
|
"use strict";
|
|
34398
34398
|
var u = require_universalify().fromPromise;
|
|
34399
34399
|
var fs2 = require_fs2();
|
|
34400
|
-
var
|
|
34400
|
+
var path2 = require("path");
|
|
34401
34401
|
var mkdir = require_mkdirs();
|
|
34402
34402
|
var pathExists = require_path_exists().pathExists;
|
|
34403
34403
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
34404
|
-
const dir =
|
|
34404
|
+
const dir = path2.dirname(file);
|
|
34405
34405
|
if (!await pathExists(dir)) {
|
|
34406
34406
|
await mkdir.mkdirs(dir);
|
|
34407
34407
|
}
|
|
34408
34408
|
return fs2.writeFile(file, data, encoding);
|
|
34409
34409
|
}
|
|
34410
34410
|
function outputFileSync(file, ...args) {
|
|
34411
|
-
const dir =
|
|
34411
|
+
const dir = path2.dirname(file);
|
|
34412
34412
|
if (!fs2.existsSync(dir)) {
|
|
34413
34413
|
mkdir.mkdirsSync(dir);
|
|
34414
34414
|
}
|
|
@@ -34472,7 +34472,7 @@ var require_move = __commonJS({
|
|
|
34472
34472
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports, module2) {
|
|
34473
34473
|
"use strict";
|
|
34474
34474
|
var fs2 = require_fs2();
|
|
34475
|
-
var
|
|
34475
|
+
var path2 = require("path");
|
|
34476
34476
|
var { copy } = require_copy2();
|
|
34477
34477
|
var { remove } = require_remove();
|
|
34478
34478
|
var { mkdirp } = require_mkdirs();
|
|
@@ -34482,8 +34482,8 @@ var require_move = __commonJS({
|
|
|
34482
34482
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
34483
34483
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
34484
34484
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
34485
|
-
const destParent =
|
|
34486
|
-
const parsedParentPath =
|
|
34485
|
+
const destParent = path2.dirname(dest);
|
|
34486
|
+
const parsedParentPath = path2.parse(destParent);
|
|
34487
34487
|
if (parsedParentPath.root !== destParent) {
|
|
34488
34488
|
await mkdirp(destParent);
|
|
34489
34489
|
}
|
|
@@ -34524,7 +34524,7 @@ var require_move_sync = __commonJS({
|
|
|
34524
34524
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports, module2) {
|
|
34525
34525
|
"use strict";
|
|
34526
34526
|
var fs2 = require_graceful_fs();
|
|
34527
|
-
var
|
|
34527
|
+
var path2 = require("path");
|
|
34528
34528
|
var copySync = require_copy2().copySync;
|
|
34529
34529
|
var removeSync = require_remove().removeSync;
|
|
34530
34530
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -34535,12 +34535,12 @@ var require_move_sync = __commonJS({
|
|
|
34535
34535
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
34536
34536
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
34537
34537
|
if (!isParentRoot(dest))
|
|
34538
|
-
mkdirpSync(
|
|
34538
|
+
mkdirpSync(path2.dirname(dest));
|
|
34539
34539
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
34540
34540
|
}
|
|
34541
34541
|
function isParentRoot(dest) {
|
|
34542
|
-
const parent =
|
|
34543
|
-
const parsedPath =
|
|
34542
|
+
const parent = path2.dirname(dest);
|
|
34543
|
+
const parsedPath = path2.parse(parent);
|
|
34544
34544
|
return parsedPath.root === parent;
|
|
34545
34545
|
}
|
|
34546
34546
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -35034,16 +35034,16 @@ var require_buildable_libs_utils = __commonJS({
|
|
|
35034
35034
|
dependencies.forEach((dep) => {
|
|
35035
35035
|
if (dep.outputs && dep.outputs.length > 0) {
|
|
35036
35036
|
paths[dep.name] = dep.outputs;
|
|
35037
|
-
for (const
|
|
35037
|
+
for (const path2 of pathsKeys) {
|
|
35038
35038
|
const nestedName = `${dep.name}/`;
|
|
35039
|
-
if (
|
|
35040
|
-
const nestedPart =
|
|
35039
|
+
if (path2.startsWith(nestedName)) {
|
|
35040
|
+
const nestedPart = path2.slice(nestedName.length);
|
|
35041
35041
|
let mappedPaths = dep.outputs.map((output) => `${output}/${nestedPart}`);
|
|
35042
35042
|
const { root } = dep.node?.data || {};
|
|
35043
35043
|
if (root) {
|
|
35044
|
-
mappedPaths = mappedPaths.concat(paths[
|
|
35044
|
+
mappedPaths = mappedPaths.concat(paths[path2].flatMap((path3) => dep.outputs.map((output) => path3.replace(root, output))));
|
|
35045
35045
|
}
|
|
35046
|
-
paths[
|
|
35046
|
+
paths[path2] = mappedPaths;
|
|
35047
35047
|
}
|
|
35048
35048
|
}
|
|
35049
35049
|
}
|
|
@@ -35177,7 +35177,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35177
35177
|
"node_modules/.pnpm/minimatch@3.0.5/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
35178
35178
|
module2.exports = minimatch;
|
|
35179
35179
|
minimatch.Minimatch = Minimatch;
|
|
35180
|
-
var
|
|
35180
|
+
var path2 = (() => {
|
|
35181
35181
|
try {
|
|
35182
35182
|
return require("path");
|
|
35183
35183
|
} catch (e) {
|
|
@@ -35185,7 +35185,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35185
35185
|
})() || {
|
|
35186
35186
|
sep: "/"
|
|
35187
35187
|
};
|
|
35188
|
-
minimatch.sep =
|
|
35188
|
+
minimatch.sep = path2.sep;
|
|
35189
35189
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
35190
35190
|
var expand = require_brace_expansion();
|
|
35191
35191
|
var plTypes = {
|
|
@@ -35279,8 +35279,8 @@ var require_minimatch2 = __commonJS({
|
|
|
35279
35279
|
if (!options)
|
|
35280
35280
|
options = {};
|
|
35281
35281
|
pattern = pattern.trim();
|
|
35282
|
-
if (
|
|
35283
|
-
pattern = pattern.split(
|
|
35282
|
+
if (path2.sep !== "/") {
|
|
35283
|
+
pattern = pattern.split(path2.sep).join("/");
|
|
35284
35284
|
}
|
|
35285
35285
|
this.options = options;
|
|
35286
35286
|
this.set = [];
|
|
@@ -35653,8 +35653,8 @@ var require_minimatch2 = __commonJS({
|
|
|
35653
35653
|
if (f === "/" && partial)
|
|
35654
35654
|
return true;
|
|
35655
35655
|
var options = this.options;
|
|
35656
|
-
if (
|
|
35657
|
-
f = f.split(
|
|
35656
|
+
if (path2.sep !== "/") {
|
|
35657
|
+
f = f.split(path2.sep).join("/");
|
|
35658
35658
|
}
|
|
35659
35659
|
f = f.split(slashSplit);
|
|
35660
35660
|
this.debug(this.pattern, "split", f);
|
|
@@ -35836,7 +35836,7 @@ var require_path = __commonJS({
|
|
|
35836
35836
|
"use strict";
|
|
35837
35837
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35838
35838
|
exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0;
|
|
35839
|
-
var
|
|
35839
|
+
var path2 = require("path");
|
|
35840
35840
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
35841
35841
|
var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
35842
35842
|
function unixify(filepath) {
|
|
@@ -35844,7 +35844,7 @@ var require_path = __commonJS({
|
|
|
35844
35844
|
}
|
|
35845
35845
|
exports.unixify = unixify;
|
|
35846
35846
|
function makeAbsolute(cwd, filepath) {
|
|
35847
|
-
return
|
|
35847
|
+
return path2.resolve(cwd, filepath);
|
|
35848
35848
|
}
|
|
35849
35849
|
exports.makeAbsolute = makeAbsolute;
|
|
35850
35850
|
function escape(pattern) {
|
|
@@ -37151,7 +37151,7 @@ var require_braces = __commonJS({
|
|
|
37151
37151
|
var require_constants3 = __commonJS({
|
|
37152
37152
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module2) {
|
|
37153
37153
|
"use strict";
|
|
37154
|
-
var
|
|
37154
|
+
var path2 = require("path");
|
|
37155
37155
|
var WIN_SLASH = "\\\\/";
|
|
37156
37156
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
37157
37157
|
var DOT_LITERAL = "\\.";
|
|
@@ -37321,7 +37321,7 @@ var require_constants3 = __commonJS({
|
|
|
37321
37321
|
/* | */
|
|
37322
37322
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
37323
37323
|
/* \uFEFF */
|
|
37324
|
-
SEP:
|
|
37324
|
+
SEP: path2.sep,
|
|
37325
37325
|
/**
|
|
37326
37326
|
* Create EXTGLOB_CHARS
|
|
37327
37327
|
*/
|
|
@@ -37348,7 +37348,7 @@ var require_constants3 = __commonJS({
|
|
|
37348
37348
|
var require_utils6 = __commonJS({
|
|
37349
37349
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
37350
37350
|
"use strict";
|
|
37351
|
-
var
|
|
37351
|
+
var path2 = require("path");
|
|
37352
37352
|
var win32 = process.platform === "win32";
|
|
37353
37353
|
var {
|
|
37354
37354
|
REGEX_BACKSLASH,
|
|
@@ -37377,7 +37377,7 @@ var require_utils6 = __commonJS({
|
|
|
37377
37377
|
if (options && typeof options.windows === "boolean") {
|
|
37378
37378
|
return options.windows;
|
|
37379
37379
|
}
|
|
37380
|
-
return win32 === true ||
|
|
37380
|
+
return win32 === true || path2.sep === "\\";
|
|
37381
37381
|
};
|
|
37382
37382
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
37383
37383
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -38525,7 +38525,7 @@ var require_parse3 = __commonJS({
|
|
|
38525
38525
|
var require_picomatch = __commonJS({
|
|
38526
38526
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module2) {
|
|
38527
38527
|
"use strict";
|
|
38528
|
-
var
|
|
38528
|
+
var path2 = require("path");
|
|
38529
38529
|
var scan = require_scan2();
|
|
38530
38530
|
var parse2 = require_parse3();
|
|
38531
38531
|
var utils = require_utils6();
|
|
@@ -38611,7 +38611,7 @@ var require_picomatch = __commonJS({
|
|
|
38611
38611
|
};
|
|
38612
38612
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
38613
38613
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
38614
|
-
return regex.test(
|
|
38614
|
+
return regex.test(path2.basename(input));
|
|
38615
38615
|
};
|
|
38616
38616
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
38617
38617
|
picomatch.parse = (pattern, options) => {
|
|
@@ -38841,7 +38841,7 @@ var require_pattern = __commonJS({
|
|
|
38841
38841
|
"use strict";
|
|
38842
38842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38843
38843
|
exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
38844
|
-
var
|
|
38844
|
+
var path2 = require("path");
|
|
38845
38845
|
var globParent = require_glob_parent();
|
|
38846
38846
|
var micromatch = require_micromatch();
|
|
38847
38847
|
var GLOBSTAR = "**";
|
|
@@ -38923,7 +38923,7 @@ var require_pattern = __commonJS({
|
|
|
38923
38923
|
}
|
|
38924
38924
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
38925
38925
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
38926
|
-
const basename =
|
|
38926
|
+
const basename = path2.basename(pattern);
|
|
38927
38927
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
38928
38928
|
}
|
|
38929
38929
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -39138,8 +39138,8 @@ var require_utils7 = __commonJS({
|
|
|
39138
39138
|
exports.errno = errno;
|
|
39139
39139
|
var fs2 = require_fs3();
|
|
39140
39140
|
exports.fs = fs2;
|
|
39141
|
-
var
|
|
39142
|
-
exports.path =
|
|
39141
|
+
var path2 = require_path();
|
|
39142
|
+
exports.path = path2;
|
|
39143
39143
|
var pattern = require_pattern();
|
|
39144
39144
|
exports.pattern = pattern;
|
|
39145
39145
|
var stream = require_stream();
|
|
@@ -39239,8 +39239,8 @@ var require_async2 = __commonJS({
|
|
|
39239
39239
|
"use strict";
|
|
39240
39240
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39241
39241
|
exports.read = void 0;
|
|
39242
|
-
function read(
|
|
39243
|
-
settings.fs.lstat(
|
|
39242
|
+
function read(path2, settings, callback) {
|
|
39243
|
+
settings.fs.lstat(path2, (lstatError, lstat) => {
|
|
39244
39244
|
if (lstatError !== null) {
|
|
39245
39245
|
callFailureCallback(callback, lstatError);
|
|
39246
39246
|
return;
|
|
@@ -39249,7 +39249,7 @@ var require_async2 = __commonJS({
|
|
|
39249
39249
|
callSuccessCallback(callback, lstat);
|
|
39250
39250
|
return;
|
|
39251
39251
|
}
|
|
39252
|
-
settings.fs.stat(
|
|
39252
|
+
settings.fs.stat(path2, (statError, stat) => {
|
|
39253
39253
|
if (statError !== null) {
|
|
39254
39254
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
39255
39255
|
callFailureCallback(callback, statError);
|
|
@@ -39281,13 +39281,13 @@ var require_sync2 = __commonJS({
|
|
|
39281
39281
|
"use strict";
|
|
39282
39282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39283
39283
|
exports.read = void 0;
|
|
39284
|
-
function read(
|
|
39285
|
-
const lstat = settings.fs.lstatSync(
|
|
39284
|
+
function read(path2, settings) {
|
|
39285
|
+
const lstat = settings.fs.lstatSync(path2);
|
|
39286
39286
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
39287
39287
|
return lstat;
|
|
39288
39288
|
}
|
|
39289
39289
|
try {
|
|
39290
|
-
const stat = settings.fs.statSync(
|
|
39290
|
+
const stat = settings.fs.statSync(path2);
|
|
39291
39291
|
if (settings.markSymbolicLink) {
|
|
39292
39292
|
stat.isSymbolicLink = () => true;
|
|
39293
39293
|
}
|
|
@@ -39358,17 +39358,17 @@ var require_out = __commonJS({
|
|
|
39358
39358
|
var sync = require_sync2();
|
|
39359
39359
|
var settings_1 = require_settings();
|
|
39360
39360
|
exports.Settings = settings_1.default;
|
|
39361
|
-
function stat(
|
|
39361
|
+
function stat(path2, optionsOrSettingsOrCallback, callback) {
|
|
39362
39362
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
39363
|
-
async.read(
|
|
39363
|
+
async.read(path2, getSettings(), optionsOrSettingsOrCallback);
|
|
39364
39364
|
return;
|
|
39365
39365
|
}
|
|
39366
|
-
async.read(
|
|
39366
|
+
async.read(path2, getSettings(optionsOrSettingsOrCallback), callback);
|
|
39367
39367
|
}
|
|
39368
39368
|
exports.stat = stat;
|
|
39369
|
-
function statSync(
|
|
39369
|
+
function statSync(path2, optionsOrSettings) {
|
|
39370
39370
|
const settings = getSettings(optionsOrSettings);
|
|
39371
|
-
return sync.read(
|
|
39371
|
+
return sync.read(path2, settings);
|
|
39372
39372
|
}
|
|
39373
39373
|
exports.statSync = statSync;
|
|
39374
39374
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -39587,16 +39587,16 @@ var require_async3 = __commonJS({
|
|
|
39587
39587
|
return;
|
|
39588
39588
|
}
|
|
39589
39589
|
const tasks = names3.map((name) => {
|
|
39590
|
-
const
|
|
39590
|
+
const path2 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
39591
39591
|
return (done) => {
|
|
39592
|
-
fsStat.stat(
|
|
39592
|
+
fsStat.stat(path2, settings.fsStatSettings, (error, stats) => {
|
|
39593
39593
|
if (error !== null) {
|
|
39594
39594
|
done(error);
|
|
39595
39595
|
return;
|
|
39596
39596
|
}
|
|
39597
39597
|
const entry = {
|
|
39598
39598
|
name,
|
|
39599
|
-
path:
|
|
39599
|
+
path: path2,
|
|
39600
39600
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
39601
39601
|
};
|
|
39602
39602
|
if (settings.stats) {
|
|
@@ -39714,7 +39714,7 @@ var require_settings2 = __commonJS({
|
|
|
39714
39714
|
"node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
|
|
39715
39715
|
"use strict";
|
|
39716
39716
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39717
|
-
var
|
|
39717
|
+
var path2 = require("path");
|
|
39718
39718
|
var fsStat = require_out();
|
|
39719
39719
|
var fs2 = require_fs6();
|
|
39720
39720
|
var Settings = class {
|
|
@@ -39722,7 +39722,7 @@ var require_settings2 = __commonJS({
|
|
|
39722
39722
|
this._options = _options;
|
|
39723
39723
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
39724
39724
|
this.fs = fs2.createFileSystemAdapter(this._options.fs);
|
|
39725
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
39725
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path2.sep);
|
|
39726
39726
|
this.stats = this._getValue(this._options.stats, false);
|
|
39727
39727
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
39728
39728
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -39749,17 +39749,17 @@ var require_out2 = __commonJS({
|
|
|
39749
39749
|
var sync = require_sync3();
|
|
39750
39750
|
var settings_1 = require_settings2();
|
|
39751
39751
|
exports.Settings = settings_1.default;
|
|
39752
|
-
function scandir(
|
|
39752
|
+
function scandir(path2, optionsOrSettingsOrCallback, callback) {
|
|
39753
39753
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
39754
|
-
async.read(
|
|
39754
|
+
async.read(path2, getSettings(), optionsOrSettingsOrCallback);
|
|
39755
39755
|
return;
|
|
39756
39756
|
}
|
|
39757
|
-
async.read(
|
|
39757
|
+
async.read(path2, getSettings(optionsOrSettingsOrCallback), callback);
|
|
39758
39758
|
}
|
|
39759
39759
|
exports.scandir = scandir;
|
|
39760
|
-
function scandirSync(
|
|
39760
|
+
function scandirSync(path2, optionsOrSettings) {
|
|
39761
39761
|
const settings = getSettings(optionsOrSettings);
|
|
39762
|
-
return sync.read(
|
|
39762
|
+
return sync.read(path2, settings);
|
|
39763
39763
|
}
|
|
39764
39764
|
exports.scandirSync = scandirSync;
|
|
39765
39765
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -40363,7 +40363,7 @@ var require_settings3 = __commonJS({
|
|
|
40363
40363
|
"node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
|
|
40364
40364
|
"use strict";
|
|
40365
40365
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40366
|
-
var
|
|
40366
|
+
var path2 = require("path");
|
|
40367
40367
|
var fsScandir = require_out2();
|
|
40368
40368
|
var Settings = class {
|
|
40369
40369
|
constructor(_options = {}) {
|
|
@@ -40373,7 +40373,7 @@ var require_settings3 = __commonJS({
|
|
|
40373
40373
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
40374
40374
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
40375
40375
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
40376
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
40376
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path2.sep);
|
|
40377
40377
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
40378
40378
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
40379
40379
|
fs: this._options.fs,
|
|
@@ -40435,7 +40435,7 @@ var require_reader2 = __commonJS({
|
|
|
40435
40435
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
40436
40436
|
"use strict";
|
|
40437
40437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40438
|
-
var
|
|
40438
|
+
var path2 = require("path");
|
|
40439
40439
|
var fsStat = require_out();
|
|
40440
40440
|
var utils = require_utils7();
|
|
40441
40441
|
var Reader = class {
|
|
@@ -40448,7 +40448,7 @@ var require_reader2 = __commonJS({
|
|
|
40448
40448
|
});
|
|
40449
40449
|
}
|
|
40450
40450
|
_getFullEntryPath(filepath) {
|
|
40451
|
-
return
|
|
40451
|
+
return path2.resolve(this._settings.cwd, filepath);
|
|
40452
40452
|
}
|
|
40453
40453
|
_makeEntry(stats, pattern) {
|
|
40454
40454
|
const entry = {
|
|
@@ -40800,7 +40800,7 @@ var require_provider = __commonJS({
|
|
|
40800
40800
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
40801
40801
|
"use strict";
|
|
40802
40802
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40803
|
-
var
|
|
40803
|
+
var path2 = require("path");
|
|
40804
40804
|
var deep_1 = require_deep();
|
|
40805
40805
|
var entry_1 = require_entry();
|
|
40806
40806
|
var error_1 = require_error();
|
|
@@ -40814,7 +40814,7 @@ var require_provider = __commonJS({
|
|
|
40814
40814
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
40815
40815
|
}
|
|
40816
40816
|
_getRootDirectory(task) {
|
|
40817
|
-
return
|
|
40817
|
+
return path2.resolve(this._settings.cwd, task.base);
|
|
40818
40818
|
}
|
|
40819
40819
|
_getReaderOptions(task) {
|
|
40820
40820
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -41126,14 +41126,14 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41126
41126
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41127
41127
|
exports.CopyAssetsHandler = exports.defaultFileEventHandler = void 0;
|
|
41128
41128
|
var minimatch = require_minimatch2();
|
|
41129
|
-
var
|
|
41129
|
+
var path2 = require("path");
|
|
41130
41130
|
var fse = require_lib4();
|
|
41131
41131
|
var ignore_1 = require_ignore();
|
|
41132
41132
|
var fg = require_out4();
|
|
41133
41133
|
var devkit_1 = require_devkit();
|
|
41134
41134
|
var client_1 = require("nx/src/daemon/client/client");
|
|
41135
41135
|
var defaultFileEventHandler = (events) => {
|
|
41136
|
-
const dirs = new Set(events.map((event) =>
|
|
41136
|
+
const dirs = new Set(events.map((event) => path2.dirname(event.dest)));
|
|
41137
41137
|
dirs.forEach((d) => fse.ensureDirSync(d));
|
|
41138
41138
|
events.forEach((event) => {
|
|
41139
41139
|
if (event.type === "create" || event.type === "update") {
|
|
@@ -41155,8 +41155,8 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41155
41155
|
this.outputDir = opts.outputDir;
|
|
41156
41156
|
this.callback = opts.callback ?? exports.defaultFileEventHandler;
|
|
41157
41157
|
this.ignore = (0, ignore_1.default)();
|
|
41158
|
-
const gitignore =
|
|
41159
|
-
const nxignore =
|
|
41158
|
+
const gitignore = path2.join(opts.rootDir, ".gitignore");
|
|
41159
|
+
const nxignore = path2.join(opts.rootDir, ".nxignore");
|
|
41160
41160
|
if (fse.existsSync(gitignore))
|
|
41161
41161
|
this.ignore.add(fse.readFileSync(gitignore).toString());
|
|
41162
41162
|
if (fse.existsSync(nxignore))
|
|
@@ -41169,15 +41169,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41169
41169
|
let ignore = null;
|
|
41170
41170
|
if (typeof f === "string") {
|
|
41171
41171
|
pattern = f;
|
|
41172
|
-
input =
|
|
41173
|
-
output =
|
|
41172
|
+
input = path2.relative(opts.rootDir, opts.projectDir);
|
|
41173
|
+
output = path2.relative(opts.rootDir, opts.outputDir);
|
|
41174
41174
|
} else {
|
|
41175
41175
|
isGlob = true;
|
|
41176
|
-
pattern =
|
|
41176
|
+
pattern = path2.join(f.input, f.glob);
|
|
41177
41177
|
input = f.input;
|
|
41178
|
-
output =
|
|
41178
|
+
output = path2.join(path2.relative(opts.rootDir, opts.outputDir), f.output);
|
|
41179
41179
|
if (f.ignore)
|
|
41180
|
-
ignore = f.ignore.map((ig) =>
|
|
41180
|
+
ignore = f.ignore.map((ig) => path2.join(f.input, ig));
|
|
41181
41181
|
}
|
|
41182
41182
|
return {
|
|
41183
41183
|
isGlob,
|
|
@@ -41229,15 +41229,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41229
41229
|
async processWatchEvents(events) {
|
|
41230
41230
|
const fileEvents = [];
|
|
41231
41231
|
for (const event of events) {
|
|
41232
|
-
const pathFromRoot =
|
|
41232
|
+
const pathFromRoot = path2.relative(this.rootDir, event.path);
|
|
41233
41233
|
for (const ag of this.assetGlobs) {
|
|
41234
41234
|
if (minimatch(pathFromRoot, ag.pattern) && !ag.ignore?.some((ig) => minimatch(pathFromRoot, ig)) && !this.ignore.ignores(pathFromRoot)) {
|
|
41235
|
-
const relPath =
|
|
41235
|
+
const relPath = path2.relative(ag.input, pathFromRoot);
|
|
41236
41236
|
const destPath = relPath.startsWith("..") ? pathFromRoot : relPath;
|
|
41237
41237
|
fileEvents.push({
|
|
41238
41238
|
type: event.type,
|
|
41239
|
-
src:
|
|
41240
|
-
dest:
|
|
41239
|
+
src: path2.join(this.rootDir, pathFromRoot),
|
|
41240
|
+
dest: path2.join(this.rootDir, ag.output, destPath)
|
|
41241
41241
|
});
|
|
41242
41242
|
break;
|
|
41243
41243
|
}
|
|
@@ -41249,12 +41249,12 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41249
41249
|
filesToEvent(files, assetGlob) {
|
|
41250
41250
|
return files.reduce((acc, src) => {
|
|
41251
41251
|
if (!assetGlob.ignore?.some((ig) => minimatch(src, ig)) && !this.ignore.ignores(src)) {
|
|
41252
|
-
const relPath =
|
|
41252
|
+
const relPath = path2.relative(assetGlob.input, src);
|
|
41253
41253
|
const dest = relPath.startsWith("..") ? src : relPath;
|
|
41254
41254
|
acc.push({
|
|
41255
41255
|
type: "create",
|
|
41256
|
-
src:
|
|
41257
|
-
dest:
|
|
41256
|
+
src: path2.join(this.rootDir, src),
|
|
41257
|
+
dest: path2.join(this.rootDir, assetGlob.output, dest)
|
|
41258
41258
|
});
|
|
41259
41259
|
}
|
|
41260
41260
|
return acc;
|
|
@@ -41614,12 +41614,12 @@ var require_generator = __commonJS({
|
|
|
41614
41614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41615
41615
|
exports.setupVerdaccio = void 0;
|
|
41616
41616
|
var devkit_1 = require_devkit();
|
|
41617
|
-
var
|
|
41617
|
+
var path2 = require("path");
|
|
41618
41618
|
var versions_1 = require_versions2();
|
|
41619
41619
|
var child_process_1 = require("child_process");
|
|
41620
41620
|
async function setupVerdaccio2(tree, options) {
|
|
41621
41621
|
if (!tree.exists(".verdaccio/config.yml")) {
|
|
41622
|
-
(0, devkit_1.generateFiles)(tree,
|
|
41622
|
+
(0, devkit_1.generateFiles)(tree, path2.join(__dirname, "files"), ".verdaccio", {
|
|
41623
41623
|
npmUplinkRegistry: (0, child_process_1.execSync)("npm config get registry")?.toString()?.trim() ?? "https://registry.npmjs.org"
|
|
41624
41624
|
});
|
|
41625
41625
|
}
|
|
@@ -42381,7 +42381,7 @@ var require_eslint_file = __commonJS({
|
|
|
42381
42381
|
if ((0, flat_config_1.useFlatConfig)(tree)) {
|
|
42382
42382
|
const fileName = (0, devkit_1.joinPathFragments)(root, "eslint.config.js");
|
|
42383
42383
|
const block = (0, ast_utils_1.generateAst)({
|
|
42384
|
-
ignores: ignorePatterns.map((
|
|
42384
|
+
ignores: ignorePatterns.map((path2) => (0, ast_utils_1.mapFilePath)(path2, root))
|
|
42385
42385
|
});
|
|
42386
42386
|
tree.write(fileName, (0, ast_utils_1.addBlockToFlatConfigExport)(tree.read(fileName, "utf8"), block));
|
|
42387
42387
|
} else {
|
|
@@ -43656,16 +43656,16 @@ function locatePathSync(paths, {
|
|
|
43656
43656
|
}
|
|
43657
43657
|
|
|
43658
43658
|
// packages/config-tools/src/utilities/find-up.ts
|
|
43659
|
-
var
|
|
43659
|
+
var import_path = require("path");
|
|
43660
43660
|
var import_url = require("url");
|
|
43661
43661
|
var findUpStop = Symbol("findUpStop");
|
|
43662
43662
|
function toPath2(urlOrPath) {
|
|
43663
43663
|
return urlOrPath instanceof URL ? (0, import_url.fileURLToPath)(urlOrPath) : urlOrPath;
|
|
43664
43664
|
}
|
|
43665
43665
|
function findUpMultipleSync(names3, options = { limit: 1, type: "file" }) {
|
|
43666
|
-
let directory =
|
|
43667
|
-
const { root } =
|
|
43668
|
-
const stopAt =
|
|
43666
|
+
let directory = (0, import_path.resolve)(toPath2(options.cwd) ?? "");
|
|
43667
|
+
const { root } = (0, import_path.parse)(directory);
|
|
43668
|
+
const stopAt = (0, import_path.resolve)(directory, toPath2(options.stopAt) ?? root);
|
|
43669
43669
|
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
43670
43670
|
if (typeof names3 === "function") {
|
|
43671
43671
|
const foundPath = names3(options.cwd);
|
|
@@ -43687,16 +43687,16 @@ function findUpMultipleSync(names3, options = { limit: 1, type: "file" }) {
|
|
|
43687
43687
|
while (true) {
|
|
43688
43688
|
const foundPath = runMatcher({ ...options, cwd: directory });
|
|
43689
43689
|
if (foundPath) {
|
|
43690
|
-
matches.push(
|
|
43690
|
+
matches.push((0, import_path.resolve)(directory, foundPath));
|
|
43691
43691
|
}
|
|
43692
43692
|
if (directory === stopAt || matches.length >= limit) {
|
|
43693
43693
|
break;
|
|
43694
43694
|
}
|
|
43695
|
-
directory =
|
|
43695
|
+
directory = (0, import_path.dirname)(directory);
|
|
43696
43696
|
}
|
|
43697
43697
|
return matches;
|
|
43698
43698
|
};
|
|
43699
|
-
return (names3 && Array.isArray(names3) ? names3 : [names3]).map((name) => runNameMatcher(name)).flat();
|
|
43699
|
+
return (names3 && Array.isArray(names3) ? names3 : [names3]).map((name) => runNameMatcher(name)).flat().map((path2) => path2 ? path2 : "");
|
|
43700
43700
|
}
|
|
43701
43701
|
function findUpSync(names3, options = { limit: 1, type: "file" }) {
|
|
43702
43702
|
const matches = findUpMultipleSync(names3, options);
|
|
@@ -43751,7 +43751,7 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
|
43751
43751
|
|
|
43752
43752
|
// packages/config-tools/src/utilities/get-default-config.ts
|
|
43753
43753
|
var import_fs = require("fs");
|
|
43754
|
-
var
|
|
43754
|
+
var import_path2 = require("path");
|
|
43755
43755
|
|
|
43756
43756
|
// node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
|
|
43757
43757
|
var util;
|
|
@@ -44094,8 +44094,8 @@ function getErrorMap() {
|
|
|
44094
44094
|
return overrideErrorMap;
|
|
44095
44095
|
}
|
|
44096
44096
|
var makeIssue = (params) => {
|
|
44097
|
-
const { data, path:
|
|
44098
|
-
const fullPath = [...
|
|
44097
|
+
const { data, path: path2, errorMaps, issueData } = params;
|
|
44098
|
+
const fullPath = [...path2, ...issueData.path || []];
|
|
44099
44099
|
const fullIssue = {
|
|
44100
44100
|
...issueData,
|
|
44101
44101
|
path: fullPath
|
|
@@ -44193,11 +44193,11 @@ var errorUtil;
|
|
|
44193
44193
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
44194
44194
|
})(errorUtil || (errorUtil = {}));
|
|
44195
44195
|
var ParseInputLazyPath = class {
|
|
44196
|
-
constructor(parent, value,
|
|
44196
|
+
constructor(parent, value, path2, key) {
|
|
44197
44197
|
this._cachedPath = [];
|
|
44198
44198
|
this.parent = parent;
|
|
44199
44199
|
this.data = value;
|
|
44200
|
-
this._path =
|
|
44200
|
+
this._path = path2;
|
|
44201
44201
|
this._key = key;
|
|
44202
44202
|
}
|
|
44203
44203
|
get path() {
|
|
@@ -47421,8 +47421,8 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
47421
47421
|
let license = DefaultStormConfig.license;
|
|
47422
47422
|
let homepage = DefaultStormConfig.homepage;
|
|
47423
47423
|
const workspaceRoot = findWorkspaceRootSync(root);
|
|
47424
|
-
if ((0, import_fs.existsSync)((0,
|
|
47425
|
-
const file = (0, import_fs.readFileSync)((0,
|
|
47424
|
+
if ((0, import_fs.existsSync)((0, import_path2.join)(workspaceRoot, "package.json"))) {
|
|
47425
|
+
const file = (0, import_fs.readFileSync)((0, import_path2.join)(workspaceRoot, "package.json"), {
|
|
47426
47426
|
encoding: "utf-8"
|
|
47427
47427
|
});
|
|
47428
47428
|
if (file) {
|