@storm-software/workspace-tools 1.56.5 → 1.56.9
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 +52 -0
- package/index.js +2593 -3976
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +436 -2550
- package/src/executors/design-tokens/executor.js +828 -2942
- package/src/executors/npm-publish/executor.js +11024 -115
- package/src/executors/tsup/executor.js +2345 -3922
- package/src/executors/tsup-browser/executor.js +2356 -3933
- package/src/executors/tsup-neutral/executor.js +2356 -3933
- package/src/executors/tsup-node/executor.js +2356 -3933
- package/src/executors/typia/executor.js +217 -2331
- package/src/generators/browser-library/generator.js +429 -2543
- package/src/generators/config-schema/generator.js +191 -2305
- package/src/generators/neutral-library/generator.js +429 -2543
- package/src/generators/node-library/generator.js +429 -2543
- package/src/generators/preset/generator.js +188 -2302
- package/src/utils/index.js +2139 -3716
package/src/base/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
36
36
|
var require_resolve_from = __commonJS({
|
|
37
37
|
"node_modules/.pnpm/resolve-from@4.0.0/node_modules/resolve-from/index.js"(exports2, module2) {
|
|
38
38
|
"use strict";
|
|
39
|
-
var
|
|
39
|
+
var path = require("path");
|
|
40
40
|
var Module = require("module");
|
|
41
41
|
var fs = require("fs");
|
|
42
42
|
var resolveFrom = (fromDir, moduleId, silent) => {
|
|
@@ -50,14 +50,14 @@ var require_resolve_from = __commonJS({
|
|
|
50
50
|
fromDir = fs.realpathSync(fromDir);
|
|
51
51
|
} catch (err) {
|
|
52
52
|
if (err.code === "ENOENT") {
|
|
53
|
-
fromDir =
|
|
53
|
+
fromDir = path.resolve(fromDir);
|
|
54
54
|
} else if (silent) {
|
|
55
55
|
return null;
|
|
56
56
|
} else {
|
|
57
57
|
throw err;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const fromFile =
|
|
60
|
+
const fromFile = path.join(fromDir, "noop.js");
|
|
61
61
|
const resolveFileName = () => Module._resolveFilename(moduleId, {
|
|
62
62
|
id: fromFile,
|
|
63
63
|
filename: fromFile,
|
|
@@ -129,7 +129,7 @@ var require_parent_module = __commonJS({
|
|
|
129
129
|
var require_import_fresh = __commonJS({
|
|
130
130
|
"node_modules/.pnpm/import-fresh@3.3.0/node_modules/import-fresh/index.js"(exports2, module2) {
|
|
131
131
|
"use strict";
|
|
132
|
-
var
|
|
132
|
+
var path = require("path");
|
|
133
133
|
var resolveFrom = require_resolve_from();
|
|
134
134
|
var parentModule = require_parent_module();
|
|
135
135
|
module2.exports = (moduleId) => {
|
|
@@ -137,7 +137,7 @@ var require_import_fresh = __commonJS({
|
|
|
137
137
|
throw new TypeError("Expected a string");
|
|
138
138
|
}
|
|
139
139
|
const parentPath = parentModule(__filename);
|
|
140
|
-
const cwd = parentPath ?
|
|
140
|
+
const cwd = parentPath ? path.dirname(parentPath) : __dirname;
|
|
141
141
|
const filePath = resolveFrom(cwd, moduleId);
|
|
142
142
|
const oldModule = require.cache[filePath];
|
|
143
143
|
if (oldModule && oldModule.parent) {
|
|
@@ -1579,15 +1579,15 @@ var require_route = __commonJS({
|
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
1581
|
function wrapConversion(toModel, graph) {
|
|
1582
|
-
var
|
|
1582
|
+
var path = [graph[toModel].parent, toModel];
|
|
1583
1583
|
var fn = conversions[graph[toModel].parent][toModel];
|
|
1584
1584
|
var cur = graph[toModel].parent;
|
|
1585
1585
|
while (graph[cur].parent) {
|
|
1586
|
-
|
|
1586
|
+
path.unshift(graph[cur].parent);
|
|
1587
1587
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
1588
1588
|
cur = graph[cur].parent;
|
|
1589
1589
|
}
|
|
1590
|
-
fn.conversion =
|
|
1590
|
+
fn.conversion = path;
|
|
1591
1591
|
return fn;
|
|
1592
1592
|
}
|
|
1593
1593
|
module2.exports = function(fromModel) {
|
|
@@ -1827,7 +1827,7 @@ var require_has_flag = __commonJS({
|
|
|
1827
1827
|
var require_supports_color = __commonJS({
|
|
1828
1828
|
"node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
1829
1829
|
"use strict";
|
|
1830
|
-
var
|
|
1830
|
+
var os = require("os");
|
|
1831
1831
|
var hasFlag = require_has_flag();
|
|
1832
1832
|
var env = process.env;
|
|
1833
1833
|
var forceColor;
|
|
@@ -1865,7 +1865,7 @@ var require_supports_color = __commonJS({
|
|
|
1865
1865
|
}
|
|
1866
1866
|
const min = forceColor ? 1 : 0;
|
|
1867
1867
|
if (process.platform === "win32") {
|
|
1868
|
-
const osRelease =
|
|
1868
|
+
const osRelease = os.release().split(".");
|
|
1869
1869
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
1870
1870
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
1871
1871
|
}
|
|
@@ -4729,7 +4729,7 @@ var require_loader = __commonJS({
|
|
|
4729
4729
|
iterator(documents[index]);
|
|
4730
4730
|
}
|
|
4731
4731
|
}
|
|
4732
|
-
function
|
|
4732
|
+
function load(input, options) {
|
|
4733
4733
|
var documents = loadDocuments(input, options);
|
|
4734
4734
|
if (documents.length === 0) {
|
|
4735
4735
|
return void 0;
|
|
@@ -4739,7 +4739,7 @@ var require_loader = __commonJS({
|
|
|
4739
4739
|
throw new YAMLException("expected a single document in the stream, but found more");
|
|
4740
4740
|
}
|
|
4741
4741
|
module2.exports.loadAll = loadAll;
|
|
4742
|
-
module2.exports.load =
|
|
4742
|
+
module2.exports.load = load;
|
|
4743
4743
|
}
|
|
4744
4744
|
});
|
|
4745
4745
|
|
|
@@ -5555,7 +5555,7 @@ ${error.message}`;
|
|
|
5555
5555
|
return typescript.sys.fileExists(fileName);
|
|
5556
5556
|
});
|
|
5557
5557
|
if (filePath !== void 0) {
|
|
5558
|
-
const { config, error } = typescript.readConfigFile(filePath, (
|
|
5558
|
+
const { config, error } = typescript.readConfigFile(filePath, (path) => typescript.sys.readFile(path));
|
|
5559
5559
|
if (error) {
|
|
5560
5560
|
throw new Error(`Error in ${filePath}: ${error.messageText.toString()}`);
|
|
5561
5561
|
}
|
|
@@ -5678,42 +5678,42 @@ var require_defaults = __commonJS({
|
|
|
5678
5678
|
var require_env_paths = __commonJS({
|
|
5679
5679
|
"node_modules/.pnpm/env-paths@2.2.1/node_modules/env-paths/index.js"(exports2, module2) {
|
|
5680
5680
|
"use strict";
|
|
5681
|
-
var
|
|
5682
|
-
var
|
|
5683
|
-
var homedir =
|
|
5684
|
-
var tmpdir =
|
|
5681
|
+
var path = require("path");
|
|
5682
|
+
var os = require("os");
|
|
5683
|
+
var homedir = os.homedir();
|
|
5684
|
+
var tmpdir = os.tmpdir();
|
|
5685
5685
|
var { env } = process;
|
|
5686
5686
|
var macos = (name) => {
|
|
5687
|
-
const library =
|
|
5687
|
+
const library = path.join(homedir, "Library");
|
|
5688
5688
|
return {
|
|
5689
|
-
data:
|
|
5690
|
-
config:
|
|
5691
|
-
cache:
|
|
5692
|
-
log:
|
|
5693
|
-
temp:
|
|
5689
|
+
data: path.join(library, "Application Support", name),
|
|
5690
|
+
config: path.join(library, "Preferences", name),
|
|
5691
|
+
cache: path.join(library, "Caches", name),
|
|
5692
|
+
log: path.join(library, "Logs", name),
|
|
5693
|
+
temp: path.join(tmpdir, name)
|
|
5694
5694
|
};
|
|
5695
5695
|
};
|
|
5696
5696
|
var windows = (name) => {
|
|
5697
|
-
const appData = env.APPDATA ||
|
|
5698
|
-
const localAppData = env.LOCALAPPDATA ||
|
|
5697
|
+
const appData = env.APPDATA || path.join(homedir, "AppData", "Roaming");
|
|
5698
|
+
const localAppData = env.LOCALAPPDATA || path.join(homedir, "AppData", "Local");
|
|
5699
5699
|
return {
|
|
5700
5700
|
// Data/config/cache/log are invented by me as Windows isn't opinionated about this
|
|
5701
|
-
data:
|
|
5702
|
-
config:
|
|
5703
|
-
cache:
|
|
5704
|
-
log:
|
|
5705
|
-
temp:
|
|
5701
|
+
data: path.join(localAppData, name, "Data"),
|
|
5702
|
+
config: path.join(appData, name, "Config"),
|
|
5703
|
+
cache: path.join(localAppData, name, "Cache"),
|
|
5704
|
+
log: path.join(localAppData, name, "Log"),
|
|
5705
|
+
temp: path.join(tmpdir, name)
|
|
5706
5706
|
};
|
|
5707
5707
|
};
|
|
5708
5708
|
var linux = (name) => {
|
|
5709
|
-
const username =
|
|
5709
|
+
const username = path.basename(homedir);
|
|
5710
5710
|
return {
|
|
5711
|
-
data:
|
|
5712
|
-
config:
|
|
5713
|
-
cache:
|
|
5711
|
+
data: path.join(env.XDG_DATA_HOME || path.join(homedir, ".local", "share"), name),
|
|
5712
|
+
config: path.join(env.XDG_CONFIG_HOME || path.join(homedir, ".config"), name),
|
|
5713
|
+
cache: path.join(env.XDG_CACHE_HOME || path.join(homedir, ".cache"), name),
|
|
5714
5714
|
// https://wiki.debian.org/XDGBaseDirectorySpecification#state
|
|
5715
|
-
log:
|
|
5716
|
-
temp:
|
|
5715
|
+
log: path.join(env.XDG_STATE_HOME || path.join(homedir, ".local", "state"), name),
|
|
5716
|
+
temp: path.join(tmpdir, username, name)
|
|
5717
5717
|
};
|
|
5718
5718
|
};
|
|
5719
5719
|
var envPaths = (name, options) => {
|
|
@@ -5786,11 +5786,11 @@ var require_util = __commonJS({
|
|
|
5786
5786
|
return result;
|
|
5787
5787
|
}
|
|
5788
5788
|
exports2.emplace = emplace;
|
|
5789
|
-
function getPropertyByPath(source,
|
|
5790
|
-
if (typeof
|
|
5791
|
-
return source[
|
|
5789
|
+
function getPropertyByPath(source, path) {
|
|
5790
|
+
if (typeof path === "string" && Object.prototype.hasOwnProperty.call(source, path)) {
|
|
5791
|
+
return source[path];
|
|
5792
5792
|
}
|
|
5793
|
-
const parsedPath = typeof
|
|
5793
|
+
const parsedPath = typeof path === "string" ? path.split(".") : path;
|
|
5794
5794
|
return parsedPath.reduce((previous, key) => {
|
|
5795
5795
|
if (previous === void 0) {
|
|
5796
5796
|
return previous;
|
|
@@ -5803,9 +5803,9 @@ var require_util = __commonJS({
|
|
|
5803
5803
|
return Object.fromEntries(Object.entries(options).filter(([, value]) => value !== void 0));
|
|
5804
5804
|
}
|
|
5805
5805
|
exports2.removeUndefinedValuesFromObject = removeUndefinedValuesFromObject;
|
|
5806
|
-
async function isDirectory(
|
|
5806
|
+
async function isDirectory(path) {
|
|
5807
5807
|
try {
|
|
5808
|
-
const stat = await fs_1.promises.stat(
|
|
5808
|
+
const stat = await fs_1.promises.stat(path);
|
|
5809
5809
|
return stat.isDirectory();
|
|
5810
5810
|
} catch (e) {
|
|
5811
5811
|
if (e.code === "ENOENT") {
|
|
@@ -5815,9 +5815,9 @@ var require_util = __commonJS({
|
|
|
5815
5815
|
}
|
|
5816
5816
|
}
|
|
5817
5817
|
exports2.isDirectory = isDirectory;
|
|
5818
|
-
function isDirectorySync(
|
|
5818
|
+
function isDirectorySync(path) {
|
|
5819
5819
|
try {
|
|
5820
|
-
const stat = fs_1.default.statSync(
|
|
5820
|
+
const stat = fs_1.default.statSync(path);
|
|
5821
5821
|
return stat.isDirectory();
|
|
5822
5822
|
} catch (e) {
|
|
5823
5823
|
if (e.code === "ENOENT") {
|
|
@@ -5915,7 +5915,7 @@ var require_ExplorerBase = __commonJS({
|
|
|
5915
5915
|
const idx = importStack.indexOf(fullPath);
|
|
5916
5916
|
if (idx !== -1) {
|
|
5917
5917
|
throw new Error(`Circular import detected:
|
|
5918
|
-
${[...importStack, fullPath].map((
|
|
5918
|
+
${[...importStack, fullPath].map((path, i) => `${i + 1}. ${path}`).join("\n")} (same as ${idx + 1}.)`);
|
|
5919
5919
|
}
|
|
5920
5920
|
}
|
|
5921
5921
|
}
|
|
@@ -6002,13 +6002,13 @@ var require_Explorer = __commonJS({
|
|
|
6002
6002
|
var Explorer = class extends ExplorerBase_js_1.ExplorerBase {
|
|
6003
6003
|
async load(filepath) {
|
|
6004
6004
|
filepath = path_1.default.resolve(filepath);
|
|
6005
|
-
const
|
|
6005
|
+
const load = async () => {
|
|
6006
6006
|
return await this.config.transform(await this.#readConfiguration(filepath));
|
|
6007
6007
|
};
|
|
6008
6008
|
if (this.loadCache) {
|
|
6009
|
-
return await (0, util_js_1.emplace)(this.loadCache, filepath,
|
|
6009
|
+
return await (0, util_js_1.emplace)(this.loadCache, filepath, load);
|
|
6010
6010
|
}
|
|
6011
|
-
return await
|
|
6011
|
+
return await load();
|
|
6012
6012
|
}
|
|
6013
6013
|
async search(from = "") {
|
|
6014
6014
|
if (this.config.metaConfigFilePath) {
|
|
@@ -6100,9 +6100,9 @@ var require_Explorer = __commonJS({
|
|
|
6100
6100
|
throw error;
|
|
6101
6101
|
}
|
|
6102
6102
|
}
|
|
6103
|
-
async #fileExists(
|
|
6103
|
+
async #fileExists(path) {
|
|
6104
6104
|
try {
|
|
6105
|
-
await promises_1.default.stat(
|
|
6105
|
+
await promises_1.default.stat(path);
|
|
6106
6106
|
return true;
|
|
6107
6107
|
} catch (e) {
|
|
6108
6108
|
return false;
|
|
@@ -6160,13 +6160,13 @@ var require_ExplorerSync = __commonJS({
|
|
|
6160
6160
|
var ExplorerSync = class extends ExplorerBase_js_1.ExplorerBase {
|
|
6161
6161
|
load(filepath) {
|
|
6162
6162
|
filepath = path_1.default.resolve(filepath);
|
|
6163
|
-
const
|
|
6163
|
+
const load = () => {
|
|
6164
6164
|
return this.config.transform(this.#readConfiguration(filepath));
|
|
6165
6165
|
};
|
|
6166
6166
|
if (this.loadCache) {
|
|
6167
|
-
return (0, util_js_1.emplace)(this.loadCache, filepath,
|
|
6167
|
+
return (0, util_js_1.emplace)(this.loadCache, filepath, load);
|
|
6168
6168
|
}
|
|
6169
|
-
return
|
|
6169
|
+
return load();
|
|
6170
6170
|
}
|
|
6171
6171
|
search(from = "") {
|
|
6172
6172
|
if (this.config.metaConfigFilePath) {
|
|
@@ -6258,9 +6258,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
6258
6258
|
throw error;
|
|
6259
6259
|
}
|
|
6260
6260
|
}
|
|
6261
|
-
#fileExists(
|
|
6261
|
+
#fileExists(path) {
|
|
6262
6262
|
try {
|
|
6263
|
-
fs_1.default.statSync(
|
|
6263
|
+
fs_1.default.statSync(path);
|
|
6264
6264
|
return true;
|
|
6265
6265
|
} catch (e) {
|
|
6266
6266
|
return false;
|
|
@@ -6342,7 +6342,7 @@ var require_dist = __commonJS({
|
|
|
6342
6342
|
var Explorer_js_1 = require_Explorer();
|
|
6343
6343
|
var ExplorerSync_js_1 = require_ExplorerSync();
|
|
6344
6344
|
var util_1 = require_util();
|
|
6345
|
-
var
|
|
6345
|
+
var identity = function identity2(x) {
|
|
6346
6346
|
return x;
|
|
6347
6347
|
};
|
|
6348
6348
|
function getUserDefinedOptionsFromMetaConfig() {
|
|
@@ -6353,7 +6353,7 @@ var require_dist = __commonJS({
|
|
|
6353
6353
|
ignoreEmptySearchPlaces: false,
|
|
6354
6354
|
applyPackagePropertyPathToConfiguration: true,
|
|
6355
6355
|
loaders: defaults_1.defaultLoaders,
|
|
6356
|
-
transform:
|
|
6356
|
+
transform: identity,
|
|
6357
6357
|
cache: true,
|
|
6358
6358
|
metaConfigFilePath: null,
|
|
6359
6359
|
mergeImportArrays: true,
|
|
@@ -6380,7 +6380,7 @@ var require_dist = __commonJS({
|
|
|
6380
6380
|
};
|
|
6381
6381
|
}
|
|
6382
6382
|
function getResolvedSearchPlaces(moduleName, toolDefinedSearchPlaces, userConfiguredOptions) {
|
|
6383
|
-
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((
|
|
6383
|
+
const userConfiguredSearchPlaces = userConfiguredOptions.searchPlaces?.map((path) => path.replace("{name}", moduleName));
|
|
6384
6384
|
if (userConfiguredOptions.mergeSearchPlaces) {
|
|
6385
6385
|
return [...userConfiguredSearchPlaces ?? [], ...toolDefinedSearchPlaces];
|
|
6386
6386
|
}
|
|
@@ -6425,7 +6425,7 @@ var require_dist = __commonJS({
|
|
|
6425
6425
|
searchPlaces: (0, defaults_1.getDefaultSearchPlaces)(moduleName),
|
|
6426
6426
|
ignoreEmptySearchPlaces: true,
|
|
6427
6427
|
cache: true,
|
|
6428
|
-
transform:
|
|
6428
|
+
transform: identity,
|
|
6429
6429
|
loaders: defaults_1.defaultLoaders,
|
|
6430
6430
|
metaConfigFilePath: null,
|
|
6431
6431
|
mergeImportArrays: true,
|
|
@@ -6441,7 +6441,7 @@ var require_dist = __commonJS({
|
|
|
6441
6441
|
searchPlaces: (0, defaults_1.getDefaultSearchPlacesSync)(moduleName),
|
|
6442
6442
|
ignoreEmptySearchPlaces: true,
|
|
6443
6443
|
cache: true,
|
|
6444
|
-
transform:
|
|
6444
|
+
transform: identity,
|
|
6445
6445
|
loaders: defaults_1.defaultLoadersSync,
|
|
6446
6446
|
metaConfigFilePath: null,
|
|
6447
6447
|
mergeImportArrays: true,
|
|
@@ -7347,15 +7347,15 @@ var require_route2 = __commonJS({
|
|
|
7347
7347
|
};
|
|
7348
7348
|
}
|
|
7349
7349
|
function wrapConversion(toModel, graph) {
|
|
7350
|
-
const
|
|
7350
|
+
const path = [graph[toModel].parent, toModel];
|
|
7351
7351
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
7352
7352
|
let cur = graph[toModel].parent;
|
|
7353
7353
|
while (graph[cur].parent) {
|
|
7354
|
-
|
|
7354
|
+
path.unshift(graph[cur].parent);
|
|
7355
7355
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
7356
7356
|
cur = graph[cur].parent;
|
|
7357
7357
|
}
|
|
7358
|
-
fn.conversion =
|
|
7358
|
+
fn.conversion = path;
|
|
7359
7359
|
return fn;
|
|
7360
7360
|
}
|
|
7361
7361
|
module2.exports = function(fromModel) {
|
|
@@ -7470,7 +7470,7 @@ var require_ansi_styles2 = __commonJS({
|
|
|
7470
7470
|
});
|
|
7471
7471
|
};
|
|
7472
7472
|
var colorConvert;
|
|
7473
|
-
var makeDynamicStyles = (wrap, targetSpace,
|
|
7473
|
+
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
7474
7474
|
if (colorConvert === void 0) {
|
|
7475
7475
|
colorConvert = require_color_convert2();
|
|
7476
7476
|
}
|
|
@@ -7479,7 +7479,7 @@ var require_ansi_styles2 = __commonJS({
|
|
|
7479
7479
|
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
7480
7480
|
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
7481
7481
|
if (sourceSpace === targetSpace) {
|
|
7482
|
-
styles[name] = wrap(
|
|
7482
|
+
styles[name] = wrap(identity, offset);
|
|
7483
7483
|
} else if (typeof suite === "object") {
|
|
7484
7484
|
styles[name] = wrap(suite[targetSpace], offset);
|
|
7485
7485
|
}
|
|
@@ -7595,7 +7595,7 @@ var require_has_flag2 = __commonJS({
|
|
|
7595
7595
|
var require_supports_color2 = __commonJS({
|
|
7596
7596
|
"node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
7597
7597
|
"use strict";
|
|
7598
|
-
var
|
|
7598
|
+
var os = require("os");
|
|
7599
7599
|
var tty = require("tty");
|
|
7600
7600
|
var hasFlag = require_has_flag2();
|
|
7601
7601
|
var { env } = process;
|
|
@@ -7643,7 +7643,7 @@ var require_supports_color2 = __commonJS({
|
|
|
7643
7643
|
return min;
|
|
7644
7644
|
}
|
|
7645
7645
|
if (process.platform === "win32") {
|
|
7646
|
-
const osRelease =
|
|
7646
|
+
const osRelease = os.release().split(".");
|
|
7647
7647
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
7648
7648
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
7649
7649
|
}
|
|
@@ -8024,543 +8024,6 @@ var require_source = __commonJS({
|
|
|
8024
8024
|
}
|
|
8025
8025
|
});
|
|
8026
8026
|
|
|
8027
|
-
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
8028
|
-
var require_windows = __commonJS({
|
|
8029
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
|
|
8030
|
-
module2.exports = isexe;
|
|
8031
|
-
isexe.sync = sync;
|
|
8032
|
-
var fs = require("fs");
|
|
8033
|
-
function checkPathExt(path3, options) {
|
|
8034
|
-
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
8035
|
-
if (!pathext) {
|
|
8036
|
-
return true;
|
|
8037
|
-
}
|
|
8038
|
-
pathext = pathext.split(";");
|
|
8039
|
-
if (pathext.indexOf("") !== -1) {
|
|
8040
|
-
return true;
|
|
8041
|
-
}
|
|
8042
|
-
for (var i = 0; i < pathext.length; i++) {
|
|
8043
|
-
var p = pathext[i].toLowerCase();
|
|
8044
|
-
if (p && path3.substr(-p.length).toLowerCase() === p) {
|
|
8045
|
-
return true;
|
|
8046
|
-
}
|
|
8047
|
-
}
|
|
8048
|
-
return false;
|
|
8049
|
-
}
|
|
8050
|
-
function checkStat(stat, path3, options) {
|
|
8051
|
-
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
8052
|
-
return false;
|
|
8053
|
-
}
|
|
8054
|
-
return checkPathExt(path3, options);
|
|
8055
|
-
}
|
|
8056
|
-
function isexe(path3, options, cb) {
|
|
8057
|
-
fs.stat(path3, function(er, stat) {
|
|
8058
|
-
cb(er, er ? false : checkStat(stat, path3, options));
|
|
8059
|
-
});
|
|
8060
|
-
}
|
|
8061
|
-
function sync(path3, options) {
|
|
8062
|
-
return checkStat(fs.statSync(path3), path3, options);
|
|
8063
|
-
}
|
|
8064
|
-
}
|
|
8065
|
-
});
|
|
8066
|
-
|
|
8067
|
-
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
8068
|
-
var require_mode = __commonJS({
|
|
8069
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
|
|
8070
|
-
module2.exports = isexe;
|
|
8071
|
-
isexe.sync = sync;
|
|
8072
|
-
var fs = require("fs");
|
|
8073
|
-
function isexe(path3, options, cb) {
|
|
8074
|
-
fs.stat(path3, function(er, stat) {
|
|
8075
|
-
cb(er, er ? false : checkStat(stat, options));
|
|
8076
|
-
});
|
|
8077
|
-
}
|
|
8078
|
-
function sync(path3, options) {
|
|
8079
|
-
return checkStat(fs.statSync(path3), options);
|
|
8080
|
-
}
|
|
8081
|
-
function checkStat(stat, options) {
|
|
8082
|
-
return stat.isFile() && checkMode(stat, options);
|
|
8083
|
-
}
|
|
8084
|
-
function checkMode(stat, options) {
|
|
8085
|
-
var mod = stat.mode;
|
|
8086
|
-
var uid = stat.uid;
|
|
8087
|
-
var gid = stat.gid;
|
|
8088
|
-
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
8089
|
-
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
8090
|
-
var u = parseInt("100", 8);
|
|
8091
|
-
var g = parseInt("010", 8);
|
|
8092
|
-
var o = parseInt("001", 8);
|
|
8093
|
-
var ug = u | g;
|
|
8094
|
-
var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
8095
|
-
return ret;
|
|
8096
|
-
}
|
|
8097
|
-
}
|
|
8098
|
-
});
|
|
8099
|
-
|
|
8100
|
-
// node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
8101
|
-
var require_isexe = __commonJS({
|
|
8102
|
-
"node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
8103
|
-
var fs = require("fs");
|
|
8104
|
-
var core;
|
|
8105
|
-
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
8106
|
-
core = require_windows();
|
|
8107
|
-
} else {
|
|
8108
|
-
core = require_mode();
|
|
8109
|
-
}
|
|
8110
|
-
module2.exports = isexe;
|
|
8111
|
-
isexe.sync = sync;
|
|
8112
|
-
function isexe(path3, options, cb) {
|
|
8113
|
-
if (typeof options === "function") {
|
|
8114
|
-
cb = options;
|
|
8115
|
-
options = {};
|
|
8116
|
-
}
|
|
8117
|
-
if (!cb) {
|
|
8118
|
-
if (typeof Promise !== "function") {
|
|
8119
|
-
throw new TypeError("callback not provided");
|
|
8120
|
-
}
|
|
8121
|
-
return new Promise(function(resolve, reject) {
|
|
8122
|
-
isexe(path3, options || {}, function(er, is) {
|
|
8123
|
-
if (er) {
|
|
8124
|
-
reject(er);
|
|
8125
|
-
} else {
|
|
8126
|
-
resolve(is);
|
|
8127
|
-
}
|
|
8128
|
-
});
|
|
8129
|
-
});
|
|
8130
|
-
}
|
|
8131
|
-
core(path3, options || {}, function(er, is) {
|
|
8132
|
-
if (er) {
|
|
8133
|
-
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
8134
|
-
er = null;
|
|
8135
|
-
is = false;
|
|
8136
|
-
}
|
|
8137
|
-
}
|
|
8138
|
-
cb(er, is);
|
|
8139
|
-
});
|
|
8140
|
-
}
|
|
8141
|
-
function sync(path3, options) {
|
|
8142
|
-
try {
|
|
8143
|
-
return core.sync(path3, options || {});
|
|
8144
|
-
} catch (er) {
|
|
8145
|
-
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
8146
|
-
return false;
|
|
8147
|
-
} else {
|
|
8148
|
-
throw er;
|
|
8149
|
-
}
|
|
8150
|
-
}
|
|
8151
|
-
}
|
|
8152
|
-
}
|
|
8153
|
-
});
|
|
8154
|
-
|
|
8155
|
-
// node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
8156
|
-
var require_which = __commonJS({
|
|
8157
|
-
"node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
|
|
8158
|
-
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
8159
|
-
var path3 = require("path");
|
|
8160
|
-
var COLON = isWindows ? ";" : ":";
|
|
8161
|
-
var isexe = require_isexe();
|
|
8162
|
-
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
8163
|
-
var getPathInfo = (cmd, opt) => {
|
|
8164
|
-
const colon = opt.colon || COLON;
|
|
8165
|
-
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
8166
|
-
// windows always checks the cwd first
|
|
8167
|
-
...isWindows ? [process.cwd()] : [],
|
|
8168
|
-
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
8169
|
-
"").split(colon)
|
|
8170
|
-
];
|
|
8171
|
-
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
8172
|
-
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
8173
|
-
if (isWindows) {
|
|
8174
|
-
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
8175
|
-
pathExt.unshift("");
|
|
8176
|
-
}
|
|
8177
|
-
return {
|
|
8178
|
-
pathEnv,
|
|
8179
|
-
pathExt,
|
|
8180
|
-
pathExtExe
|
|
8181
|
-
};
|
|
8182
|
-
};
|
|
8183
|
-
var which = (cmd, opt, cb) => {
|
|
8184
|
-
if (typeof opt === "function") {
|
|
8185
|
-
cb = opt;
|
|
8186
|
-
opt = {};
|
|
8187
|
-
}
|
|
8188
|
-
if (!opt)
|
|
8189
|
-
opt = {};
|
|
8190
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
8191
|
-
const found = [];
|
|
8192
|
-
const step = (i) => new Promise((resolve, reject) => {
|
|
8193
|
-
if (i === pathEnv.length)
|
|
8194
|
-
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
8195
|
-
const ppRaw = pathEnv[i];
|
|
8196
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
8197
|
-
const pCmd = path3.join(pathPart, cmd);
|
|
8198
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
8199
|
-
resolve(subStep(p, i, 0));
|
|
8200
|
-
});
|
|
8201
|
-
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
8202
|
-
if (ii === pathExt.length)
|
|
8203
|
-
return resolve(step(i + 1));
|
|
8204
|
-
const ext = pathExt[ii];
|
|
8205
|
-
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
8206
|
-
if (!er && is) {
|
|
8207
|
-
if (opt.all)
|
|
8208
|
-
found.push(p + ext);
|
|
8209
|
-
else
|
|
8210
|
-
return resolve(p + ext);
|
|
8211
|
-
}
|
|
8212
|
-
return resolve(subStep(p, i, ii + 1));
|
|
8213
|
-
});
|
|
8214
|
-
});
|
|
8215
|
-
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
8216
|
-
};
|
|
8217
|
-
var whichSync = (cmd, opt) => {
|
|
8218
|
-
opt = opt || {};
|
|
8219
|
-
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
8220
|
-
const found = [];
|
|
8221
|
-
for (let i = 0; i < pathEnv.length; i++) {
|
|
8222
|
-
const ppRaw = pathEnv[i];
|
|
8223
|
-
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
8224
|
-
const pCmd = path3.join(pathPart, cmd);
|
|
8225
|
-
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
8226
|
-
for (let j = 0; j < pathExt.length; j++) {
|
|
8227
|
-
const cur = p + pathExt[j];
|
|
8228
|
-
try {
|
|
8229
|
-
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
8230
|
-
if (is) {
|
|
8231
|
-
if (opt.all)
|
|
8232
|
-
found.push(cur);
|
|
8233
|
-
else
|
|
8234
|
-
return cur;
|
|
8235
|
-
}
|
|
8236
|
-
} catch (ex) {
|
|
8237
|
-
}
|
|
8238
|
-
}
|
|
8239
|
-
}
|
|
8240
|
-
if (opt.all && found.length)
|
|
8241
|
-
return found;
|
|
8242
|
-
if (opt.nothrow)
|
|
8243
|
-
return null;
|
|
8244
|
-
throw getNotFoundError(cmd);
|
|
8245
|
-
};
|
|
8246
|
-
module2.exports = which;
|
|
8247
|
-
which.sync = whichSync;
|
|
8248
|
-
}
|
|
8249
|
-
});
|
|
8250
|
-
|
|
8251
|
-
// node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
8252
|
-
var require_path_key = __commonJS({
|
|
8253
|
-
"node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
|
|
8254
|
-
"use strict";
|
|
8255
|
-
var pathKey2 = (options = {}) => {
|
|
8256
|
-
const environment = options.env || process.env;
|
|
8257
|
-
const platform = options.platform || process.platform;
|
|
8258
|
-
if (platform !== "win32") {
|
|
8259
|
-
return "PATH";
|
|
8260
|
-
}
|
|
8261
|
-
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
8262
|
-
};
|
|
8263
|
-
module2.exports = pathKey2;
|
|
8264
|
-
module2.exports.default = pathKey2;
|
|
8265
|
-
}
|
|
8266
|
-
});
|
|
8267
|
-
|
|
8268
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
8269
|
-
var require_resolveCommand = __commonJS({
|
|
8270
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
8271
|
-
"use strict";
|
|
8272
|
-
var path3 = require("path");
|
|
8273
|
-
var which = require_which();
|
|
8274
|
-
var getPathKey = require_path_key();
|
|
8275
|
-
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
8276
|
-
const env = parsed.options.env || process.env;
|
|
8277
|
-
const cwd = process.cwd();
|
|
8278
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
8279
|
-
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8280
|
-
if (shouldSwitchCwd) {
|
|
8281
|
-
try {
|
|
8282
|
-
process.chdir(parsed.options.cwd);
|
|
8283
|
-
} catch (err) {
|
|
8284
|
-
}
|
|
8285
|
-
}
|
|
8286
|
-
let resolved;
|
|
8287
|
-
try {
|
|
8288
|
-
resolved = which.sync(parsed.command, {
|
|
8289
|
-
path: env[getPathKey({ env })],
|
|
8290
|
-
pathExt: withoutPathExt ? path3.delimiter : void 0
|
|
8291
|
-
});
|
|
8292
|
-
} catch (e) {
|
|
8293
|
-
} finally {
|
|
8294
|
-
if (shouldSwitchCwd) {
|
|
8295
|
-
process.chdir(cwd);
|
|
8296
|
-
}
|
|
8297
|
-
}
|
|
8298
|
-
if (resolved) {
|
|
8299
|
-
resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
8300
|
-
}
|
|
8301
|
-
return resolved;
|
|
8302
|
-
}
|
|
8303
|
-
function resolveCommand(parsed) {
|
|
8304
|
-
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
8305
|
-
}
|
|
8306
|
-
module2.exports = resolveCommand;
|
|
8307
|
-
}
|
|
8308
|
-
});
|
|
8309
|
-
|
|
8310
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
|
|
8311
|
-
var require_escape = __commonJS({
|
|
8312
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
8313
|
-
"use strict";
|
|
8314
|
-
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
8315
|
-
function escapeCommand(arg) {
|
|
8316
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
8317
|
-
return arg;
|
|
8318
|
-
}
|
|
8319
|
-
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
8320
|
-
arg = `${arg}`;
|
|
8321
|
-
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
8322
|
-
arg = arg.replace(/(\\*)$/, "$1$1");
|
|
8323
|
-
arg = `"${arg}"`;
|
|
8324
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
8325
|
-
if (doubleEscapeMetaChars) {
|
|
8326
|
-
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
8327
|
-
}
|
|
8328
|
-
return arg;
|
|
8329
|
-
}
|
|
8330
|
-
module2.exports.command = escapeCommand;
|
|
8331
|
-
module2.exports.argument = escapeArgument;
|
|
8332
|
-
}
|
|
8333
|
-
});
|
|
8334
|
-
|
|
8335
|
-
// node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
8336
|
-
var require_shebang_regex = __commonJS({
|
|
8337
|
-
"node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
|
|
8338
|
-
"use strict";
|
|
8339
|
-
module2.exports = /^#!(.*)/;
|
|
8340
|
-
}
|
|
8341
|
-
});
|
|
8342
|
-
|
|
8343
|
-
// node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
8344
|
-
var require_shebang_command = __commonJS({
|
|
8345
|
-
"node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
|
|
8346
|
-
"use strict";
|
|
8347
|
-
var shebangRegex = require_shebang_regex();
|
|
8348
|
-
module2.exports = (string = "") => {
|
|
8349
|
-
const match = string.match(shebangRegex);
|
|
8350
|
-
if (!match) {
|
|
8351
|
-
return null;
|
|
8352
|
-
}
|
|
8353
|
-
const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
8354
|
-
const binary = path3.split("/").pop();
|
|
8355
|
-
if (binary === "env") {
|
|
8356
|
-
return argument;
|
|
8357
|
-
}
|
|
8358
|
-
return argument ? `${binary} ${argument}` : binary;
|
|
8359
|
-
};
|
|
8360
|
-
}
|
|
8361
|
-
});
|
|
8362
|
-
|
|
8363
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
|
|
8364
|
-
var require_readShebang = __commonJS({
|
|
8365
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
8366
|
-
"use strict";
|
|
8367
|
-
var fs = require("fs");
|
|
8368
|
-
var shebangCommand = require_shebang_command();
|
|
8369
|
-
function readShebang(command) {
|
|
8370
|
-
const size = 150;
|
|
8371
|
-
const buffer = Buffer.alloc(size);
|
|
8372
|
-
let fd;
|
|
8373
|
-
try {
|
|
8374
|
-
fd = fs.openSync(command, "r");
|
|
8375
|
-
fs.readSync(fd, buffer, 0, size, 0);
|
|
8376
|
-
fs.closeSync(fd);
|
|
8377
|
-
} catch (e) {
|
|
8378
|
-
}
|
|
8379
|
-
return shebangCommand(buffer.toString());
|
|
8380
|
-
}
|
|
8381
|
-
module2.exports = readShebang;
|
|
8382
|
-
}
|
|
8383
|
-
});
|
|
8384
|
-
|
|
8385
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
|
|
8386
|
-
var require_parse = __commonJS({
|
|
8387
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
8388
|
-
"use strict";
|
|
8389
|
-
var path3 = require("path");
|
|
8390
|
-
var resolveCommand = require_resolveCommand();
|
|
8391
|
-
var escape = require_escape();
|
|
8392
|
-
var readShebang = require_readShebang();
|
|
8393
|
-
var isWin = process.platform === "win32";
|
|
8394
|
-
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
8395
|
-
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8396
|
-
function detectShebang(parsed) {
|
|
8397
|
-
parsed.file = resolveCommand(parsed);
|
|
8398
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
8399
|
-
if (shebang) {
|
|
8400
|
-
parsed.args.unshift(parsed.file);
|
|
8401
|
-
parsed.command = shebang;
|
|
8402
|
-
return resolveCommand(parsed);
|
|
8403
|
-
}
|
|
8404
|
-
return parsed.file;
|
|
8405
|
-
}
|
|
8406
|
-
function parseNonShell(parsed) {
|
|
8407
|
-
if (!isWin) {
|
|
8408
|
-
return parsed;
|
|
8409
|
-
}
|
|
8410
|
-
const commandFile = detectShebang(parsed);
|
|
8411
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
8412
|
-
if (parsed.options.forceShell || needsShell) {
|
|
8413
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
8414
|
-
parsed.command = path3.normalize(parsed.command);
|
|
8415
|
-
parsed.command = escape.command(parsed.command);
|
|
8416
|
-
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
8417
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
8418
|
-
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
8419
|
-
parsed.command = process.env.comspec || "cmd.exe";
|
|
8420
|
-
parsed.options.windowsVerbatimArguments = true;
|
|
8421
|
-
}
|
|
8422
|
-
return parsed;
|
|
8423
|
-
}
|
|
8424
|
-
function parse(command, args, options) {
|
|
8425
|
-
if (args && !Array.isArray(args)) {
|
|
8426
|
-
options = args;
|
|
8427
|
-
args = null;
|
|
8428
|
-
}
|
|
8429
|
-
args = args ? args.slice(0) : [];
|
|
8430
|
-
options = Object.assign({}, options);
|
|
8431
|
-
const parsed = {
|
|
8432
|
-
command,
|
|
8433
|
-
args,
|
|
8434
|
-
options,
|
|
8435
|
-
file: void 0,
|
|
8436
|
-
original: {
|
|
8437
|
-
command,
|
|
8438
|
-
args
|
|
8439
|
-
}
|
|
8440
|
-
};
|
|
8441
|
-
return options.shell ? parsed : parseNonShell(parsed);
|
|
8442
|
-
}
|
|
8443
|
-
module2.exports = parse;
|
|
8444
|
-
}
|
|
8445
|
-
});
|
|
8446
|
-
|
|
8447
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
|
|
8448
|
-
var require_enoent = __commonJS({
|
|
8449
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
8450
|
-
"use strict";
|
|
8451
|
-
var isWin = process.platform === "win32";
|
|
8452
|
-
function notFoundError(original, syscall) {
|
|
8453
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
8454
|
-
code: "ENOENT",
|
|
8455
|
-
errno: "ENOENT",
|
|
8456
|
-
syscall: `${syscall} ${original.command}`,
|
|
8457
|
-
path: original.command,
|
|
8458
|
-
spawnargs: original.args
|
|
8459
|
-
});
|
|
8460
|
-
}
|
|
8461
|
-
function hookChildProcess(cp, parsed) {
|
|
8462
|
-
if (!isWin) {
|
|
8463
|
-
return;
|
|
8464
|
-
}
|
|
8465
|
-
const originalEmit = cp.emit;
|
|
8466
|
-
cp.emit = function(name, arg1) {
|
|
8467
|
-
if (name === "exit") {
|
|
8468
|
-
const err = verifyENOENT(arg1, parsed, "spawn");
|
|
8469
|
-
if (err) {
|
|
8470
|
-
return originalEmit.call(cp, "error", err);
|
|
8471
|
-
}
|
|
8472
|
-
}
|
|
8473
|
-
return originalEmit.apply(cp, arguments);
|
|
8474
|
-
};
|
|
8475
|
-
}
|
|
8476
|
-
function verifyENOENT(status, parsed) {
|
|
8477
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
8478
|
-
return notFoundError(parsed.original, "spawn");
|
|
8479
|
-
}
|
|
8480
|
-
return null;
|
|
8481
|
-
}
|
|
8482
|
-
function verifyENOENTSync(status, parsed) {
|
|
8483
|
-
if (isWin && status === 1 && !parsed.file) {
|
|
8484
|
-
return notFoundError(parsed.original, "spawnSync");
|
|
8485
|
-
}
|
|
8486
|
-
return null;
|
|
8487
|
-
}
|
|
8488
|
-
module2.exports = {
|
|
8489
|
-
hookChildProcess,
|
|
8490
|
-
verifyENOENT,
|
|
8491
|
-
verifyENOENTSync,
|
|
8492
|
-
notFoundError
|
|
8493
|
-
};
|
|
8494
|
-
}
|
|
8495
|
-
});
|
|
8496
|
-
|
|
8497
|
-
// node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
|
|
8498
|
-
var require_cross_spawn = __commonJS({
|
|
8499
|
-
"node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
8500
|
-
"use strict";
|
|
8501
|
-
var cp = require("child_process");
|
|
8502
|
-
var parse = require_parse();
|
|
8503
|
-
var enoent = require_enoent();
|
|
8504
|
-
function spawn(command, args, options) {
|
|
8505
|
-
const parsed = parse(command, args, options);
|
|
8506
|
-
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
8507
|
-
enoent.hookChildProcess(spawned, parsed);
|
|
8508
|
-
return spawned;
|
|
8509
|
-
}
|
|
8510
|
-
function spawnSync(command, args, options) {
|
|
8511
|
-
const parsed = parse(command, args, options);
|
|
8512
|
-
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
8513
|
-
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
8514
|
-
return result;
|
|
8515
|
-
}
|
|
8516
|
-
module2.exports = spawn;
|
|
8517
|
-
module2.exports.spawn = spawn;
|
|
8518
|
-
module2.exports.sync = spawnSync;
|
|
8519
|
-
module2.exports._parse = parse;
|
|
8520
|
-
module2.exports._enoent = enoent;
|
|
8521
|
-
}
|
|
8522
|
-
});
|
|
8523
|
-
|
|
8524
|
-
// node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
|
|
8525
|
-
var require_merge_stream = __commonJS({
|
|
8526
|
-
"node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
|
|
8527
|
-
"use strict";
|
|
8528
|
-
var { PassThrough } = require("stream");
|
|
8529
|
-
module2.exports = function() {
|
|
8530
|
-
var sources = [];
|
|
8531
|
-
var output = new PassThrough({ objectMode: true });
|
|
8532
|
-
output.setMaxListeners(0);
|
|
8533
|
-
output.add = add;
|
|
8534
|
-
output.isEmpty = isEmpty;
|
|
8535
|
-
output.on("unpipe", remove);
|
|
8536
|
-
Array.prototype.slice.call(arguments).forEach(add);
|
|
8537
|
-
return output;
|
|
8538
|
-
function add(source) {
|
|
8539
|
-
if (Array.isArray(source)) {
|
|
8540
|
-
source.forEach(add);
|
|
8541
|
-
return this;
|
|
8542
|
-
}
|
|
8543
|
-
sources.push(source);
|
|
8544
|
-
source.once("end", remove.bind(null, source));
|
|
8545
|
-
source.once("error", output.emit.bind(output, "error"));
|
|
8546
|
-
source.pipe(output, { end: false });
|
|
8547
|
-
return this;
|
|
8548
|
-
}
|
|
8549
|
-
function isEmpty() {
|
|
8550
|
-
return sources.length == 0;
|
|
8551
|
-
}
|
|
8552
|
-
function remove(source) {
|
|
8553
|
-
sources = sources.filter(function(it) {
|
|
8554
|
-
return it !== source;
|
|
8555
|
-
});
|
|
8556
|
-
if (!sources.length && output.readable) {
|
|
8557
|
-
output.end();
|
|
8558
|
-
}
|
|
8559
|
-
}
|
|
8560
|
-
};
|
|
8561
|
-
}
|
|
8562
|
-
});
|
|
8563
|
-
|
|
8564
8027
|
// node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
|
|
8565
8028
|
var tslib_es6_exports = {};
|
|
8566
8029
|
__export(tslib_es6_exports, {
|
|
@@ -9135,7 +8598,7 @@ var require_format_files = __commonJS({
|
|
|
9135
8598
|
"use strict";
|
|
9136
8599
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9137
8600
|
exports2.formatFiles = void 0;
|
|
9138
|
-
var
|
|
8601
|
+
var path = require("path");
|
|
9139
8602
|
var nx_1 = require_nx();
|
|
9140
8603
|
var { updateJson: updateJson2, readJson: readJson2, sortObjectByKeys } = (0, nx_1.requireNx)();
|
|
9141
8604
|
sortObjectByKeys = sortObjectByKeys ?? require("nx/src/utils/object-sort").sortObjectByKeys;
|
|
@@ -9152,7 +8615,7 @@ var require_format_files = __commonJS({
|
|
|
9152
8615
|
const changedPrettierInTree = getChangedPrettierConfigInTree(tree);
|
|
9153
8616
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
9154
8617
|
try {
|
|
9155
|
-
const systemPath =
|
|
8618
|
+
const systemPath = path.join(tree.root, file.path);
|
|
9156
8619
|
const resolvedOptions = await prettier.resolveConfig(systemPath, {
|
|
9157
8620
|
editorconfig: true
|
|
9158
8621
|
});
|
|
@@ -9196,9 +8659,9 @@ var require_format_files = __commonJS({
|
|
|
9196
8659
|
}
|
|
9197
8660
|
}
|
|
9198
8661
|
function getRootTsConfigPath(tree) {
|
|
9199
|
-
for (const
|
|
9200
|
-
if (tree.exists(
|
|
9201
|
-
return
|
|
8662
|
+
for (const path2 of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
8663
|
+
if (tree.exists(path2)) {
|
|
8664
|
+
return path2;
|
|
9202
8665
|
}
|
|
9203
8666
|
}
|
|
9204
8667
|
return null;
|
|
@@ -9491,8 +8954,8 @@ var require_binary_extensions = __commonJS({
|
|
|
9491
8954
|
".zip",
|
|
9492
8955
|
".zipx"
|
|
9493
8956
|
]);
|
|
9494
|
-
function isBinaryPath(
|
|
9495
|
-
return binaryExtensions.has((0, path_1.extname)(
|
|
8957
|
+
function isBinaryPath(path) {
|
|
8958
|
+
return binaryExtensions.has((0, path_1.extname)(path).toLowerCase());
|
|
9496
8959
|
}
|
|
9497
8960
|
exports2.isBinaryPath = isBinaryPath;
|
|
9498
8961
|
}
|
|
@@ -9676,7 +9139,7 @@ var require_ejs = __commonJS({
|
|
|
9676
9139
|
"node_modules/.pnpm/ejs@3.1.9/node_modules/ejs/lib/ejs.js"(exports2) {
|
|
9677
9140
|
"use strict";
|
|
9678
9141
|
var fs = require("fs");
|
|
9679
|
-
var
|
|
9142
|
+
var path = require("path");
|
|
9680
9143
|
var utils = require_utils();
|
|
9681
9144
|
var scopeOptionWarned = false;
|
|
9682
9145
|
var _VERSION_STRING = require_package().version;
|
|
@@ -9707,9 +9170,9 @@ var require_ejs = __commonJS({
|
|
|
9707
9170
|
exports2.localsName = _DEFAULT_LOCALS_NAME;
|
|
9708
9171
|
exports2.promiseImpl = new Function("return this;")().Promise;
|
|
9709
9172
|
exports2.resolveInclude = function(name, filename, isDir) {
|
|
9710
|
-
var dirname =
|
|
9711
|
-
var extname =
|
|
9712
|
-
var resolve =
|
|
9173
|
+
var dirname = path.dirname;
|
|
9174
|
+
var extname = path.extname;
|
|
9175
|
+
var resolve = path.resolve;
|
|
9713
9176
|
var includePath = resolve(isDir ? filename : dirname(filename), name);
|
|
9714
9177
|
var ext = extname(name);
|
|
9715
9178
|
if (!ext) {
|
|
@@ -9726,30 +9189,30 @@ var require_ejs = __commonJS({
|
|
|
9726
9189
|
return filePath;
|
|
9727
9190
|
}
|
|
9728
9191
|
}
|
|
9729
|
-
function getIncludePath(
|
|
9192
|
+
function getIncludePath(path2, options) {
|
|
9730
9193
|
var includePath;
|
|
9731
9194
|
var filePath;
|
|
9732
9195
|
var views = options.views;
|
|
9733
|
-
var match = /^[A-Za-z]+:\\|^\//.exec(
|
|
9196
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path2);
|
|
9734
9197
|
if (match && match.length) {
|
|
9735
|
-
|
|
9198
|
+
path2 = path2.replace(/^\/*/, "");
|
|
9736
9199
|
if (Array.isArray(options.root)) {
|
|
9737
|
-
includePath = resolvePaths(
|
|
9200
|
+
includePath = resolvePaths(path2, options.root);
|
|
9738
9201
|
} else {
|
|
9739
|
-
includePath = exports2.resolveInclude(
|
|
9202
|
+
includePath = exports2.resolveInclude(path2, options.root || "/", true);
|
|
9740
9203
|
}
|
|
9741
9204
|
} else {
|
|
9742
9205
|
if (options.filename) {
|
|
9743
|
-
filePath = exports2.resolveInclude(
|
|
9206
|
+
filePath = exports2.resolveInclude(path2, options.filename);
|
|
9744
9207
|
if (fs.existsSync(filePath)) {
|
|
9745
9208
|
includePath = filePath;
|
|
9746
9209
|
}
|
|
9747
9210
|
}
|
|
9748
9211
|
if (!includePath && Array.isArray(views)) {
|
|
9749
|
-
includePath = resolvePaths(
|
|
9212
|
+
includePath = resolvePaths(path2, views);
|
|
9750
9213
|
}
|
|
9751
9214
|
if (!includePath && typeof options.includer !== "function") {
|
|
9752
|
-
throw new Error('Could not find the include file "' + options.escapeFunction(
|
|
9215
|
+
throw new Error('Could not find the include file "' + options.escapeFunction(path2) + '"');
|
|
9753
9216
|
}
|
|
9754
9217
|
}
|
|
9755
9218
|
return includePath;
|
|
@@ -9808,11 +9271,11 @@ var require_ejs = __commonJS({
|
|
|
9808
9271
|
function fileLoader(filePath) {
|
|
9809
9272
|
return exports2.fileLoader(filePath);
|
|
9810
9273
|
}
|
|
9811
|
-
function includeFile(
|
|
9274
|
+
function includeFile(path2, options) {
|
|
9812
9275
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
9813
|
-
opts.filename = getIncludePath(
|
|
9276
|
+
opts.filename = getIncludePath(path2, opts);
|
|
9814
9277
|
if (typeof options.includer === "function") {
|
|
9815
|
-
var includerResult = options.includer(
|
|
9278
|
+
var includerResult = options.includer(path2, opts.filename);
|
|
9816
9279
|
if (includerResult) {
|
|
9817
9280
|
if (includerResult.filename) {
|
|
9818
9281
|
opts.filename = includerResult.filename;
|
|
@@ -10047,12 +9510,12 @@ var require_ejs = __commonJS({
|
|
|
10047
9510
|
throw e;
|
|
10048
9511
|
}
|
|
10049
9512
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
10050
|
-
var include = function(
|
|
9513
|
+
var include = function(path2, includeData) {
|
|
10051
9514
|
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
10052
9515
|
if (includeData) {
|
|
10053
9516
|
d = utils.shallowCopy(d, includeData);
|
|
10054
9517
|
}
|
|
10055
|
-
return includeFile(
|
|
9518
|
+
return includeFile(path2, opts)(d);
|
|
10056
9519
|
};
|
|
10057
9520
|
return fn.apply(
|
|
10058
9521
|
opts.context,
|
|
@@ -10061,7 +9524,7 @@ var require_ejs = __commonJS({
|
|
|
10061
9524
|
};
|
|
10062
9525
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
10063
9526
|
var filename = opts.filename;
|
|
10064
|
-
var basename =
|
|
9527
|
+
var basename = path.basename(filename, path.extname(filename));
|
|
10065
9528
|
try {
|
|
10066
9529
|
Object.defineProperty(returnedFn, "name", {
|
|
10067
9530
|
value: basename,
|
|
@@ -10224,7 +9687,7 @@ var require_generate_files = __commonJS({
|
|
|
10224
9687
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10225
9688
|
exports2.generateFiles = void 0;
|
|
10226
9689
|
var fs_1 = require("fs");
|
|
10227
|
-
var
|
|
9690
|
+
var path = require("path");
|
|
10228
9691
|
var nx_1 = require_nx();
|
|
10229
9692
|
var binary_extensions_1 = require_binary_extensions();
|
|
10230
9693
|
var { logger } = (0, nx_1.requireNx)();
|
|
@@ -10256,8 +9719,8 @@ var require_generate_files = __commonJS({
|
|
|
10256
9719
|
}
|
|
10257
9720
|
exports2.generateFiles = generateFiles;
|
|
10258
9721
|
function computePath(srcFolder, target, filePath, substitutions) {
|
|
10259
|
-
const relativeFromSrcFolder =
|
|
10260
|
-
let computedPath =
|
|
9722
|
+
const relativeFromSrcFolder = path.relative(srcFolder, filePath);
|
|
9723
|
+
let computedPath = path.join(target, relativeFromSrcFolder);
|
|
10261
9724
|
if (computedPath.endsWith(".template")) {
|
|
10262
9725
|
computedPath = computedPath.substring(0, computedPath.length - 9);
|
|
10263
9726
|
}
|
|
@@ -10270,7 +9733,7 @@ var require_generate_files = __commonJS({
|
|
|
10270
9733
|
let res = [];
|
|
10271
9734
|
try {
|
|
10272
9735
|
(0, fs_1.readdirSync)(parent).forEach((c) => {
|
|
10273
|
-
const child =
|
|
9736
|
+
const child = path.join(parent, c);
|
|
10274
9737
|
try {
|
|
10275
9738
|
const s = (0, fs_1.statSync)(child);
|
|
10276
9739
|
if (!s.isDirectory()) {
|
|
@@ -10698,7 +10161,7 @@ var require_semver = __commonJS({
|
|
|
10698
10161
|
});
|
|
10699
10162
|
|
|
10700
10163
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/parse.js
|
|
10701
|
-
var
|
|
10164
|
+
var require_parse = __commonJS({
|
|
10702
10165
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/parse.js"(exports2, module2) {
|
|
10703
10166
|
var SemVer = require_semver();
|
|
10704
10167
|
var parse = (version, options, throwErrors = false) => {
|
|
@@ -10721,7 +10184,7 @@ var require_parse2 = __commonJS({
|
|
|
10721
10184
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/valid.js
|
|
10722
10185
|
var require_valid = __commonJS({
|
|
10723
10186
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/valid.js"(exports2, module2) {
|
|
10724
|
-
var parse =
|
|
10187
|
+
var parse = require_parse();
|
|
10725
10188
|
var valid = (version, options) => {
|
|
10726
10189
|
const v = parse(version, options);
|
|
10727
10190
|
return v ? v.version : null;
|
|
@@ -10733,7 +10196,7 @@ var require_valid = __commonJS({
|
|
|
10733
10196
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/clean.js
|
|
10734
10197
|
var require_clean = __commonJS({
|
|
10735
10198
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/clean.js"(exports2, module2) {
|
|
10736
|
-
var parse =
|
|
10199
|
+
var parse = require_parse();
|
|
10737
10200
|
var clean = (version, options) => {
|
|
10738
10201
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
10739
10202
|
return s ? s.version : null;
|
|
@@ -10768,7 +10231,7 @@ var require_inc = __commonJS({
|
|
|
10768
10231
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/diff.js
|
|
10769
10232
|
var require_diff = __commonJS({
|
|
10770
10233
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/diff.js"(exports2, module2) {
|
|
10771
|
-
var parse =
|
|
10234
|
+
var parse = require_parse();
|
|
10772
10235
|
var diff = (version1, version2) => {
|
|
10773
10236
|
const v1 = parse(version1, null, true);
|
|
10774
10237
|
const v2 = parse(version2, null, true);
|
|
@@ -10839,7 +10302,7 @@ var require_patch = __commonJS({
|
|
|
10839
10302
|
// node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/prerelease.js
|
|
10840
10303
|
var require_prerelease = __commonJS({
|
|
10841
10304
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/prerelease.js"(exports2, module2) {
|
|
10842
|
-
var parse =
|
|
10305
|
+
var parse = require_parse();
|
|
10843
10306
|
var prerelease = (version, options) => {
|
|
10844
10307
|
const parsed = parse(version, options);
|
|
10845
10308
|
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
@@ -11013,7 +10476,7 @@ var require_cmp = __commonJS({
|
|
|
11013
10476
|
var require_coerce = __commonJS({
|
|
11014
10477
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/functions/coerce.js"(exports2, module2) {
|
|
11015
10478
|
var SemVer = require_semver();
|
|
11016
|
-
var parse =
|
|
10479
|
+
var parse = require_parse();
|
|
11017
10480
|
var { safeRe: re, t } = require_re();
|
|
11018
10481
|
var coerce = (version, options) => {
|
|
11019
10482
|
if (version instanceof SemVer) {
|
|
@@ -12636,10 +12099,10 @@ var require_subset = __commonJS({
|
|
|
12636
12099
|
var require_semver2 = __commonJS({
|
|
12637
12100
|
"node_modules/.pnpm/semver@7.5.3/node_modules/semver/index.js"(exports2, module2) {
|
|
12638
12101
|
var internalRe = require_re();
|
|
12639
|
-
var
|
|
12102
|
+
var constants = require_constants();
|
|
12640
12103
|
var SemVer = require_semver();
|
|
12641
12104
|
var identifiers = require_identifiers();
|
|
12642
|
-
var parse =
|
|
12105
|
+
var parse = require_parse();
|
|
12643
12106
|
var valid = require_valid();
|
|
12644
12107
|
var clean = require_clean();
|
|
12645
12108
|
var inc = require_inc();
|
|
@@ -12718,8 +12181,8 @@ var require_semver2 = __commonJS({
|
|
|
12718
12181
|
re: internalRe.re,
|
|
12719
12182
|
src: internalRe.src,
|
|
12720
12183
|
tokens: internalRe.t,
|
|
12721
|
-
SEMVER_SPEC_VERSION:
|
|
12722
|
-
RELEASE_TYPES:
|
|
12184
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
12185
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
12723
12186
|
compareIdentifiers: identifiers.compareIdentifiers,
|
|
12724
12187
|
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
12725
12188
|
};
|
|
@@ -13260,7 +12723,7 @@ var require_minimatch = __commonJS({
|
|
|
13260
12723
|
"node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
13261
12724
|
module2.exports = minimatch;
|
|
13262
12725
|
minimatch.Minimatch = Minimatch;
|
|
13263
|
-
var
|
|
12726
|
+
var path = function() {
|
|
13264
12727
|
try {
|
|
13265
12728
|
return require("path");
|
|
13266
12729
|
} catch (e) {
|
|
@@ -13268,7 +12731,7 @@ var require_minimatch = __commonJS({
|
|
|
13268
12731
|
}() || {
|
|
13269
12732
|
sep: "/"
|
|
13270
12733
|
};
|
|
13271
|
-
minimatch.sep =
|
|
12734
|
+
minimatch.sep = path.sep;
|
|
13272
12735
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
13273
12736
|
var expand = require_brace_expansion();
|
|
13274
12737
|
var plTypes = {
|
|
@@ -13359,8 +12822,8 @@ var require_minimatch = __commonJS({
|
|
|
13359
12822
|
if (!options)
|
|
13360
12823
|
options = {};
|
|
13361
12824
|
pattern = pattern.trim();
|
|
13362
|
-
if (!options.allowWindowsEscape &&
|
|
13363
|
-
pattern = pattern.split(
|
|
12825
|
+
if (!options.allowWindowsEscape && path.sep !== "/") {
|
|
12826
|
+
pattern = pattern.split(path.sep).join("/");
|
|
13364
12827
|
}
|
|
13365
12828
|
this.options = options;
|
|
13366
12829
|
this.set = [];
|
|
@@ -13737,8 +13200,8 @@ var require_minimatch = __commonJS({
|
|
|
13737
13200
|
if (f === "/" && partial)
|
|
13738
13201
|
return true;
|
|
13739
13202
|
var options = this.options;
|
|
13740
|
-
if (
|
|
13741
|
-
f = f.split(
|
|
13203
|
+
if (path.sep !== "/") {
|
|
13204
|
+
f = f.split(path.sep).join("/");
|
|
13742
13205
|
}
|
|
13743
13206
|
f = f.split(slashSplit);
|
|
13744
13207
|
this.debug(this.pattern, "split", f);
|
|
@@ -13896,12 +13359,12 @@ var require_inherits = __commonJS({
|
|
|
13896
13359
|
var require_path_is_absolute = __commonJS({
|
|
13897
13360
|
"node_modules/.pnpm/path-is-absolute@1.0.1/node_modules/path-is-absolute/index.js"(exports2, module2) {
|
|
13898
13361
|
"use strict";
|
|
13899
|
-
function posix(
|
|
13900
|
-
return
|
|
13362
|
+
function posix(path) {
|
|
13363
|
+
return path.charAt(0) === "/";
|
|
13901
13364
|
}
|
|
13902
|
-
function win32(
|
|
13365
|
+
function win32(path) {
|
|
13903
13366
|
var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;
|
|
13904
|
-
var result = splitDeviceRe.exec(
|
|
13367
|
+
var result = splitDeviceRe.exec(path);
|
|
13905
13368
|
var device = result[1] || "";
|
|
13906
13369
|
var isUnc = Boolean(device && device.charAt(1) !== ":");
|
|
13907
13370
|
return Boolean(result[2] || isUnc);
|
|
@@ -13926,7 +13389,7 @@ var require_common2 = __commonJS({
|
|
|
13926
13389
|
return Object.prototype.hasOwnProperty.call(obj, field);
|
|
13927
13390
|
}
|
|
13928
13391
|
var fs = require("fs");
|
|
13929
|
-
var
|
|
13392
|
+
var path = require("path");
|
|
13930
13393
|
var minimatch = require_minimatch();
|
|
13931
13394
|
var isAbsolute = require_path_is_absolute();
|
|
13932
13395
|
var Minimatch = minimatch.Minimatch;
|
|
@@ -13991,11 +13454,11 @@ var require_common2 = __commonJS({
|
|
|
13991
13454
|
if (!ownProp(options, "cwd"))
|
|
13992
13455
|
self.cwd = cwd;
|
|
13993
13456
|
else {
|
|
13994
|
-
self.cwd =
|
|
13457
|
+
self.cwd = path.resolve(options.cwd);
|
|
13995
13458
|
self.changedCwd = self.cwd !== cwd;
|
|
13996
13459
|
}
|
|
13997
|
-
self.root = options.root ||
|
|
13998
|
-
self.root =
|
|
13460
|
+
self.root = options.root || path.resolve(self.cwd, "/");
|
|
13461
|
+
self.root = path.resolve(self.root);
|
|
13999
13462
|
if (process.platform === "win32")
|
|
14000
13463
|
self.root = self.root.replace(/\\/g, "/");
|
|
14001
13464
|
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd);
|
|
@@ -14077,30 +13540,30 @@ var require_common2 = __commonJS({
|
|
|
14077
13540
|
function makeAbs(self, f) {
|
|
14078
13541
|
var abs = f;
|
|
14079
13542
|
if (f.charAt(0) === "/") {
|
|
14080
|
-
abs =
|
|
13543
|
+
abs = path.join(self.root, f);
|
|
14081
13544
|
} else if (isAbsolute(f) || f === "") {
|
|
14082
13545
|
abs = f;
|
|
14083
13546
|
} else if (self.changedCwd) {
|
|
14084
|
-
abs =
|
|
13547
|
+
abs = path.resolve(self.cwd, f);
|
|
14085
13548
|
} else {
|
|
14086
|
-
abs =
|
|
13549
|
+
abs = path.resolve(f);
|
|
14087
13550
|
}
|
|
14088
13551
|
if (process.platform === "win32")
|
|
14089
13552
|
abs = abs.replace(/\\/g, "/");
|
|
14090
13553
|
return abs;
|
|
14091
13554
|
}
|
|
14092
|
-
function isIgnored(self,
|
|
13555
|
+
function isIgnored(self, path2) {
|
|
14093
13556
|
if (!self.ignore.length)
|
|
14094
13557
|
return false;
|
|
14095
13558
|
return self.ignore.some(function(item) {
|
|
14096
|
-
return item.matcher.match(
|
|
13559
|
+
return item.matcher.match(path2) || !!(item.gmatcher && item.gmatcher.match(path2));
|
|
14097
13560
|
});
|
|
14098
13561
|
}
|
|
14099
|
-
function childrenIgnored(self,
|
|
13562
|
+
function childrenIgnored(self, path2) {
|
|
14100
13563
|
if (!self.ignore.length)
|
|
14101
13564
|
return false;
|
|
14102
13565
|
return self.ignore.some(function(item) {
|
|
14103
|
-
return !!(item.gmatcher && item.gmatcher.match(
|
|
13566
|
+
return !!(item.gmatcher && item.gmatcher.match(path2));
|
|
14104
13567
|
});
|
|
14105
13568
|
}
|
|
14106
13569
|
}
|
|
@@ -14116,7 +13579,7 @@ var require_sync = __commonJS({
|
|
|
14116
13579
|
var Minimatch = minimatch.Minimatch;
|
|
14117
13580
|
var Glob = require_glob().Glob;
|
|
14118
13581
|
var util2 = require("util");
|
|
14119
|
-
var
|
|
13582
|
+
var path = require("path");
|
|
14120
13583
|
var assert = require("assert");
|
|
14121
13584
|
var isAbsolute = require_path_is_absolute();
|
|
14122
13585
|
var common = require_common2();
|
|
@@ -14244,7 +13707,7 @@ var require_sync = __commonJS({
|
|
|
14244
13707
|
e = prefix + e;
|
|
14245
13708
|
}
|
|
14246
13709
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
14247
|
-
e =
|
|
13710
|
+
e = path.join(this.root, e);
|
|
14248
13711
|
}
|
|
14249
13712
|
this._emitMatch(index, e);
|
|
14250
13713
|
}
|
|
@@ -14393,9 +13856,9 @@ var require_sync = __commonJS({
|
|
|
14393
13856
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
14394
13857
|
var trail = /[\/\\]$/.test(prefix);
|
|
14395
13858
|
if (prefix.charAt(0) === "/") {
|
|
14396
|
-
prefix =
|
|
13859
|
+
prefix = path.join(this.root, prefix);
|
|
14397
13860
|
} else {
|
|
14398
|
-
prefix =
|
|
13861
|
+
prefix = path.resolve(this.root, prefix);
|
|
14399
13862
|
if (trail)
|
|
14400
13863
|
prefix += "/";
|
|
14401
13864
|
}
|
|
@@ -14590,7 +14053,7 @@ var require_glob = __commonJS({
|
|
|
14590
14053
|
var Minimatch = minimatch.Minimatch;
|
|
14591
14054
|
var inherits = require_inherits();
|
|
14592
14055
|
var EE = require("events").EventEmitter;
|
|
14593
|
-
var
|
|
14056
|
+
var path = require("path");
|
|
14594
14057
|
var assert = require("assert");
|
|
14595
14058
|
var isAbsolute = require_path_is_absolute();
|
|
14596
14059
|
var globSync = require_sync();
|
|
@@ -14873,7 +14336,7 @@ var require_glob = __commonJS({
|
|
|
14873
14336
|
e = prefix + e;
|
|
14874
14337
|
}
|
|
14875
14338
|
if (e.charAt(0) === "/" && !this.nomount) {
|
|
14876
|
-
e =
|
|
14339
|
+
e = path.join(this.root, e);
|
|
14877
14340
|
}
|
|
14878
14341
|
this._emitMatch(index, e);
|
|
14879
14342
|
}
|
|
@@ -15060,9 +14523,9 @@ var require_glob = __commonJS({
|
|
|
15060
14523
|
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
15061
14524
|
var trail = /[\/\\]$/.test(prefix);
|
|
15062
14525
|
if (prefix.charAt(0) === "/") {
|
|
15063
|
-
prefix =
|
|
14526
|
+
prefix = path.join(this.root, prefix);
|
|
15064
14527
|
} else {
|
|
15065
|
-
prefix =
|
|
14528
|
+
prefix = path.resolve(this.root, prefix);
|
|
15066
14529
|
if (trail)
|
|
15067
14530
|
prefix += "/";
|
|
15068
14531
|
}
|
|
@@ -15140,7 +14603,7 @@ var require_glob = __commonJS({
|
|
|
15140
14603
|
var require_rimraf = __commonJS({
|
|
15141
14604
|
"node_modules/.pnpm/rimraf@3.0.2/node_modules/rimraf/rimraf.js"(exports2, module2) {
|
|
15142
14605
|
var assert = require("assert");
|
|
15143
|
-
var
|
|
14606
|
+
var path = require("path");
|
|
15144
14607
|
var fs = require("fs");
|
|
15145
14608
|
var glob = void 0;
|
|
15146
14609
|
try {
|
|
@@ -15322,7 +14785,7 @@ var require_rimraf = __commonJS({
|
|
|
15322
14785
|
return options.rmdir(p, cb);
|
|
15323
14786
|
let errState;
|
|
15324
14787
|
files.forEach((f) => {
|
|
15325
|
-
rimraf(
|
|
14788
|
+
rimraf(path.join(p, f), options, (er2) => {
|
|
15326
14789
|
if (errState)
|
|
15327
14790
|
return;
|
|
15328
14791
|
if (er2)
|
|
@@ -15397,7 +14860,7 @@ var require_rimraf = __commonJS({
|
|
|
15397
14860
|
var rmkidsSync = (p, options) => {
|
|
15398
14861
|
assert(p);
|
|
15399
14862
|
assert(options);
|
|
15400
|
-
options.readdirSync(p).forEach((f) => rimrafSync(
|
|
14863
|
+
options.readdirSync(p).forEach((f) => rimrafSync(path.join(p, f), options));
|
|
15401
14864
|
const retries = isWindows ? 100 : 1;
|
|
15402
14865
|
let i = 0;
|
|
15403
14866
|
do {
|
|
@@ -15421,16 +14884,16 @@ var require_rimraf = __commonJS({
|
|
|
15421
14884
|
var require_tmp = __commonJS({
|
|
15422
14885
|
"node_modules/.pnpm/tmp@0.2.1/node_modules/tmp/lib/tmp.js"(exports2, module2) {
|
|
15423
14886
|
var fs = require("fs");
|
|
15424
|
-
var
|
|
15425
|
-
var
|
|
14887
|
+
var os = require("os");
|
|
14888
|
+
var path = require("path");
|
|
15426
14889
|
var crypto = require("crypto");
|
|
15427
|
-
var _c = { fs: fs.constants, os:
|
|
14890
|
+
var _c = { fs: fs.constants, os: os.constants };
|
|
15428
14891
|
var rimraf = require_rimraf();
|
|
15429
14892
|
var RANDOM_CHARS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
15430
14893
|
var TEMPLATE_PATTERN = /XXXXXX/;
|
|
15431
14894
|
var DEFAULT_TRIES = 3;
|
|
15432
14895
|
var CREATE_FLAGS = (_c.O_CREAT || _c.fs.O_CREAT) | (_c.O_EXCL || _c.fs.O_EXCL) | (_c.O_RDWR || _c.fs.O_RDWR);
|
|
15433
|
-
var IS_WIN32 =
|
|
14896
|
+
var IS_WIN32 = os.platform() === "win32";
|
|
15434
14897
|
var EBADF = _c.EBADF || _c.os.errno.EBADF;
|
|
15435
14898
|
var ENOENT = _c.ENOENT || _c.os.errno.ENOENT;
|
|
15436
14899
|
var DIR_MODE = 448;
|
|
@@ -15645,9 +15108,9 @@ var require_tmp = __commonJS({
|
|
|
15645
15108
|
function _generateTmpName(opts) {
|
|
15646
15109
|
const tmpDir = opts.tmpdir;
|
|
15647
15110
|
if (!_isUndefined(opts.name))
|
|
15648
|
-
return
|
|
15111
|
+
return path.join(tmpDir, opts.dir, opts.name);
|
|
15649
15112
|
if (!_isUndefined(opts.template))
|
|
15650
|
-
return
|
|
15113
|
+
return path.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
15651
15114
|
const name = [
|
|
15652
15115
|
opts.prefix ? opts.prefix : "tmp",
|
|
15653
15116
|
"-",
|
|
@@ -15656,7 +15119,7 @@ var require_tmp = __commonJS({
|
|
|
15656
15119
|
_randomChars(12),
|
|
15657
15120
|
opts.postfix ? "-" + opts.postfix : ""
|
|
15658
15121
|
].join("");
|
|
15659
|
-
return
|
|
15122
|
+
return path.join(tmpDir, opts.dir, name);
|
|
15660
15123
|
}
|
|
15661
15124
|
function _assertAndSanitizeOptions(options) {
|
|
15662
15125
|
options.tmpdir = _getTmpDir(options);
|
|
@@ -15677,9 +15140,9 @@ var require_tmp = __commonJS({
|
|
|
15677
15140
|
options.detachDescriptor = !!options.detachDescriptor;
|
|
15678
15141
|
options.discardDescriptor = !!options.discardDescriptor;
|
|
15679
15142
|
options.unsafeCleanup = !!options.unsafeCleanup;
|
|
15680
|
-
options.dir = _isUndefined(options.dir) ? "" :
|
|
15681
|
-
options.template = _isUndefined(options.template) ? void 0 :
|
|
15682
|
-
options.template = _isBlank(options.template) ? void 0 :
|
|
15143
|
+
options.dir = _isUndefined(options.dir) ? "" : path.relative(tmpDir, _resolvePath(options.dir, tmpDir));
|
|
15144
|
+
options.template = _isUndefined(options.template) ? void 0 : path.relative(tmpDir, _resolvePath(options.template, tmpDir));
|
|
15145
|
+
options.template = _isBlank(options.template) ? void 0 : path.relative(options.dir, options.template);
|
|
15683
15146
|
options.name = _isUndefined(options.name) ? void 0 : _sanitizeName(options.name);
|
|
15684
15147
|
options.prefix = _isUndefined(options.prefix) ? "" : options.prefix;
|
|
15685
15148
|
options.postfix = _isUndefined(options.postfix) ? "" : options.postfix;
|
|
@@ -15687,9 +15150,9 @@ var require_tmp = __commonJS({
|
|
|
15687
15150
|
function _resolvePath(name, tmpDir) {
|
|
15688
15151
|
const sanitizedName = _sanitizeName(name);
|
|
15689
15152
|
if (sanitizedName.startsWith(tmpDir)) {
|
|
15690
|
-
return
|
|
15153
|
+
return path.resolve(sanitizedName);
|
|
15691
15154
|
} else {
|
|
15692
|
-
return
|
|
15155
|
+
return path.resolve(path.join(tmpDir, sanitizedName));
|
|
15693
15156
|
}
|
|
15694
15157
|
}
|
|
15695
15158
|
function _sanitizeName(name) {
|
|
@@ -15700,13 +15163,13 @@ var require_tmp = __commonJS({
|
|
|
15700
15163
|
}
|
|
15701
15164
|
function _assertIsRelative(name, option, tmpDir) {
|
|
15702
15165
|
if (option === "name") {
|
|
15703
|
-
if (
|
|
15166
|
+
if (path.isAbsolute(name))
|
|
15704
15167
|
throw new Error(`${option} option must not contain an absolute path, found "${name}".`);
|
|
15705
|
-
let basename =
|
|
15168
|
+
let basename = path.basename(name);
|
|
15706
15169
|
if (basename === ".." || basename === "." || basename !== name)
|
|
15707
15170
|
throw new Error(`${option} option must not contain a path, found "${name}".`);
|
|
15708
15171
|
} else {
|
|
15709
|
-
if (
|
|
15172
|
+
if (path.isAbsolute(name) && !name.startsWith(tmpDir)) {
|
|
15710
15173
|
throw new Error(`${option} option must be relative to "${tmpDir}", found "${name}".`);
|
|
15711
15174
|
}
|
|
15712
15175
|
let resolvedPath = _resolvePath(name, tmpDir);
|
|
@@ -15727,7 +15190,7 @@ var require_tmp = __commonJS({
|
|
|
15727
15190
|
_gracefulCleanup = true;
|
|
15728
15191
|
}
|
|
15729
15192
|
function _getTmpDir(options) {
|
|
15730
|
-
return
|
|
15193
|
+
return path.resolve(_sanitizeName(options && options.tmpdir || os.tmpdir()));
|
|
15731
15194
|
}
|
|
15732
15195
|
process.addListener(EXIT, _garbageCollector);
|
|
15733
15196
|
Object.defineProperty(module2.exports, "tmpdir", {
|
|
@@ -16338,17 +15801,17 @@ var require_ignore = __commonJS({
|
|
|
16338
15801
|
var throwError = (message, Ctor) => {
|
|
16339
15802
|
throw new Ctor(message);
|
|
16340
15803
|
};
|
|
16341
|
-
var checkPath = (
|
|
16342
|
-
if (!isString(
|
|
15804
|
+
var checkPath = (path, originalPath, doThrow) => {
|
|
15805
|
+
if (!isString(path)) {
|
|
16343
15806
|
return doThrow(
|
|
16344
15807
|
`path must be a string, but got \`${originalPath}\``,
|
|
16345
15808
|
TypeError
|
|
16346
15809
|
);
|
|
16347
15810
|
}
|
|
16348
|
-
if (!
|
|
15811
|
+
if (!path) {
|
|
16349
15812
|
return doThrow(`path must not be empty`, TypeError);
|
|
16350
15813
|
}
|
|
16351
|
-
if (checkPath.isNotRelative(
|
|
15814
|
+
if (checkPath.isNotRelative(path)) {
|
|
16352
15815
|
const r = "`path.relative()`d";
|
|
16353
15816
|
return doThrow(
|
|
16354
15817
|
`path should be a ${r} string, but got "${originalPath}"`,
|
|
@@ -16357,7 +15820,7 @@ var require_ignore = __commonJS({
|
|
|
16357
15820
|
}
|
|
16358
15821
|
return true;
|
|
16359
15822
|
};
|
|
16360
|
-
var isNotRelative = (
|
|
15823
|
+
var isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
|
|
16361
15824
|
checkPath.isNotRelative = isNotRelative;
|
|
16362
15825
|
checkPath.convert = (p) => p;
|
|
16363
15826
|
var Ignore = class {
|
|
@@ -16416,7 +15879,7 @@ var require_ignore = __commonJS({
|
|
|
16416
15879
|
// setting `checkUnignored` to `false` could reduce additional
|
|
16417
15880
|
// path matching.
|
|
16418
15881
|
// @returns {TestResult} true if a file is ignored
|
|
16419
|
-
_testOne(
|
|
15882
|
+
_testOne(path, checkUnignored) {
|
|
16420
15883
|
let ignored = false;
|
|
16421
15884
|
let unignored = false;
|
|
16422
15885
|
this._rules.forEach((rule) => {
|
|
@@ -16424,7 +15887,7 @@ var require_ignore = __commonJS({
|
|
|
16424
15887
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
16425
15888
|
return;
|
|
16426
15889
|
}
|
|
16427
|
-
const matched = rule.regex.test(
|
|
15890
|
+
const matched = rule.regex.test(path);
|
|
16428
15891
|
if (matched) {
|
|
16429
15892
|
ignored = !negative;
|
|
16430
15893
|
unignored = negative;
|
|
@@ -16437,24 +15900,24 @@ var require_ignore = __commonJS({
|
|
|
16437
15900
|
}
|
|
16438
15901
|
// @returns {TestResult}
|
|
16439
15902
|
_test(originalPath, cache, checkUnignored, slices) {
|
|
16440
|
-
const
|
|
15903
|
+
const path = originalPath && checkPath.convert(originalPath);
|
|
16441
15904
|
checkPath(
|
|
16442
|
-
|
|
15905
|
+
path,
|
|
16443
15906
|
originalPath,
|
|
16444
15907
|
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
16445
15908
|
);
|
|
16446
|
-
return this._t(
|
|
15909
|
+
return this._t(path, cache, checkUnignored, slices);
|
|
16447
15910
|
}
|
|
16448
|
-
_t(
|
|
16449
|
-
if (
|
|
16450
|
-
return cache[
|
|
15911
|
+
_t(path, cache, checkUnignored, slices) {
|
|
15912
|
+
if (path in cache) {
|
|
15913
|
+
return cache[path];
|
|
16451
15914
|
}
|
|
16452
15915
|
if (!slices) {
|
|
16453
|
-
slices =
|
|
15916
|
+
slices = path.split(SLASH);
|
|
16454
15917
|
}
|
|
16455
15918
|
slices.pop();
|
|
16456
15919
|
if (!slices.length) {
|
|
16457
|
-
return cache[
|
|
15920
|
+
return cache[path] = this._testOne(path, checkUnignored);
|
|
16458
15921
|
}
|
|
16459
15922
|
const parent = this._t(
|
|
16460
15923
|
slices.join(SLASH) + SLASH,
|
|
@@ -16462,24 +15925,24 @@ var require_ignore = __commonJS({
|
|
|
16462
15925
|
checkUnignored,
|
|
16463
15926
|
slices
|
|
16464
15927
|
);
|
|
16465
|
-
return cache[
|
|
15928
|
+
return cache[path] = parent.ignored ? parent : this._testOne(path, checkUnignored);
|
|
16466
15929
|
}
|
|
16467
|
-
ignores(
|
|
16468
|
-
return this._test(
|
|
15930
|
+
ignores(path) {
|
|
15931
|
+
return this._test(path, this._ignoreCache, false).ignored;
|
|
16469
15932
|
}
|
|
16470
15933
|
createFilter() {
|
|
16471
|
-
return (
|
|
15934
|
+
return (path) => !this.ignores(path);
|
|
16472
15935
|
}
|
|
16473
15936
|
filter(paths) {
|
|
16474
15937
|
return makeArray(paths).filter(this.createFilter());
|
|
16475
15938
|
}
|
|
16476
15939
|
// @returns {TestResult}
|
|
16477
|
-
test(
|
|
16478
|
-
return this._test(
|
|
15940
|
+
test(path) {
|
|
15941
|
+
return this._test(path, this._testCache, true);
|
|
16479
15942
|
}
|
|
16480
15943
|
};
|
|
16481
15944
|
var factory = (options) => new Ignore(options);
|
|
16482
|
-
var isPathValid = (
|
|
15945
|
+
var isPathValid = (path) => checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
|
|
16483
15946
|
factory.isPathValid = isPathValid;
|
|
16484
15947
|
factory.default = factory;
|
|
16485
15948
|
module2.exports = factory;
|
|
@@ -16490,7 +15953,7 @@ var require_ignore = __commonJS({
|
|
|
16490
15953
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
16491
15954
|
checkPath.convert = makePosix;
|
|
16492
15955
|
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
16493
|
-
checkPath.isNotRelative = (
|
|
15956
|
+
checkPath.isNotRelative = (path) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
|
|
16494
15957
|
}
|
|
16495
15958
|
}
|
|
16496
15959
|
});
|
|
@@ -16531,8 +15994,8 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
16531
15994
|
}
|
|
16532
15995
|
}
|
|
16533
15996
|
exports2.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
16534
|
-
function normalizePathRelativeToRoot(
|
|
16535
|
-
return (0, path_1.relative)(root, (0, path_1.join)(root,
|
|
15997
|
+
function normalizePathRelativeToRoot(path, root) {
|
|
15998
|
+
return (0, path_1.relative)(root, (0, path_1.join)(root, path)).split(path_1.sep).join("/");
|
|
16536
15999
|
}
|
|
16537
16000
|
}
|
|
16538
16001
|
});
|
|
@@ -16913,8 +16376,8 @@ var require_invoke_nx_generator = __commonJS({
|
|
|
16913
16376
|
}
|
|
16914
16377
|
return fileChanges;
|
|
16915
16378
|
}
|
|
16916
|
-
normalize(
|
|
16917
|
-
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root,
|
|
16379
|
+
normalize(path) {
|
|
16380
|
+
return (0, path_1.relative)(this.root, (0, path_1.join)(this.root, path));
|
|
16918
16381
|
}
|
|
16919
16382
|
read(filePath, encoding) {
|
|
16920
16383
|
return encoding ? this.tree.read(filePath).toString(encoding) : this.tree.read(filePath);
|
|
@@ -17298,9 +16761,9 @@ var require_noop = __commonJS({
|
|
|
17298
16761
|
"use strict";
|
|
17299
16762
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17300
16763
|
exports2.noop = void 0;
|
|
17301
|
-
function
|
|
16764
|
+
function noop() {
|
|
17302
16765
|
}
|
|
17303
|
-
exports2.noop =
|
|
16766
|
+
exports2.noop = noop;
|
|
17304
16767
|
}
|
|
17305
16768
|
});
|
|
17306
16769
|
|
|
@@ -17590,10 +17053,10 @@ var require_identity = __commonJS({
|
|
|
17590
17053
|
"use strict";
|
|
17591
17054
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
17592
17055
|
exports2.identity = void 0;
|
|
17593
|
-
function
|
|
17056
|
+
function identity(x) {
|
|
17594
17057
|
return x;
|
|
17595
17058
|
}
|
|
17596
|
-
exports2.identity =
|
|
17059
|
+
exports2.identity = identity;
|
|
17597
17060
|
}
|
|
17598
17061
|
});
|
|
17599
17062
|
|
|
@@ -19637,10 +19100,10 @@ var require_isAsyncIterable = __commonJS({
|
|
|
19637
19100
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19638
19101
|
exports2.isAsyncIterable = void 0;
|
|
19639
19102
|
var isFunction_1 = require_isFunction();
|
|
19640
|
-
function
|
|
19103
|
+
function isAsyncIterable(obj) {
|
|
19641
19104
|
return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
19642
19105
|
}
|
|
19643
|
-
exports2.isAsyncIterable =
|
|
19106
|
+
exports2.isAsyncIterable = isAsyncIterable;
|
|
19644
19107
|
}
|
|
19645
19108
|
});
|
|
19646
19109
|
|
|
@@ -20100,7 +19563,7 @@ var require_innerFrom = __commonJS({
|
|
|
20100
19563
|
exports2.fromIterable = fromIterable;
|
|
20101
19564
|
function fromAsyncIterable(asyncIterable) {
|
|
20102
19565
|
return new Observable_1.Observable(function(subscriber) {
|
|
20103
|
-
|
|
19566
|
+
process2(asyncIterable, subscriber).catch(function(err) {
|
|
20104
19567
|
return subscriber.error(err);
|
|
20105
19568
|
});
|
|
20106
19569
|
});
|
|
@@ -20110,7 +19573,7 @@ var require_innerFrom = __commonJS({
|
|
|
20110
19573
|
return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream));
|
|
20111
19574
|
}
|
|
20112
19575
|
exports2.fromReadableStreamLike = fromReadableStreamLike;
|
|
20113
|
-
function
|
|
19576
|
+
function process2(asyncIterable, subscriber) {
|
|
20114
19577
|
var asyncIterable_1, asyncIterable_1_1;
|
|
20115
19578
|
var e_2, _a;
|
|
20116
19579
|
return __awaiter2(this, void 0, void 0, function() {
|
|
@@ -27201,7 +26664,7 @@ var require_utils2 = __commonJS({
|
|
|
27201
26664
|
}
|
|
27202
26665
|
};
|
|
27203
26666
|
exports2.onExit = (callback) => {
|
|
27204
|
-
const
|
|
26667
|
+
const onExit = (quit, code) => {
|
|
27205
26668
|
if (called)
|
|
27206
26669
|
return;
|
|
27207
26670
|
called = true;
|
|
@@ -27211,9 +26674,9 @@ var require_utils2 = __commonJS({
|
|
|
27211
26674
|
}
|
|
27212
26675
|
};
|
|
27213
26676
|
if (fns.length === 0) {
|
|
27214
|
-
process.once("SIGTERM",
|
|
27215
|
-
process.once("SIGINT",
|
|
27216
|
-
process.once("exit",
|
|
26677
|
+
process.once("SIGTERM", onExit.bind(null, true, 15));
|
|
26678
|
+
process.once("SIGINT", onExit.bind(null, true, 2));
|
|
26679
|
+
process.once("exit", onExit);
|
|
27217
26680
|
}
|
|
27218
26681
|
fns.push(callback);
|
|
27219
26682
|
};
|
|
@@ -31584,8 +31047,8 @@ var require_project_name_and_root_utils = __commonJS({
|
|
|
31584
31047
|
function getRelativeCwd() {
|
|
31585
31048
|
return normalizePath((0, path_1.relative)(workspaceRoot, getCwd())).replace(/\/$/, "");
|
|
31586
31049
|
}
|
|
31587
|
-
function setCwd(
|
|
31588
|
-
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot,
|
|
31050
|
+
function setCwd(path) {
|
|
31051
|
+
process.env.INIT_CWD = (0, path_1.join)(workspaceRoot, path);
|
|
31589
31052
|
}
|
|
31590
31053
|
exports2.setCwd = setCwd;
|
|
31591
31054
|
function parseNameForAsProvided(rawName) {
|
|
@@ -31982,9 +31445,9 @@ var require_ts_config = __commonJS({
|
|
|
31982
31445
|
}
|
|
31983
31446
|
exports2.readTsConfig = readTsConfig;
|
|
31984
31447
|
function getRootTsConfigPathInTree(tree) {
|
|
31985
|
-
for (const
|
|
31986
|
-
if (tree.exists(
|
|
31987
|
-
return
|
|
31448
|
+
for (const path of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31449
|
+
if (tree.exists(path)) {
|
|
31450
|
+
return path;
|
|
31988
31451
|
}
|
|
31989
31452
|
}
|
|
31990
31453
|
return "tsconfig.base.json";
|
|
@@ -32054,7 +31517,7 @@ var require_run_type_check = __commonJS({
|
|
|
32054
31517
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32055
31518
|
exports2.getFormattedDiagnostic = exports2.runTypeCheck = exports2.runTypeCheckWatch = void 0;
|
|
32056
31519
|
var chalk2 = require_source();
|
|
32057
|
-
var
|
|
31520
|
+
var path = require("path");
|
|
32058
31521
|
var code_frames_1 = require("nx/src/utils/code-frames");
|
|
32059
31522
|
var highlight_1 = require_highlight();
|
|
32060
31523
|
var ts_config_1 = require_ts_config();
|
|
@@ -32087,7 +31550,7 @@ var require_run_type_check = __commonJS({
|
|
|
32087
31550
|
options: {
|
|
32088
31551
|
...compilerOptions,
|
|
32089
31552
|
incremental: true,
|
|
32090
|
-
tsBuildInfoFile:
|
|
31553
|
+
tsBuildInfoFile: path.join(cacheDir, ".tsbuildinfo")
|
|
32091
31554
|
}
|
|
32092
31555
|
});
|
|
32093
31556
|
} else {
|
|
@@ -32152,7 +31615,7 @@ var require_run_type_check = __commonJS({
|
|
|
32152
31615
|
const pos = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
|
|
32153
31616
|
const line = pos.line + 1;
|
|
32154
31617
|
const column = pos.character + 1;
|
|
32155
|
-
const fileName =
|
|
31618
|
+
const fileName = path.relative(workspaceRoot, diagnostic.file.fileName);
|
|
32156
31619
|
message = `${chalk2.underline.blue(`${fileName}:${line}:${column}`)} - ` + message;
|
|
32157
31620
|
const code = diagnostic.file.getFullText(diagnostic.file.getSourceFile());
|
|
32158
31621
|
message += "\n" + (0, code_frames_1.codeFrameColumns)(code, {
|
|
@@ -32470,9 +31933,9 @@ var require_ts_config2 = __commonJS({
|
|
|
32470
31933
|
}
|
|
32471
31934
|
exports2.readTsConfig = readTsConfig;
|
|
32472
31935
|
function getRootTsConfigPathInTree(tree) {
|
|
32473
|
-
for (const
|
|
32474
|
-
if (tree.exists(
|
|
32475
|
-
return
|
|
31936
|
+
for (const path of ["tsconfig.base.json", "tsconfig.json"]) {
|
|
31937
|
+
if (tree.exists(path)) {
|
|
31938
|
+
return path;
|
|
32476
31939
|
}
|
|
32477
31940
|
}
|
|
32478
31941
|
return "tsconfig.base.json";
|
|
@@ -33019,7 +32482,7 @@ var require_universalify = __commonJS({
|
|
|
33019
32482
|
// node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js
|
|
33020
32483
|
var require_polyfills = __commonJS({
|
|
33021
32484
|
"node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js"(exports2, module2) {
|
|
33022
|
-
var
|
|
32485
|
+
var constants = require("constants");
|
|
33023
32486
|
var origCwd = process.cwd;
|
|
33024
32487
|
var cwd = null;
|
|
33025
32488
|
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
@@ -33044,7 +32507,7 @@ var require_polyfills = __commonJS({
|
|
|
33044
32507
|
var chdir;
|
|
33045
32508
|
module2.exports = patch;
|
|
33046
32509
|
function patch(fs) {
|
|
33047
|
-
if (
|
|
32510
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
33048
32511
|
patchLchmod(fs);
|
|
33049
32512
|
}
|
|
33050
32513
|
if (!fs.lutimes) {
|
|
@@ -33069,7 +32532,7 @@ var require_polyfills = __commonJS({
|
|
|
33069
32532
|
fs.fstatSync = statFixSync(fs.fstatSync);
|
|
33070
32533
|
fs.lstatSync = statFixSync(fs.lstatSync);
|
|
33071
32534
|
if (fs.chmod && !fs.lchmod) {
|
|
33072
|
-
fs.lchmod = function(
|
|
32535
|
+
fs.lchmod = function(path, mode, cb) {
|
|
33073
32536
|
if (cb)
|
|
33074
32537
|
process.nextTick(cb);
|
|
33075
32538
|
};
|
|
@@ -33077,7 +32540,7 @@ var require_polyfills = __commonJS({
|
|
|
33077
32540
|
};
|
|
33078
32541
|
}
|
|
33079
32542
|
if (fs.chown && !fs.lchown) {
|
|
33080
|
-
fs.lchown = function(
|
|
32543
|
+
fs.lchown = function(path, uid, gid, cb) {
|
|
33081
32544
|
if (cb)
|
|
33082
32545
|
process.nextTick(cb);
|
|
33083
32546
|
};
|
|
@@ -33148,10 +32611,10 @@ var require_polyfills = __commonJS({
|
|
|
33148
32611
|
};
|
|
33149
32612
|
}(fs.readSync);
|
|
33150
32613
|
function patchLchmod(fs2) {
|
|
33151
|
-
fs2.lchmod = function(
|
|
32614
|
+
fs2.lchmod = function(path, mode, callback) {
|
|
33152
32615
|
fs2.open(
|
|
33153
|
-
|
|
33154
|
-
|
|
32616
|
+
path,
|
|
32617
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
33155
32618
|
mode,
|
|
33156
32619
|
function(err, fd) {
|
|
33157
32620
|
if (err) {
|
|
@@ -33168,8 +32631,8 @@ var require_polyfills = __commonJS({
|
|
|
33168
32631
|
}
|
|
33169
32632
|
);
|
|
33170
32633
|
};
|
|
33171
|
-
fs2.lchmodSync = function(
|
|
33172
|
-
var fd = fs2.openSync(
|
|
32634
|
+
fs2.lchmodSync = function(path, mode) {
|
|
32635
|
+
var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
33173
32636
|
var threw = true;
|
|
33174
32637
|
var ret;
|
|
33175
32638
|
try {
|
|
@@ -33189,9 +32652,9 @@ var require_polyfills = __commonJS({
|
|
|
33189
32652
|
};
|
|
33190
32653
|
}
|
|
33191
32654
|
function patchLutimes(fs2) {
|
|
33192
|
-
if (
|
|
33193
|
-
fs2.lutimes = function(
|
|
33194
|
-
fs2.open(
|
|
32655
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) {
|
|
32656
|
+
fs2.lutimes = function(path, at, mt, cb) {
|
|
32657
|
+
fs2.open(path, constants.O_SYMLINK, function(er, fd) {
|
|
33195
32658
|
if (er) {
|
|
33196
32659
|
if (cb)
|
|
33197
32660
|
cb(er);
|
|
@@ -33205,8 +32668,8 @@ var require_polyfills = __commonJS({
|
|
|
33205
32668
|
});
|
|
33206
32669
|
});
|
|
33207
32670
|
};
|
|
33208
|
-
fs2.lutimesSync = function(
|
|
33209
|
-
var fd = fs2.openSync(
|
|
32671
|
+
fs2.lutimesSync = function(path, at, mt) {
|
|
32672
|
+
var fd = fs2.openSync(path, constants.O_SYMLINK);
|
|
33210
32673
|
var ret;
|
|
33211
32674
|
var threw = true;
|
|
33212
32675
|
try {
|
|
@@ -33342,12 +32805,12 @@ var require_legacy_streams = __commonJS({
|
|
|
33342
32805
|
ReadStream,
|
|
33343
32806
|
WriteStream
|
|
33344
32807
|
};
|
|
33345
|
-
function ReadStream(
|
|
32808
|
+
function ReadStream(path, options) {
|
|
33346
32809
|
if (!(this instanceof ReadStream))
|
|
33347
|
-
return new ReadStream(
|
|
32810
|
+
return new ReadStream(path, options);
|
|
33348
32811
|
Stream.call(this);
|
|
33349
32812
|
var self = this;
|
|
33350
|
-
this.path =
|
|
32813
|
+
this.path = path;
|
|
33351
32814
|
this.fd = null;
|
|
33352
32815
|
this.readable = true;
|
|
33353
32816
|
this.paused = false;
|
|
@@ -33393,11 +32856,11 @@ var require_legacy_streams = __commonJS({
|
|
|
33393
32856
|
self._read();
|
|
33394
32857
|
});
|
|
33395
32858
|
}
|
|
33396
|
-
function WriteStream(
|
|
32859
|
+
function WriteStream(path, options) {
|
|
33397
32860
|
if (!(this instanceof WriteStream))
|
|
33398
|
-
return new WriteStream(
|
|
32861
|
+
return new WriteStream(path, options);
|
|
33399
32862
|
Stream.call(this);
|
|
33400
|
-
this.path =
|
|
32863
|
+
this.path = path;
|
|
33401
32864
|
this.fd = null;
|
|
33402
32865
|
this.writable = true;
|
|
33403
32866
|
this.flags = "w";
|
|
@@ -33471,7 +32934,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33471
32934
|
gracefulQueue = "___graceful-fs.queue";
|
|
33472
32935
|
previousSymbol = "___graceful-fs.previous";
|
|
33473
32936
|
}
|
|
33474
|
-
function
|
|
32937
|
+
function noop() {
|
|
33475
32938
|
}
|
|
33476
32939
|
function publishQueue(context, queue2) {
|
|
33477
32940
|
Object.defineProperty(context, gracefulQueue, {
|
|
@@ -33480,7 +32943,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33480
32943
|
}
|
|
33481
32944
|
});
|
|
33482
32945
|
}
|
|
33483
|
-
var debug =
|
|
32946
|
+
var debug = noop;
|
|
33484
32947
|
if (util2.debuglog)
|
|
33485
32948
|
debug = util2.debuglog("gfs4");
|
|
33486
32949
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
@@ -33536,18 +32999,18 @@ var require_graceful_fs = __commonJS({
|
|
|
33536
32999
|
function patch(fs2) {
|
|
33537
33000
|
polyfills(fs2);
|
|
33538
33001
|
fs2.gracefulify = patch;
|
|
33539
|
-
fs2.createReadStream =
|
|
33540
|
-
fs2.createWriteStream =
|
|
33002
|
+
fs2.createReadStream = createReadStream;
|
|
33003
|
+
fs2.createWriteStream = createWriteStream;
|
|
33541
33004
|
var fs$readFile = fs2.readFile;
|
|
33542
33005
|
fs2.readFile = readFile;
|
|
33543
|
-
function readFile(
|
|
33006
|
+
function readFile(path, options, cb) {
|
|
33544
33007
|
if (typeof options === "function")
|
|
33545
33008
|
cb = options, options = null;
|
|
33546
|
-
return go$readFile(
|
|
33547
|
-
function go$readFile(
|
|
33548
|
-
return fs$readFile(
|
|
33009
|
+
return go$readFile(path, options, cb);
|
|
33010
|
+
function go$readFile(path2, options2, cb2, startTime) {
|
|
33011
|
+
return fs$readFile(path2, options2, function(err) {
|
|
33549
33012
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33550
|
-
enqueue([go$readFile, [
|
|
33013
|
+
enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33551
33014
|
else {
|
|
33552
33015
|
if (typeof cb2 === "function")
|
|
33553
33016
|
cb2.apply(this, arguments);
|
|
@@ -33557,14 +33020,14 @@ var require_graceful_fs = __commonJS({
|
|
|
33557
33020
|
}
|
|
33558
33021
|
var fs$writeFile = fs2.writeFile;
|
|
33559
33022
|
fs2.writeFile = writeFile;
|
|
33560
|
-
function writeFile(
|
|
33023
|
+
function writeFile(path, data, options, cb) {
|
|
33561
33024
|
if (typeof options === "function")
|
|
33562
33025
|
cb = options, options = null;
|
|
33563
|
-
return go$writeFile(
|
|
33564
|
-
function go$writeFile(
|
|
33565
|
-
return fs$writeFile(
|
|
33026
|
+
return go$writeFile(path, data, options, cb);
|
|
33027
|
+
function go$writeFile(path2, data2, options2, cb2, startTime) {
|
|
33028
|
+
return fs$writeFile(path2, data2, options2, function(err) {
|
|
33566
33029
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33567
|
-
enqueue([go$writeFile, [
|
|
33030
|
+
enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33568
33031
|
else {
|
|
33569
33032
|
if (typeof cb2 === "function")
|
|
33570
33033
|
cb2.apply(this, arguments);
|
|
@@ -33575,14 +33038,14 @@ var require_graceful_fs = __commonJS({
|
|
|
33575
33038
|
var fs$appendFile = fs2.appendFile;
|
|
33576
33039
|
if (fs$appendFile)
|
|
33577
33040
|
fs2.appendFile = appendFile;
|
|
33578
|
-
function appendFile(
|
|
33041
|
+
function appendFile(path, data, options, cb) {
|
|
33579
33042
|
if (typeof options === "function")
|
|
33580
33043
|
cb = options, options = null;
|
|
33581
|
-
return go$appendFile(
|
|
33582
|
-
function go$appendFile(
|
|
33583
|
-
return fs$appendFile(
|
|
33044
|
+
return go$appendFile(path, data, options, cb);
|
|
33045
|
+
function go$appendFile(path2, data2, options2, cb2, startTime) {
|
|
33046
|
+
return fs$appendFile(path2, data2, options2, function(err) {
|
|
33584
33047
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33585
|
-
enqueue([go$appendFile, [
|
|
33048
|
+
enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33586
33049
|
else {
|
|
33587
33050
|
if (typeof cb2 === "function")
|
|
33588
33051
|
cb2.apply(this, arguments);
|
|
@@ -33613,31 +33076,31 @@ var require_graceful_fs = __commonJS({
|
|
|
33613
33076
|
var fs$readdir = fs2.readdir;
|
|
33614
33077
|
fs2.readdir = readdir;
|
|
33615
33078
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
33616
|
-
function readdir(
|
|
33079
|
+
function readdir(path, options, cb) {
|
|
33617
33080
|
if (typeof options === "function")
|
|
33618
33081
|
cb = options, options = null;
|
|
33619
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(
|
|
33620
|
-
return fs$readdir(
|
|
33621
|
-
|
|
33082
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) {
|
|
33083
|
+
return fs$readdir(path2, fs$readdirCallback(
|
|
33084
|
+
path2,
|
|
33622
33085
|
options2,
|
|
33623
33086
|
cb2,
|
|
33624
33087
|
startTime
|
|
33625
33088
|
));
|
|
33626
|
-
} : function go$readdir2(
|
|
33627
|
-
return fs$readdir(
|
|
33628
|
-
|
|
33089
|
+
} : function go$readdir2(path2, options2, cb2, startTime) {
|
|
33090
|
+
return fs$readdir(path2, options2, fs$readdirCallback(
|
|
33091
|
+
path2,
|
|
33629
33092
|
options2,
|
|
33630
33093
|
cb2,
|
|
33631
33094
|
startTime
|
|
33632
33095
|
));
|
|
33633
33096
|
};
|
|
33634
|
-
return go$readdir(
|
|
33635
|
-
function fs$readdirCallback(
|
|
33097
|
+
return go$readdir(path, options, cb);
|
|
33098
|
+
function fs$readdirCallback(path2, options2, cb2, startTime) {
|
|
33636
33099
|
return function(err, files) {
|
|
33637
33100
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33638
33101
|
enqueue([
|
|
33639
33102
|
go$readdir,
|
|
33640
|
-
[
|
|
33103
|
+
[path2, options2, cb2],
|
|
33641
33104
|
err,
|
|
33642
33105
|
startTime || Date.now(),
|
|
33643
33106
|
Date.now()
|
|
@@ -33708,7 +33171,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33708
33171
|
enumerable: true,
|
|
33709
33172
|
configurable: true
|
|
33710
33173
|
});
|
|
33711
|
-
function ReadStream(
|
|
33174
|
+
function ReadStream(path, options) {
|
|
33712
33175
|
if (this instanceof ReadStream)
|
|
33713
33176
|
return fs$ReadStream.apply(this, arguments), this;
|
|
33714
33177
|
else
|
|
@@ -33728,7 +33191,7 @@ var require_graceful_fs = __commonJS({
|
|
|
33728
33191
|
}
|
|
33729
33192
|
});
|
|
33730
33193
|
}
|
|
33731
|
-
function WriteStream(
|
|
33194
|
+
function WriteStream(path, options) {
|
|
33732
33195
|
if (this instanceof WriteStream)
|
|
33733
33196
|
return fs$WriteStream.apply(this, arguments), this;
|
|
33734
33197
|
else
|
|
@@ -33746,22 +33209,22 @@ var require_graceful_fs = __commonJS({
|
|
|
33746
33209
|
}
|
|
33747
33210
|
});
|
|
33748
33211
|
}
|
|
33749
|
-
function
|
|
33750
|
-
return new fs2.ReadStream(
|
|
33212
|
+
function createReadStream(path, options) {
|
|
33213
|
+
return new fs2.ReadStream(path, options);
|
|
33751
33214
|
}
|
|
33752
|
-
function
|
|
33753
|
-
return new fs2.WriteStream(
|
|
33215
|
+
function createWriteStream(path, options) {
|
|
33216
|
+
return new fs2.WriteStream(path, options);
|
|
33754
33217
|
}
|
|
33755
33218
|
var fs$open = fs2.open;
|
|
33756
33219
|
fs2.open = open;
|
|
33757
|
-
function open(
|
|
33220
|
+
function open(path, flags, mode, cb) {
|
|
33758
33221
|
if (typeof mode === "function")
|
|
33759
33222
|
cb = mode, mode = null;
|
|
33760
|
-
return go$open(
|
|
33761
|
-
function go$open(
|
|
33762
|
-
return fs$open(
|
|
33223
|
+
return go$open(path, flags, mode, cb);
|
|
33224
|
+
function go$open(path2, flags2, mode2, cb2, startTime) {
|
|
33225
|
+
return fs$open(path2, flags2, mode2, function(err, fd) {
|
|
33763
33226
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
33764
|
-
enqueue([go$open, [
|
|
33227
|
+
enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
33765
33228
|
else {
|
|
33766
33229
|
if (typeof cb2 === "function")
|
|
33767
33230
|
cb2.apply(this, arguments);
|
|
@@ -33944,10 +33407,10 @@ var require_fs2 = __commonJS({
|
|
|
33944
33407
|
var require_utils3 = __commonJS({
|
|
33945
33408
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
33946
33409
|
"use strict";
|
|
33947
|
-
var
|
|
33410
|
+
var path = require("path");
|
|
33948
33411
|
module2.exports.checkPath = function checkPath(pth) {
|
|
33949
33412
|
if (process.platform === "win32") {
|
|
33950
|
-
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(
|
|
33413
|
+
const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, ""));
|
|
33951
33414
|
if (pathHasInvalidWinCharacters) {
|
|
33952
33415
|
const error = new Error(`Path contains invalid characters: ${pth}`);
|
|
33953
33416
|
error.code = "EINVAL";
|
|
@@ -34012,8 +33475,8 @@ var require_path_exists = __commonJS({
|
|
|
34012
33475
|
"use strict";
|
|
34013
33476
|
var u = require_universalify().fromPromise;
|
|
34014
33477
|
var fs = require_fs2();
|
|
34015
|
-
function pathExists(
|
|
34016
|
-
return fs.access(
|
|
33478
|
+
function pathExists(path) {
|
|
33479
|
+
return fs.access(path).then(() => true).catch(() => false);
|
|
34017
33480
|
}
|
|
34018
33481
|
module2.exports = {
|
|
34019
33482
|
pathExists: u(pathExists),
|
|
@@ -34028,8 +33491,8 @@ var require_utimes = __commonJS({
|
|
|
34028
33491
|
"use strict";
|
|
34029
33492
|
var fs = require_fs2();
|
|
34030
33493
|
var u = require_universalify().fromPromise;
|
|
34031
|
-
async function utimesMillis(
|
|
34032
|
-
const fd = await fs.open(
|
|
33494
|
+
async function utimesMillis(path, atime, mtime) {
|
|
33495
|
+
const fd = await fs.open(path, "r+");
|
|
34033
33496
|
let closeErr = null;
|
|
34034
33497
|
try {
|
|
34035
33498
|
await fs.futimes(fd, atime, mtime);
|
|
@@ -34044,8 +33507,8 @@ var require_utimes = __commonJS({
|
|
|
34044
33507
|
throw closeErr;
|
|
34045
33508
|
}
|
|
34046
33509
|
}
|
|
34047
|
-
function utimesMillisSync(
|
|
34048
|
-
const fd = fs.openSync(
|
|
33510
|
+
function utimesMillisSync(path, atime, mtime) {
|
|
33511
|
+
const fd = fs.openSync(path, "r+");
|
|
34049
33512
|
fs.futimesSync(fd, atime, mtime);
|
|
34050
33513
|
return fs.closeSync(fd);
|
|
34051
33514
|
}
|
|
@@ -34061,7 +33524,7 @@ var require_stat = __commonJS({
|
|
|
34061
33524
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/util/stat.js"(exports2, module2) {
|
|
34062
33525
|
"use strict";
|
|
34063
33526
|
var fs = require_fs2();
|
|
34064
|
-
var
|
|
33527
|
+
var path = require("path");
|
|
34065
33528
|
var u = require_universalify().fromPromise;
|
|
34066
33529
|
function getStats(src, dest, opts) {
|
|
34067
33530
|
const statFunc = opts.dereference ? (file) => fs.stat(file, { bigint: true }) : (file) => fs.lstat(file, { bigint: true });
|
|
@@ -34091,8 +33554,8 @@ var require_stat = __commonJS({
|
|
|
34091
33554
|
const { srcStat, destStat } = await getStats(src, dest, opts);
|
|
34092
33555
|
if (destStat) {
|
|
34093
33556
|
if (areIdentical(srcStat, destStat)) {
|
|
34094
|
-
const srcBaseName =
|
|
34095
|
-
const destBaseName =
|
|
33557
|
+
const srcBaseName = path.basename(src);
|
|
33558
|
+
const destBaseName = path.basename(dest);
|
|
34096
33559
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
34097
33560
|
return { srcStat, destStat, isChangingCase: true };
|
|
34098
33561
|
}
|
|
@@ -34114,8 +33577,8 @@ var require_stat = __commonJS({
|
|
|
34114
33577
|
const { srcStat, destStat } = getStatsSync(src, dest, opts);
|
|
34115
33578
|
if (destStat) {
|
|
34116
33579
|
if (areIdentical(srcStat, destStat)) {
|
|
34117
|
-
const srcBaseName =
|
|
34118
|
-
const destBaseName =
|
|
33580
|
+
const srcBaseName = path.basename(src);
|
|
33581
|
+
const destBaseName = path.basename(dest);
|
|
34119
33582
|
if (funcName === "move" && srcBaseName !== destBaseName && srcBaseName.toLowerCase() === destBaseName.toLowerCase()) {
|
|
34120
33583
|
return { srcStat, destStat, isChangingCase: true };
|
|
34121
33584
|
}
|
|
@@ -34134,9 +33597,9 @@ var require_stat = __commonJS({
|
|
|
34134
33597
|
return { srcStat, destStat };
|
|
34135
33598
|
}
|
|
34136
33599
|
async function checkParentPaths(src, srcStat, dest, funcName) {
|
|
34137
|
-
const srcParent =
|
|
34138
|
-
const destParent =
|
|
34139
|
-
if (destParent === srcParent || destParent ===
|
|
33600
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
33601
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
33602
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
34140
33603
|
return;
|
|
34141
33604
|
let destStat;
|
|
34142
33605
|
try {
|
|
@@ -34152,9 +33615,9 @@ var require_stat = __commonJS({
|
|
|
34152
33615
|
return checkParentPaths(src, srcStat, destParent, funcName);
|
|
34153
33616
|
}
|
|
34154
33617
|
function checkParentPathsSync(src, srcStat, dest, funcName) {
|
|
34155
|
-
const srcParent =
|
|
34156
|
-
const destParent =
|
|
34157
|
-
if (destParent === srcParent || destParent ===
|
|
33618
|
+
const srcParent = path.resolve(path.dirname(src));
|
|
33619
|
+
const destParent = path.resolve(path.dirname(dest));
|
|
33620
|
+
if (destParent === srcParent || destParent === path.parse(destParent).root)
|
|
34158
33621
|
return;
|
|
34159
33622
|
let destStat;
|
|
34160
33623
|
try {
|
|
@@ -34173,8 +33636,8 @@ var require_stat = __commonJS({
|
|
|
34173
33636
|
return destStat.ino && destStat.dev && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev;
|
|
34174
33637
|
}
|
|
34175
33638
|
function isSrcSubdir(src, dest) {
|
|
34176
|
-
const srcArr =
|
|
34177
|
-
const destArr =
|
|
33639
|
+
const srcArr = path.resolve(src).split(path.sep).filter((i) => i);
|
|
33640
|
+
const destArr = path.resolve(dest).split(path.sep).filter((i) => i);
|
|
34178
33641
|
return srcArr.every((cur, i) => destArr[i] === cur);
|
|
34179
33642
|
}
|
|
34180
33643
|
function errMsg(src, dest, funcName) {
|
|
@@ -34199,7 +33662,7 @@ var require_copy = __commonJS({
|
|
|
34199
33662
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
|
|
34200
33663
|
"use strict";
|
|
34201
33664
|
var fs = require_fs2();
|
|
34202
|
-
var
|
|
33665
|
+
var path = require("path");
|
|
34203
33666
|
var { mkdirs } = require_mkdirs();
|
|
34204
33667
|
var { pathExists } = require_path_exists();
|
|
34205
33668
|
var { utimesMillis } = require_utimes();
|
|
@@ -34222,7 +33685,7 @@ var require_copy = __commonJS({
|
|
|
34222
33685
|
const include = await runFilter(src, dest, opts);
|
|
34223
33686
|
if (!include)
|
|
34224
33687
|
return;
|
|
34225
|
-
const destParent =
|
|
33688
|
+
const destParent = path.dirname(dest);
|
|
34226
33689
|
const dirExists = await pathExists(destParent);
|
|
34227
33690
|
if (!dirExists) {
|
|
34228
33691
|
await mkdirs(destParent);
|
|
@@ -34283,8 +33746,8 @@ var require_copy = __commonJS({
|
|
|
34283
33746
|
}
|
|
34284
33747
|
const items = await fs.readdir(src);
|
|
34285
33748
|
await Promise.all(items.map(async (item) => {
|
|
34286
|
-
const srcItem =
|
|
34287
|
-
const destItem =
|
|
33749
|
+
const srcItem = path.join(src, item);
|
|
33750
|
+
const destItem = path.join(dest, item);
|
|
34288
33751
|
const include = await runFilter(srcItem, destItem, opts);
|
|
34289
33752
|
if (!include)
|
|
34290
33753
|
return;
|
|
@@ -34298,7 +33761,7 @@ var require_copy = __commonJS({
|
|
|
34298
33761
|
async function onLink(destStat, src, dest, opts) {
|
|
34299
33762
|
let resolvedSrc = await fs.readlink(src);
|
|
34300
33763
|
if (opts.dereference) {
|
|
34301
|
-
resolvedSrc =
|
|
33764
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34302
33765
|
}
|
|
34303
33766
|
if (!destStat) {
|
|
34304
33767
|
return fs.symlink(resolvedSrc, dest);
|
|
@@ -34312,7 +33775,7 @@ var require_copy = __commonJS({
|
|
|
34312
33775
|
throw e;
|
|
34313
33776
|
}
|
|
34314
33777
|
if (opts.dereference) {
|
|
34315
|
-
resolvedDest =
|
|
33778
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34316
33779
|
}
|
|
34317
33780
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34318
33781
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -34332,7 +33795,7 @@ var require_copy_sync = __commonJS({
|
|
|
34332
33795
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/copy/copy-sync.js"(exports2, module2) {
|
|
34333
33796
|
"use strict";
|
|
34334
33797
|
var fs = require_graceful_fs();
|
|
34335
|
-
var
|
|
33798
|
+
var path = require("path");
|
|
34336
33799
|
var mkdirsSync = require_mkdirs().mkdirsSync;
|
|
34337
33800
|
var utimesMillisSync = require_utimes().utimesMillisSync;
|
|
34338
33801
|
var stat = require_stat();
|
|
@@ -34354,7 +33817,7 @@ var require_copy_sync = __commonJS({
|
|
|
34354
33817
|
stat.checkParentPathsSync(src, srcStat, dest, "copy");
|
|
34355
33818
|
if (opts.filter && !opts.filter(src, dest))
|
|
34356
33819
|
return;
|
|
34357
|
-
const destParent =
|
|
33820
|
+
const destParent = path.dirname(dest);
|
|
34358
33821
|
if (!fs.existsSync(destParent))
|
|
34359
33822
|
mkdirsSync(destParent);
|
|
34360
33823
|
return getStats(destStat, src, dest, opts);
|
|
@@ -34425,8 +33888,8 @@ var require_copy_sync = __commonJS({
|
|
|
34425
33888
|
fs.readdirSync(src).forEach((item) => copyDirItem(item, src, dest, opts));
|
|
34426
33889
|
}
|
|
34427
33890
|
function copyDirItem(item, src, dest, opts) {
|
|
34428
|
-
const srcItem =
|
|
34429
|
-
const destItem =
|
|
33891
|
+
const srcItem = path.join(src, item);
|
|
33892
|
+
const destItem = path.join(dest, item);
|
|
34430
33893
|
if (opts.filter && !opts.filter(srcItem, destItem))
|
|
34431
33894
|
return;
|
|
34432
33895
|
const { destStat } = stat.checkPathsSync(srcItem, destItem, "copy", opts);
|
|
@@ -34435,7 +33898,7 @@ var require_copy_sync = __commonJS({
|
|
|
34435
33898
|
function onLink(destStat, src, dest, opts) {
|
|
34436
33899
|
let resolvedSrc = fs.readlinkSync(src);
|
|
34437
33900
|
if (opts.dereference) {
|
|
34438
|
-
resolvedSrc =
|
|
33901
|
+
resolvedSrc = path.resolve(process.cwd(), resolvedSrc);
|
|
34439
33902
|
}
|
|
34440
33903
|
if (!destStat) {
|
|
34441
33904
|
return fs.symlinkSync(resolvedSrc, dest);
|
|
@@ -34449,7 +33912,7 @@ var require_copy_sync = __commonJS({
|
|
|
34449
33912
|
throw err;
|
|
34450
33913
|
}
|
|
34451
33914
|
if (opts.dereference) {
|
|
34452
|
-
resolvedDest =
|
|
33915
|
+
resolvedDest = path.resolve(process.cwd(), resolvedDest);
|
|
34453
33916
|
}
|
|
34454
33917
|
if (stat.isSrcSubdir(resolvedSrc, resolvedDest)) {
|
|
34455
33918
|
throw new Error(`Cannot copy '${resolvedSrc}' to a subdirectory of itself, '${resolvedDest}'.`);
|
|
@@ -34486,11 +33949,11 @@ var require_remove = __commonJS({
|
|
|
34486
33949
|
"use strict";
|
|
34487
33950
|
var fs = require_graceful_fs();
|
|
34488
33951
|
var u = require_universalify().fromCallback;
|
|
34489
|
-
function remove(
|
|
34490
|
-
fs.rm(
|
|
33952
|
+
function remove(path, callback) {
|
|
33953
|
+
fs.rm(path, { recursive: true, force: true }, callback);
|
|
34491
33954
|
}
|
|
34492
|
-
function removeSync(
|
|
34493
|
-
fs.rmSync(
|
|
33955
|
+
function removeSync(path) {
|
|
33956
|
+
fs.rmSync(path, { recursive: true, force: true });
|
|
34494
33957
|
}
|
|
34495
33958
|
module2.exports = {
|
|
34496
33959
|
remove: u(remove),
|
|
@@ -34505,7 +33968,7 @@ var require_empty2 = __commonJS({
|
|
|
34505
33968
|
"use strict";
|
|
34506
33969
|
var u = require_universalify().fromPromise;
|
|
34507
33970
|
var fs = require_fs2();
|
|
34508
|
-
var
|
|
33971
|
+
var path = require("path");
|
|
34509
33972
|
var mkdir = require_mkdirs();
|
|
34510
33973
|
var remove = require_remove();
|
|
34511
33974
|
var emptyDir = u(async function emptyDir2(dir) {
|
|
@@ -34515,7 +33978,7 @@ var require_empty2 = __commonJS({
|
|
|
34515
33978
|
} catch {
|
|
34516
33979
|
return mkdir.mkdirs(dir);
|
|
34517
33980
|
}
|
|
34518
|
-
return Promise.all(items.map((item) => remove.remove(
|
|
33981
|
+
return Promise.all(items.map((item) => remove.remove(path.join(dir, item))));
|
|
34519
33982
|
});
|
|
34520
33983
|
function emptyDirSync(dir) {
|
|
34521
33984
|
let items;
|
|
@@ -34525,7 +33988,7 @@ var require_empty2 = __commonJS({
|
|
|
34525
33988
|
return mkdir.mkdirsSync(dir);
|
|
34526
33989
|
}
|
|
34527
33990
|
items.forEach((item) => {
|
|
34528
|
-
item =
|
|
33991
|
+
item = path.join(dir, item);
|
|
34529
33992
|
remove.removeSync(item);
|
|
34530
33993
|
});
|
|
34531
33994
|
}
|
|
@@ -34543,7 +34006,7 @@ var require_file = __commonJS({
|
|
|
34543
34006
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
|
|
34544
34007
|
"use strict";
|
|
34545
34008
|
var u = require_universalify().fromPromise;
|
|
34546
|
-
var
|
|
34009
|
+
var path = require("path");
|
|
34547
34010
|
var fs = require_fs2();
|
|
34548
34011
|
var mkdir = require_mkdirs();
|
|
34549
34012
|
async function createFile(file) {
|
|
@@ -34554,7 +34017,7 @@ var require_file = __commonJS({
|
|
|
34554
34017
|
}
|
|
34555
34018
|
if (stats && stats.isFile())
|
|
34556
34019
|
return;
|
|
34557
|
-
const dir =
|
|
34020
|
+
const dir = path.dirname(file);
|
|
34558
34021
|
let dirStats = null;
|
|
34559
34022
|
try {
|
|
34560
34023
|
dirStats = await fs.stat(dir);
|
|
@@ -34581,7 +34044,7 @@ var require_file = __commonJS({
|
|
|
34581
34044
|
}
|
|
34582
34045
|
if (stats && stats.isFile())
|
|
34583
34046
|
return;
|
|
34584
|
-
const dir =
|
|
34047
|
+
const dir = path.dirname(file);
|
|
34585
34048
|
try {
|
|
34586
34049
|
if (!fs.statSync(dir).isDirectory()) {
|
|
34587
34050
|
fs.readdirSync(dir);
|
|
@@ -34606,7 +34069,7 @@ var require_link = __commonJS({
|
|
|
34606
34069
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
|
|
34607
34070
|
"use strict";
|
|
34608
34071
|
var u = require_universalify().fromPromise;
|
|
34609
|
-
var
|
|
34072
|
+
var path = require("path");
|
|
34610
34073
|
var fs = require_fs2();
|
|
34611
34074
|
var mkdir = require_mkdirs();
|
|
34612
34075
|
var { pathExists } = require_path_exists();
|
|
@@ -34626,7 +34089,7 @@ var require_link = __commonJS({
|
|
|
34626
34089
|
}
|
|
34627
34090
|
if (dstStat && areIdentical(srcStat, dstStat))
|
|
34628
34091
|
return;
|
|
34629
|
-
const dir =
|
|
34092
|
+
const dir = path.dirname(dstpath);
|
|
34630
34093
|
const dirExists = await pathExists(dir);
|
|
34631
34094
|
if (!dirExists) {
|
|
34632
34095
|
await mkdir.mkdirs(dir);
|
|
@@ -34647,7 +34110,7 @@ var require_link = __commonJS({
|
|
|
34647
34110
|
err.message = err.message.replace("lstat", "ensureLink");
|
|
34648
34111
|
throw err;
|
|
34649
34112
|
}
|
|
34650
|
-
const dir =
|
|
34113
|
+
const dir = path.dirname(dstpath);
|
|
34651
34114
|
const dirExists = fs.existsSync(dir);
|
|
34652
34115
|
if (dirExists)
|
|
34653
34116
|
return fs.linkSync(srcpath, dstpath);
|
|
@@ -34665,12 +34128,12 @@ var require_link = __commonJS({
|
|
|
34665
34128
|
var require_symlink_paths = __commonJS({
|
|
34666
34129
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
|
|
34667
34130
|
"use strict";
|
|
34668
|
-
var
|
|
34131
|
+
var path = require("path");
|
|
34669
34132
|
var fs = require_fs2();
|
|
34670
34133
|
var { pathExists } = require_path_exists();
|
|
34671
34134
|
var u = require_universalify().fromPromise;
|
|
34672
34135
|
async function symlinkPaths(srcpath, dstpath) {
|
|
34673
|
-
if (
|
|
34136
|
+
if (path.isAbsolute(srcpath)) {
|
|
34674
34137
|
try {
|
|
34675
34138
|
await fs.lstat(srcpath);
|
|
34676
34139
|
} catch (err) {
|
|
@@ -34682,8 +34145,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34682
34145
|
toDst: srcpath
|
|
34683
34146
|
};
|
|
34684
34147
|
}
|
|
34685
|
-
const dstdir =
|
|
34686
|
-
const relativeToDst =
|
|
34148
|
+
const dstdir = path.dirname(dstpath);
|
|
34149
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34687
34150
|
const exists = await pathExists(relativeToDst);
|
|
34688
34151
|
if (exists) {
|
|
34689
34152
|
return {
|
|
@@ -34699,11 +34162,11 @@ var require_symlink_paths = __commonJS({
|
|
|
34699
34162
|
}
|
|
34700
34163
|
return {
|
|
34701
34164
|
toCwd: srcpath,
|
|
34702
|
-
toDst:
|
|
34165
|
+
toDst: path.relative(dstdir, srcpath)
|
|
34703
34166
|
};
|
|
34704
34167
|
}
|
|
34705
34168
|
function symlinkPathsSync(srcpath, dstpath) {
|
|
34706
|
-
if (
|
|
34169
|
+
if (path.isAbsolute(srcpath)) {
|
|
34707
34170
|
const exists2 = fs.existsSync(srcpath);
|
|
34708
34171
|
if (!exists2)
|
|
34709
34172
|
throw new Error("absolute srcpath does not exist");
|
|
@@ -34712,8 +34175,8 @@ var require_symlink_paths = __commonJS({
|
|
|
34712
34175
|
toDst: srcpath
|
|
34713
34176
|
};
|
|
34714
34177
|
}
|
|
34715
|
-
const dstdir =
|
|
34716
|
-
const relativeToDst =
|
|
34178
|
+
const dstdir = path.dirname(dstpath);
|
|
34179
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
34717
34180
|
const exists = fs.existsSync(relativeToDst);
|
|
34718
34181
|
if (exists) {
|
|
34719
34182
|
return {
|
|
@@ -34726,7 +34189,7 @@ var require_symlink_paths = __commonJS({
|
|
|
34726
34189
|
throw new Error("relative srcpath does not exist");
|
|
34727
34190
|
return {
|
|
34728
34191
|
toCwd: srcpath,
|
|
34729
|
-
toDst:
|
|
34192
|
+
toDst: path.relative(dstdir, srcpath)
|
|
34730
34193
|
};
|
|
34731
34194
|
}
|
|
34732
34195
|
module2.exports = {
|
|
@@ -34776,7 +34239,7 @@ var require_symlink = __commonJS({
|
|
|
34776
34239
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
|
|
34777
34240
|
"use strict";
|
|
34778
34241
|
var u = require_universalify().fromPromise;
|
|
34779
|
-
var
|
|
34242
|
+
var path = require("path");
|
|
34780
34243
|
var fs = require_fs2();
|
|
34781
34244
|
var { mkdirs, mkdirsSync } = require_mkdirs();
|
|
34782
34245
|
var { symlinkPaths, symlinkPathsSync } = require_symlink_paths();
|
|
@@ -34800,7 +34263,7 @@ var require_symlink = __commonJS({
|
|
|
34800
34263
|
const relative = await symlinkPaths(srcpath, dstpath);
|
|
34801
34264
|
srcpath = relative.toDst;
|
|
34802
34265
|
const toType = await symlinkType(relative.toCwd, type);
|
|
34803
|
-
const dir =
|
|
34266
|
+
const dir = path.dirname(dstpath);
|
|
34804
34267
|
if (!await pathExists(dir)) {
|
|
34805
34268
|
await mkdirs(dir);
|
|
34806
34269
|
}
|
|
@@ -34821,7 +34284,7 @@ var require_symlink = __commonJS({
|
|
|
34821
34284
|
const relative = symlinkPathsSync(srcpath, dstpath);
|
|
34822
34285
|
srcpath = relative.toDst;
|
|
34823
34286
|
type = symlinkTypeSync(relative.toCwd, type);
|
|
34824
|
-
const dir =
|
|
34287
|
+
const dir = path.dirname(dstpath);
|
|
34825
34288
|
const exists = fs.existsSync(dir);
|
|
34826
34289
|
if (exists)
|
|
34827
34290
|
return fs.symlinkSync(srcpath, dstpath, type);
|
|
@@ -34912,7 +34375,7 @@ var require_jsonfile = __commonJS({
|
|
|
34912
34375
|
return obj;
|
|
34913
34376
|
}
|
|
34914
34377
|
var readFile = universalify.fromPromise(_readFile);
|
|
34915
|
-
function
|
|
34378
|
+
function readFileSync2(file, options = {}) {
|
|
34916
34379
|
if (typeof options === "string") {
|
|
34917
34380
|
options = { encoding: options };
|
|
34918
34381
|
}
|
|
@@ -34944,7 +34407,7 @@ var require_jsonfile = __commonJS({
|
|
|
34944
34407
|
}
|
|
34945
34408
|
var jsonfile = {
|
|
34946
34409
|
readFile,
|
|
34947
|
-
readFileSync:
|
|
34410
|
+
readFileSync: readFileSync2,
|
|
34948
34411
|
writeFile,
|
|
34949
34412
|
writeFileSync
|
|
34950
34413
|
};
|
|
@@ -34973,18 +34436,18 @@ var require_output_file = __commonJS({
|
|
|
34973
34436
|
"use strict";
|
|
34974
34437
|
var u = require_universalify().fromPromise;
|
|
34975
34438
|
var fs = require_fs2();
|
|
34976
|
-
var
|
|
34439
|
+
var path = require("path");
|
|
34977
34440
|
var mkdir = require_mkdirs();
|
|
34978
34441
|
var pathExists = require_path_exists().pathExists;
|
|
34979
34442
|
async function outputFile(file, data, encoding = "utf-8") {
|
|
34980
|
-
const dir =
|
|
34443
|
+
const dir = path.dirname(file);
|
|
34981
34444
|
if (!await pathExists(dir)) {
|
|
34982
34445
|
await mkdir.mkdirs(dir);
|
|
34983
34446
|
}
|
|
34984
34447
|
return fs.writeFile(file, data, encoding);
|
|
34985
34448
|
}
|
|
34986
34449
|
function outputFileSync(file, ...args) {
|
|
34987
|
-
const dir =
|
|
34450
|
+
const dir = path.dirname(file);
|
|
34988
34451
|
if (!fs.existsSync(dir)) {
|
|
34989
34452
|
mkdir.mkdirsSync(dir);
|
|
34990
34453
|
}
|
|
@@ -35048,7 +34511,7 @@ var require_move = __commonJS({
|
|
|
35048
34511
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move.js"(exports2, module2) {
|
|
35049
34512
|
"use strict";
|
|
35050
34513
|
var fs = require_fs2();
|
|
35051
|
-
var
|
|
34514
|
+
var path = require("path");
|
|
35052
34515
|
var { copy } = require_copy2();
|
|
35053
34516
|
var { remove } = require_remove();
|
|
35054
34517
|
var { mkdirp } = require_mkdirs();
|
|
@@ -35058,8 +34521,8 @@ var require_move = __commonJS({
|
|
|
35058
34521
|
const overwrite = opts.overwrite || opts.clobber || false;
|
|
35059
34522
|
const { srcStat, isChangingCase = false } = await stat.checkPaths(src, dest, "move", opts);
|
|
35060
34523
|
await stat.checkParentPaths(src, srcStat, dest, "move");
|
|
35061
|
-
const destParent =
|
|
35062
|
-
const parsedParentPath =
|
|
34524
|
+
const destParent = path.dirname(dest);
|
|
34525
|
+
const parsedParentPath = path.parse(destParent);
|
|
35063
34526
|
if (parsedParentPath.root !== destParent) {
|
|
35064
34527
|
await mkdirp(destParent);
|
|
35065
34528
|
}
|
|
@@ -35100,7 +34563,7 @@ var require_move_sync = __commonJS({
|
|
|
35100
34563
|
"node_modules/.pnpm/fs-extra@11.2.0/node_modules/fs-extra/lib/move/move-sync.js"(exports2, module2) {
|
|
35101
34564
|
"use strict";
|
|
35102
34565
|
var fs = require_graceful_fs();
|
|
35103
|
-
var
|
|
34566
|
+
var path = require("path");
|
|
35104
34567
|
var copySync = require_copy2().copySync;
|
|
35105
34568
|
var removeSync = require_remove().removeSync;
|
|
35106
34569
|
var mkdirpSync = require_mkdirs().mkdirpSync;
|
|
@@ -35111,12 +34574,12 @@ var require_move_sync = __commonJS({
|
|
|
35111
34574
|
const { srcStat, isChangingCase = false } = stat.checkPathsSync(src, dest, "move", opts);
|
|
35112
34575
|
stat.checkParentPathsSync(src, srcStat, dest, "move");
|
|
35113
34576
|
if (!isParentRoot(dest))
|
|
35114
|
-
mkdirpSync(
|
|
34577
|
+
mkdirpSync(path.dirname(dest));
|
|
35115
34578
|
return doRename(src, dest, overwrite, isChangingCase);
|
|
35116
34579
|
}
|
|
35117
34580
|
function isParentRoot(dest) {
|
|
35118
|
-
const parent =
|
|
35119
|
-
const parsedPath =
|
|
34581
|
+
const parent = path.dirname(dest);
|
|
34582
|
+
const parsedPath = path.parse(parent);
|
|
35120
34583
|
return parsedPath.root === parent;
|
|
35121
34584
|
}
|
|
35122
34585
|
function doRename(src, dest, overwrite, isChangingCase) {
|
|
@@ -35610,16 +35073,16 @@ var require_buildable_libs_utils = __commonJS({
|
|
|
35610
35073
|
dependencies.forEach((dep) => {
|
|
35611
35074
|
if (dep.outputs && dep.outputs.length > 0) {
|
|
35612
35075
|
paths[dep.name] = dep.outputs;
|
|
35613
|
-
for (const
|
|
35076
|
+
for (const path of pathsKeys) {
|
|
35614
35077
|
const nestedName = `${dep.name}/`;
|
|
35615
|
-
if (
|
|
35616
|
-
const nestedPart =
|
|
35078
|
+
if (path.startsWith(nestedName)) {
|
|
35079
|
+
const nestedPart = path.slice(nestedName.length);
|
|
35617
35080
|
let mappedPaths = dep.outputs.map((output) => `${output}/${nestedPart}`);
|
|
35618
35081
|
const { root } = dep.node?.data || {};
|
|
35619
35082
|
if (root) {
|
|
35620
|
-
mappedPaths = mappedPaths.concat(paths[
|
|
35083
|
+
mappedPaths = mappedPaths.concat(paths[path].flatMap((path2) => dep.outputs.map((output) => path2.replace(root, output))));
|
|
35621
35084
|
}
|
|
35622
|
-
paths[
|
|
35085
|
+
paths[path] = mappedPaths;
|
|
35623
35086
|
}
|
|
35624
35087
|
}
|
|
35625
35088
|
}
|
|
@@ -35753,7 +35216,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35753
35216
|
"node_modules/.pnpm/minimatch@3.0.5/node_modules/minimatch/minimatch.js"(exports2, module2) {
|
|
35754
35217
|
module2.exports = minimatch;
|
|
35755
35218
|
minimatch.Minimatch = Minimatch;
|
|
35756
|
-
var
|
|
35219
|
+
var path = (() => {
|
|
35757
35220
|
try {
|
|
35758
35221
|
return require("path");
|
|
35759
35222
|
} catch (e) {
|
|
@@ -35761,7 +35224,7 @@ var require_minimatch2 = __commonJS({
|
|
|
35761
35224
|
})() || {
|
|
35762
35225
|
sep: "/"
|
|
35763
35226
|
};
|
|
35764
|
-
minimatch.sep =
|
|
35227
|
+
minimatch.sep = path.sep;
|
|
35765
35228
|
var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
35766
35229
|
var expand = require_brace_expansion();
|
|
35767
35230
|
var plTypes = {
|
|
@@ -35855,8 +35318,8 @@ var require_minimatch2 = __commonJS({
|
|
|
35855
35318
|
if (!options)
|
|
35856
35319
|
options = {};
|
|
35857
35320
|
pattern = pattern.trim();
|
|
35858
|
-
if (
|
|
35859
|
-
pattern = pattern.split(
|
|
35321
|
+
if (path.sep !== "/") {
|
|
35322
|
+
pattern = pattern.split(path.sep).join("/");
|
|
35860
35323
|
}
|
|
35861
35324
|
this.options = options;
|
|
35862
35325
|
this.set = [];
|
|
@@ -36229,8 +35692,8 @@ var require_minimatch2 = __commonJS({
|
|
|
36229
35692
|
if (f === "/" && partial)
|
|
36230
35693
|
return true;
|
|
36231
35694
|
var options = this.options;
|
|
36232
|
-
if (
|
|
36233
|
-
f = f.split(
|
|
35695
|
+
if (path.sep !== "/") {
|
|
35696
|
+
f = f.split(path.sep).join("/");
|
|
36234
35697
|
}
|
|
36235
35698
|
f = f.split(slashSplit);
|
|
36236
35699
|
this.debug(this.pattern, "split", f);
|
|
@@ -36412,7 +35875,7 @@ var require_path = __commonJS({
|
|
|
36412
35875
|
"use strict";
|
|
36413
35876
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
36414
35877
|
exports2.removeLeadingDotSegment = exports2.escape = exports2.makeAbsolute = exports2.unixify = void 0;
|
|
36415
|
-
var
|
|
35878
|
+
var path = require("path");
|
|
36416
35879
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
36417
35880
|
var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
36418
35881
|
function unixify(filepath) {
|
|
@@ -36420,7 +35883,7 @@ var require_path = __commonJS({
|
|
|
36420
35883
|
}
|
|
36421
35884
|
exports2.unixify = unixify;
|
|
36422
35885
|
function makeAbsolute(cwd, filepath) {
|
|
36423
|
-
return
|
|
35886
|
+
return path.resolve(cwd, filepath);
|
|
36424
35887
|
}
|
|
36425
35888
|
exports2.makeAbsolute = makeAbsolute;
|
|
36426
35889
|
function escape(pattern) {
|
|
@@ -37417,7 +36880,7 @@ var require_constants2 = __commonJS({
|
|
|
37417
36880
|
});
|
|
37418
36881
|
|
|
37419
36882
|
// node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js
|
|
37420
|
-
var
|
|
36883
|
+
var require_parse2 = __commonJS({
|
|
37421
36884
|
"node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports2, module2) {
|
|
37422
36885
|
"use strict";
|
|
37423
36886
|
var stringify = require_stringify();
|
|
@@ -37667,7 +37130,7 @@ var require_braces = __commonJS({
|
|
|
37667
37130
|
var stringify = require_stringify();
|
|
37668
37131
|
var compile = require_compile();
|
|
37669
37132
|
var expand = require_expand2();
|
|
37670
|
-
var parse =
|
|
37133
|
+
var parse = require_parse2();
|
|
37671
37134
|
var braces = (input, options = {}) => {
|
|
37672
37135
|
let output = [];
|
|
37673
37136
|
if (Array.isArray(input)) {
|
|
@@ -37727,7 +37190,7 @@ var require_braces = __commonJS({
|
|
|
37727
37190
|
var require_constants3 = __commonJS({
|
|
37728
37191
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports2, module2) {
|
|
37729
37192
|
"use strict";
|
|
37730
|
-
var
|
|
37193
|
+
var path = require("path");
|
|
37731
37194
|
var WIN_SLASH = "\\\\/";
|
|
37732
37195
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
37733
37196
|
var DOT_LITERAL = "\\.";
|
|
@@ -37897,7 +37360,7 @@ var require_constants3 = __commonJS({
|
|
|
37897
37360
|
/* | */
|
|
37898
37361
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
37899
37362
|
/* \uFEFF */
|
|
37900
|
-
SEP:
|
|
37363
|
+
SEP: path.sep,
|
|
37901
37364
|
/**
|
|
37902
37365
|
* Create EXTGLOB_CHARS
|
|
37903
37366
|
*/
|
|
@@ -37924,7 +37387,7 @@ var require_constants3 = __commonJS({
|
|
|
37924
37387
|
var require_utils6 = __commonJS({
|
|
37925
37388
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports2) {
|
|
37926
37389
|
"use strict";
|
|
37927
|
-
var
|
|
37390
|
+
var path = require("path");
|
|
37928
37391
|
var win32 = process.platform === "win32";
|
|
37929
37392
|
var {
|
|
37930
37393
|
REGEX_BACKSLASH,
|
|
@@ -37953,7 +37416,7 @@ var require_utils6 = __commonJS({
|
|
|
37953
37416
|
if (options && typeof options.windows === "boolean") {
|
|
37954
37417
|
return options.windows;
|
|
37955
37418
|
}
|
|
37956
|
-
return win32 === true ||
|
|
37419
|
+
return win32 === true || path.sep === "\\";
|
|
37957
37420
|
};
|
|
37958
37421
|
exports2.escapeLast = (input, char, lastIdx) => {
|
|
37959
37422
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -38317,10 +37780,10 @@ var require_scan2 = __commonJS({
|
|
|
38317
37780
|
});
|
|
38318
37781
|
|
|
38319
37782
|
// node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
38320
|
-
var
|
|
37783
|
+
var require_parse3 = __commonJS({
|
|
38321
37784
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
38322
37785
|
"use strict";
|
|
38323
|
-
var
|
|
37786
|
+
var constants = require_constants3();
|
|
38324
37787
|
var utils = require_utils6();
|
|
38325
37788
|
var {
|
|
38326
37789
|
MAX_LENGTH,
|
|
@@ -38328,7 +37791,7 @@ var require_parse4 = __commonJS({
|
|
|
38328
37791
|
REGEX_NON_SPECIAL_CHARS,
|
|
38329
37792
|
REGEX_SPECIAL_CHARS_BACKREF,
|
|
38330
37793
|
REPLACEMENTS
|
|
38331
|
-
} =
|
|
37794
|
+
} = constants;
|
|
38332
37795
|
var expandRange = (args, options) => {
|
|
38333
37796
|
if (typeof options.expandRange === "function") {
|
|
38334
37797
|
return options.expandRange(...args, options);
|
|
@@ -38360,8 +37823,8 @@ var require_parse4 = __commonJS({
|
|
|
38360
37823
|
const tokens = [bos];
|
|
38361
37824
|
const capture = opts.capture ? "" : "?:";
|
|
38362
37825
|
const win32 = utils.isWindows(options);
|
|
38363
|
-
const PLATFORM_CHARS =
|
|
38364
|
-
const EXTGLOB_CHARS =
|
|
37826
|
+
const PLATFORM_CHARS = constants.globChars(win32);
|
|
37827
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
38365
37828
|
const {
|
|
38366
37829
|
DOT_LITERAL,
|
|
38367
37830
|
PLUS_LITERAL,
|
|
@@ -39043,7 +38506,7 @@ var require_parse4 = __commonJS({
|
|
|
39043
38506
|
NO_DOTS_SLASH,
|
|
39044
38507
|
STAR,
|
|
39045
38508
|
START_ANCHOR
|
|
39046
|
-
} =
|
|
38509
|
+
} = constants.globChars(win32);
|
|
39047
38510
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
39048
38511
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
39049
38512
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -39101,11 +38564,11 @@ var require_parse4 = __commonJS({
|
|
|
39101
38564
|
var require_picomatch = __commonJS({
|
|
39102
38565
|
"node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
39103
38566
|
"use strict";
|
|
39104
|
-
var
|
|
38567
|
+
var path = require("path");
|
|
39105
38568
|
var scan = require_scan2();
|
|
39106
|
-
var parse =
|
|
38569
|
+
var parse = require_parse3();
|
|
39107
38570
|
var utils = require_utils6();
|
|
39108
|
-
var
|
|
38571
|
+
var constants = require_constants3();
|
|
39109
38572
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
39110
38573
|
var picomatch = (glob, options, returnState = false) => {
|
|
39111
38574
|
if (Array.isArray(glob)) {
|
|
@@ -39187,7 +38650,7 @@ var require_picomatch = __commonJS({
|
|
|
39187
38650
|
};
|
|
39188
38651
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
39189
38652
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
39190
|
-
return regex.test(
|
|
38653
|
+
return regex.test(path.basename(input));
|
|
39191
38654
|
};
|
|
39192
38655
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
39193
38656
|
picomatch.parse = (pattern, options) => {
|
|
@@ -39236,7 +38699,7 @@ var require_picomatch = __commonJS({
|
|
|
39236
38699
|
return /$^/;
|
|
39237
38700
|
}
|
|
39238
38701
|
};
|
|
39239
|
-
picomatch.constants =
|
|
38702
|
+
picomatch.constants = constants;
|
|
39240
38703
|
module2.exports = picomatch;
|
|
39241
38704
|
}
|
|
39242
38705
|
});
|
|
@@ -39417,7 +38880,7 @@ var require_pattern = __commonJS({
|
|
|
39417
38880
|
"use strict";
|
|
39418
38881
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39419
38882
|
exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
|
|
39420
|
-
var
|
|
38883
|
+
var path = require("path");
|
|
39421
38884
|
var globParent = require_glob_parent();
|
|
39422
38885
|
var micromatch = require_micromatch();
|
|
39423
38886
|
var GLOBSTAR = "**";
|
|
@@ -39499,7 +38962,7 @@ var require_pattern = __commonJS({
|
|
|
39499
38962
|
}
|
|
39500
38963
|
exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
39501
38964
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
39502
|
-
const basename =
|
|
38965
|
+
const basename = path.basename(pattern);
|
|
39503
38966
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
39504
38967
|
}
|
|
39505
38968
|
exports2.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -39574,10 +39037,10 @@ var require_merge22 = __commonJS({
|
|
|
39574
39037
|
for (let i = 0, len = arguments.length; i < len; i++) {
|
|
39575
39038
|
streamsQueue.push(pauseStreams(arguments[i], options));
|
|
39576
39039
|
}
|
|
39577
|
-
|
|
39040
|
+
mergeStream();
|
|
39578
39041
|
return this;
|
|
39579
39042
|
}
|
|
39580
|
-
function
|
|
39043
|
+
function mergeStream() {
|
|
39581
39044
|
if (merging) {
|
|
39582
39045
|
return;
|
|
39583
39046
|
}
|
|
@@ -39596,7 +39059,7 @@ var require_merge22 = __commonJS({
|
|
|
39596
39059
|
return;
|
|
39597
39060
|
}
|
|
39598
39061
|
merging = false;
|
|
39599
|
-
|
|
39062
|
+
mergeStream();
|
|
39600
39063
|
}
|
|
39601
39064
|
function pipe(stream) {
|
|
39602
39065
|
function onend() {
|
|
@@ -39714,8 +39177,8 @@ var require_utils7 = __commonJS({
|
|
|
39714
39177
|
exports2.errno = errno;
|
|
39715
39178
|
var fs = require_fs3();
|
|
39716
39179
|
exports2.fs = fs;
|
|
39717
|
-
var
|
|
39718
|
-
exports2.path =
|
|
39180
|
+
var path = require_path();
|
|
39181
|
+
exports2.path = path;
|
|
39719
39182
|
var pattern = require_pattern();
|
|
39720
39183
|
exports2.pattern = pattern;
|
|
39721
39184
|
var stream = require_stream();
|
|
@@ -39815,8 +39278,8 @@ var require_async2 = __commonJS({
|
|
|
39815
39278
|
"use strict";
|
|
39816
39279
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39817
39280
|
exports2.read = void 0;
|
|
39818
|
-
function read(
|
|
39819
|
-
settings.fs.lstat(
|
|
39281
|
+
function read(path, settings, callback) {
|
|
39282
|
+
settings.fs.lstat(path, (lstatError, lstat) => {
|
|
39820
39283
|
if (lstatError !== null) {
|
|
39821
39284
|
callFailureCallback(callback, lstatError);
|
|
39822
39285
|
return;
|
|
@@ -39825,7 +39288,7 @@ var require_async2 = __commonJS({
|
|
|
39825
39288
|
callSuccessCallback(callback, lstat);
|
|
39826
39289
|
return;
|
|
39827
39290
|
}
|
|
39828
|
-
settings.fs.stat(
|
|
39291
|
+
settings.fs.stat(path, (statError, stat) => {
|
|
39829
39292
|
if (statError !== null) {
|
|
39830
39293
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
39831
39294
|
callFailureCallback(callback, statError);
|
|
@@ -39857,13 +39320,13 @@ var require_sync2 = __commonJS({
|
|
|
39857
39320
|
"use strict";
|
|
39858
39321
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39859
39322
|
exports2.read = void 0;
|
|
39860
|
-
function read(
|
|
39861
|
-
const lstat = settings.fs.lstatSync(
|
|
39323
|
+
function read(path, settings) {
|
|
39324
|
+
const lstat = settings.fs.lstatSync(path);
|
|
39862
39325
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
39863
39326
|
return lstat;
|
|
39864
39327
|
}
|
|
39865
39328
|
try {
|
|
39866
|
-
const stat = settings.fs.statSync(
|
|
39329
|
+
const stat = settings.fs.statSync(path);
|
|
39867
39330
|
if (settings.markSymbolicLink) {
|
|
39868
39331
|
stat.isSymbolicLink = () => true;
|
|
39869
39332
|
}
|
|
@@ -39934,17 +39397,17 @@ var require_out = __commonJS({
|
|
|
39934
39397
|
var sync = require_sync2();
|
|
39935
39398
|
var settings_1 = require_settings();
|
|
39936
39399
|
exports2.Settings = settings_1.default;
|
|
39937
|
-
function stat(
|
|
39400
|
+
function stat(path, optionsOrSettingsOrCallback, callback) {
|
|
39938
39401
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
39939
|
-
async.read(
|
|
39402
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
39940
39403
|
return;
|
|
39941
39404
|
}
|
|
39942
|
-
async.read(
|
|
39405
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
39943
39406
|
}
|
|
39944
39407
|
exports2.stat = stat;
|
|
39945
|
-
function statSync(
|
|
39408
|
+
function statSync(path, optionsOrSettings) {
|
|
39946
39409
|
const settings = getSettings(optionsOrSettings);
|
|
39947
|
-
return sync.read(
|
|
39410
|
+
return sync.read(path, settings);
|
|
39948
39411
|
}
|
|
39949
39412
|
exports2.statSync = statSync;
|
|
39950
39413
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -40163,16 +39626,16 @@ var require_async3 = __commonJS({
|
|
|
40163
39626
|
return;
|
|
40164
39627
|
}
|
|
40165
39628
|
const tasks = names2.map((name) => {
|
|
40166
|
-
const
|
|
39629
|
+
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
40167
39630
|
return (done) => {
|
|
40168
|
-
fsStat.stat(
|
|
39631
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
40169
39632
|
if (error !== null) {
|
|
40170
39633
|
done(error);
|
|
40171
39634
|
return;
|
|
40172
39635
|
}
|
|
40173
39636
|
const entry = {
|
|
40174
39637
|
name,
|
|
40175
|
-
path
|
|
39638
|
+
path,
|
|
40176
39639
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
40177
39640
|
};
|
|
40178
39641
|
if (settings.stats) {
|
|
@@ -40290,7 +39753,7 @@ var require_settings2 = __commonJS({
|
|
|
40290
39753
|
"node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
|
|
40291
39754
|
"use strict";
|
|
40292
39755
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40293
|
-
var
|
|
39756
|
+
var path = require("path");
|
|
40294
39757
|
var fsStat = require_out();
|
|
40295
39758
|
var fs = require_fs6();
|
|
40296
39759
|
var Settings = class {
|
|
@@ -40298,7 +39761,7 @@ var require_settings2 = __commonJS({
|
|
|
40298
39761
|
this._options = _options;
|
|
40299
39762
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
40300
39763
|
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
40301
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
39764
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
40302
39765
|
this.stats = this._getValue(this._options.stats, false);
|
|
40303
39766
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
40304
39767
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -40325,17 +39788,17 @@ var require_out2 = __commonJS({
|
|
|
40325
39788
|
var sync = require_sync3();
|
|
40326
39789
|
var settings_1 = require_settings2();
|
|
40327
39790
|
exports2.Settings = settings_1.default;
|
|
40328
|
-
function scandir(
|
|
39791
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
40329
39792
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
40330
|
-
async.read(
|
|
39793
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
40331
39794
|
return;
|
|
40332
39795
|
}
|
|
40333
|
-
async.read(
|
|
39796
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
40334
39797
|
}
|
|
40335
39798
|
exports2.scandir = scandir;
|
|
40336
|
-
function scandirSync(
|
|
39799
|
+
function scandirSync(path, optionsOrSettings) {
|
|
40337
39800
|
const settings = getSettings(optionsOrSettings);
|
|
40338
|
-
return sync.read(
|
|
39801
|
+
return sync.read(path, settings);
|
|
40339
39802
|
}
|
|
40340
39803
|
exports2.scandirSync = scandirSync;
|
|
40341
39804
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -40399,8 +39862,8 @@ var require_queue2 = __commonJS({
|
|
|
40399
39862
|
var errorHandler = null;
|
|
40400
39863
|
var self = {
|
|
40401
39864
|
push,
|
|
40402
|
-
drain:
|
|
40403
|
-
saturated:
|
|
39865
|
+
drain: noop,
|
|
39866
|
+
saturated: noop,
|
|
40404
39867
|
pause,
|
|
40405
39868
|
paused: false,
|
|
40406
39869
|
concurrency,
|
|
@@ -40410,7 +39873,7 @@ var require_queue2 = __commonJS({
|
|
|
40410
39873
|
length,
|
|
40411
39874
|
getQueue,
|
|
40412
39875
|
unshift,
|
|
40413
|
-
empty:
|
|
39876
|
+
empty: noop,
|
|
40414
39877
|
kill,
|
|
40415
39878
|
killAndDrain,
|
|
40416
39879
|
error
|
|
@@ -40457,7 +39920,7 @@ var require_queue2 = __commonJS({
|
|
|
40457
39920
|
current.context = context;
|
|
40458
39921
|
current.release = release;
|
|
40459
39922
|
current.value = value;
|
|
40460
|
-
current.callback = done ||
|
|
39923
|
+
current.callback = done || noop;
|
|
40461
39924
|
current.errorHandler = errorHandler;
|
|
40462
39925
|
if (_running === self.concurrency || self.paused) {
|
|
40463
39926
|
if (queueTail) {
|
|
@@ -40478,7 +39941,7 @@ var require_queue2 = __commonJS({
|
|
|
40478
39941
|
current.context = context;
|
|
40479
39942
|
current.release = release;
|
|
40480
39943
|
current.value = value;
|
|
40481
|
-
current.callback = done ||
|
|
39944
|
+
current.callback = done || noop;
|
|
40482
39945
|
if (_running === self.concurrency || self.paused) {
|
|
40483
39946
|
if (queueHead) {
|
|
40484
39947
|
current.next = queueHead;
|
|
@@ -40519,25 +39982,25 @@ var require_queue2 = __commonJS({
|
|
|
40519
39982
|
function kill() {
|
|
40520
39983
|
queueHead = null;
|
|
40521
39984
|
queueTail = null;
|
|
40522
|
-
self.drain =
|
|
39985
|
+
self.drain = noop;
|
|
40523
39986
|
}
|
|
40524
39987
|
function killAndDrain() {
|
|
40525
39988
|
queueHead = null;
|
|
40526
39989
|
queueTail = null;
|
|
40527
39990
|
self.drain();
|
|
40528
|
-
self.drain =
|
|
39991
|
+
self.drain = noop;
|
|
40529
39992
|
}
|
|
40530
39993
|
function error(handler) {
|
|
40531
39994
|
errorHandler = handler;
|
|
40532
39995
|
}
|
|
40533
39996
|
}
|
|
40534
|
-
function
|
|
39997
|
+
function noop() {
|
|
40535
39998
|
}
|
|
40536
39999
|
function Task() {
|
|
40537
40000
|
this.value = null;
|
|
40538
|
-
this.callback =
|
|
40001
|
+
this.callback = noop;
|
|
40539
40002
|
this.next = null;
|
|
40540
|
-
this.release =
|
|
40003
|
+
this.release = noop;
|
|
40541
40004
|
this.context = null;
|
|
40542
40005
|
this.errorHandler = null;
|
|
40543
40006
|
var self = this;
|
|
@@ -40546,7 +40009,7 @@ var require_queue2 = __commonJS({
|
|
|
40546
40009
|
var errorHandler = self.errorHandler;
|
|
40547
40010
|
var val = self.value;
|
|
40548
40011
|
self.value = null;
|
|
40549
|
-
self.callback =
|
|
40012
|
+
self.callback = noop;
|
|
40550
40013
|
if (self.errorHandler) {
|
|
40551
40014
|
errorHandler(err, val);
|
|
40552
40015
|
}
|
|
@@ -40582,7 +40045,7 @@ var require_queue2 = __commonJS({
|
|
|
40582
40045
|
resolve(result);
|
|
40583
40046
|
});
|
|
40584
40047
|
});
|
|
40585
|
-
p.catch(
|
|
40048
|
+
p.catch(noop);
|
|
40586
40049
|
return p;
|
|
40587
40050
|
}
|
|
40588
40051
|
function unshift(value) {
|
|
@@ -40595,7 +40058,7 @@ var require_queue2 = __commonJS({
|
|
|
40595
40058
|
resolve(result);
|
|
40596
40059
|
});
|
|
40597
40060
|
});
|
|
40598
|
-
p.catch(
|
|
40061
|
+
p.catch(noop);
|
|
40599
40062
|
return p;
|
|
40600
40063
|
}
|
|
40601
40064
|
function drained() {
|
|
@@ -40939,7 +40402,7 @@ var require_settings3 = __commonJS({
|
|
|
40939
40402
|
"node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
|
|
40940
40403
|
"use strict";
|
|
40941
40404
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
40942
|
-
var
|
|
40405
|
+
var path = require("path");
|
|
40943
40406
|
var fsScandir = require_out2();
|
|
40944
40407
|
var Settings = class {
|
|
40945
40408
|
constructor(_options = {}) {
|
|
@@ -40949,7 +40412,7 @@ var require_settings3 = __commonJS({
|
|
|
40949
40412
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
40950
40413
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
40951
40414
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
40952
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
40415
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
40953
40416
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
40954
40417
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
40955
40418
|
fs: this._options.fs,
|
|
@@ -41011,7 +40474,7 @@ var require_reader2 = __commonJS({
|
|
|
41011
40474
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/readers/reader.js"(exports2) {
|
|
41012
40475
|
"use strict";
|
|
41013
40476
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41014
|
-
var
|
|
40477
|
+
var path = require("path");
|
|
41015
40478
|
var fsStat = require_out();
|
|
41016
40479
|
var utils = require_utils7();
|
|
41017
40480
|
var Reader = class {
|
|
@@ -41024,7 +40487,7 @@ var require_reader2 = __commonJS({
|
|
|
41024
40487
|
});
|
|
41025
40488
|
}
|
|
41026
40489
|
_getFullEntryPath(filepath) {
|
|
41027
|
-
return
|
|
40490
|
+
return path.resolve(this._settings.cwd, filepath);
|
|
41028
40491
|
}
|
|
41029
40492
|
_makeEntry(stats, pattern) {
|
|
41030
40493
|
const entry = {
|
|
@@ -41376,7 +40839,7 @@ var require_provider = __commonJS({
|
|
|
41376
40839
|
"node_modules/.pnpm/fast-glob@3.2.7/node_modules/fast-glob/out/providers/provider.js"(exports2) {
|
|
41377
40840
|
"use strict";
|
|
41378
40841
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41379
|
-
var
|
|
40842
|
+
var path = require("path");
|
|
41380
40843
|
var deep_1 = require_deep();
|
|
41381
40844
|
var entry_1 = require_entry();
|
|
41382
40845
|
var error_1 = require_error();
|
|
@@ -41390,7 +40853,7 @@ var require_provider = __commonJS({
|
|
|
41390
40853
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
41391
40854
|
}
|
|
41392
40855
|
_getRootDirectory(task) {
|
|
41393
|
-
return
|
|
40856
|
+
return path.resolve(this._settings.cwd, task.base);
|
|
41394
40857
|
}
|
|
41395
40858
|
_getReaderOptions(task) {
|
|
41396
40859
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -41577,8 +41040,8 @@ var require_settings4 = __commonJS({
|
|
|
41577
41040
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41578
41041
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
41579
41042
|
var fs = require("fs");
|
|
41580
|
-
var
|
|
41581
|
-
var CPU_COUNT = Math.max(
|
|
41043
|
+
var os = require("os");
|
|
41044
|
+
var CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
41582
41045
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
41583
41046
|
lstat: fs.lstat,
|
|
41584
41047
|
lstatSync: fs.lstatSync,
|
|
@@ -41702,14 +41165,14 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41702
41165
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
41703
41166
|
exports2.CopyAssetsHandler = exports2.defaultFileEventHandler = void 0;
|
|
41704
41167
|
var minimatch = require_minimatch2();
|
|
41705
|
-
var
|
|
41168
|
+
var path = require("path");
|
|
41706
41169
|
var fse = require_lib4();
|
|
41707
41170
|
var ignore_1 = require_ignore();
|
|
41708
41171
|
var fg = require_out4();
|
|
41709
41172
|
var devkit_1 = require_devkit();
|
|
41710
41173
|
var client_1 = require("nx/src/daemon/client/client");
|
|
41711
41174
|
var defaultFileEventHandler = (events) => {
|
|
41712
|
-
const dirs = new Set(events.map((event) =>
|
|
41175
|
+
const dirs = new Set(events.map((event) => path.dirname(event.dest)));
|
|
41713
41176
|
dirs.forEach((d) => fse.ensureDirSync(d));
|
|
41714
41177
|
events.forEach((event) => {
|
|
41715
41178
|
if (event.type === "create" || event.type === "update") {
|
|
@@ -41731,8 +41194,8 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41731
41194
|
this.outputDir = opts.outputDir;
|
|
41732
41195
|
this.callback = opts.callback ?? exports2.defaultFileEventHandler;
|
|
41733
41196
|
this.ignore = (0, ignore_1.default)();
|
|
41734
|
-
const gitignore =
|
|
41735
|
-
const nxignore =
|
|
41197
|
+
const gitignore = path.join(opts.rootDir, ".gitignore");
|
|
41198
|
+
const nxignore = path.join(opts.rootDir, ".nxignore");
|
|
41736
41199
|
if (fse.existsSync(gitignore))
|
|
41737
41200
|
this.ignore.add(fse.readFileSync(gitignore).toString());
|
|
41738
41201
|
if (fse.existsSync(nxignore))
|
|
@@ -41745,15 +41208,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41745
41208
|
let ignore = null;
|
|
41746
41209
|
if (typeof f === "string") {
|
|
41747
41210
|
pattern = f;
|
|
41748
|
-
input =
|
|
41749
|
-
output =
|
|
41211
|
+
input = path.relative(opts.rootDir, opts.projectDir);
|
|
41212
|
+
output = path.relative(opts.rootDir, opts.outputDir);
|
|
41750
41213
|
} else {
|
|
41751
41214
|
isGlob = true;
|
|
41752
|
-
pattern =
|
|
41215
|
+
pattern = path.join(f.input, f.glob);
|
|
41753
41216
|
input = f.input;
|
|
41754
|
-
output =
|
|
41217
|
+
output = path.join(path.relative(opts.rootDir, opts.outputDir), f.output);
|
|
41755
41218
|
if (f.ignore)
|
|
41756
|
-
ignore = f.ignore.map((ig) =>
|
|
41219
|
+
ignore = f.ignore.map((ig) => path.join(f.input, ig));
|
|
41757
41220
|
}
|
|
41758
41221
|
return {
|
|
41759
41222
|
isGlob,
|
|
@@ -41805,15 +41268,15 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41805
41268
|
async processWatchEvents(events) {
|
|
41806
41269
|
const fileEvents = [];
|
|
41807
41270
|
for (const event of events) {
|
|
41808
|
-
const pathFromRoot =
|
|
41271
|
+
const pathFromRoot = path.relative(this.rootDir, event.path);
|
|
41809
41272
|
for (const ag of this.assetGlobs) {
|
|
41810
41273
|
if (minimatch(pathFromRoot, ag.pattern) && !ag.ignore?.some((ig) => minimatch(pathFromRoot, ig)) && !this.ignore.ignores(pathFromRoot)) {
|
|
41811
|
-
const relPath =
|
|
41274
|
+
const relPath = path.relative(ag.input, pathFromRoot);
|
|
41812
41275
|
const destPath = relPath.startsWith("..") ? pathFromRoot : relPath;
|
|
41813
41276
|
fileEvents.push({
|
|
41814
41277
|
type: event.type,
|
|
41815
|
-
src:
|
|
41816
|
-
dest:
|
|
41278
|
+
src: path.join(this.rootDir, pathFromRoot),
|
|
41279
|
+
dest: path.join(this.rootDir, ag.output, destPath)
|
|
41817
41280
|
});
|
|
41818
41281
|
break;
|
|
41819
41282
|
}
|
|
@@ -41825,12 +41288,12 @@ var require_copy_assets_handler = __commonJS({
|
|
|
41825
41288
|
filesToEvent(files, assetGlob) {
|
|
41826
41289
|
return files.reduce((acc, src) => {
|
|
41827
41290
|
if (!assetGlob.ignore?.some((ig) => minimatch(src, ig)) && !this.ignore.ignores(src)) {
|
|
41828
|
-
const relPath =
|
|
41291
|
+
const relPath = path.relative(assetGlob.input, src);
|
|
41829
41292
|
const dest = relPath.startsWith("..") ? src : relPath;
|
|
41830
41293
|
acc.push({
|
|
41831
41294
|
type: "create",
|
|
41832
|
-
src:
|
|
41833
|
-
dest:
|
|
41295
|
+
src: path.join(this.rootDir, src),
|
|
41296
|
+
dest: path.join(this.rootDir, assetGlob.output, dest)
|
|
41834
41297
|
});
|
|
41835
41298
|
}
|
|
41836
41299
|
return acc;
|
|
@@ -42190,12 +41653,12 @@ var require_generator = __commonJS({
|
|
|
42190
41653
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
42191
41654
|
exports2.setupVerdaccio = void 0;
|
|
42192
41655
|
var devkit_1 = require_devkit();
|
|
42193
|
-
var
|
|
41656
|
+
var path = require("path");
|
|
42194
41657
|
var versions_1 = require_versions2();
|
|
42195
41658
|
var child_process_1 = require("child_process");
|
|
42196
41659
|
async function setupVerdaccio2(tree, options) {
|
|
42197
41660
|
if (!tree.exists(".verdaccio/config.yml")) {
|
|
42198
|
-
(0, devkit_1.generateFiles)(tree,
|
|
41661
|
+
(0, devkit_1.generateFiles)(tree, path.join(__dirname, "files"), ".verdaccio", {
|
|
42199
41662
|
npmUplinkRegistry: (0, child_process_1.execSync)("npm config get registry")?.toString()?.trim() ?? "https://registry.npmjs.org"
|
|
42200
41663
|
});
|
|
42201
41664
|
}
|
|
@@ -43014,7 +42477,7 @@ var require_eslint_file = __commonJS({
|
|
|
43014
42477
|
if ((0, flat_config_1.useFlatConfig)(tree)) {
|
|
43015
42478
|
const fileName = (0, devkit_1.joinPathFragments)(root, "eslint.config.js");
|
|
43016
42479
|
const block = (0, ast_utils_1.generateAst)({
|
|
43017
|
-
ignores: ignorePatterns.map((
|
|
42480
|
+
ignores: ignorePatterns.map((path) => (0, path_utils_1.mapFilePath)(path))
|
|
43018
42481
|
});
|
|
43019
42482
|
tree.write(fileName, (0, ast_utils_1.addBlockToFlatConfigExport)(tree.read(fileName, "utf8"), block));
|
|
43020
42483
|
} else {
|
|
@@ -44661,8 +44124,8 @@ function getErrorMap() {
|
|
|
44661
44124
|
return overrideErrorMap;
|
|
44662
44125
|
}
|
|
44663
44126
|
var makeIssue = (params) => {
|
|
44664
|
-
const { data, path
|
|
44665
|
-
const fullPath = [...
|
|
44127
|
+
const { data, path, errorMaps, issueData } = params;
|
|
44128
|
+
const fullPath = [...path, ...issueData.path || []];
|
|
44666
44129
|
const fullIssue = {
|
|
44667
44130
|
...issueData,
|
|
44668
44131
|
path: fullPath
|
|
@@ -44760,11 +44223,11 @@ var errorUtil;
|
|
|
44760
44223
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
44761
44224
|
})(errorUtil || (errorUtil = {}));
|
|
44762
44225
|
var ParseInputLazyPath = class {
|
|
44763
|
-
constructor(parent, value,
|
|
44226
|
+
constructor(parent, value, path, key) {
|
|
44764
44227
|
this._cachedPath = [];
|
|
44765
44228
|
this.parent = parent;
|
|
44766
44229
|
this.data = value;
|
|
44767
|
-
this._path =
|
|
44230
|
+
this._path = path;
|
|
44768
44231
|
this._key = key;
|
|
44769
44232
|
}
|
|
44770
44233
|
get path() {
|
|
@@ -48214,1583 +47677,6 @@ var getStopwatch = (name) => {
|
|
|
48214
47677
|
};
|
|
48215
47678
|
};
|
|
48216
47679
|
|
|
48217
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
48218
|
-
var import_node_buffer2 = require("node:buffer");
|
|
48219
|
-
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
48220
|
-
var import_node_child_process3 = __toESM(require("node:child_process"), 1);
|
|
48221
|
-
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
48222
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
48223
|
-
|
|
48224
|
-
// node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
|
|
48225
|
-
function stripFinalNewline(input) {
|
|
48226
|
-
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
48227
|
-
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
48228
|
-
if (input[input.length - 1] === LF) {
|
|
48229
|
-
input = input.slice(0, -1);
|
|
48230
|
-
}
|
|
48231
|
-
if (input[input.length - 1] === CR) {
|
|
48232
|
-
input = input.slice(0, -1);
|
|
48233
|
-
}
|
|
48234
|
-
return input;
|
|
48235
|
-
}
|
|
48236
|
-
|
|
48237
|
-
// node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
|
|
48238
|
-
var import_node_process = __toESM(require("node:process"), 1);
|
|
48239
|
-
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
48240
|
-
var import_node_url = __toESM(require("node:url"), 1);
|
|
48241
|
-
|
|
48242
|
-
// node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
48243
|
-
function pathKey(options = {}) {
|
|
48244
|
-
const {
|
|
48245
|
-
env = process.env,
|
|
48246
|
-
platform = process.platform
|
|
48247
|
-
} = options;
|
|
48248
|
-
if (platform !== "win32") {
|
|
48249
|
-
return "PATH";
|
|
48250
|
-
}
|
|
48251
|
-
return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
48252
|
-
}
|
|
48253
|
-
|
|
48254
|
-
// node_modules/.pnpm/npm-run-path@5.2.0/node_modules/npm-run-path/index.js
|
|
48255
|
-
function npmRunPath(options = {}) {
|
|
48256
|
-
const {
|
|
48257
|
-
cwd = import_node_process.default.cwd(),
|
|
48258
|
-
path: path_ = import_node_process.default.env[pathKey()],
|
|
48259
|
-
execPath = import_node_process.default.execPath
|
|
48260
|
-
} = options;
|
|
48261
|
-
let previous;
|
|
48262
|
-
const execPathString = execPath instanceof URL ? import_node_url.default.fileURLToPath(execPath) : execPath;
|
|
48263
|
-
const cwdString = cwd instanceof URL ? import_node_url.default.fileURLToPath(cwd) : cwd;
|
|
48264
|
-
let cwdPath = import_node_path3.default.resolve(cwdString);
|
|
48265
|
-
const result = [];
|
|
48266
|
-
while (previous !== cwdPath) {
|
|
48267
|
-
result.push(import_node_path3.default.join(cwdPath, "node_modules/.bin"));
|
|
48268
|
-
previous = cwdPath;
|
|
48269
|
-
cwdPath = import_node_path3.default.resolve(cwdPath, "..");
|
|
48270
|
-
}
|
|
48271
|
-
result.push(import_node_path3.default.resolve(cwdString, execPathString, ".."));
|
|
48272
|
-
return [...result, path_].join(import_node_path3.default.delimiter);
|
|
48273
|
-
}
|
|
48274
|
-
function npmRunPathEnv({ env = import_node_process.default.env, ...options } = {}) {
|
|
48275
|
-
env = { ...env };
|
|
48276
|
-
const path3 = pathKey({ env });
|
|
48277
|
-
options.path = env[path3];
|
|
48278
|
-
env[path3] = npmRunPath(options);
|
|
48279
|
-
return env;
|
|
48280
|
-
}
|
|
48281
|
-
|
|
48282
|
-
// node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
|
|
48283
|
-
var copyProperty = (to, from, property, ignoreNonConfigurable) => {
|
|
48284
|
-
if (property === "length" || property === "prototype") {
|
|
48285
|
-
return;
|
|
48286
|
-
}
|
|
48287
|
-
if (property === "arguments" || property === "caller") {
|
|
48288
|
-
return;
|
|
48289
|
-
}
|
|
48290
|
-
const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
|
|
48291
|
-
const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
|
|
48292
|
-
if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) {
|
|
48293
|
-
return;
|
|
48294
|
-
}
|
|
48295
|
-
Object.defineProperty(to, property, fromDescriptor);
|
|
48296
|
-
};
|
|
48297
|
-
var canCopyProperty = function(toDescriptor, fromDescriptor) {
|
|
48298
|
-
return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
|
|
48299
|
-
};
|
|
48300
|
-
var changePrototype = (to, from) => {
|
|
48301
|
-
const fromPrototype = Object.getPrototypeOf(from);
|
|
48302
|
-
if (fromPrototype === Object.getPrototypeOf(to)) {
|
|
48303
|
-
return;
|
|
48304
|
-
}
|
|
48305
|
-
Object.setPrototypeOf(to, fromPrototype);
|
|
48306
|
-
};
|
|
48307
|
-
var wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/
|
|
48308
|
-
${fromBody}`;
|
|
48309
|
-
var toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
|
|
48310
|
-
var toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
|
|
48311
|
-
var changeToString = (to, from, name) => {
|
|
48312
|
-
const withName = name === "" ? "" : `with ${name.trim()}() `;
|
|
48313
|
-
const newToString = wrappedToString.bind(null, withName, from.toString());
|
|
48314
|
-
Object.defineProperty(newToString, "name", toStringName);
|
|
48315
|
-
Object.defineProperty(to, "toString", { ...toStringDescriptor, value: newToString });
|
|
48316
|
-
};
|
|
48317
|
-
function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
|
|
48318
|
-
const { name } = to;
|
|
48319
|
-
for (const property of Reflect.ownKeys(from)) {
|
|
48320
|
-
copyProperty(to, from, property, ignoreNonConfigurable);
|
|
48321
|
-
}
|
|
48322
|
-
changePrototype(to, from);
|
|
48323
|
-
changeToString(to, from, name);
|
|
48324
|
-
return to;
|
|
48325
|
-
}
|
|
48326
|
-
|
|
48327
|
-
// node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
|
|
48328
|
-
var calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
48329
|
-
var onetime = (function_, options = {}) => {
|
|
48330
|
-
if (typeof function_ !== "function") {
|
|
48331
|
-
throw new TypeError("Expected a function");
|
|
48332
|
-
}
|
|
48333
|
-
let returnValue;
|
|
48334
|
-
let callCount = 0;
|
|
48335
|
-
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
48336
|
-
const onetime2 = function(...arguments_) {
|
|
48337
|
-
calledFunctions.set(onetime2, ++callCount);
|
|
48338
|
-
if (callCount === 1) {
|
|
48339
|
-
returnValue = function_.apply(this, arguments_);
|
|
48340
|
-
function_ = null;
|
|
48341
|
-
} else if (options.throw === true) {
|
|
48342
|
-
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
48343
|
-
}
|
|
48344
|
-
return returnValue;
|
|
48345
|
-
};
|
|
48346
|
-
mimicFunction(onetime2, function_);
|
|
48347
|
-
calledFunctions.set(onetime2, callCount);
|
|
48348
|
-
return onetime2;
|
|
48349
|
-
};
|
|
48350
|
-
onetime.callCount = (function_) => {
|
|
48351
|
-
if (!calledFunctions.has(function_)) {
|
|
48352
|
-
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
48353
|
-
}
|
|
48354
|
-
return calledFunctions.get(function_);
|
|
48355
|
-
};
|
|
48356
|
-
var onetime_default = onetime;
|
|
48357
|
-
|
|
48358
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
48359
|
-
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
48360
|
-
|
|
48361
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
48362
|
-
var import_node_os2 = require("node:os");
|
|
48363
|
-
|
|
48364
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
|
|
48365
|
-
var getRealtimeSignals = () => {
|
|
48366
|
-
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
48367
|
-
return Array.from({ length }, getRealtimeSignal);
|
|
48368
|
-
};
|
|
48369
|
-
var getRealtimeSignal = (value, index) => ({
|
|
48370
|
-
name: `SIGRT${index + 1}`,
|
|
48371
|
-
number: SIGRTMIN + index,
|
|
48372
|
-
action: "terminate",
|
|
48373
|
-
description: "Application-specific signal (realtime)",
|
|
48374
|
-
standard: "posix"
|
|
48375
|
-
});
|
|
48376
|
-
var SIGRTMIN = 34;
|
|
48377
|
-
var SIGRTMAX = 64;
|
|
48378
|
-
|
|
48379
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
48380
|
-
var import_node_os = require("node:os");
|
|
48381
|
-
|
|
48382
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
|
|
48383
|
-
var SIGNALS = [
|
|
48384
|
-
{
|
|
48385
|
-
name: "SIGHUP",
|
|
48386
|
-
number: 1,
|
|
48387
|
-
action: "terminate",
|
|
48388
|
-
description: "Terminal closed",
|
|
48389
|
-
standard: "posix"
|
|
48390
|
-
},
|
|
48391
|
-
{
|
|
48392
|
-
name: "SIGINT",
|
|
48393
|
-
number: 2,
|
|
48394
|
-
action: "terminate",
|
|
48395
|
-
description: "User interruption with CTRL-C",
|
|
48396
|
-
standard: "ansi"
|
|
48397
|
-
},
|
|
48398
|
-
{
|
|
48399
|
-
name: "SIGQUIT",
|
|
48400
|
-
number: 3,
|
|
48401
|
-
action: "core",
|
|
48402
|
-
description: "User interruption with CTRL-\\",
|
|
48403
|
-
standard: "posix"
|
|
48404
|
-
},
|
|
48405
|
-
{
|
|
48406
|
-
name: "SIGILL",
|
|
48407
|
-
number: 4,
|
|
48408
|
-
action: "core",
|
|
48409
|
-
description: "Invalid machine instruction",
|
|
48410
|
-
standard: "ansi"
|
|
48411
|
-
},
|
|
48412
|
-
{
|
|
48413
|
-
name: "SIGTRAP",
|
|
48414
|
-
number: 5,
|
|
48415
|
-
action: "core",
|
|
48416
|
-
description: "Debugger breakpoint",
|
|
48417
|
-
standard: "posix"
|
|
48418
|
-
},
|
|
48419
|
-
{
|
|
48420
|
-
name: "SIGABRT",
|
|
48421
|
-
number: 6,
|
|
48422
|
-
action: "core",
|
|
48423
|
-
description: "Aborted",
|
|
48424
|
-
standard: "ansi"
|
|
48425
|
-
},
|
|
48426
|
-
{
|
|
48427
|
-
name: "SIGIOT",
|
|
48428
|
-
number: 6,
|
|
48429
|
-
action: "core",
|
|
48430
|
-
description: "Aborted",
|
|
48431
|
-
standard: "bsd"
|
|
48432
|
-
},
|
|
48433
|
-
{
|
|
48434
|
-
name: "SIGBUS",
|
|
48435
|
-
number: 7,
|
|
48436
|
-
action: "core",
|
|
48437
|
-
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
48438
|
-
standard: "bsd"
|
|
48439
|
-
},
|
|
48440
|
-
{
|
|
48441
|
-
name: "SIGEMT",
|
|
48442
|
-
number: 7,
|
|
48443
|
-
action: "terminate",
|
|
48444
|
-
description: "Command should be emulated but is not implemented",
|
|
48445
|
-
standard: "other"
|
|
48446
|
-
},
|
|
48447
|
-
{
|
|
48448
|
-
name: "SIGFPE",
|
|
48449
|
-
number: 8,
|
|
48450
|
-
action: "core",
|
|
48451
|
-
description: "Floating point arithmetic error",
|
|
48452
|
-
standard: "ansi"
|
|
48453
|
-
},
|
|
48454
|
-
{
|
|
48455
|
-
name: "SIGKILL",
|
|
48456
|
-
number: 9,
|
|
48457
|
-
action: "terminate",
|
|
48458
|
-
description: "Forced termination",
|
|
48459
|
-
standard: "posix",
|
|
48460
|
-
forced: true
|
|
48461
|
-
},
|
|
48462
|
-
{
|
|
48463
|
-
name: "SIGUSR1",
|
|
48464
|
-
number: 10,
|
|
48465
|
-
action: "terminate",
|
|
48466
|
-
description: "Application-specific signal",
|
|
48467
|
-
standard: "posix"
|
|
48468
|
-
},
|
|
48469
|
-
{
|
|
48470
|
-
name: "SIGSEGV",
|
|
48471
|
-
number: 11,
|
|
48472
|
-
action: "core",
|
|
48473
|
-
description: "Segmentation fault",
|
|
48474
|
-
standard: "ansi"
|
|
48475
|
-
},
|
|
48476
|
-
{
|
|
48477
|
-
name: "SIGUSR2",
|
|
48478
|
-
number: 12,
|
|
48479
|
-
action: "terminate",
|
|
48480
|
-
description: "Application-specific signal",
|
|
48481
|
-
standard: "posix"
|
|
48482
|
-
},
|
|
48483
|
-
{
|
|
48484
|
-
name: "SIGPIPE",
|
|
48485
|
-
number: 13,
|
|
48486
|
-
action: "terminate",
|
|
48487
|
-
description: "Broken pipe or socket",
|
|
48488
|
-
standard: "posix"
|
|
48489
|
-
},
|
|
48490
|
-
{
|
|
48491
|
-
name: "SIGALRM",
|
|
48492
|
-
number: 14,
|
|
48493
|
-
action: "terminate",
|
|
48494
|
-
description: "Timeout or timer",
|
|
48495
|
-
standard: "posix"
|
|
48496
|
-
},
|
|
48497
|
-
{
|
|
48498
|
-
name: "SIGTERM",
|
|
48499
|
-
number: 15,
|
|
48500
|
-
action: "terminate",
|
|
48501
|
-
description: "Termination",
|
|
48502
|
-
standard: "ansi"
|
|
48503
|
-
},
|
|
48504
|
-
{
|
|
48505
|
-
name: "SIGSTKFLT",
|
|
48506
|
-
number: 16,
|
|
48507
|
-
action: "terminate",
|
|
48508
|
-
description: "Stack is empty or overflowed",
|
|
48509
|
-
standard: "other"
|
|
48510
|
-
},
|
|
48511
|
-
{
|
|
48512
|
-
name: "SIGCHLD",
|
|
48513
|
-
number: 17,
|
|
48514
|
-
action: "ignore",
|
|
48515
|
-
description: "Child process terminated, paused or unpaused",
|
|
48516
|
-
standard: "posix"
|
|
48517
|
-
},
|
|
48518
|
-
{
|
|
48519
|
-
name: "SIGCLD",
|
|
48520
|
-
number: 17,
|
|
48521
|
-
action: "ignore",
|
|
48522
|
-
description: "Child process terminated, paused or unpaused",
|
|
48523
|
-
standard: "other"
|
|
48524
|
-
},
|
|
48525
|
-
{
|
|
48526
|
-
name: "SIGCONT",
|
|
48527
|
-
number: 18,
|
|
48528
|
-
action: "unpause",
|
|
48529
|
-
description: "Unpaused",
|
|
48530
|
-
standard: "posix",
|
|
48531
|
-
forced: true
|
|
48532
|
-
},
|
|
48533
|
-
{
|
|
48534
|
-
name: "SIGSTOP",
|
|
48535
|
-
number: 19,
|
|
48536
|
-
action: "pause",
|
|
48537
|
-
description: "Paused",
|
|
48538
|
-
standard: "posix",
|
|
48539
|
-
forced: true
|
|
48540
|
-
},
|
|
48541
|
-
{
|
|
48542
|
-
name: "SIGTSTP",
|
|
48543
|
-
number: 20,
|
|
48544
|
-
action: "pause",
|
|
48545
|
-
description: 'Paused using CTRL-Z or "suspend"',
|
|
48546
|
-
standard: "posix"
|
|
48547
|
-
},
|
|
48548
|
-
{
|
|
48549
|
-
name: "SIGTTIN",
|
|
48550
|
-
number: 21,
|
|
48551
|
-
action: "pause",
|
|
48552
|
-
description: "Background process cannot read terminal input",
|
|
48553
|
-
standard: "posix"
|
|
48554
|
-
},
|
|
48555
|
-
{
|
|
48556
|
-
name: "SIGBREAK",
|
|
48557
|
-
number: 21,
|
|
48558
|
-
action: "terminate",
|
|
48559
|
-
description: "User interruption with CTRL-BREAK",
|
|
48560
|
-
standard: "other"
|
|
48561
|
-
},
|
|
48562
|
-
{
|
|
48563
|
-
name: "SIGTTOU",
|
|
48564
|
-
number: 22,
|
|
48565
|
-
action: "pause",
|
|
48566
|
-
description: "Background process cannot write to terminal output",
|
|
48567
|
-
standard: "posix"
|
|
48568
|
-
},
|
|
48569
|
-
{
|
|
48570
|
-
name: "SIGURG",
|
|
48571
|
-
number: 23,
|
|
48572
|
-
action: "ignore",
|
|
48573
|
-
description: "Socket received out-of-band data",
|
|
48574
|
-
standard: "bsd"
|
|
48575
|
-
},
|
|
48576
|
-
{
|
|
48577
|
-
name: "SIGXCPU",
|
|
48578
|
-
number: 24,
|
|
48579
|
-
action: "core",
|
|
48580
|
-
description: "Process timed out",
|
|
48581
|
-
standard: "bsd"
|
|
48582
|
-
},
|
|
48583
|
-
{
|
|
48584
|
-
name: "SIGXFSZ",
|
|
48585
|
-
number: 25,
|
|
48586
|
-
action: "core",
|
|
48587
|
-
description: "File too big",
|
|
48588
|
-
standard: "bsd"
|
|
48589
|
-
},
|
|
48590
|
-
{
|
|
48591
|
-
name: "SIGVTALRM",
|
|
48592
|
-
number: 26,
|
|
48593
|
-
action: "terminate",
|
|
48594
|
-
description: "Timeout or timer",
|
|
48595
|
-
standard: "bsd"
|
|
48596
|
-
},
|
|
48597
|
-
{
|
|
48598
|
-
name: "SIGPROF",
|
|
48599
|
-
number: 27,
|
|
48600
|
-
action: "terminate",
|
|
48601
|
-
description: "Timeout or timer",
|
|
48602
|
-
standard: "bsd"
|
|
48603
|
-
},
|
|
48604
|
-
{
|
|
48605
|
-
name: "SIGWINCH",
|
|
48606
|
-
number: 28,
|
|
48607
|
-
action: "ignore",
|
|
48608
|
-
description: "Terminal window size changed",
|
|
48609
|
-
standard: "bsd"
|
|
48610
|
-
},
|
|
48611
|
-
{
|
|
48612
|
-
name: "SIGIO",
|
|
48613
|
-
number: 29,
|
|
48614
|
-
action: "terminate",
|
|
48615
|
-
description: "I/O is available",
|
|
48616
|
-
standard: "other"
|
|
48617
|
-
},
|
|
48618
|
-
{
|
|
48619
|
-
name: "SIGPOLL",
|
|
48620
|
-
number: 29,
|
|
48621
|
-
action: "terminate",
|
|
48622
|
-
description: "Watched event",
|
|
48623
|
-
standard: "other"
|
|
48624
|
-
},
|
|
48625
|
-
{
|
|
48626
|
-
name: "SIGINFO",
|
|
48627
|
-
number: 29,
|
|
48628
|
-
action: "ignore",
|
|
48629
|
-
description: "Request for process information",
|
|
48630
|
-
standard: "other"
|
|
48631
|
-
},
|
|
48632
|
-
{
|
|
48633
|
-
name: "SIGPWR",
|
|
48634
|
-
number: 30,
|
|
48635
|
-
action: "terminate",
|
|
48636
|
-
description: "Device running out of power",
|
|
48637
|
-
standard: "systemv"
|
|
48638
|
-
},
|
|
48639
|
-
{
|
|
48640
|
-
name: "SIGSYS",
|
|
48641
|
-
number: 31,
|
|
48642
|
-
action: "core",
|
|
48643
|
-
description: "Invalid system call",
|
|
48644
|
-
standard: "other"
|
|
48645
|
-
},
|
|
48646
|
-
{
|
|
48647
|
-
name: "SIGUNUSED",
|
|
48648
|
-
number: 31,
|
|
48649
|
-
action: "terminate",
|
|
48650
|
-
description: "Invalid system call",
|
|
48651
|
-
standard: "other"
|
|
48652
|
-
}
|
|
48653
|
-
];
|
|
48654
|
-
|
|
48655
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
|
|
48656
|
-
var getSignals = () => {
|
|
48657
|
-
const realtimeSignals = getRealtimeSignals();
|
|
48658
|
-
const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
48659
|
-
return signals2;
|
|
48660
|
-
};
|
|
48661
|
-
var normalizeSignal = ({
|
|
48662
|
-
name,
|
|
48663
|
-
number: defaultNumber,
|
|
48664
|
-
description,
|
|
48665
|
-
action,
|
|
48666
|
-
forced = false,
|
|
48667
|
-
standard
|
|
48668
|
-
}) => {
|
|
48669
|
-
const {
|
|
48670
|
-
signals: { [name]: constantSignal }
|
|
48671
|
-
} = import_node_os.constants;
|
|
48672
|
-
const supported = constantSignal !== void 0;
|
|
48673
|
-
const number = supported ? constantSignal : defaultNumber;
|
|
48674
|
-
return { name, number, description, supported, action, forced, standard };
|
|
48675
|
-
};
|
|
48676
|
-
|
|
48677
|
-
// node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
|
|
48678
|
-
var getSignalsByName = () => {
|
|
48679
|
-
const signals2 = getSignals();
|
|
48680
|
-
return Object.fromEntries(signals2.map(getSignalByName));
|
|
48681
|
-
};
|
|
48682
|
-
var getSignalByName = ({
|
|
48683
|
-
name,
|
|
48684
|
-
number,
|
|
48685
|
-
description,
|
|
48686
|
-
supported,
|
|
48687
|
-
action,
|
|
48688
|
-
forced,
|
|
48689
|
-
standard
|
|
48690
|
-
}) => [name, { name, number, description, supported, action, forced, standard }];
|
|
48691
|
-
var signalsByName = getSignalsByName();
|
|
48692
|
-
var getSignalsByNumber = () => {
|
|
48693
|
-
const signals2 = getSignals();
|
|
48694
|
-
const length = SIGRTMAX + 1;
|
|
48695
|
-
const signalsA = Array.from(
|
|
48696
|
-
{ length },
|
|
48697
|
-
(value, number) => getSignalByNumber(number, signals2)
|
|
48698
|
-
);
|
|
48699
|
-
return Object.assign({}, ...signalsA);
|
|
48700
|
-
};
|
|
48701
|
-
var getSignalByNumber = (number, signals2) => {
|
|
48702
|
-
const signal = findSignalByNumber(number, signals2);
|
|
48703
|
-
if (signal === void 0) {
|
|
48704
|
-
return {};
|
|
48705
|
-
}
|
|
48706
|
-
const { name, description, supported, action, forced, standard } = signal;
|
|
48707
|
-
return {
|
|
48708
|
-
[number]: {
|
|
48709
|
-
name,
|
|
48710
|
-
number,
|
|
48711
|
-
description,
|
|
48712
|
-
supported,
|
|
48713
|
-
action,
|
|
48714
|
-
forced,
|
|
48715
|
-
standard
|
|
48716
|
-
}
|
|
48717
|
-
};
|
|
48718
|
-
};
|
|
48719
|
-
var findSignalByNumber = (number, signals2) => {
|
|
48720
|
-
const signal = signals2.find(({ name }) => import_node_os2.constants.signals[name] === number);
|
|
48721
|
-
if (signal !== void 0) {
|
|
48722
|
-
return signal;
|
|
48723
|
-
}
|
|
48724
|
-
return signals2.find((signalA) => signalA.number === number);
|
|
48725
|
-
};
|
|
48726
|
-
var signalsByNumber = getSignalsByNumber();
|
|
48727
|
-
|
|
48728
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
|
|
48729
|
-
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
48730
|
-
if (timedOut) {
|
|
48731
|
-
return `timed out after ${timeout} milliseconds`;
|
|
48732
|
-
}
|
|
48733
|
-
if (isCanceled) {
|
|
48734
|
-
return "was canceled";
|
|
48735
|
-
}
|
|
48736
|
-
if (errorCode !== void 0) {
|
|
48737
|
-
return `failed with ${errorCode}`;
|
|
48738
|
-
}
|
|
48739
|
-
if (signal !== void 0) {
|
|
48740
|
-
return `was killed with ${signal} (${signalDescription})`;
|
|
48741
|
-
}
|
|
48742
|
-
if (exitCode !== void 0) {
|
|
48743
|
-
return `failed with exit code ${exitCode}`;
|
|
48744
|
-
}
|
|
48745
|
-
return "failed";
|
|
48746
|
-
};
|
|
48747
|
-
var makeError = ({
|
|
48748
|
-
stdout,
|
|
48749
|
-
stderr,
|
|
48750
|
-
all,
|
|
48751
|
-
error,
|
|
48752
|
-
signal,
|
|
48753
|
-
exitCode,
|
|
48754
|
-
command,
|
|
48755
|
-
escapedCommand,
|
|
48756
|
-
timedOut,
|
|
48757
|
-
isCanceled,
|
|
48758
|
-
killed,
|
|
48759
|
-
parsed: { options: { timeout, cwd = import_node_process2.default.cwd() } }
|
|
48760
|
-
}) => {
|
|
48761
|
-
exitCode = exitCode === null ? void 0 : exitCode;
|
|
48762
|
-
signal = signal === null ? void 0 : signal;
|
|
48763
|
-
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
48764
|
-
const errorCode = error && error.code;
|
|
48765
|
-
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
48766
|
-
const execaMessage = `Command ${prefix}: ${command}`;
|
|
48767
|
-
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
48768
|
-
const shortMessage = isError ? `${execaMessage}
|
|
48769
|
-
${error.message}` : execaMessage;
|
|
48770
|
-
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
48771
|
-
if (isError) {
|
|
48772
|
-
error.originalMessage = error.message;
|
|
48773
|
-
error.message = message;
|
|
48774
|
-
} else {
|
|
48775
|
-
error = new Error(message);
|
|
48776
|
-
}
|
|
48777
|
-
error.shortMessage = shortMessage;
|
|
48778
|
-
error.command = command;
|
|
48779
|
-
error.escapedCommand = escapedCommand;
|
|
48780
|
-
error.exitCode = exitCode;
|
|
48781
|
-
error.signal = signal;
|
|
48782
|
-
error.signalDescription = signalDescription;
|
|
48783
|
-
error.stdout = stdout;
|
|
48784
|
-
error.stderr = stderr;
|
|
48785
|
-
error.cwd = cwd;
|
|
48786
|
-
if (all !== void 0) {
|
|
48787
|
-
error.all = all;
|
|
48788
|
-
}
|
|
48789
|
-
if ("bufferedData" in error) {
|
|
48790
|
-
delete error.bufferedData;
|
|
48791
|
-
}
|
|
48792
|
-
error.failed = true;
|
|
48793
|
-
error.timedOut = Boolean(timedOut);
|
|
48794
|
-
error.isCanceled = isCanceled;
|
|
48795
|
-
error.killed = killed && !timedOut;
|
|
48796
|
-
return error;
|
|
48797
|
-
};
|
|
48798
|
-
|
|
48799
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
|
|
48800
|
-
var aliases = ["stdin", "stdout", "stderr"];
|
|
48801
|
-
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
48802
|
-
var normalizeStdio = (options) => {
|
|
48803
|
-
if (!options) {
|
|
48804
|
-
return;
|
|
48805
|
-
}
|
|
48806
|
-
const { stdio } = options;
|
|
48807
|
-
if (stdio === void 0) {
|
|
48808
|
-
return aliases.map((alias) => options[alias]);
|
|
48809
|
-
}
|
|
48810
|
-
if (hasAlias(options)) {
|
|
48811
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
48812
|
-
}
|
|
48813
|
-
if (typeof stdio === "string") {
|
|
48814
|
-
return stdio;
|
|
48815
|
-
}
|
|
48816
|
-
if (!Array.isArray(stdio)) {
|
|
48817
|
-
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
48818
|
-
}
|
|
48819
|
-
const length = Math.max(stdio.length, aliases.length);
|
|
48820
|
-
return Array.from({ length }, (value, index) => stdio[index]);
|
|
48821
|
-
};
|
|
48822
|
-
|
|
48823
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
48824
|
-
var import_node_os3 = __toESM(require("node:os"), 1);
|
|
48825
|
-
|
|
48826
|
-
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
|
|
48827
|
-
var signals = [];
|
|
48828
|
-
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
48829
|
-
if (process.platform !== "win32") {
|
|
48830
|
-
signals.push(
|
|
48831
|
-
"SIGALRM",
|
|
48832
|
-
"SIGABRT",
|
|
48833
|
-
"SIGVTALRM",
|
|
48834
|
-
"SIGXCPU",
|
|
48835
|
-
"SIGXFSZ",
|
|
48836
|
-
"SIGUSR2",
|
|
48837
|
-
"SIGTRAP",
|
|
48838
|
-
"SIGSYS",
|
|
48839
|
-
"SIGQUIT",
|
|
48840
|
-
"SIGIOT"
|
|
48841
|
-
// should detect profiler and enable/disable accordingly.
|
|
48842
|
-
// see #21
|
|
48843
|
-
// 'SIGPROF'
|
|
48844
|
-
);
|
|
48845
|
-
}
|
|
48846
|
-
if (process.platform === "linux") {
|
|
48847
|
-
signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
48848
|
-
}
|
|
48849
|
-
|
|
48850
|
-
// node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
|
|
48851
|
-
var processOk = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
|
|
48852
|
-
var kExitEmitter = Symbol.for("signal-exit emitter");
|
|
48853
|
-
var global2 = globalThis;
|
|
48854
|
-
var ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
48855
|
-
var Emitter = class {
|
|
48856
|
-
emitted = {
|
|
48857
|
-
afterExit: false,
|
|
48858
|
-
exit: false
|
|
48859
|
-
};
|
|
48860
|
-
listeners = {
|
|
48861
|
-
afterExit: [],
|
|
48862
|
-
exit: []
|
|
48863
|
-
};
|
|
48864
|
-
count = 0;
|
|
48865
|
-
id = Math.random();
|
|
48866
|
-
constructor() {
|
|
48867
|
-
if (global2[kExitEmitter]) {
|
|
48868
|
-
return global2[kExitEmitter];
|
|
48869
|
-
}
|
|
48870
|
-
ObjectDefineProperty(global2, kExitEmitter, {
|
|
48871
|
-
value: this,
|
|
48872
|
-
writable: false,
|
|
48873
|
-
enumerable: false,
|
|
48874
|
-
configurable: false
|
|
48875
|
-
});
|
|
48876
|
-
}
|
|
48877
|
-
on(ev, fn) {
|
|
48878
|
-
this.listeners[ev].push(fn);
|
|
48879
|
-
}
|
|
48880
|
-
removeListener(ev, fn) {
|
|
48881
|
-
const list = this.listeners[ev];
|
|
48882
|
-
const i = list.indexOf(fn);
|
|
48883
|
-
if (i === -1) {
|
|
48884
|
-
return;
|
|
48885
|
-
}
|
|
48886
|
-
if (i === 0 && list.length === 1) {
|
|
48887
|
-
list.length = 0;
|
|
48888
|
-
} else {
|
|
48889
|
-
list.splice(i, 1);
|
|
48890
|
-
}
|
|
48891
|
-
}
|
|
48892
|
-
emit(ev, code, signal) {
|
|
48893
|
-
if (this.emitted[ev]) {
|
|
48894
|
-
return false;
|
|
48895
|
-
}
|
|
48896
|
-
this.emitted[ev] = true;
|
|
48897
|
-
let ret = false;
|
|
48898
|
-
for (const fn of this.listeners[ev]) {
|
|
48899
|
-
ret = fn(code, signal) === true || ret;
|
|
48900
|
-
}
|
|
48901
|
-
if (ev === "exit") {
|
|
48902
|
-
ret = this.emit("afterExit", code, signal) || ret;
|
|
48903
|
-
}
|
|
48904
|
-
return ret;
|
|
48905
|
-
}
|
|
48906
|
-
};
|
|
48907
|
-
var SignalExitBase = class {
|
|
48908
|
-
};
|
|
48909
|
-
var signalExitWrap = (handler) => {
|
|
48910
|
-
return {
|
|
48911
|
-
onExit(cb, opts) {
|
|
48912
|
-
return handler.onExit(cb, opts);
|
|
48913
|
-
},
|
|
48914
|
-
load() {
|
|
48915
|
-
return handler.load();
|
|
48916
|
-
},
|
|
48917
|
-
unload() {
|
|
48918
|
-
return handler.unload();
|
|
48919
|
-
}
|
|
48920
|
-
};
|
|
48921
|
-
};
|
|
48922
|
-
var SignalExitFallback = class extends SignalExitBase {
|
|
48923
|
-
onExit() {
|
|
48924
|
-
return () => {
|
|
48925
|
-
};
|
|
48926
|
-
}
|
|
48927
|
-
load() {
|
|
48928
|
-
}
|
|
48929
|
-
unload() {
|
|
48930
|
-
}
|
|
48931
|
-
};
|
|
48932
|
-
var SignalExit = class extends SignalExitBase {
|
|
48933
|
-
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
48934
|
-
// so use a supported signal instead
|
|
48935
|
-
/* c8 ignore start */
|
|
48936
|
-
#hupSig = process4.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
48937
|
-
/* c8 ignore stop */
|
|
48938
|
-
#emitter = new Emitter();
|
|
48939
|
-
#process;
|
|
48940
|
-
#originalProcessEmit;
|
|
48941
|
-
#originalProcessReallyExit;
|
|
48942
|
-
#sigListeners = {};
|
|
48943
|
-
#loaded = false;
|
|
48944
|
-
constructor(process7) {
|
|
48945
|
-
super();
|
|
48946
|
-
this.#process = process7;
|
|
48947
|
-
this.#sigListeners = {};
|
|
48948
|
-
for (const sig of signals) {
|
|
48949
|
-
this.#sigListeners[sig] = () => {
|
|
48950
|
-
const listeners = this.#process.listeners(sig);
|
|
48951
|
-
let { count } = this.#emitter;
|
|
48952
|
-
const p = process7;
|
|
48953
|
-
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
48954
|
-
count += p.__signal_exit_emitter__.count;
|
|
48955
|
-
}
|
|
48956
|
-
if (listeners.length === count) {
|
|
48957
|
-
this.unload();
|
|
48958
|
-
const ret = this.#emitter.emit("exit", null, sig);
|
|
48959
|
-
const s = sig === "SIGHUP" ? this.#hupSig : sig;
|
|
48960
|
-
if (!ret)
|
|
48961
|
-
process7.kill(process7.pid, s);
|
|
48962
|
-
}
|
|
48963
|
-
};
|
|
48964
|
-
}
|
|
48965
|
-
this.#originalProcessReallyExit = process7.reallyExit;
|
|
48966
|
-
this.#originalProcessEmit = process7.emit;
|
|
48967
|
-
}
|
|
48968
|
-
onExit(cb, opts) {
|
|
48969
|
-
if (!processOk(this.#process)) {
|
|
48970
|
-
return () => {
|
|
48971
|
-
};
|
|
48972
|
-
}
|
|
48973
|
-
if (this.#loaded === false) {
|
|
48974
|
-
this.load();
|
|
48975
|
-
}
|
|
48976
|
-
const ev = opts?.alwaysLast ? "afterExit" : "exit";
|
|
48977
|
-
this.#emitter.on(ev, cb);
|
|
48978
|
-
return () => {
|
|
48979
|
-
this.#emitter.removeListener(ev, cb);
|
|
48980
|
-
if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
|
|
48981
|
-
this.unload();
|
|
48982
|
-
}
|
|
48983
|
-
};
|
|
48984
|
-
}
|
|
48985
|
-
load() {
|
|
48986
|
-
if (this.#loaded) {
|
|
48987
|
-
return;
|
|
48988
|
-
}
|
|
48989
|
-
this.#loaded = true;
|
|
48990
|
-
this.#emitter.count += 1;
|
|
48991
|
-
for (const sig of signals) {
|
|
48992
|
-
try {
|
|
48993
|
-
const fn = this.#sigListeners[sig];
|
|
48994
|
-
if (fn)
|
|
48995
|
-
this.#process.on(sig, fn);
|
|
48996
|
-
} catch (_) {
|
|
48997
|
-
}
|
|
48998
|
-
}
|
|
48999
|
-
this.#process.emit = (ev, ...a) => {
|
|
49000
|
-
return this.#processEmit(ev, ...a);
|
|
49001
|
-
};
|
|
49002
|
-
this.#process.reallyExit = (code) => {
|
|
49003
|
-
return this.#processReallyExit(code);
|
|
49004
|
-
};
|
|
49005
|
-
}
|
|
49006
|
-
unload() {
|
|
49007
|
-
if (!this.#loaded) {
|
|
49008
|
-
return;
|
|
49009
|
-
}
|
|
49010
|
-
this.#loaded = false;
|
|
49011
|
-
signals.forEach((sig) => {
|
|
49012
|
-
const listener = this.#sigListeners[sig];
|
|
49013
|
-
if (!listener) {
|
|
49014
|
-
throw new Error("Listener not defined for signal: " + sig);
|
|
49015
|
-
}
|
|
49016
|
-
try {
|
|
49017
|
-
this.#process.removeListener(sig, listener);
|
|
49018
|
-
} catch (_) {
|
|
49019
|
-
}
|
|
49020
|
-
});
|
|
49021
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
49022
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
49023
|
-
this.#emitter.count -= 1;
|
|
49024
|
-
}
|
|
49025
|
-
#processReallyExit(code) {
|
|
49026
|
-
if (!processOk(this.#process)) {
|
|
49027
|
-
return 0;
|
|
49028
|
-
}
|
|
49029
|
-
this.#process.exitCode = code || 0;
|
|
49030
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
49031
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
49032
|
-
}
|
|
49033
|
-
#processEmit(ev, ...args) {
|
|
49034
|
-
const og = this.#originalProcessEmit;
|
|
49035
|
-
if (ev === "exit" && processOk(this.#process)) {
|
|
49036
|
-
if (typeof args[0] === "number") {
|
|
49037
|
-
this.#process.exitCode = args[0];
|
|
49038
|
-
}
|
|
49039
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
49040
|
-
this.#emitter.emit("exit", this.#process.exitCode, null);
|
|
49041
|
-
return ret;
|
|
49042
|
-
} else {
|
|
49043
|
-
return og.call(this.#process, ev, ...args);
|
|
49044
|
-
}
|
|
49045
|
-
}
|
|
49046
|
-
};
|
|
49047
|
-
var process4 = globalThis.process;
|
|
49048
|
-
var {
|
|
49049
|
-
/**
|
|
49050
|
-
* Called when the process is exiting, whether via signal, explicit
|
|
49051
|
-
* exit, or running out of stuff to do.
|
|
49052
|
-
*
|
|
49053
|
-
* If the global process object is not suitable for instrumentation,
|
|
49054
|
-
* then this will be a no-op.
|
|
49055
|
-
*
|
|
49056
|
-
* Returns a function that may be used to unload signal-exit.
|
|
49057
|
-
*/
|
|
49058
|
-
onExit,
|
|
49059
|
-
/**
|
|
49060
|
-
* Load the listeners. Likely you never need to call this, unless
|
|
49061
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
49062
|
-
* Mostly exposed for the benefit of testing.
|
|
49063
|
-
*
|
|
49064
|
-
* @internal
|
|
49065
|
-
*/
|
|
49066
|
-
load,
|
|
49067
|
-
/**
|
|
49068
|
-
* Unload the listeners. Likely you never need to call this, unless
|
|
49069
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
49070
|
-
* Mostly exposed for the benefit of testing.
|
|
49071
|
-
*
|
|
49072
|
-
* @internal
|
|
49073
|
-
*/
|
|
49074
|
-
unload
|
|
49075
|
-
} = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
|
|
49076
|
-
|
|
49077
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
|
|
49078
|
-
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
49079
|
-
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
49080
|
-
const killResult = kill(signal);
|
|
49081
|
-
setKillTimeout(kill, signal, options, killResult);
|
|
49082
|
-
return killResult;
|
|
49083
|
-
};
|
|
49084
|
-
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
49085
|
-
if (!shouldForceKill(signal, options, killResult)) {
|
|
49086
|
-
return;
|
|
49087
|
-
}
|
|
49088
|
-
const timeout = getForceKillAfterTimeout(options);
|
|
49089
|
-
const t = setTimeout(() => {
|
|
49090
|
-
kill("SIGKILL");
|
|
49091
|
-
}, timeout);
|
|
49092
|
-
if (t.unref) {
|
|
49093
|
-
t.unref();
|
|
49094
|
-
}
|
|
49095
|
-
};
|
|
49096
|
-
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
49097
|
-
var isSigterm = (signal) => signal === import_node_os3.default.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
49098
|
-
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
49099
|
-
if (forceKillAfterTimeout === true) {
|
|
49100
|
-
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
49101
|
-
}
|
|
49102
|
-
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
49103
|
-
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
49104
|
-
}
|
|
49105
|
-
return forceKillAfterTimeout;
|
|
49106
|
-
};
|
|
49107
|
-
var spawnedCancel = (spawned, context) => {
|
|
49108
|
-
const killResult = spawned.kill();
|
|
49109
|
-
if (killResult) {
|
|
49110
|
-
context.isCanceled = true;
|
|
49111
|
-
}
|
|
49112
|
-
};
|
|
49113
|
-
var timeoutKill = (spawned, signal, reject) => {
|
|
49114
|
-
spawned.kill(signal);
|
|
49115
|
-
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
49116
|
-
};
|
|
49117
|
-
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
49118
|
-
if (timeout === 0 || timeout === void 0) {
|
|
49119
|
-
return spawnedPromise;
|
|
49120
|
-
}
|
|
49121
|
-
let timeoutId;
|
|
49122
|
-
const timeoutPromise = new Promise((resolve, reject) => {
|
|
49123
|
-
timeoutId = setTimeout(() => {
|
|
49124
|
-
timeoutKill(spawned, killSignal, reject);
|
|
49125
|
-
}, timeout);
|
|
49126
|
-
});
|
|
49127
|
-
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
49128
|
-
clearTimeout(timeoutId);
|
|
49129
|
-
});
|
|
49130
|
-
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
49131
|
-
};
|
|
49132
|
-
var validateTimeout = ({ timeout }) => {
|
|
49133
|
-
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
49134
|
-
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
49135
|
-
}
|
|
49136
|
-
};
|
|
49137
|
-
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
49138
|
-
if (!cleanup || detached) {
|
|
49139
|
-
return timedPromise;
|
|
49140
|
-
}
|
|
49141
|
-
const removeExitHandler = onExit(() => {
|
|
49142
|
-
spawned.kill();
|
|
49143
|
-
});
|
|
49144
|
-
return timedPromise.finally(() => {
|
|
49145
|
-
removeExitHandler();
|
|
49146
|
-
});
|
|
49147
|
-
};
|
|
49148
|
-
|
|
49149
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
49150
|
-
var import_node_fs3 = require("node:fs");
|
|
49151
|
-
var import_node_child_process = require("node:child_process");
|
|
49152
|
-
|
|
49153
|
-
// node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
|
|
49154
|
-
function isStream(stream) {
|
|
49155
|
-
return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
49156
|
-
}
|
|
49157
|
-
function isWritableStream(stream) {
|
|
49158
|
-
return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
49159
|
-
}
|
|
49160
|
-
|
|
49161
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
|
|
49162
|
-
var isExecaChildProcess = (target) => target instanceof import_node_child_process.ChildProcess && typeof target.then === "function";
|
|
49163
|
-
var pipeToTarget = (spawned, streamName, target) => {
|
|
49164
|
-
if (typeof target === "string") {
|
|
49165
|
-
spawned[streamName].pipe((0, import_node_fs3.createWriteStream)(target));
|
|
49166
|
-
return spawned;
|
|
49167
|
-
}
|
|
49168
|
-
if (isWritableStream(target)) {
|
|
49169
|
-
spawned[streamName].pipe(target);
|
|
49170
|
-
return spawned;
|
|
49171
|
-
}
|
|
49172
|
-
if (!isExecaChildProcess(target)) {
|
|
49173
|
-
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
49174
|
-
}
|
|
49175
|
-
if (!isWritableStream(target.stdin)) {
|
|
49176
|
-
throw new TypeError("The target child process's stdin must be available.");
|
|
49177
|
-
}
|
|
49178
|
-
spawned[streamName].pipe(target.stdin);
|
|
49179
|
-
return target;
|
|
49180
|
-
};
|
|
49181
|
-
var addPipeMethods = (spawned) => {
|
|
49182
|
-
if (spawned.stdout !== null) {
|
|
49183
|
-
spawned.pipeStdout = pipeToTarget.bind(void 0, spawned, "stdout");
|
|
49184
|
-
}
|
|
49185
|
-
if (spawned.stderr !== null) {
|
|
49186
|
-
spawned.pipeStderr = pipeToTarget.bind(void 0, spawned, "stderr");
|
|
49187
|
-
}
|
|
49188
|
-
if (spawned.all !== void 0) {
|
|
49189
|
-
spawned.pipeAll = pipeToTarget.bind(void 0, spawned, "all");
|
|
49190
|
-
}
|
|
49191
|
-
};
|
|
49192
|
-
|
|
49193
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
49194
|
-
var import_node_fs4 = require("node:fs");
|
|
49195
|
-
var import_promises = require("node:timers/promises");
|
|
49196
|
-
|
|
49197
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
|
|
49198
|
-
var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
|
|
49199
|
-
if (!isAsyncIterable(stream)) {
|
|
49200
|
-
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
49201
|
-
}
|
|
49202
|
-
const state = init();
|
|
49203
|
-
state.length = 0;
|
|
49204
|
-
try {
|
|
49205
|
-
for await (const chunk of stream) {
|
|
49206
|
-
const chunkType = getChunkType(chunk);
|
|
49207
|
-
const convertedChunk = convertChunk[chunkType](chunk, state);
|
|
49208
|
-
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
49209
|
-
}
|
|
49210
|
-
appendFinalChunk({ state, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer });
|
|
49211
|
-
return finalize(state);
|
|
49212
|
-
} catch (error) {
|
|
49213
|
-
error.bufferedData = finalize(state);
|
|
49214
|
-
throw error;
|
|
49215
|
-
}
|
|
49216
|
-
};
|
|
49217
|
-
var appendFinalChunk = ({ state, getSize, truncateChunk, addChunk, getFinalChunk, maxBuffer }) => {
|
|
49218
|
-
const convertedChunk = getFinalChunk(state);
|
|
49219
|
-
if (convertedChunk !== void 0) {
|
|
49220
|
-
appendChunk({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer });
|
|
49221
|
-
}
|
|
49222
|
-
};
|
|
49223
|
-
var appendChunk = ({ convertedChunk, state, getSize, truncateChunk, addChunk, maxBuffer }) => {
|
|
49224
|
-
const chunkSize = getSize(convertedChunk);
|
|
49225
|
-
const newLength = state.length + chunkSize;
|
|
49226
|
-
if (newLength <= maxBuffer) {
|
|
49227
|
-
addNewChunk(convertedChunk, state, addChunk, newLength);
|
|
49228
|
-
return;
|
|
49229
|
-
}
|
|
49230
|
-
const truncatedChunk = truncateChunk(convertedChunk, maxBuffer - state.length);
|
|
49231
|
-
if (truncatedChunk !== void 0) {
|
|
49232
|
-
addNewChunk(truncatedChunk, state, addChunk, maxBuffer);
|
|
49233
|
-
}
|
|
49234
|
-
throw new MaxBufferError();
|
|
49235
|
-
};
|
|
49236
|
-
var addNewChunk = (convertedChunk, state, addChunk, newLength) => {
|
|
49237
|
-
state.contents = addChunk(convertedChunk, state, newLength);
|
|
49238
|
-
state.length = newLength;
|
|
49239
|
-
};
|
|
49240
|
-
var isAsyncIterable = (stream) => typeof stream === "object" && stream !== null && typeof stream[Symbol.asyncIterator] === "function";
|
|
49241
|
-
var getChunkType = (chunk) => {
|
|
49242
|
-
const typeOfChunk = typeof chunk;
|
|
49243
|
-
if (typeOfChunk === "string") {
|
|
49244
|
-
return "string";
|
|
49245
|
-
}
|
|
49246
|
-
if (typeOfChunk !== "object" || chunk === null) {
|
|
49247
|
-
return "others";
|
|
49248
|
-
}
|
|
49249
|
-
if (globalThis.Buffer?.isBuffer(chunk)) {
|
|
49250
|
-
return "buffer";
|
|
49251
|
-
}
|
|
49252
|
-
const prototypeName = objectToString.call(chunk);
|
|
49253
|
-
if (prototypeName === "[object ArrayBuffer]") {
|
|
49254
|
-
return "arrayBuffer";
|
|
49255
|
-
}
|
|
49256
|
-
if (prototypeName === "[object DataView]") {
|
|
49257
|
-
return "dataView";
|
|
49258
|
-
}
|
|
49259
|
-
if (Number.isInteger(chunk.byteLength) && Number.isInteger(chunk.byteOffset) && objectToString.call(chunk.buffer) === "[object ArrayBuffer]") {
|
|
49260
|
-
return "typedArray";
|
|
49261
|
-
}
|
|
49262
|
-
return "others";
|
|
49263
|
-
};
|
|
49264
|
-
var { toString: objectToString } = Object.prototype;
|
|
49265
|
-
var MaxBufferError = class extends Error {
|
|
49266
|
-
name = "MaxBufferError";
|
|
49267
|
-
constructor() {
|
|
49268
|
-
super("maxBuffer exceeded");
|
|
49269
|
-
}
|
|
49270
|
-
};
|
|
49271
|
-
|
|
49272
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
|
|
49273
|
-
var identity = (value) => value;
|
|
49274
|
-
var noop = () => void 0;
|
|
49275
|
-
var getContentsProp = ({ contents }) => contents;
|
|
49276
|
-
var throwObjectStream = (chunk) => {
|
|
49277
|
-
throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
|
|
49278
|
-
};
|
|
49279
|
-
var getLengthProp = (convertedChunk) => convertedChunk.length;
|
|
49280
|
-
|
|
49281
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
|
|
49282
|
-
async function getStreamAsArrayBuffer(stream, options) {
|
|
49283
|
-
return getStreamContents(stream, arrayBufferMethods, options);
|
|
49284
|
-
}
|
|
49285
|
-
var initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
|
|
49286
|
-
var useTextEncoder = (chunk) => textEncoder.encode(chunk);
|
|
49287
|
-
var textEncoder = new TextEncoder();
|
|
49288
|
-
var useUint8Array = (chunk) => new Uint8Array(chunk);
|
|
49289
|
-
var useUint8ArrayWithOffset = (chunk) => new Uint8Array(chunk.buffer, chunk.byteOffset, chunk.byteLength);
|
|
49290
|
-
var truncateArrayBufferChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
49291
|
-
var addArrayBufferChunk = (convertedChunk, { contents, length: previousLength }, length) => {
|
|
49292
|
-
const newContents = hasArrayBufferResize() ? resizeArrayBuffer(contents, length) : resizeArrayBufferSlow(contents, length);
|
|
49293
|
-
new Uint8Array(newContents).set(convertedChunk, previousLength);
|
|
49294
|
-
return newContents;
|
|
49295
|
-
};
|
|
49296
|
-
var resizeArrayBufferSlow = (contents, length) => {
|
|
49297
|
-
if (length <= contents.byteLength) {
|
|
49298
|
-
return contents;
|
|
49299
|
-
}
|
|
49300
|
-
const arrayBuffer = new ArrayBuffer(getNewContentsLength(length));
|
|
49301
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
49302
|
-
return arrayBuffer;
|
|
49303
|
-
};
|
|
49304
|
-
var resizeArrayBuffer = (contents, length) => {
|
|
49305
|
-
if (length <= contents.maxByteLength) {
|
|
49306
|
-
contents.resize(length);
|
|
49307
|
-
return contents;
|
|
49308
|
-
}
|
|
49309
|
-
const arrayBuffer = new ArrayBuffer(length, { maxByteLength: getNewContentsLength(length) });
|
|
49310
|
-
new Uint8Array(arrayBuffer).set(new Uint8Array(contents), 0);
|
|
49311
|
-
return arrayBuffer;
|
|
49312
|
-
};
|
|
49313
|
-
var getNewContentsLength = (length) => SCALE_FACTOR ** Math.ceil(Math.log(length) / Math.log(SCALE_FACTOR));
|
|
49314
|
-
var SCALE_FACTOR = 2;
|
|
49315
|
-
var finalizeArrayBuffer = ({ contents, length }) => hasArrayBufferResize() ? contents : contents.slice(0, length);
|
|
49316
|
-
var hasArrayBufferResize = () => "resize" in ArrayBuffer.prototype;
|
|
49317
|
-
var arrayBufferMethods = {
|
|
49318
|
-
init: initArrayBuffer,
|
|
49319
|
-
convertChunk: {
|
|
49320
|
-
string: useTextEncoder,
|
|
49321
|
-
buffer: useUint8Array,
|
|
49322
|
-
arrayBuffer: useUint8Array,
|
|
49323
|
-
dataView: useUint8ArrayWithOffset,
|
|
49324
|
-
typedArray: useUint8ArrayWithOffset,
|
|
49325
|
-
others: throwObjectStream
|
|
49326
|
-
},
|
|
49327
|
-
getSize: getLengthProp,
|
|
49328
|
-
truncateChunk: truncateArrayBufferChunk,
|
|
49329
|
-
addChunk: addArrayBufferChunk,
|
|
49330
|
-
getFinalChunk: noop,
|
|
49331
|
-
finalize: finalizeArrayBuffer
|
|
49332
|
-
};
|
|
49333
|
-
|
|
49334
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
|
|
49335
|
-
async function getStreamAsBuffer(stream, options) {
|
|
49336
|
-
if (!("Buffer" in globalThis)) {
|
|
49337
|
-
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
49338
|
-
}
|
|
49339
|
-
try {
|
|
49340
|
-
return arrayBufferToNodeBuffer(await getStreamAsArrayBuffer(stream, options));
|
|
49341
|
-
} catch (error) {
|
|
49342
|
-
if (error.bufferedData !== void 0) {
|
|
49343
|
-
error.bufferedData = arrayBufferToNodeBuffer(error.bufferedData);
|
|
49344
|
-
}
|
|
49345
|
-
throw error;
|
|
49346
|
-
}
|
|
49347
|
-
}
|
|
49348
|
-
var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
|
|
49349
|
-
|
|
49350
|
-
// node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
|
|
49351
|
-
async function getStreamAsString(stream, options) {
|
|
49352
|
-
return getStreamContents(stream, stringMethods, options);
|
|
49353
|
-
}
|
|
49354
|
-
var initString = () => ({ contents: "", textDecoder: new TextDecoder() });
|
|
49355
|
-
var useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
|
|
49356
|
-
var addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
|
|
49357
|
-
var truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
|
|
49358
|
-
var getFinalStringChunk = ({ textDecoder }) => {
|
|
49359
|
-
const finalChunk = textDecoder.decode();
|
|
49360
|
-
return finalChunk === "" ? void 0 : finalChunk;
|
|
49361
|
-
};
|
|
49362
|
-
var stringMethods = {
|
|
49363
|
-
init: initString,
|
|
49364
|
-
convertChunk: {
|
|
49365
|
-
string: identity,
|
|
49366
|
-
buffer: useTextDecoder,
|
|
49367
|
-
arrayBuffer: useTextDecoder,
|
|
49368
|
-
dataView: useTextDecoder,
|
|
49369
|
-
typedArray: useTextDecoder,
|
|
49370
|
-
others: throwObjectStream
|
|
49371
|
-
},
|
|
49372
|
-
getSize: getLengthProp,
|
|
49373
|
-
truncateChunk: truncateStringChunk,
|
|
49374
|
-
addChunk: addStringChunk,
|
|
49375
|
-
getFinalChunk: getFinalStringChunk,
|
|
49376
|
-
finalize: getContentsProp
|
|
49377
|
-
};
|
|
49378
|
-
|
|
49379
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
|
|
49380
|
-
var import_merge_stream = __toESM(require_merge_stream(), 1);
|
|
49381
|
-
var validateInputOptions = (input) => {
|
|
49382
|
-
if (input !== void 0) {
|
|
49383
|
-
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
49384
|
-
}
|
|
49385
|
-
};
|
|
49386
|
-
var getInputSync = ({ input, inputFile }) => {
|
|
49387
|
-
if (typeof inputFile !== "string") {
|
|
49388
|
-
return input;
|
|
49389
|
-
}
|
|
49390
|
-
validateInputOptions(input);
|
|
49391
|
-
return (0, import_node_fs4.readFileSync)(inputFile);
|
|
49392
|
-
};
|
|
49393
|
-
var handleInputSync = (options) => {
|
|
49394
|
-
const input = getInputSync(options);
|
|
49395
|
-
if (isStream(input)) {
|
|
49396
|
-
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
49397
|
-
}
|
|
49398
|
-
return input;
|
|
49399
|
-
};
|
|
49400
|
-
var getInput = ({ input, inputFile }) => {
|
|
49401
|
-
if (typeof inputFile !== "string") {
|
|
49402
|
-
return input;
|
|
49403
|
-
}
|
|
49404
|
-
validateInputOptions(input);
|
|
49405
|
-
return (0, import_node_fs4.createReadStream)(inputFile);
|
|
49406
|
-
};
|
|
49407
|
-
var handleInput = (spawned, options) => {
|
|
49408
|
-
const input = getInput(options);
|
|
49409
|
-
if (input === void 0) {
|
|
49410
|
-
return;
|
|
49411
|
-
}
|
|
49412
|
-
if (isStream(input)) {
|
|
49413
|
-
input.pipe(spawned.stdin);
|
|
49414
|
-
} else {
|
|
49415
|
-
spawned.stdin.end(input);
|
|
49416
|
-
}
|
|
49417
|
-
};
|
|
49418
|
-
var makeAllStream = (spawned, { all }) => {
|
|
49419
|
-
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
49420
|
-
return;
|
|
49421
|
-
}
|
|
49422
|
-
const mixed = (0, import_merge_stream.default)();
|
|
49423
|
-
if (spawned.stdout) {
|
|
49424
|
-
mixed.add(spawned.stdout);
|
|
49425
|
-
}
|
|
49426
|
-
if (spawned.stderr) {
|
|
49427
|
-
mixed.add(spawned.stderr);
|
|
49428
|
-
}
|
|
49429
|
-
return mixed;
|
|
49430
|
-
};
|
|
49431
|
-
var getBufferedData = async (stream, streamPromise) => {
|
|
49432
|
-
if (!stream || streamPromise === void 0) {
|
|
49433
|
-
return;
|
|
49434
|
-
}
|
|
49435
|
-
await (0, import_promises.setTimeout)(0);
|
|
49436
|
-
stream.destroy();
|
|
49437
|
-
try {
|
|
49438
|
-
return await streamPromise;
|
|
49439
|
-
} catch (error) {
|
|
49440
|
-
return error.bufferedData;
|
|
49441
|
-
}
|
|
49442
|
-
};
|
|
49443
|
-
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
49444
|
-
if (!stream || !buffer) {
|
|
49445
|
-
return;
|
|
49446
|
-
}
|
|
49447
|
-
if (encoding === "utf8" || encoding === "utf-8") {
|
|
49448
|
-
return getStreamAsString(stream, { maxBuffer });
|
|
49449
|
-
}
|
|
49450
|
-
if (encoding === null || encoding === "buffer") {
|
|
49451
|
-
return getStreamAsBuffer(stream, { maxBuffer });
|
|
49452
|
-
}
|
|
49453
|
-
return applyEncoding(stream, maxBuffer, encoding);
|
|
49454
|
-
};
|
|
49455
|
-
var applyEncoding = async (stream, maxBuffer, encoding) => {
|
|
49456
|
-
const buffer = await getStreamAsBuffer(stream, { maxBuffer });
|
|
49457
|
-
return buffer.toString(encoding);
|
|
49458
|
-
};
|
|
49459
|
-
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
49460
|
-
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
49461
|
-
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
49462
|
-
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
49463
|
-
try {
|
|
49464
|
-
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
49465
|
-
} catch (error) {
|
|
49466
|
-
return Promise.all([
|
|
49467
|
-
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
49468
|
-
getBufferedData(stdout, stdoutPromise),
|
|
49469
|
-
getBufferedData(stderr, stderrPromise),
|
|
49470
|
-
getBufferedData(all, allPromise)
|
|
49471
|
-
]);
|
|
49472
|
-
}
|
|
49473
|
-
};
|
|
49474
|
-
|
|
49475
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
|
|
49476
|
-
var nativePromisePrototype = (async () => {
|
|
49477
|
-
})().constructor.prototype;
|
|
49478
|
-
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
49479
|
-
property,
|
|
49480
|
-
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
49481
|
-
]);
|
|
49482
|
-
var mergePromise = (spawned, promise) => {
|
|
49483
|
-
for (const [property, descriptor] of descriptors) {
|
|
49484
|
-
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
49485
|
-
Reflect.defineProperty(spawned, property, { ...descriptor, value });
|
|
49486
|
-
}
|
|
49487
|
-
};
|
|
49488
|
-
var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
|
|
49489
|
-
spawned.on("exit", (exitCode, signal) => {
|
|
49490
|
-
resolve({ exitCode, signal });
|
|
49491
|
-
});
|
|
49492
|
-
spawned.on("error", (error) => {
|
|
49493
|
-
reject(error);
|
|
49494
|
-
});
|
|
49495
|
-
if (spawned.stdin) {
|
|
49496
|
-
spawned.stdin.on("error", (error) => {
|
|
49497
|
-
reject(error);
|
|
49498
|
-
});
|
|
49499
|
-
}
|
|
49500
|
-
});
|
|
49501
|
-
|
|
49502
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
|
|
49503
|
-
var import_node_buffer = require("node:buffer");
|
|
49504
|
-
var import_node_child_process2 = require("node:child_process");
|
|
49505
|
-
var normalizeArgs = (file, args = []) => {
|
|
49506
|
-
if (!Array.isArray(args)) {
|
|
49507
|
-
return [file];
|
|
49508
|
-
}
|
|
49509
|
-
return [file, ...args];
|
|
49510
|
-
};
|
|
49511
|
-
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
49512
|
-
var escapeArg = (arg) => {
|
|
49513
|
-
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
49514
|
-
return arg;
|
|
49515
|
-
}
|
|
49516
|
-
return `"${arg.replaceAll('"', '\\"')}"`;
|
|
49517
|
-
};
|
|
49518
|
-
var joinCommand = (file, args) => normalizeArgs(file, args).join(" ");
|
|
49519
|
-
var getEscapedCommand = (file, args) => normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
49520
|
-
var SPACES_REGEXP = / +/g;
|
|
49521
|
-
var parseExpression = (expression) => {
|
|
49522
|
-
const typeOfExpression = typeof expression;
|
|
49523
|
-
if (typeOfExpression === "string") {
|
|
49524
|
-
return expression;
|
|
49525
|
-
}
|
|
49526
|
-
if (typeOfExpression === "number") {
|
|
49527
|
-
return String(expression);
|
|
49528
|
-
}
|
|
49529
|
-
if (typeOfExpression === "object" && expression !== null && !(expression instanceof import_node_child_process2.ChildProcess) && "stdout" in expression) {
|
|
49530
|
-
const typeOfStdout = typeof expression.stdout;
|
|
49531
|
-
if (typeOfStdout === "string") {
|
|
49532
|
-
return expression.stdout;
|
|
49533
|
-
}
|
|
49534
|
-
if (import_node_buffer.Buffer.isBuffer(expression.stdout)) {
|
|
49535
|
-
return expression.stdout.toString();
|
|
49536
|
-
}
|
|
49537
|
-
throw new TypeError(`Unexpected "${typeOfStdout}" stdout in template expression`);
|
|
49538
|
-
}
|
|
49539
|
-
throw new TypeError(`Unexpected "${typeOfExpression}" in template expression`);
|
|
49540
|
-
};
|
|
49541
|
-
var concatTokens = (tokens, nextTokens, isNew) => isNew || tokens.length === 0 || nextTokens.length === 0 ? [...tokens, ...nextTokens] : [
|
|
49542
|
-
...tokens.slice(0, -1),
|
|
49543
|
-
`${tokens.at(-1)}${nextTokens[0]}`,
|
|
49544
|
-
...nextTokens.slice(1)
|
|
49545
|
-
];
|
|
49546
|
-
var parseTemplate = ({ templates, expressions, tokens, index, template }) => {
|
|
49547
|
-
const templateString = template ?? templates.raw[index];
|
|
49548
|
-
const templateTokens = templateString.split(SPACES_REGEXP).filter(Boolean);
|
|
49549
|
-
const newTokens = concatTokens(
|
|
49550
|
-
tokens,
|
|
49551
|
-
templateTokens,
|
|
49552
|
-
templateString.startsWith(" ")
|
|
49553
|
-
);
|
|
49554
|
-
if (index === expressions.length) {
|
|
49555
|
-
return newTokens;
|
|
49556
|
-
}
|
|
49557
|
-
const expression = expressions[index];
|
|
49558
|
-
const expressionTokens = Array.isArray(expression) ? expression.map((expression2) => parseExpression(expression2)) : [parseExpression(expression)];
|
|
49559
|
-
return concatTokens(
|
|
49560
|
-
newTokens,
|
|
49561
|
-
expressionTokens,
|
|
49562
|
-
templateString.endsWith(" ")
|
|
49563
|
-
);
|
|
49564
|
-
};
|
|
49565
|
-
var parseTemplates = (templates, expressions) => {
|
|
49566
|
-
let tokens = [];
|
|
49567
|
-
for (const [index, template] of templates.entries()) {
|
|
49568
|
-
tokens = parseTemplate({ templates, expressions, tokens, index, template });
|
|
49569
|
-
}
|
|
49570
|
-
return tokens;
|
|
49571
|
-
};
|
|
49572
|
-
|
|
49573
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
|
|
49574
|
-
var import_node_util = require("node:util");
|
|
49575
|
-
var import_node_process3 = __toESM(require("node:process"), 1);
|
|
49576
|
-
var verboseDefault = (0, import_node_util.debuglog)("execa").enabled;
|
|
49577
|
-
var padField = (field, padding) => String(field).padStart(padding, "0");
|
|
49578
|
-
var getTimestamp = () => {
|
|
49579
|
-
const date = /* @__PURE__ */ new Date();
|
|
49580
|
-
return `${padField(date.getHours(), 2)}:${padField(date.getMinutes(), 2)}:${padField(date.getSeconds(), 2)}.${padField(date.getMilliseconds(), 3)}`;
|
|
49581
|
-
};
|
|
49582
|
-
var logCommand = (escapedCommand, { verbose }) => {
|
|
49583
|
-
if (!verbose) {
|
|
49584
|
-
return;
|
|
49585
|
-
}
|
|
49586
|
-
import_node_process3.default.stderr.write(`[${getTimestamp()}] ${escapedCommand}
|
|
49587
|
-
`);
|
|
49588
|
-
};
|
|
49589
|
-
|
|
49590
|
-
// node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
|
|
49591
|
-
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
49592
|
-
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
49593
|
-
const env = extendEnv ? { ...import_node_process4.default.env, ...envOption } : envOption;
|
|
49594
|
-
if (preferLocal) {
|
|
49595
|
-
return npmRunPathEnv({ env, cwd: localDir, execPath });
|
|
49596
|
-
}
|
|
49597
|
-
return env;
|
|
49598
|
-
};
|
|
49599
|
-
var handleArguments = (file, args, options = {}) => {
|
|
49600
|
-
const parsed = import_cross_spawn.default._parse(file, args, options);
|
|
49601
|
-
file = parsed.command;
|
|
49602
|
-
args = parsed.args;
|
|
49603
|
-
options = parsed.options;
|
|
49604
|
-
options = {
|
|
49605
|
-
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
49606
|
-
buffer: true,
|
|
49607
|
-
stripFinalNewline: true,
|
|
49608
|
-
extendEnv: true,
|
|
49609
|
-
preferLocal: false,
|
|
49610
|
-
localDir: options.cwd || import_node_process4.default.cwd(),
|
|
49611
|
-
execPath: import_node_process4.default.execPath,
|
|
49612
|
-
encoding: "utf8",
|
|
49613
|
-
reject: true,
|
|
49614
|
-
cleanup: true,
|
|
49615
|
-
all: false,
|
|
49616
|
-
windowsHide: true,
|
|
49617
|
-
verbose: verboseDefault,
|
|
49618
|
-
...options
|
|
49619
|
-
};
|
|
49620
|
-
options.env = getEnv(options);
|
|
49621
|
-
options.stdio = normalizeStdio(options);
|
|
49622
|
-
if (import_node_process4.default.platform === "win32" && import_node_path4.default.basename(file, ".exe") === "cmd") {
|
|
49623
|
-
args.unshift("/q");
|
|
49624
|
-
}
|
|
49625
|
-
return { file, args, options, parsed };
|
|
49626
|
-
};
|
|
49627
|
-
var handleOutput = (options, value, error) => {
|
|
49628
|
-
if (typeof value !== "string" && !import_node_buffer2.Buffer.isBuffer(value)) {
|
|
49629
|
-
return error === void 0 ? void 0 : "";
|
|
49630
|
-
}
|
|
49631
|
-
if (options.stripFinalNewline) {
|
|
49632
|
-
return stripFinalNewline(value);
|
|
49633
|
-
}
|
|
49634
|
-
return value;
|
|
49635
|
-
};
|
|
49636
|
-
function execa(file, args, options) {
|
|
49637
|
-
const parsed = handleArguments(file, args, options);
|
|
49638
|
-
const command = joinCommand(file, args);
|
|
49639
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
49640
|
-
logCommand(escapedCommand, parsed.options);
|
|
49641
|
-
validateTimeout(parsed.options);
|
|
49642
|
-
let spawned;
|
|
49643
|
-
try {
|
|
49644
|
-
spawned = import_node_child_process3.default.spawn(parsed.file, parsed.args, parsed.options);
|
|
49645
|
-
} catch (error) {
|
|
49646
|
-
const dummySpawned = new import_node_child_process3.default.ChildProcess();
|
|
49647
|
-
const errorPromise = Promise.reject(makeError({
|
|
49648
|
-
error,
|
|
49649
|
-
stdout: "",
|
|
49650
|
-
stderr: "",
|
|
49651
|
-
all: "",
|
|
49652
|
-
command,
|
|
49653
|
-
escapedCommand,
|
|
49654
|
-
parsed,
|
|
49655
|
-
timedOut: false,
|
|
49656
|
-
isCanceled: false,
|
|
49657
|
-
killed: false
|
|
49658
|
-
}));
|
|
49659
|
-
mergePromise(dummySpawned, errorPromise);
|
|
49660
|
-
return dummySpawned;
|
|
49661
|
-
}
|
|
49662
|
-
const spawnedPromise = getSpawnedPromise(spawned);
|
|
49663
|
-
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
49664
|
-
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
49665
|
-
const context = { isCanceled: false };
|
|
49666
|
-
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
49667
|
-
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
49668
|
-
const handlePromise = async () => {
|
|
49669
|
-
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
49670
|
-
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
49671
|
-
const stderr = handleOutput(parsed.options, stderrResult);
|
|
49672
|
-
const all = handleOutput(parsed.options, allResult);
|
|
49673
|
-
if (error || exitCode !== 0 || signal !== null) {
|
|
49674
|
-
const returnedError = makeError({
|
|
49675
|
-
error,
|
|
49676
|
-
exitCode,
|
|
49677
|
-
signal,
|
|
49678
|
-
stdout,
|
|
49679
|
-
stderr,
|
|
49680
|
-
all,
|
|
49681
|
-
command,
|
|
49682
|
-
escapedCommand,
|
|
49683
|
-
parsed,
|
|
49684
|
-
timedOut,
|
|
49685
|
-
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
49686
|
-
killed: spawned.killed
|
|
49687
|
-
});
|
|
49688
|
-
if (!parsed.options.reject) {
|
|
49689
|
-
return returnedError;
|
|
49690
|
-
}
|
|
49691
|
-
throw returnedError;
|
|
49692
|
-
}
|
|
49693
|
-
return {
|
|
49694
|
-
command,
|
|
49695
|
-
escapedCommand,
|
|
49696
|
-
exitCode: 0,
|
|
49697
|
-
stdout,
|
|
49698
|
-
stderr,
|
|
49699
|
-
all,
|
|
49700
|
-
failed: false,
|
|
49701
|
-
timedOut: false,
|
|
49702
|
-
isCanceled: false,
|
|
49703
|
-
killed: false
|
|
49704
|
-
};
|
|
49705
|
-
};
|
|
49706
|
-
const handlePromiseOnce = onetime_default(handlePromise);
|
|
49707
|
-
handleInput(spawned, parsed.options);
|
|
49708
|
-
spawned.all = makeAllStream(spawned, parsed.options);
|
|
49709
|
-
addPipeMethods(spawned);
|
|
49710
|
-
mergePromise(spawned, handlePromiseOnce);
|
|
49711
|
-
return spawned;
|
|
49712
|
-
}
|
|
49713
|
-
function execaSync(file, args, options) {
|
|
49714
|
-
const parsed = handleArguments(file, args, options);
|
|
49715
|
-
const command = joinCommand(file, args);
|
|
49716
|
-
const escapedCommand = getEscapedCommand(file, args);
|
|
49717
|
-
logCommand(escapedCommand, parsed.options);
|
|
49718
|
-
const input = handleInputSync(parsed.options);
|
|
49719
|
-
let result;
|
|
49720
|
-
try {
|
|
49721
|
-
result = import_node_child_process3.default.spawnSync(parsed.file, parsed.args, { ...parsed.options, input });
|
|
49722
|
-
} catch (error) {
|
|
49723
|
-
throw makeError({
|
|
49724
|
-
error,
|
|
49725
|
-
stdout: "",
|
|
49726
|
-
stderr: "",
|
|
49727
|
-
all: "",
|
|
49728
|
-
command,
|
|
49729
|
-
escapedCommand,
|
|
49730
|
-
parsed,
|
|
49731
|
-
timedOut: false,
|
|
49732
|
-
isCanceled: false,
|
|
49733
|
-
killed: false
|
|
49734
|
-
});
|
|
49735
|
-
}
|
|
49736
|
-
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
49737
|
-
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
49738
|
-
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
49739
|
-
const error = makeError({
|
|
49740
|
-
stdout,
|
|
49741
|
-
stderr,
|
|
49742
|
-
error: result.error,
|
|
49743
|
-
signal: result.signal,
|
|
49744
|
-
exitCode: result.status,
|
|
49745
|
-
command,
|
|
49746
|
-
escapedCommand,
|
|
49747
|
-
parsed,
|
|
49748
|
-
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
49749
|
-
isCanceled: false,
|
|
49750
|
-
killed: result.signal !== null
|
|
49751
|
-
});
|
|
49752
|
-
if (!parsed.options.reject) {
|
|
49753
|
-
return error;
|
|
49754
|
-
}
|
|
49755
|
-
throw error;
|
|
49756
|
-
}
|
|
49757
|
-
return {
|
|
49758
|
-
command,
|
|
49759
|
-
escapedCommand,
|
|
49760
|
-
exitCode: 0,
|
|
49761
|
-
stdout,
|
|
49762
|
-
stderr,
|
|
49763
|
-
failed: false,
|
|
49764
|
-
timedOut: false,
|
|
49765
|
-
isCanceled: false,
|
|
49766
|
-
killed: false
|
|
49767
|
-
};
|
|
49768
|
-
}
|
|
49769
|
-
var normalizeScriptStdin = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
|
|
49770
|
-
var normalizeScriptOptions = (options = {}) => ({
|
|
49771
|
-
preferLocal: true,
|
|
49772
|
-
...normalizeScriptStdin(options),
|
|
49773
|
-
...options
|
|
49774
|
-
});
|
|
49775
|
-
function create$(options) {
|
|
49776
|
-
function $2(templatesOrOptions, ...expressions) {
|
|
49777
|
-
if (!Array.isArray(templatesOrOptions)) {
|
|
49778
|
-
return create$({ ...options, ...templatesOrOptions });
|
|
49779
|
-
}
|
|
49780
|
-
const [file, ...args] = parseTemplates(templatesOrOptions, expressions);
|
|
49781
|
-
return execa(file, args, normalizeScriptOptions(options));
|
|
49782
|
-
}
|
|
49783
|
-
$2.sync = (templates, ...expressions) => {
|
|
49784
|
-
if (!Array.isArray(templates)) {
|
|
49785
|
-
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
49786
|
-
}
|
|
49787
|
-
const [file, ...args] = parseTemplates(templates, expressions);
|
|
49788
|
-
return execaSync(file, args, normalizeScriptOptions(options));
|
|
49789
|
-
};
|
|
49790
|
-
return $2;
|
|
49791
|
-
}
|
|
49792
|
-
var $ = create$();
|
|
49793
|
-
|
|
49794
47680
|
// packages/config-tools/src/utilities/run.ts
|
|
49795
47681
|
var LARGE_BUFFER = 1024 * 1e6;
|
|
49796
47682
|
|