@storm-software/workspace-tools 1.31.13 → 1.31.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/index.js +1459 -1462
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +52 -55
- package/src/executors/design-tokens/executor.js +627 -630
- package/src/executors/tsup/executor.js +1453 -1456
- package/src/executors/tsup-browser/executor.js +1455 -1458
- package/src/executors/tsup-neutral/executor.js +1455 -1458
- package/src/executors/tsup-node/executor.js +1455 -1458
- package/src/generators/browser-library/generator.js +353 -356
- package/src/generators/config-schema/generator.js +153 -156
- package/src/generators/neutral-library/generator.js +353 -356
- package/src/generators/node-library/generator.js +353 -356
- package/src/generators/preset/generator.js +155 -158
|
@@ -606,7 +606,7 @@ var require_format_files = __commonJS({
|
|
|
606
606
|
"use strict";
|
|
607
607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
608
608
|
exports.formatFiles = void 0;
|
|
609
|
-
var
|
|
609
|
+
var path3 = require("path");
|
|
610
610
|
var nx_1 = require_nx();
|
|
611
611
|
var { updateJson, readJson, sortObjectByKeys } = (0, nx_1.requireNx)();
|
|
612
612
|
sortObjectByKeys = sortObjectByKeys ?? require("nx/src/utils/object-sort").sortObjectByKeys;
|
|
@@ -623,7 +623,7 @@ var require_format_files = __commonJS({
|
|
|
623
623
|
const changedPrettierInTree = getChangedPrettierConfigInTree(tree);
|
|
624
624
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
625
625
|
try {
|
|
626
|
-
const systemPath =
|
|
626
|
+
const systemPath = path3.join(tree.root, file.path);
|
|
627
627
|
const resolvedOptions = await prettier.resolveConfig(systemPath, {
|
|
628
628
|
editorconfig: true
|
|
629
629
|
});
|
|
@@ -667,9 +667,9 @@ var require_format_files = __commonJS({
|
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function getRootTsConfigPath(tree) {
|
|
670
|
-
for (const
|
|
671
|
-
if (tree.exists(
|
|
672
|
-
return
|
|
670
|
+
for (const path4 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
671
|
+
if (tree.exists(path4)) {
|
|
672
|
+
return path4;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
return null;
|
|
@@ -962,8 +962,8 @@ var require_binary_extensions = __commonJS({
|
|
|
962
962
|
".zip",
|
|
963
963
|
".zipx"
|
|
964
964
|
]);
|
|
965
|
-
function isBinaryPath(
|
|
966
|
-
return binaryExtensions.has((0, path_1.extname)(
|
|
965
|
+
function isBinaryPath(path3) {
|
|
966
|
+
return binaryExtensions.has((0, path_1.extname)(path3).toLowerCase());
|
|
967
967
|
}
|
|
968
968
|
exports.isBinaryPath = isBinaryPath;
|
|
969
969
|
}
|
|
@@ -1147,7 +1147,7 @@ var require_ejs = __commonJS({
|
|
|
1147
1147
|
"node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports) {
|
|
1148
1148
|
"use strict";
|
|
1149
1149
|
var fs2 = require("fs");
|
|
1150
|
-
var
|
|
1150
|
+
var path3 = require("path");
|
|
1151
1151
|
var utils = require_utils();
|
|
1152
1152
|
var scopeOptionWarned = false;
|
|
1153
1153
|
var _VERSION_STRING = require_package().version;
|
|
@@ -1178,9 +1178,9 @@ var require_ejs = __commonJS({
|
|
|
1178
1178
|
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
1179
1179
|
exports.promiseImpl = new Function("return this;")().Promise;
|
|
1180
1180
|
exports.resolveInclude = function(name, filename, isDir) {
|
|
1181
|
-
var dirname2 =
|
|
1182
|
-
var extname =
|
|
1183
|
-
var resolve2 =
|
|
1181
|
+
var dirname2 = path3.dirname;
|
|
1182
|
+
var extname = path3.extname;
|
|
1183
|
+
var resolve2 = path3.resolve;
|
|
1184
1184
|
var includePath = resolve2(isDir ? filename : dirname2(filename), name);
|
|
1185
1185
|
var ext = extname(name);
|
|
1186
1186
|
if (!ext) {
|
|
@@ -1197,30 +1197,30 @@ var require_ejs = __commonJS({
|
|
|
1197
1197
|
return filePath;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
function getIncludePath(
|
|
1200
|
+
function getIncludePath(path4, options) {
|
|
1201
1201
|
var includePath;
|
|
1202
1202
|
var filePath;
|
|
1203
1203
|
var views = options.views;
|
|
1204
|
-
var match = /^[A-Za-z]+:\\|^\//.exec(
|
|
1204
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path4);
|
|
1205
1205
|
if (match && match.length) {
|
|
1206
|
-
|
|
1206
|
+
path4 = path4.replace(/^\/*/, "");
|
|
1207
1207
|
if (Array.isArray(options.root)) {
|
|
1208
|
-
includePath = resolvePaths(
|
|
1208
|
+
includePath = resolvePaths(path4, options.root);
|
|
1209
1209
|
} else {
|
|
1210
|
-
includePath = exports.resolveInclude(
|
|
1210
|
+
includePath = exports.resolveInclude(path4, options.root || "/", true);
|
|
1211
1211
|
}
|
|
1212
1212
|
} else {
|
|
1213
1213
|
if (options.filename) {
|
|
1214
|
-
filePath = exports.resolveInclude(
|
|
1214
|
+
filePath = exports.resolveInclude(path4, options.filename);
|
|
1215
1215
|
if (fs2.existsSync(filePath)) {
|
|
1216
1216
|
includePath = filePath;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
if (!includePath && Array.isArray(views)) {
|
|
1220
|
-
includePath = resolvePaths(
|
|
1220
|
+
includePath = resolvePaths(path4, views);
|
|
1221
1221
|
}
|
|
1222
1222
|
if (!includePath && typeof options.includer !== "function") {
|
|
1223
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
|
1223
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path4) + '"');
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
return includePath;
|
|
@@ -1279,11 +1279,11 @@ var require_ejs = __commonJS({
|
|
|
1279
1279
|
function fileLoader(filePath) {
|
|
1280
1280
|
return exports.fileLoader(filePath);
|
|
1281
1281
|
}
|
|
1282
|
-
function includeFile(
|
|
1282
|
+
function includeFile(path4, options) {
|
|
1283
1283
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
1284
|
-
opts.filename = getIncludePath(
|
|
1284
|
+
opts.filename = getIncludePath(path4, opts);
|
|
1285
1285
|
if (typeof options.includer === "function") {
|
|
1286
|
-
var includerResult = options.includer(
|
|
1286
|
+
var includerResult = options.includer(path4, opts.filename);
|
|
1287
1287
|
if (includerResult) {
|
|
1288
1288
|
if (includerResult.filename) {
|
|
1289
1289
|
opts.filename = includerResult.filename;
|
|
@@ -1518,12 +1518,12 @@ var require_ejs = __commonJS({
|
|
|
1518
1518
|
throw e;
|
|
1519
1519
|
}
|
|
1520
1520
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
1521
|
-
var include = function(
|
|
1521
|
+
var include = function(path4, includeData) {
|
|
1522
1522
|
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
1523
1523
|
if (includeData) {
|
|
1524
1524
|
d = utils.shallowCopy(d, includeData);
|
|
1525
1525
|
}
|
|
1526
|
-
return includeFile(
|
|
1526
|
+
return includeFile(path4, opts)(d);
|
|
1527
1527
|
};
|
|
1528
1528
|
return fn.apply(
|
|
1529
1529
|
opts.context,
|
|
@@ -1532,7 +1532,7 @@ var require_ejs = __commonJS({
|
|
|
1532
1532
|
};
|
|
1533
1533
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
1534
1534
|
var filename = opts.filename;
|
|
1535
|
-
var basename =
|
|
1535
|
+
var basename = path3.basename(filename, path3.extname(filename));
|
|
1536
1536
|
try {
|
|
1537
1537
|
Object.defineProperty(returnedFn, "name", {
|
|
1538
1538
|
value: basename,
|
|
@@ -1695,7 +1695,7 @@ var require_generate_files = __commonJS({
|
|
|
1695
1695
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1696
1696
|
exports.generateFiles = void 0;
|
|
1697
1697
|
var fs_1 = require("fs");
|
|
1698
|
-
var
|
|
1698
|
+
var path3 = require("path");
|
|
1699
1699
|
var nx_1 = require_nx();
|
|
1700
1700
|
var binary_extensions_1 = require_binary_extensions();
|
|
1701
1701
|
var { logger } = (0, nx_1.requireNx)();
|
|
@@ -1727,8 +1727,8 @@ var require_generate_files = __commonJS({
|
|
|
1727
1727
|
}
|
|
1728
1728
|
exports.generateFiles = generateFiles;
|
|
1729
1729
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
1730
|
-
const relativeFromSrcFolder =
|
|
1731
|
-
let computedPath =
|
|
1730
|
+
const relativeFromSrcFolder = path3.relative(srcFolder, filePath);
|
|
1731
|
+
let computedPath = path3.join(target, relativeFromSrcFolder);
|
|
1732
1732
|
if (computedPath.endsWith(".template")) {
|
|
1733
1733
|
computedPath = computedPath.substring(0, computedPath.length - 9);
|
|
1734
1734
|
}
|
|
@@ -1741,7 +1741,7 @@ var require_generate_files = __commonJS({
|
|
|
1741
1741
|
let res = [];
|
|
1742
1742
|
try {
|
|
1743
1743
|
(0, fs_1.readdirSync)(parent).forEach((c) => {
|
|
1744
|
-
const child =
|
|
1744
|
+
const child = path3.join(parent, c);
|
|
1745
1745
|
try {
|
|
1746
1746
|
const s = (0, fs_1.statSync)(child);
|
|
1747
1747
|
if (!s.isDirectory()) {
|
|
@@ -4731,7 +4731,7 @@ var require_minimatch = __commonJS({
|
|
|
4731
4731
|
"node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports, module2) {
|
|
4732
4732
|
module2.exports = minimatch;
|
|
4733
4733
|
minimatch.Minimatch = Minimatch;
|
|
4734
|
-
var
|
|
4734
|
+
var path3 = function() {
|
|
4735
4735
|
try {
|
|
4736
4736
|
return require("path");
|
|
4737
4737
|
} catch (e) {
|
|
@@ -4739,7 +4739,7 @@ var require_minimatch = __commonJS({
|
|
|
4739
4739
|
}() || {
|
|
4740
4740
|
sep: "/"
|
|
4741
4741
|
};
|
|
4742
|
-
minimatch.sep =
|
|
4742
|
+
minimatch.sep = path3.sep;
|
|
4743
4743
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
4744
4744
|
var expand = require_brace_expansion();
|
|
4745
4745
|
var plTypes = {
|
|
@@ -4830,8 +4830,8 @@ var require_minimatch = __commonJS({
|
|
|
4830
4830
|
if (!options)
|
|
4831
4831
|
options = {};
|
|
4832
4832
|
pattern = pattern.trim();
|
|
4833
|
-
if (!options.allowWindowsEscape &&
|
|
4834
|
-
pattern = pattern.split(
|
|
4833
|
+
if (!options.allowWindowsEscape && path3.sep !== "/") {
|
|
4834
|
+
pattern = pattern.split(path3.sep).join("/");
|
|
4835
4835
|
}
|
|
4836
4836
|
this.options = options;
|
|
4837
4837
|
this.set = [];
|
|
@@ -5208,8 +5208,8 @@ var require_minimatch = __commonJS({
|
|
|
5208
5208
|
if (f === "/" && partial)
|
|
5209
5209
|
return true;
|
|
5210
5210
|
var options = this.options;
|
|
5211
|
-
if (
|
|
5212
|
-
f = f.split(
|
|
5211
|
+
if (path3.sep !== "/") {
|
|
5212
|
+
f = f.split(path3.sep).join("/");
|
|
5213
5213
|
}
|
|
5214
5214
|
f = f.split(slashSplit);
|
|
5215
5215
|
this.debug(this.pattern, "split", f);
|
|
@@ -5367,12 +5367,12 @@ var require_inherits = __commonJS({
|
|
|
5367
5367
|
var require_path_is_absolute = __commonJS({
|
|
5368
5368
|
"node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports, module2) {
|
|
5369
5369
|
"use strict";
|
|
5370
|
-
function posix(
|
|
5371
|
-
return
|
|
5370
|
+
function posix(path3) {
|
|
5371
|
+
return path3.charAt(0) === "/";
|
|
5372
5372
|
}
|
|
5373
|
-
function win32(
|
|
5373
|
+
function win32(path3) {
|
|
5374
5374
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
5375
|
-
var result = splitDeviceRe.exec(
|
|
5375
|
+
var result = splitDeviceRe.exec(path3);
|
|
5376
5376
|
var device = result[1] || "";
|
|
5377
5377
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
5378
5378
|
return Boolean(result[2] || isUnc);
|
|
@@ -5397,7 +5397,7 @@ var require_common = __commonJS({
|
|
|
5397
5397
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
5398
5398
|
}
|
|
5399
5399
|
var fs2 = require("fs");
|
|
5400
|
-
var
|
|
5400
|
+
var path3 = require("path");
|
|
5401
5401
|
var minimatch = require_minimatch();
|
|
5402
5402
|
var isAbsolute = require_path_is_absolute();
|
|
5403
5403
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -5462,11 +5462,11 @@ var require_common = __commonJS({
|
|
|
5462
5462
|
if (!ownProp(options, "cwd"))
|
|
5463
5463
|
self.cwd = cwd;
|
|
5464
5464
|
else {
|
|
5465
|
-
self.cwd =
|
|
5465
|
+
self.cwd = path3.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 || path3.resolve(self.cwd, "/");
|
|
5469
|
+
self.root = path3.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 = path3.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 = path3.resolve(self.cwd, f);
|
|
5556
5556
|
} else {
|
|
5557
|
-
abs =
|
|
5557
|
+
abs = path3.resolve(f);
|
|
5558
5558
|
}
|
|
5559
5559
|
if (process.platform === "win32")
|
|
5560
5560
|
abs = abs.replace(/\\/g, "/");
|
|
5561
5561
|
return abs;
|
|
5562
5562
|
}
|
|
5563
|
-
function isIgnored(self,
|
|
5563
|
+
function isIgnored(self, path4) {
|
|
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(path4) || !!(item.gmatcher && item.gmatcher.match(path4));
|
|
5568
5568
|
});
|
|
5569
5569
|
}
|
|
5570
|
-
function childrenIgnored(self,
|
|
5570
|
+
function childrenIgnored(self, path4) {
|
|
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(path4));
|
|
5575
5575
|
});
|
|
5576
5576
|
}
|
|
5577
5577
|
}
|
|
@@ -5587,7 +5587,7 @@ var require_sync = __commonJS({
|
|
|
5587
5587
|
var Minimatch = minimatch.Minimatch;
|
|
5588
5588
|
var Glob = require_glob().Glob;
|
|
5589
5589
|
var util2 = require("util");
|
|
5590
|
-
var
|
|
5590
|
+
var path3 = require("path");
|
|
5591
5591
|
var assert = require("assert");
|
|
5592
5592
|
var isAbsolute = require_path_is_absolute();
|
|
5593
5593
|
var common = require_common();
|
|
@@ -5715,7 +5715,7 @@ var require_sync = __commonJS({
|
|
|
5715
5715
|
e = prefix + e;
|
|
5716
5716
|
}
|
|
5717
5717
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
5718
|
-
e =
|
|
5718
|
+
e = path3.join(this.root, e);
|
|
5719
5719
|
}
|
|
5720
5720
|
this._emitMatch(index, e);
|
|
5721
5721
|
}
|
|
@@ -5864,9 +5864,9 @@ var require_sync = __commonJS({
|
|
|
5864
5864
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
5865
5865
|
var trail = /[\/\\]$/.test(prefix);
|
|
5866
5866
|
if (prefix.charAt(0) === "/") {
|
|
5867
|
-
prefix =
|
|
5867
|
+
prefix = path3.join(this.root, prefix);
|
|
5868
5868
|
} else {
|
|
5869
|
-
prefix =
|
|
5869
|
+
prefix = path3.resolve(this.root, prefix);
|
|
5870
5870
|
if (trail)
|
|
5871
5871
|
prefix += "/";
|
|
5872
5872
|
}
|
|
@@ -6061,7 +6061,7 @@ var require_glob = __commonJS({
|
|
|
6061
6061
|
var Minimatch = minimatch.Minimatch;
|
|
6062
6062
|
var inherits = require_inherits();
|
|
6063
6063
|
var EE = require("events").EventEmitter;
|
|
6064
|
-
var
|
|
6064
|
+
var path3 = require("path");
|
|
6065
6065
|
var assert = require("assert");
|
|
6066
6066
|
var isAbsolute = require_path_is_absolute();
|
|
6067
6067
|
var globSync = require_sync();
|
|
@@ -6344,7 +6344,7 @@ var require_glob = __commonJS({
|
|
|
6344
6344
|
e = prefix + e;
|
|
6345
6345
|
}
|
|
6346
6346
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
6347
|
-
e =
|
|
6347
|
+
e = path3.join(this.root, e);
|
|
6348
6348
|
}
|
|
6349
6349
|
this._emitMatch(index, e);
|
|
6350
6350
|
}
|
|
@@ -6531,9 +6531,9 @@ var require_glob = __commonJS({
|
|
|
6531
6531
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
6532
6532
|
var trail = /[\/\\]$/.test(prefix);
|
|
6533
6533
|
if (prefix.charAt(0) === "/") {
|
|
6534
|
-
prefix =
|
|
6534
|
+
prefix = path3.join(this.root, prefix);
|
|
6535
6535
|
} else {
|
|
6536
|
-
prefix =
|
|
6536
|
+
prefix = path3.resolve(this.root, prefix);
|
|
6537
6537
|
if (trail)
|
|
6538
6538
|
prefix += "/";
|
|
6539
6539
|
}
|
|
@@ -6611,7 +6611,7 @@ var require_glob = __commonJS({
|
|
|
6611
6611
|
var require_rimraf = __commonJS({
|
|
6612
6612
|
"node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports, module2) {
|
|
6613
6613
|
var assert = require("assert");
|
|
6614
|
-
var
|
|
6614
|
+
var path3 = require("path");
|
|
6615
6615
|
var fs2 = require("fs");
|
|
6616
6616
|
var glob = void 0;
|
|
6617
6617
|
try {
|
|
@@ -6793,7 +6793,7 @@ var require_rimraf = __commonJS({
|
|
|
6793
6793
|
return options.rmdir(p, cb);
|
|
6794
6794
|
let errState;
|
|
6795
6795
|
files.forEach((f) => {
|
|
6796
|
-
rimraf(
|
|
6796
|
+
rimraf(path3.join(p, f), options, (er2) => {
|
|
6797
6797
|
if (errState)
|
|
6798
6798
|
return;
|
|
6799
6799
|
if (er2)
|
|
@@ -6868,7 +6868,7 @@ var require_rimraf = __commonJS({
|
|
|
6868
6868
|
var rmkidsSync = (p, options) => {
|
|
6869
6869
|
assert(p);
|
|
6870
6870
|
assert(options);
|
|
6871
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
6871
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path3.join(p, f), options));
|
|
6872
6872
|
const retries = isWindows ? 100 : 1;
|
|
6873
6873
|
let i = 0;
|
|
6874
6874
|
do {
|
|
@@ -6893,7 +6893,7 @@ var require_tmp = __commonJS({
|
|
|
6893
6893
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports, module2) {
|
|
6894
6894
|
var fs2 = require("fs");
|
|
6895
6895
|
var os = require("os");
|
|
6896
|
-
var
|
|
6896
|
+
var path3 = require("path");
|
|
6897
6897
|
var crypto = require("crypto");
|
|
6898
6898
|
var _c = { fs: fs2.constants, os: os.constants };
|
|
6899
6899
|
var rimraf = require_rimraf();
|
|
@@ -7116,9 +7116,9 @@ var require_tmp = __commonJS({
|
|
|
7116
7116
|
function _generateTmpName(opts) {
|
|
7117
7117
|
const tmpDir = opts.tmpdir;
|
|
7118
7118
|
if (!_isUndefined(opts.name))
|
|
7119
|
-
return
|
|
7119
|
+
return path3.join(tmpDir, opts.dir, opts.name);
|
|
7120
7120
|
if (!_isUndefined(opts.template))
|
|
7121
|
-
return
|
|
7121
|
+
return path3.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
7122
7122
|
const name = [
|
|
7123
7123
|
opts.prefix ? opts.prefix : "tmp",
|
|
7124
7124
|
"-",
|
|
@@ -7127,7 +7127,7 @@ var require_tmp = __commonJS({
|
|
|
7127
7127
|
_randomChars(12),
|
|
7128
7128
|
opts.postfix ? "-" + opts.postfix : ""
|
|
7129
7129
|
].join("");
|
|
7130
|
-
return
|
|
7130
|
+
return path3.join(tmpDir, opts.dir, name);
|
|
7131
7131
|
}
|
|
7132
7132
|
function _assertAndSanitizeOptions(options) {
|
|
7133
7133
|
options.tmpdir = _getTmpDir(options);
|
|
@@ -7148,9 +7148,9 @@ var require_tmp = __commonJS({
|
|
|
7148
7148
|
options.detachDescriptor = !!options.detachDescriptor;
|
|
7149
7149
|
options.discardDescriptor = !!options.discardDescriptor;
|
|
7150
7150
|
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
7151
|
-
options.dir = _isUndefined(options.dir) ? "" :
|
|
7152
|
-
options.template = _isUndefined(options.template) ? void 0 :
|
|
7153
|
-
options.template = _isBlank(options.template) ? void 0 :
|
|
7151
|
+
options.dir = _isUndefined(options.dir) ? "" : path3.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
7152
|
+
options.template = _isUndefined(options.template) ? void 0 : path3.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
7153
|
+
options.template = _isBlank(options.template) ? void 0 : path3.relative(options.dir, options.template);
|
|
7154
7154
|
options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
|
|
7155
7155
|
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
7156
7156
|
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
@@ -7158,9 +7158,9 @@ var require_tmp = __commonJS({
|
|
|
7158
7158
|
function _resolvePath(name, tmpDir) {
|
|
7159
7159
|
const sanitizedName = _sanitizeName(name);
|
|
7160
7160
|
if (sanitizedName.startsWith(tmpDir)) {
|
|
7161
|
-
return
|
|
7161
|
+
return path3.resolve(sanitizedName);
|
|
7162
7162
|
} else {
|
|
7163
|
-
return
|
|
7163
|
+
return path3.resolve(path3.join(tmpDir, sanitizedName));
|
|
7164
7164
|
}
|
|
7165
7165
|
}
|
|
7166
7166
|
function _sanitizeName(name) {
|
|
@@ -7171,13 +7171,13 @@ var require_tmp = __commonJS({
|
|
|
7171
7171
|
}
|
|
7172
7172
|
function _assertIsRelative(name, option, tmpDir) {
|
|
7173
7173
|
if (option === "name") {
|
|
7174
|
-
if (
|
|
7174
|
+
if (path3.isAbsolute(name))
|
|
7175
7175
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
7176
|
-
let basename =
|
|
7176
|
+
let basename = path3.basename(name);
|
|
7177
7177
|
if (basename === ".." || basename === "." || basename !== name)
|
|
7178
7178
|
throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
7179
7179
|
} else {
|
|
7180
|
-
if (
|
|
7180
|
+
if (path3.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
7181
7181
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
7182
7182
|
}
|
|
7183
7183
|
let resolvedPath = _resolvePath(name, tmpDir);
|
|
@@ -7198,7 +7198,7 @@ var require_tmp = __commonJS({
|
|
|
7198
7198
|
_gracefulCleanup = true;
|
|
7199
7199
|
}
|
|
7200
7200
|
function _getTmpDir(options) {
|
|
7201
|
-
return
|
|
7201
|
+
return path3.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
|
|
7202
7202
|
}
|
|
7203
7203
|
process.addListener(EXIT, _garbageCollector);
|
|
7204
7204
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -7809,17 +7809,17 @@ var require_ignore = __commonJS({
|
|
|
7809
7809
|
var throwError = (message, Ctor) => {
|
|
7810
7810
|
throw new Ctor(message);
|
|
7811
7811
|
};
|
|
7812
|
-
var checkPath = (
|
|
7813
|
-
if (!isString(
|
|
7812
|
+
var checkPath = (path3, originalPath, doThrow) => {
|
|
7813
|
+
if (!isString(path3)) {
|
|
7814
7814
|
return doThrow(
|
|
7815
7815
|
`path must be a string, but got \`${originalPath}\``,
|
|
7816
7816
|
TypeError
|
|
7817
7817
|
);
|
|
7818
7818
|
}
|
|
7819
|
-
if (!
|
|
7819
|
+
if (!path3) {
|
|
7820
7820
|
return doThrow(`path must not be empty`, TypeError);
|
|
7821
7821
|
}
|
|
7822
|
-
if (checkPath.isNotRelative(
|
|
7822
|
+
if (checkPath.isNotRelative(path3)) {
|
|
7823
7823
|
const r = "`path.relative()`d";
|
|
7824
7824
|
return doThrow(
|
|
7825
7825
|
`path should be a ${r} string, but got "${originalPath}"`,
|
|
@@ -7828,7 +7828,7 @@ var require_ignore = __commonJS({
|
|
|
7828
7828
|
}
|
|
7829
7829
|
return true;
|
|
7830
7830
|
};
|
|
7831
|
-
var isNotRelative = (
|
|
7831
|
+
var isNotRelative = (path3) => REGEX_TEST_INVALID_PATH.test(path3);
|
|
7832
7832
|
checkPath.isNotRelative = isNotRelative;
|
|
7833
7833
|
checkPath.convert = (p) => p;
|
|
7834
7834
|
var Ignore = class {
|
|
@@ -7887,7 +7887,7 @@ var require_ignore = __commonJS({
|
|
|
7887
7887
|
// setting `checkUnignored` to `false` could reduce additional
|
|
7888
7888
|
// path matching.
|
|
7889
7889
|
// @returns {TestResult} true if a file is ignored
|
|
7890
|
-
_testOne(
|
|
7890
|
+
_testOne(path3, checkUnignored) {
|
|
7891
7891
|
let ignored = false;
|
|
7892
7892
|
let unignored = false;
|
|
7893
7893
|
this._rules.forEach((rule) => {
|
|
@@ -7895,7 +7895,7 @@ var require_ignore = __commonJS({
|
|
|
7895
7895
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
7896
7896
|
return;
|
|
7897
7897
|
}
|
|
7898
|
-
const matched = rule.regex.test(
|
|
7898
|
+
const matched = rule.regex.test(path3);
|
|
7899
7899
|
if (matched) {
|
|
7900
7900
|
ignored = !negative;
|
|
7901
7901
|
unignored = negative;
|
|
@@ -7908,24 +7908,24 @@ var require_ignore = __commonJS({
|
|
|
7908
7908
|
}
|
|
7909
7909
|
// @returns {TestResult}
|
|
7910
7910
|
_test(originalPath, cache, checkUnignored, slices) {
|
|
7911
|
-
const
|
|
7911
|
+
const path3 = originalPath && checkPath.convert(originalPath);
|
|
7912
7912
|
checkPath(
|
|
7913
|
-
|
|
7913
|
+
path3,
|
|
7914
7914
|
originalPath,
|
|
7915
7915
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
7916
7916
|
);
|
|
7917
|
-
return this._t(
|
|
7917
|
+
return this._t(path3, cache, checkUnignored, slices);
|
|
7918
7918
|
}
|
|
7919
|
-
_t(
|
|
7920
|
-
if (
|
|
7921
|
-
return cache[
|
|
7919
|
+
_t(path3, cache, checkUnignored, slices) {
|
|
7920
|
+
if (path3 in cache) {
|
|
7921
|
+
return cache[path3];
|
|
7922
7922
|
}
|
|
7923
7923
|
if (!slices) {
|
|
7924
|
-
slices =
|
|
7924
|
+
slices = path3.split(SLASH);
|
|
7925
7925
|
}
|
|
7926
7926
|
slices.pop();
|
|
7927
7927
|
if (!slices.length) {
|
|
7928
|
-
return cache[
|
|
7928
|
+
return cache[path3] = this._testOne(path3, checkUnignored);
|
|
7929
7929
|
}
|
|
7930
7930
|
const parent = this._t(
|
|
7931
7931
|
slices.join(SLASH) + SLASH,
|
|
@@ -7933,24 +7933,24 @@ var require_ignore = __commonJS({
|
|
|
7933
7933
|
checkUnignored,
|
|
7934
7934
|
slices
|
|
7935
7935
|
);
|
|
7936
|
-
return cache[
|
|
7936
|
+
return cache[path3] = parent.ignored ? parent : this._testOne(path3, checkUnignored);
|
|
7937
7937
|
}
|
|
7938
|
-
ignores(
|
|
7939
|
-
return this._test(
|
|
7938
|
+
ignores(path3) {
|
|
7939
|
+
return this._test(path3, this._ignoreCache, false).ignored;
|
|
7940
7940
|
}
|
|
7941
7941
|
createFilter() {
|
|
7942
|
-
return (
|
|
7942
|
+
return (path3) => !this.ignores(path3);
|
|
7943
7943
|
}
|
|
7944
7944
|
filter(paths) {
|
|
7945
7945
|
return makeArray(paths).filter(this.createFilter());
|
|
7946
7946
|
}
|
|
7947
7947
|
// @returns {TestResult}
|
|
7948
|
-
test(
|
|
7949
|
-
return this._test(
|
|
7948
|
+
test(path3) {
|
|
7949
|
+
return this._test(path3, this._testCache, true);
|
|
7950
7950
|
}
|
|
7951
7951
|
};
|
|
7952
7952
|
var factory = (options) => new Ignore(options);
|
|
7953
|
-
var isPathValid = (
|
|
7953
|
+
var isPathValid = (path3) => checkPath(path3 && checkPath.convert(path3), path3, RETURN_FALSE);
|
|
7954
7954
|
factory.isPathValid = isPathValid;
|
|
7955
7955
|
factory.default = factory;
|
|
7956
7956
|
module2.exports = factory;
|
|
@@ -7961,7 +7961,7 @@ var require_ignore = __commonJS({
|
|
|
7961
7961
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
7962
7962
|
checkPath.convert = makePosix;
|
|
7963
7963
|
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
7964
|
-
checkPath.isNotRelative = (
|
|
7964
|
+
checkPath.isNotRelative = (path3) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path3) || isNotRelative(path3);
|
|
7965
7965
|
}
|
|
7966
7966
|
}
|
|
7967
7967
|
});
|
|
@@ -8002,8 +8002,8 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
8002
8002
|
}
|
|
8003
8003
|
}
|
|
8004
8004
|
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
8005
|
-
function normalizePathRelativeToRoot(
|
|
8006
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root,
|
|
8005
|
+
function normalizePathRelativeToRoot(path3, root) {
|
|
8006
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path3)).split(path_1.sep).join("/");
|
|
8007
8007
|
}
|
|
8008
8008
|
}
|
|
8009
8009
|
});
|
|
@@ -8384,8 +8384,8 @@ var require_invoke_nx_generator = __commonJS({
|
|
|
8384
8384
|
}
|
|
8385
8385
|
return fileChanges;
|
|
8386
8386
|
}
|
|
8387
|
-
normalize(
|
|
8388
|
-
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root,
|
|
8387
|
+
normalize(path3) {
|
|
8388
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path3));
|
|
8389
8389
|
}
|
|
8390
8390
|
read(filePath, encoding) {
|
|
8391
8391
|
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
@@ -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 path3 = 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 = path3.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 = path3.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 path3 = 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 ? path3.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 path3 = [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
|
+
path3.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 = path3;
|
|
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, (path3) => typescript.sys.readFile(path3));
|
|
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 path3 = 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 = path3.join(homedir, "Library");
|
|
23916
23916
|
return {
|
|
23917
|
-
data:
|
|
23918
|
-
config:
|
|
23919
|
-
cache:
|
|
23920
|
-
log:
|
|
23921
|
-
temp:
|
|
23917
|
+
data: path3.join(library, "Application Support", name),
|
|
23918
|
+
config: path3.join(library, "Preferences", name),
|
|
23919
|
+
cache: path3.join(library, "Caches", name),
|
|
23920
|
+
log: path3.join(library, "Logs", name),
|
|
23921
|
+
temp: path3.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 || path3.join(homedir, "AppData", "Roaming");
|
|
23926
|
+
const localAppData = env.LOCALAPPDATA || path3.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: path3.join(localAppData, name, "Data"),
|
|
23930
|
+
config: path3.join(appData, name, "Config"),
|
|
23931
|
+
cache: path3.join(localAppData, name, "Cache"),
|
|
23932
|
+
log: path3.join(localAppData, name, "Log"),
|
|
23933
|
+
temp: path3.join(tmpdir, name)
|
|
23934
23934
|
};
|
|
23935
23935
|
};
|
|
23936
23936
|
var linux = (name) => {
|
|
23937
|
-
const username =
|
|
23937
|
+
const username = path3.basename(homedir);
|
|
23938
23938
|
return {
|
|
23939
|
-
data:
|
|
23940
|
-
config:
|
|
23941
|
-
cache:
|
|
23939
|
+
data: path3.join(env.XDG_DATA_HOME || path3.join(homedir, ".local", "share"), name),
|
|
23940
|
+
config: path3.join(env.XDG_CONFIG_HOME || path3.join(homedir, ".config"), name),
|
|
23941
|
+
cache: path3.join(env.XDG_CACHE_HOME || path3.join(homedir, ".cache"), name),
|
|
23942
23942
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
23943
|
-
log:
|
|
23944
|
-
temp:
|
|
23943
|
+
log: path3.join(env.XDG_STATE_HOME || path3.join(homedir, ".local", "state"), name),
|
|
23944
|
+
temp: path3.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, path3) {
|
|
24018
|
+
if (typeof path3 === "string" && Object.prototype.hasOwnProperty.call(source, path3)) {
|
|
24019
|
+
return source[path3];
|
|
24020
24020
|
}
|
|
24021
|
-
const parsedPath = typeof
|
|
24021
|
+
const parsedPath = typeof path3 === "string" ? path3.split(".") : path3;
|
|
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(path3) {
|
|
24035
24035
|
try {
|
|
24036
|
-
const stat = await fs_1.promises.stat(
|
|
24036
|
+
const stat = await fs_1.promises.stat(path3);
|
|
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(path3) {
|
|
24047
24047
|
try {
|
|
24048
|
-
const stat = fs_1.default.statSync(
|
|
24048
|
+
const stat = fs_1.default.statSync(path3);
|
|
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((path3, i) => `${i + 1}. ${path3}`).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(path3) {
|
|
24332
24332
|
try {
|
|
24333
|
-
await promises_1.default.stat(
|
|
24333
|
+
await promises_1.default.stat(path3);
|
|
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(path3) {
|
|
24490
24490
|
try {
|
|
24491
|
-
fs_1.default.statSync(
|
|
24491
|
+
fs_1.default.statSync(path3);
|
|
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((path3) => path3.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 path3 = [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
|
+
path3.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 = path3;
|
|
25587
25587
|
return fn;
|
|
25588
25588
|
}
|
|
25589
25589
|
module2.exports = function(fromModel) {
|
|
@@ -26663,8 +26663,8 @@ function getErrorMap() {
|
|
|
26663
26663
|
return overrideErrorMap;
|
|
26664
26664
|
}
|
|
26665
26665
|
var makeIssue = (params) => {
|
|
26666
|
-
const { data, path:
|
|
26667
|
-
const fullPath = [...
|
|
26666
|
+
const { data, path: path3, errorMaps, issueData } = params;
|
|
26667
|
+
const fullPath = [...path3, ...issueData.path || []];
|
|
26668
26668
|
const fullIssue = {
|
|
26669
26669
|
...issueData,
|
|
26670
26670
|
path: fullPath
|
|
@@ -26762,11 +26762,11 @@ var errorUtil;
|
|
|
26762
26762
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
26763
26763
|
})(errorUtil || (errorUtil = {}));
|
|
26764
26764
|
var ParseInputLazyPath = class {
|
|
26765
|
-
constructor(parent, value,
|
|
26765
|
+
constructor(parent, value, path3, key) {
|
|
26766
26766
|
this._cachedPath = [];
|
|
26767
26767
|
this.parent = parent;
|
|
26768
26768
|
this.data = value;
|
|
26769
|
-
this._path =
|
|
26769
|
+
this._path = path3;
|
|
26770
26770
|
this._key = key;
|
|
26771
26771
|
}
|
|
26772
26772
|
get path() {
|
|
@@ -29954,9 +29954,6 @@ var StormConfigSchema = objectType({
|
|
|
29954
29954
|
"Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
|
|
29955
29955
|
);
|
|
29956
29956
|
|
|
29957
|
-
// packages/config-tools/src/utilities/find-workspace-root.ts
|
|
29958
|
-
var path3 = __toESM(require("path"), 1);
|
|
29959
|
-
|
|
29960
29957
|
// node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
|
|
29961
29958
|
var import_node_process = __toESM(require("node:process"), 1);
|
|
29962
29959
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
@@ -30137,7 +30134,7 @@ function findWorkspaceRoot(pathInsideMonorepo) {
|
|
|
30137
30134
|
${rootFiles.join(
|
|
30138
30135
|
"\n"
|
|
30139
30136
|
)}
|
|
30140
|
-
Path: ${
|
|
30137
|
+
Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
|
|
30141
30138
|
);
|
|
30142
30139
|
}
|
|
30143
30140
|
return result;
|
|
@@ -30178,7 +30175,7 @@ var getDefaultConfig = (config = {}) => {
|
|
|
30178
30175
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
30179
30176
|
let license = DefaultStormConfig.license;
|
|
30180
30177
|
let homepage = DefaultStormConfig.homepage;
|
|
30181
|
-
const workspaceRoot = findWorkspaceRoot(
|
|
30178
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
30182
30179
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
30183
30180
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
30184
30181
|
encoding: "utf-8"
|