@base44-preview/cli 0.0.4-pr.47.36a3d80 → 0.0.4-pr.47.52d964e
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/dist/cli/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
4
4
|
import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
5
|
-
import
|
|
5
|
+
import nodePath, { basename, dirname, join, posix, resolve, win32 } from "node:path";
|
|
6
6
|
import fs, { appendFileSync, createReadStream, createWriteStream, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
7
7
|
import y, { execArgv, execPath, hrtime, platform, stdin, stdout } from "node:process";
|
|
8
8
|
import os, { constants, homedir, tmpdir } from "node:os";
|
|
@@ -13,7 +13,7 @@ import O from "node:readline";
|
|
|
13
13
|
import Stream, { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
|
|
14
14
|
import { fileURLToPath } from "node:url";
|
|
15
15
|
import fs$1 from "fs";
|
|
16
|
-
import path
|
|
16
|
+
import path, { dirname as dirname$1, parse } from "path";
|
|
17
17
|
import { finished } from "node:stream/promises";
|
|
18
18
|
import EE, { EventEmitter as EventEmitter$1 } from "events";
|
|
19
19
|
import fsPromises, { access, copyFile, mkdir, readFile, unlink, writeFile } from "node:fs/promises";
|
|
@@ -892,7 +892,7 @@ var require_suggestSimilar = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
892
892
|
var require_command = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
893
893
|
const EventEmitter$2 = __require("node:events").EventEmitter;
|
|
894
894
|
const childProcess = __require("node:child_process");
|
|
895
|
-
const path$
|
|
895
|
+
const path$15 = __require("node:path");
|
|
896
896
|
const fs$10 = __require("node:fs");
|
|
897
897
|
const process$3 = __require("node:process");
|
|
898
898
|
const { Argument, humanReadableArgName } = require_argument();
|
|
@@ -1740,9 +1740,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1740
1740
|
".cjs"
|
|
1741
1741
|
];
|
|
1742
1742
|
function findFile(baseDir, baseName) {
|
|
1743
|
-
const localBin = path$
|
|
1743
|
+
const localBin = path$15.resolve(baseDir, baseName);
|
|
1744
1744
|
if (fs$10.existsSync(localBin)) return localBin;
|
|
1745
|
-
if (sourceExt.includes(path$
|
|
1745
|
+
if (sourceExt.includes(path$15.extname(baseName))) return void 0;
|
|
1746
1746
|
const foundExt = sourceExt.find((ext) => fs$10.existsSync(`${localBin}${ext}`));
|
|
1747
1747
|
if (foundExt) return `${localBin}${foundExt}`;
|
|
1748
1748
|
}
|
|
@@ -1757,17 +1757,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
1757
1757
|
} catch (err) {
|
|
1758
1758
|
resolvedScriptPath = this._scriptPath;
|
|
1759
1759
|
}
|
|
1760
|
-
executableDir = path$
|
|
1760
|
+
executableDir = path$15.resolve(path$15.dirname(resolvedScriptPath), executableDir);
|
|
1761
1761
|
}
|
|
1762
1762
|
if (executableDir) {
|
|
1763
1763
|
let localFile = findFile(executableDir, executableFile);
|
|
1764
1764
|
if (!localFile && !subcommand._executableFile && this._scriptPath) {
|
|
1765
|
-
const legacyName = path$
|
|
1765
|
+
const legacyName = path$15.basename(this._scriptPath, path$15.extname(this._scriptPath));
|
|
1766
1766
|
if (legacyName !== this._name) localFile = findFile(executableDir, `${legacyName}-${subcommand._name}`);
|
|
1767
1767
|
}
|
|
1768
1768
|
executableFile = localFile || executableFile;
|
|
1769
1769
|
}
|
|
1770
|
-
launchWithNode = sourceExt.includes(path$
|
|
1770
|
+
launchWithNode = sourceExt.includes(path$15.extname(executableFile));
|
|
1771
1771
|
let proc$1;
|
|
1772
1772
|
if (process$3.platform !== "win32") if (launchWithNode) {
|
|
1773
1773
|
args.unshift(executableFile);
|
|
@@ -2473,7 +2473,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2473
2473
|
* @return {Command}
|
|
2474
2474
|
*/
|
|
2475
2475
|
nameFromFilename(filename) {
|
|
2476
|
-
this._name = path$
|
|
2476
|
+
this._name = path$15.basename(filename, path$15.extname(filename));
|
|
2477
2477
|
return this;
|
|
2478
2478
|
}
|
|
2479
2479
|
/**
|
|
@@ -2487,9 +2487,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2487
2487
|
* @param {string} [path]
|
|
2488
2488
|
* @return {(string|null|Command)}
|
|
2489
2489
|
*/
|
|
2490
|
-
executableDir(path$
|
|
2491
|
-
if (path$
|
|
2492
|
-
this._executableDir = path$
|
|
2490
|
+
executableDir(path$16) {
|
|
2491
|
+
if (path$16 === void 0) return this._executableDir;
|
|
2492
|
+
this._executableDir = path$16;
|
|
2493
2493
|
return this;
|
|
2494
2494
|
}
|
|
2495
2495
|
/**
|
|
@@ -4701,11 +4701,11 @@ function aborted$1(x$2, startIndex = 0) {
|
|
|
4701
4701
|
for (let i$1 = startIndex; i$1 < x$2.issues.length; i$1++) if (x$2.issues[i$1]?.continue !== true) return true;
|
|
4702
4702
|
return false;
|
|
4703
4703
|
}
|
|
4704
|
-
function prefixIssues(path$
|
|
4704
|
+
function prefixIssues(path$16, issues) {
|
|
4705
4705
|
return issues.map((iss) => {
|
|
4706
4706
|
var _a$1;
|
|
4707
4707
|
(_a$1 = iss).path ?? (_a$1.path = []);
|
|
4708
|
-
iss.path.unshift(path$
|
|
4708
|
+
iss.path.unshift(path$16);
|
|
4709
4709
|
return iss;
|
|
4710
4710
|
});
|
|
4711
4711
|
}
|
|
@@ -9212,7 +9212,7 @@ var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9212
9212
|
//#region node_modules/dotenv/lib/main.js
|
|
9213
9213
|
var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
9214
9214
|
const fs$9 = __require("fs");
|
|
9215
|
-
const path$
|
|
9215
|
+
const path$14 = __require("path");
|
|
9216
9216
|
const os$3 = __require("os");
|
|
9217
9217
|
const crypto = __require("crypto");
|
|
9218
9218
|
const version = require_package$1().version;
|
|
@@ -9350,12 +9350,12 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9350
9350
|
if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
|
|
9351
9351
|
for (const filepath of options.path) if (fs$9.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
9352
9352
|
} else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
9353
|
-
else possibleVaultPath = path$
|
|
9353
|
+
else possibleVaultPath = path$14.resolve(process.cwd(), ".env.vault");
|
|
9354
9354
|
if (fs$9.existsSync(possibleVaultPath)) return possibleVaultPath;
|
|
9355
9355
|
return null;
|
|
9356
9356
|
}
|
|
9357
9357
|
function _resolveHome(envPath) {
|
|
9358
|
-
return envPath[0] === "~" ? path$
|
|
9358
|
+
return envPath[0] === "~" ? path$14.join(os$3.homedir(), envPath.slice(1)) : envPath;
|
|
9359
9359
|
}
|
|
9360
9360
|
function _configVault(options) {
|
|
9361
9361
|
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
@@ -9368,7 +9368,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9368
9368
|
return { parsed };
|
|
9369
9369
|
}
|
|
9370
9370
|
function configDotenv(options) {
|
|
9371
|
-
const dotenvPath = path$
|
|
9371
|
+
const dotenvPath = path$14.resolve(process.cwd(), ".env");
|
|
9372
9372
|
let encoding = "utf8";
|
|
9373
9373
|
let processEnv = process.env;
|
|
9374
9374
|
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
@@ -9384,11 +9384,11 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9384
9384
|
}
|
|
9385
9385
|
let lastError;
|
|
9386
9386
|
const parsedAll = {};
|
|
9387
|
-
for (const path$
|
|
9388
|
-
const parsed = DotenvModule.parse(fs$9.readFileSync(path$
|
|
9387
|
+
for (const path$16 of optionPaths) try {
|
|
9388
|
+
const parsed = DotenvModule.parse(fs$9.readFileSync(path$16, { encoding }));
|
|
9389
9389
|
DotenvModule.populate(parsedAll, parsed, options);
|
|
9390
9390
|
} catch (e$1) {
|
|
9391
|
-
if (debug) _debug(`Failed to load ${path$
|
|
9391
|
+
if (debug) _debug(`Failed to load ${path$16} ${e$1.message}`);
|
|
9392
9392
|
lastError = e$1;
|
|
9393
9393
|
}
|
|
9394
9394
|
const populated = DotenvModule.populate(processEnv, parsedAll, options);
|
|
@@ -9398,7 +9398,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
9398
9398
|
const keysCount = Object.keys(populated).length;
|
|
9399
9399
|
const shortPaths = [];
|
|
9400
9400
|
for (const filePath of optionPaths) try {
|
|
9401
|
-
const relative = path$
|
|
9401
|
+
const relative = path$14.relative(process.cwd(), filePath);
|
|
9402
9402
|
shortPaths.push(relative);
|
|
9403
9403
|
} catch (e$1) {
|
|
9404
9404
|
if (debug) _debug(`Failed to load ${filePath} ${e$1.message}`);
|
|
@@ -9716,7 +9716,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9716
9716
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9717
9717
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
9718
9718
|
const os$2 = __require("os");
|
|
9719
|
-
const path$
|
|
9719
|
+
const path$13 = __require("path");
|
|
9720
9720
|
const IS_WINDOWS_PLATFORM = os$2.platform() === "win32";
|
|
9721
9721
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
9722
9722
|
/**
|
|
@@ -9745,7 +9745,7 @@ var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9745
9745
|
}
|
|
9746
9746
|
exports.unixify = unixify;
|
|
9747
9747
|
function makeAbsolute(cwd, filepath) {
|
|
9748
|
-
return path$
|
|
9748
|
+
return path$13.resolve(cwd, filepath);
|
|
9749
9749
|
}
|
|
9750
9750
|
exports.makeAbsolute = makeAbsolute;
|
|
9751
9751
|
function removeLeadingDotSegment(entry) {
|
|
@@ -11011,7 +11011,7 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11011
11011
|
//#endregion
|
|
11012
11012
|
//#region node_modules/micromatch/node_modules/picomatch/lib/constants.js
|
|
11013
11013
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
11014
|
-
const path$
|
|
11014
|
+
const path$12 = __require("path");
|
|
11015
11015
|
const WIN_SLASH = "\\\\/";
|
|
11016
11016
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
11017
11017
|
/**
|
|
@@ -11136,7 +11136,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11136
11136
|
CHAR_UNDERSCORE: 95,
|
|
11137
11137
|
CHAR_VERTICAL_LINE: 124,
|
|
11138
11138
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
11139
|
-
SEP: path$
|
|
11139
|
+
SEP: path$12.sep,
|
|
11140
11140
|
extglobChars(chars) {
|
|
11141
11141
|
return {
|
|
11142
11142
|
"!": {
|
|
@@ -11175,7 +11175,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
11175
11175
|
//#endregion
|
|
11176
11176
|
//#region node_modules/micromatch/node_modules/picomatch/lib/utils.js
|
|
11177
11177
|
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11178
|
-
const path$
|
|
11178
|
+
const path$11 = __require("path");
|
|
11179
11179
|
const win32 = process.platform === "win32";
|
|
11180
11180
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
11181
11181
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -11195,7 +11195,7 @@ var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11195
11195
|
};
|
|
11196
11196
|
exports.isWindows = (options) => {
|
|
11197
11197
|
if (options && typeof options.windows === "boolean") return options.windows;
|
|
11198
|
-
return win32 === true || path$
|
|
11198
|
+
return win32 === true || path$11.sep === "\\";
|
|
11199
11199
|
};
|
|
11200
11200
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
11201
11201
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -12371,7 +12371,7 @@ var require_parse$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12371
12371
|
//#endregion
|
|
12372
12372
|
//#region node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
|
|
12373
12373
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
12374
|
-
const path$
|
|
12374
|
+
const path$10 = __require("path");
|
|
12375
12375
|
const scan = require_scan();
|
|
12376
12376
|
const parse = require_parse$2();
|
|
12377
12377
|
const utils = require_utils$3();
|
|
@@ -12510,7 +12510,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12510
12510
|
* @api public
|
|
12511
12511
|
*/
|
|
12512
12512
|
picomatch.matchBase = (input, glob, options, posix$1 = utils.isWindows(options)) => {
|
|
12513
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$
|
|
12513
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path$10.basename(input));
|
|
12514
12514
|
};
|
|
12515
12515
|
/**
|
|
12516
12516
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -13068,7 +13068,7 @@ var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
13068
13068
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13069
13069
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13070
13070
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
13071
|
-
const path$
|
|
13071
|
+
const path$9 = __require("path");
|
|
13072
13072
|
const globParent = require_glob_parent();
|
|
13073
13073
|
const micromatch = require_micromatch();
|
|
13074
13074
|
const GLOBSTAR = "**";
|
|
@@ -13176,7 +13176,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13176
13176
|
}
|
|
13177
13177
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
13178
13178
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
13179
|
-
const basename$1 = path$
|
|
13179
|
+
const basename$1 = path$9.basename(pattern);
|
|
13180
13180
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename$1);
|
|
13181
13181
|
}
|
|
13182
13182
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
@@ -13250,7 +13250,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13250
13250
|
}
|
|
13251
13251
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
13252
13252
|
function isAbsolute(pattern) {
|
|
13253
|
-
return path$
|
|
13253
|
+
return path$9.isAbsolute(pattern);
|
|
13254
13254
|
}
|
|
13255
13255
|
exports.isAbsolute = isAbsolute;
|
|
13256
13256
|
}));
|
|
@@ -13493,8 +13493,8 @@ var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13493
13493
|
var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13494
13494
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13495
13495
|
exports.read = void 0;
|
|
13496
|
-
function read(path$
|
|
13497
|
-
settings.fs.lstat(path$
|
|
13496
|
+
function read(path$16, settings, callback) {
|
|
13497
|
+
settings.fs.lstat(path$16, (lstatError, lstat) => {
|
|
13498
13498
|
if (lstatError !== null) {
|
|
13499
13499
|
callFailureCallback(callback, lstatError);
|
|
13500
13500
|
return;
|
|
@@ -13503,7 +13503,7 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13503
13503
|
callSuccessCallback(callback, lstat);
|
|
13504
13504
|
return;
|
|
13505
13505
|
}
|
|
13506
|
-
settings.fs.stat(path$
|
|
13506
|
+
settings.fs.stat(path$16, (statError, stat) => {
|
|
13507
13507
|
if (statError !== null) {
|
|
13508
13508
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
13509
13509
|
callFailureCallback(callback, statError);
|
|
@@ -13531,11 +13531,11 @@ var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13531
13531
|
var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13532
13532
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13533
13533
|
exports.read = void 0;
|
|
13534
|
-
function read(path$
|
|
13535
|
-
const lstat = settings.fs.lstatSync(path$
|
|
13534
|
+
function read(path$16, settings) {
|
|
13535
|
+
const lstat = settings.fs.lstatSync(path$16);
|
|
13536
13536
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
13537
13537
|
try {
|
|
13538
|
-
const stat = settings.fs.statSync(path$
|
|
13538
|
+
const stat = settings.fs.statSync(path$16);
|
|
13539
13539
|
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
13540
13540
|
return stat;
|
|
13541
13541
|
} catch (error) {
|
|
@@ -13594,17 +13594,17 @@ var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13594
13594
|
const sync = require_sync$5();
|
|
13595
13595
|
const settings_1 = require_settings$3();
|
|
13596
13596
|
exports.Settings = settings_1.default;
|
|
13597
|
-
function stat(path$
|
|
13597
|
+
function stat(path$16, optionsOrSettingsOrCallback, callback) {
|
|
13598
13598
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
13599
|
-
async.read(path$
|
|
13599
|
+
async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
|
|
13600
13600
|
return;
|
|
13601
13601
|
}
|
|
13602
|
-
async.read(path$
|
|
13602
|
+
async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
|
|
13603
13603
|
}
|
|
13604
13604
|
exports.stat = stat;
|
|
13605
|
-
function statSync(path$
|
|
13605
|
+
function statSync(path$16, optionsOrSettings) {
|
|
13606
13606
|
const settings = getSettings(optionsOrSettings);
|
|
13607
|
-
return sync.read(path$
|
|
13607
|
+
return sync.read(path$16, settings);
|
|
13608
13608
|
}
|
|
13609
13609
|
exports.statSync = statSync;
|
|
13610
13610
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -13803,16 +13803,16 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13803
13803
|
return;
|
|
13804
13804
|
}
|
|
13805
13805
|
rpl(names.map((name$1) => {
|
|
13806
|
-
const path$
|
|
13806
|
+
const path$16 = common.joinPathSegments(directory, name$1, settings.pathSegmentSeparator);
|
|
13807
13807
|
return (done) => {
|
|
13808
|
-
fsStat.stat(path$
|
|
13808
|
+
fsStat.stat(path$16, settings.fsStatSettings, (error, stats) => {
|
|
13809
13809
|
if (error !== null) {
|
|
13810
13810
|
done(error);
|
|
13811
13811
|
return;
|
|
13812
13812
|
}
|
|
13813
13813
|
const entry = {
|
|
13814
13814
|
name: name$1,
|
|
13815
|
-
path: path$
|
|
13815
|
+
path: path$16,
|
|
13816
13816
|
dirent: utils.fs.createDirentFromStats(name$1, stats)
|
|
13817
13817
|
};
|
|
13818
13818
|
if (settings.stats) entry.stats = stats;
|
|
@@ -13909,7 +13909,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13909
13909
|
//#region node_modules/@nodelib/fs.scandir/out/settings.js
|
|
13910
13910
|
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
13911
13911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13912
|
-
const path$
|
|
13912
|
+
const path$8 = __require("path");
|
|
13913
13913
|
const fsStat = require_out$3();
|
|
13914
13914
|
const fs = require_fs();
|
|
13915
13915
|
var Settings = class {
|
|
@@ -13917,7 +13917,7 @@ var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13917
13917
|
this._options = _options;
|
|
13918
13918
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
13919
13919
|
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
13920
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
13920
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$8.sep);
|
|
13921
13921
|
this.stats = this._getValue(this._options.stats, false);
|
|
13922
13922
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
13923
13923
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -13942,17 +13942,17 @@ var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13942
13942
|
const sync = require_sync$4();
|
|
13943
13943
|
const settings_1 = require_settings$2();
|
|
13944
13944
|
exports.Settings = settings_1.default;
|
|
13945
|
-
function scandir(path$
|
|
13945
|
+
function scandir(path$16, optionsOrSettingsOrCallback, callback) {
|
|
13946
13946
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
13947
|
-
async.read(path$
|
|
13947
|
+
async.read(path$16, getSettings(), optionsOrSettingsOrCallback);
|
|
13948
13948
|
return;
|
|
13949
13949
|
}
|
|
13950
|
-
async.read(path$
|
|
13950
|
+
async.read(path$16, getSettings(optionsOrSettingsOrCallback), callback);
|
|
13951
13951
|
}
|
|
13952
13952
|
exports.scandir = scandir;
|
|
13953
|
-
function scandirSync(path$
|
|
13953
|
+
function scandirSync(path$16, optionsOrSettings) {
|
|
13954
13954
|
const settings = getSettings(optionsOrSettings);
|
|
13955
|
-
return sync.read(path$
|
|
13955
|
+
return sync.read(path$16, settings);
|
|
13956
13956
|
}
|
|
13957
13957
|
exports.scandirSync = scandirSync;
|
|
13958
13958
|
function getSettings(settingsOrOptions = {}) {
|
|
@@ -14522,7 +14522,7 @@ var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14522
14522
|
//#region node_modules/@nodelib/fs.walk/out/settings.js
|
|
14523
14523
|
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14524
14524
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14525
|
-
const path$
|
|
14525
|
+
const path$7 = __require("path");
|
|
14526
14526
|
const fsScandir = require_out$2();
|
|
14527
14527
|
var Settings = class {
|
|
14528
14528
|
constructor(_options = {}) {
|
|
@@ -14532,7 +14532,7 @@ var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14532
14532
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
14533
14533
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
14534
14534
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
14535
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$
|
|
14535
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$7.sep);
|
|
14536
14536
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
14537
14537
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
14538
14538
|
fs: this._options.fs,
|
|
@@ -14586,7 +14586,7 @@ var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14586
14586
|
//#region node_modules/fast-glob/out/readers/reader.js
|
|
14587
14587
|
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14588
14588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14589
|
-
const path$
|
|
14589
|
+
const path$6 = __require("path");
|
|
14590
14590
|
const fsStat = require_out$3();
|
|
14591
14591
|
const utils = require_utils$2();
|
|
14592
14592
|
var Reader = class {
|
|
@@ -14599,7 +14599,7 @@ var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14599
14599
|
});
|
|
14600
14600
|
}
|
|
14601
14601
|
_getFullEntryPath(filepath) {
|
|
14602
|
-
return path$
|
|
14602
|
+
return path$6.resolve(this._settings.cwd, filepath);
|
|
14603
14603
|
}
|
|
14604
14604
|
_makeEntry(stats, pattern) {
|
|
14605
14605
|
const entry = {
|
|
@@ -14943,7 +14943,7 @@ var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14943
14943
|
//#region node_modules/fast-glob/out/providers/provider.js
|
|
14944
14944
|
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
14945
14945
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14946
|
-
const path$
|
|
14946
|
+
const path$5 = __require("path");
|
|
14947
14947
|
const deep_1 = require_deep();
|
|
14948
14948
|
const entry_1 = require_entry$1();
|
|
14949
14949
|
const error_1 = require_error();
|
|
@@ -14957,7 +14957,7 @@ var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14957
14957
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
14958
14958
|
}
|
|
14959
14959
|
_getRootDirectory(task) {
|
|
14960
|
-
return path$
|
|
14960
|
+
return path$5.resolve(this._settings.cwd, task.base);
|
|
14961
14961
|
}
|
|
14962
14962
|
_getReaderOptions(task) {
|
|
14963
14963
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -15410,14 +15410,14 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15410
15410
|
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._add, this);
|
|
15411
15411
|
return this._added;
|
|
15412
15412
|
}
|
|
15413
|
-
test(path$
|
|
15413
|
+
test(path$16, checkUnignored, mode) {
|
|
15414
15414
|
let ignored = false;
|
|
15415
15415
|
let unignored = false;
|
|
15416
15416
|
let matchedRule;
|
|
15417
15417
|
this._rules.forEach((rule) => {
|
|
15418
15418
|
const { negative } = rule;
|
|
15419
15419
|
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) return;
|
|
15420
|
-
if (!rule[mode].test(path$
|
|
15420
|
+
if (!rule[mode].test(path$16)) return;
|
|
15421
15421
|
ignored = !negative;
|
|
15422
15422
|
unignored = negative;
|
|
15423
15423
|
matchedRule = negative ? UNDEFINED : rule;
|
|
@@ -15433,13 +15433,13 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15433
15433
|
const throwError = (message, Ctor) => {
|
|
15434
15434
|
throw new Ctor(message);
|
|
15435
15435
|
};
|
|
15436
|
-
const checkPath = (path$
|
|
15437
|
-
if (!isString(path$
|
|
15438
|
-
if (!path$
|
|
15439
|
-
if (checkPath.isNotRelative(path$
|
|
15436
|
+
const checkPath = (path$16, originalPath, doThrow) => {
|
|
15437
|
+
if (!isString(path$16)) return doThrow(`path must be a string, but got \`${originalPath}\``, TypeError);
|
|
15438
|
+
if (!path$16) return doThrow(`path must not be empty`, TypeError);
|
|
15439
|
+
if (checkPath.isNotRelative(path$16)) return doThrow(`path should be a \`path.relative()\`d string, but got "${originalPath}"`, RangeError);
|
|
15440
15440
|
return true;
|
|
15441
15441
|
};
|
|
15442
|
-
const isNotRelative = (path$
|
|
15442
|
+
const isNotRelative = (path$16) => REGEX_TEST_INVALID_PATH.test(path$16);
|
|
15443
15443
|
checkPath.isNotRelative = isNotRelative;
|
|
15444
15444
|
/* istanbul ignore next */
|
|
15445
15445
|
checkPath.convert = (p$1) => p$1;
|
|
@@ -15462,49 +15462,49 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15462
15462
|
return this.add(pattern);
|
|
15463
15463
|
}
|
|
15464
15464
|
_test(originalPath, cache$1, checkUnignored, slices) {
|
|
15465
|
-
const path$
|
|
15466
|
-
checkPath(path$
|
|
15467
|
-
return this._t(path$
|
|
15465
|
+
const path$16 = originalPath && checkPath.convert(originalPath);
|
|
15466
|
+
checkPath(path$16, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
|
|
15467
|
+
return this._t(path$16, cache$1, checkUnignored, slices);
|
|
15468
15468
|
}
|
|
15469
|
-
checkIgnore(path$
|
|
15470
|
-
if (!REGEX_TEST_TRAILING_SLASH.test(path$
|
|
15471
|
-
const slices = path$
|
|
15469
|
+
checkIgnore(path$16) {
|
|
15470
|
+
if (!REGEX_TEST_TRAILING_SLASH.test(path$16)) return this.test(path$16);
|
|
15471
|
+
const slices = path$16.split(SLASH).filter(Boolean);
|
|
15472
15472
|
slices.pop();
|
|
15473
15473
|
if (slices.length) {
|
|
15474
15474
|
const parent = this._t(slices.join(SLASH) + SLASH, this._testCache, true, slices);
|
|
15475
15475
|
if (parent.ignored) return parent;
|
|
15476
15476
|
}
|
|
15477
|
-
return this._rules.test(path$
|
|
15477
|
+
return this._rules.test(path$16, false, MODE_CHECK_IGNORE);
|
|
15478
15478
|
}
|
|
15479
|
-
_t(path$
|
|
15480
|
-
if (path$
|
|
15481
|
-
if (!slices) slices = path$
|
|
15479
|
+
_t(path$16, cache$1, checkUnignored, slices) {
|
|
15480
|
+
if (path$16 in cache$1) return cache$1[path$16];
|
|
15481
|
+
if (!slices) slices = path$16.split(SLASH).filter(Boolean);
|
|
15482
15482
|
slices.pop();
|
|
15483
|
-
if (!slices.length) return cache$1[path$
|
|
15483
|
+
if (!slices.length) return cache$1[path$16] = this._rules.test(path$16, checkUnignored, MODE_IGNORE);
|
|
15484
15484
|
const parent = this._t(slices.join(SLASH) + SLASH, cache$1, checkUnignored, slices);
|
|
15485
|
-
return cache$1[path$
|
|
15485
|
+
return cache$1[path$16] = parent.ignored ? parent : this._rules.test(path$16, checkUnignored, MODE_IGNORE);
|
|
15486
15486
|
}
|
|
15487
|
-
ignores(path$
|
|
15488
|
-
return this._test(path$
|
|
15487
|
+
ignores(path$16) {
|
|
15488
|
+
return this._test(path$16, this._ignoreCache, false).ignored;
|
|
15489
15489
|
}
|
|
15490
15490
|
createFilter() {
|
|
15491
|
-
return (path$
|
|
15491
|
+
return (path$16) => !this.ignores(path$16);
|
|
15492
15492
|
}
|
|
15493
15493
|
filter(paths) {
|
|
15494
15494
|
return makeArray(paths).filter(this.createFilter());
|
|
15495
15495
|
}
|
|
15496
|
-
test(path$
|
|
15497
|
-
return this._test(path$
|
|
15496
|
+
test(path$16) {
|
|
15497
|
+
return this._test(path$16, this._testCache, true);
|
|
15498
15498
|
}
|
|
15499
15499
|
};
|
|
15500
15500
|
const factory = (options) => new Ignore(options);
|
|
15501
|
-
const isPathValid = (path$
|
|
15501
|
+
const isPathValid = (path$16) => checkPath(path$16 && checkPath.convert(path$16), path$16, RETURN_FALSE);
|
|
15502
15502
|
/* istanbul ignore next */
|
|
15503
15503
|
const setupWindows = () => {
|
|
15504
15504
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
15505
15505
|
checkPath.convert = makePosix;
|
|
15506
15506
|
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
15507
|
-
checkPath.isNotRelative = (path$
|
|
15507
|
+
checkPath.isNotRelative = (path$16) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path$16) || isNotRelative(path$16);
|
|
15508
15508
|
};
|
|
15509
15509
|
/* istanbul ignore next */
|
|
15510
15510
|
if (typeof process !== "undefined" && process.platform === "win32") setupWindows();
|
|
@@ -15518,15 +15518,15 @@ var require_ignore = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15518
15518
|
//#region node_modules/is-path-inside/index.js
|
|
15519
15519
|
var import_ignore = /* @__PURE__ */ __toESM(require_ignore(), 1);
|
|
15520
15520
|
function isPathInside(childPath, parentPath) {
|
|
15521
|
-
const relation =
|
|
15522
|
-
return Boolean(relation && relation !== ".." && !relation.startsWith(`..${
|
|
15521
|
+
const relation = nodePath.relative(parentPath, childPath);
|
|
15522
|
+
return Boolean(relation && relation !== ".." && !relation.startsWith(`..${nodePath.sep}`) && relation !== nodePath.resolve(childPath));
|
|
15523
15523
|
}
|
|
15524
15524
|
|
|
15525
15525
|
//#endregion
|
|
15526
15526
|
//#region node_modules/slash/index.js
|
|
15527
|
-
function slash(path$
|
|
15528
|
-
if (path$
|
|
15529
|
-
return path$
|
|
15527
|
+
function slash(path$16) {
|
|
15528
|
+
if (path$16.startsWith("\\\\?\\")) return path$16;
|
|
15529
|
+
return path$16.replace(/\\/g, "/");
|
|
15530
15530
|
}
|
|
15531
15531
|
|
|
15532
15532
|
//#endregion
|
|
@@ -15612,7 +15612,7 @@ const buildPathChain = (startPath, rootPath) => {
|
|
|
15612
15612
|
let currentPath = startPath;
|
|
15613
15613
|
chain.push(currentPath);
|
|
15614
15614
|
while (currentPath !== rootPath) {
|
|
15615
|
-
const parentPath =
|
|
15615
|
+
const parentPath = nodePath.dirname(currentPath);
|
|
15616
15616
|
if (parentPath === currentPath) break;
|
|
15617
15617
|
currentPath = parentPath;
|
|
15618
15618
|
chain.push(currentPath);
|
|
@@ -15621,7 +15621,7 @@ const buildPathChain = (startPath, rootPath) => {
|
|
|
15621
15621
|
};
|
|
15622
15622
|
const findGitRootInChain = async (paths, statMethod) => {
|
|
15623
15623
|
for (const directory of paths) {
|
|
15624
|
-
const gitPath =
|
|
15624
|
+
const gitPath = nodePath.join(directory, ".git");
|
|
15625
15625
|
try {
|
|
15626
15626
|
if (pathHasGitDirectory(await statMethod(gitPath))) return directory;
|
|
15627
15627
|
} catch {}
|
|
@@ -15630,11 +15630,11 @@ const findGitRootInChain = async (paths, statMethod) => {
|
|
|
15630
15630
|
const findGitRootSyncUncached = (cwd, fsImplementation) => {
|
|
15631
15631
|
const statSyncMethod = getStatSyncMethod$1(fsImplementation);
|
|
15632
15632
|
if (!statSyncMethod) return;
|
|
15633
|
-
const currentPath =
|
|
15634
|
-
const { root } =
|
|
15633
|
+
const currentPath = nodePath.resolve(cwd);
|
|
15634
|
+
const { root } = nodePath.parse(currentPath);
|
|
15635
15635
|
const chain = buildPathChain(currentPath, root);
|
|
15636
15636
|
for (const directory of chain) {
|
|
15637
|
-
const gitPath =
|
|
15637
|
+
const gitPath = nodePath.join(directory, ".git");
|
|
15638
15638
|
try {
|
|
15639
15639
|
if (pathHasGitDirectory(statSyncMethod(gitPath))) return directory;
|
|
15640
15640
|
} catch {}
|
|
@@ -15647,8 +15647,8 @@ const findGitRootSync = (cwd, fsImplementation) => {
|
|
|
15647
15647
|
const findGitRootAsyncUncached = async (cwd, fsImplementation) => {
|
|
15648
15648
|
const statMethod = getAsyncStatMethod(fsImplementation);
|
|
15649
15649
|
if (!statMethod) return findGitRootSync(cwd, fsImplementation);
|
|
15650
|
-
const currentPath =
|
|
15651
|
-
const { root } =
|
|
15650
|
+
const currentPath = nodePath.resolve(cwd);
|
|
15651
|
+
const { root } = nodePath.parse(currentPath);
|
|
15652
15652
|
return findGitRootInChain(buildPathChain(currentPath, root), statMethod);
|
|
15653
15653
|
};
|
|
15654
15654
|
const findGitRoot = async (cwd, fsImplementation) => {
|
|
@@ -15663,8 +15663,8 @@ Get paths to all .gitignore files from git root to cwd (inclusive).
|
|
|
15663
15663
|
@returns {string[]} Array of .gitignore file paths to search for.
|
|
15664
15664
|
*/
|
|
15665
15665
|
const isWithinGitRoot = (gitRoot, cwd) => {
|
|
15666
|
-
const resolvedGitRoot =
|
|
15667
|
-
const resolvedCwd =
|
|
15666
|
+
const resolvedGitRoot = nodePath.resolve(gitRoot);
|
|
15667
|
+
const resolvedCwd = nodePath.resolve(cwd);
|
|
15668
15668
|
return resolvedCwd === resolvedGitRoot || isPathInside(resolvedCwd, resolvedGitRoot);
|
|
15669
15669
|
};
|
|
15670
15670
|
const getParentGitignorePaths = (gitRoot, cwd) => {
|
|
@@ -15672,7 +15672,7 @@ const getParentGitignorePaths = (gitRoot, cwd) => {
|
|
|
15672
15672
|
if (typeof cwd !== "string") throw new TypeError("cwd must be a string");
|
|
15673
15673
|
if (!gitRoot) return [];
|
|
15674
15674
|
if (!isWithinGitRoot(gitRoot, cwd)) return [];
|
|
15675
|
-
return [...buildPathChain(
|
|
15675
|
+
return [...buildPathChain(nodePath.resolve(cwd), nodePath.resolve(gitRoot))].reverse().map((directory) => nodePath.join(directory, ".gitignore"));
|
|
15676
15676
|
};
|
|
15677
15677
|
/**
|
|
15678
15678
|
Convert ignore patterns to fast-glob compatible format.
|
|
@@ -15779,18 +15779,18 @@ const applyBaseToPattern = (pattern, base) => {
|
|
|
15779
15779
|
const slashIndex = cleanPattern.indexOf("/");
|
|
15780
15780
|
const hasNonTrailingSlash = slashIndex !== -1 && slashIndex !== cleanPattern.length - 1;
|
|
15781
15781
|
let result;
|
|
15782
|
-
if (!hasNonTrailingSlash) result =
|
|
15783
|
-
else if (cleanPattern.startsWith("/")) result =
|
|
15784
|
-
else result =
|
|
15782
|
+
if (!hasNonTrailingSlash) result = nodePath.posix.join(base, "**", cleanPattern);
|
|
15783
|
+
else if (cleanPattern.startsWith("/")) result = nodePath.posix.join(base, cleanPattern.slice(1));
|
|
15784
|
+
else result = nodePath.posix.join(base, cleanPattern);
|
|
15785
15785
|
return isNegative ? "!" + result : result;
|
|
15786
15786
|
};
|
|
15787
15787
|
const parseIgnoreFile = (file, cwd) => {
|
|
15788
|
-
const base = slash(
|
|
15788
|
+
const base = slash(nodePath.relative(cwd, nodePath.dirname(file.filePath)));
|
|
15789
15789
|
return file.content.split(/\r?\n/).filter((line) => line && !line.startsWith("#")).map((pattern) => applyBaseToPattern(pattern, base));
|
|
15790
15790
|
};
|
|
15791
15791
|
const toRelativePath = (fileOrDirectory, cwd) => {
|
|
15792
|
-
if (
|
|
15793
|
-
const relativePath =
|
|
15792
|
+
if (nodePath.isAbsolute(fileOrDirectory)) {
|
|
15793
|
+
const relativePath = nodePath.relative(cwd, fileOrDirectory);
|
|
15794
15794
|
if (relativePath && !isPathInside(fileOrDirectory, cwd)) return;
|
|
15795
15795
|
return relativePath;
|
|
15796
15796
|
}
|
|
@@ -15800,11 +15800,11 @@ const toRelativePath = (fileOrDirectory, cwd) => {
|
|
|
15800
15800
|
};
|
|
15801
15801
|
const createIgnorePredicate = (patterns, cwd, baseDir) => {
|
|
15802
15802
|
const ignores = (0, import_ignore.default)().add(patterns);
|
|
15803
|
-
const resolvedCwd =
|
|
15804
|
-
const resolvedBaseDir =
|
|
15803
|
+
const resolvedCwd = nodePath.normalize(nodePath.resolve(cwd));
|
|
15804
|
+
const resolvedBaseDir = nodePath.normalize(nodePath.resolve(baseDir));
|
|
15805
15805
|
return (fileOrDirectory) => {
|
|
15806
15806
|
fileOrDirectory = toPath$1(fileOrDirectory);
|
|
15807
|
-
if (
|
|
15807
|
+
if (nodePath.normalize(nodePath.resolve(fileOrDirectory)) === resolvedCwd) return false;
|
|
15808
15808
|
const relativePath = toRelativePath(fileOrDirectory, resolvedBaseDir);
|
|
15809
15809
|
if (relativePath === void 0) return false;
|
|
15810
15810
|
return relativePath ? ignores.ignores(slash(relativePath)) : false;
|
|
@@ -15879,35 +15879,35 @@ const assertPatternsInput = (patterns) => {
|
|
|
15879
15879
|
};
|
|
15880
15880
|
const getStatMethod = (fsImplementation) => bindFsMethod(fsImplementation?.promises, "stat") ?? bindFsMethod(fs.promises, "stat") ?? promisifyFsMethod(fsImplementation, "stat");
|
|
15881
15881
|
const getStatSyncMethod = (fsImplementation) => bindFsMethod(fsImplementation, "statSync") ?? bindFsMethod(fs, "statSync");
|
|
15882
|
-
const isDirectory = async (path$
|
|
15882
|
+
const isDirectory = async (path$16, fsImplementation) => {
|
|
15883
15883
|
try {
|
|
15884
|
-
return (await getStatMethod(fsImplementation)(path$
|
|
15884
|
+
return (await getStatMethod(fsImplementation)(path$16)).isDirectory();
|
|
15885
15885
|
} catch {
|
|
15886
15886
|
return false;
|
|
15887
15887
|
}
|
|
15888
15888
|
};
|
|
15889
|
-
const isDirectorySync = (path$
|
|
15889
|
+
const isDirectorySync = (path$16, fsImplementation) => {
|
|
15890
15890
|
try {
|
|
15891
|
-
return getStatSyncMethod(fsImplementation)(path$
|
|
15891
|
+
return getStatSyncMethod(fsImplementation)(path$16).isDirectory();
|
|
15892
15892
|
} catch {
|
|
15893
15893
|
return false;
|
|
15894
15894
|
}
|
|
15895
15895
|
};
|
|
15896
15896
|
const normalizePathForDirectoryGlob = (filePath, cwd) => {
|
|
15897
|
-
const path$
|
|
15898
|
-
return
|
|
15897
|
+
const path$16 = isNegativePattern(filePath) ? filePath.slice(1) : filePath;
|
|
15898
|
+
return nodePath.isAbsolute(path$16) ? path$16 : nodePath.join(cwd, path$16);
|
|
15899
15899
|
};
|
|
15900
15900
|
const shouldExpandGlobstarDirectory = (pattern) => {
|
|
15901
15901
|
const match = pattern?.match(/\*\*\/([^/]+)$/);
|
|
15902
15902
|
if (!match) return false;
|
|
15903
15903
|
const dirname$2 = match[1];
|
|
15904
15904
|
const hasWildcards = /[*?[\]{}]/.test(dirname$2);
|
|
15905
|
-
const hasExtension =
|
|
15905
|
+
const hasExtension = nodePath.extname(dirname$2) && !dirname$2.startsWith(".");
|
|
15906
15906
|
return !hasWildcards && !hasExtension;
|
|
15907
15907
|
};
|
|
15908
15908
|
const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
|
|
15909
15909
|
const extensionGlob = extensions?.length > 0 ? `.${extensions.length > 1 ? `{${extensions.join(",")}}` : extensions[0]}` : "";
|
|
15910
|
-
return files ? files.map((file) =>
|
|
15910
|
+
return files ? files.map((file) => nodePath.posix.join(directoryPath, `**/${nodePath.extname(file) ? file : `${file}${extensionGlob}`}`)) : [nodePath.posix.join(directoryPath, `**${extensionGlob ? `/*${extensionGlob}` : ""}`)];
|
|
15911
15911
|
};
|
|
15912
15912
|
const directoryToGlob = async (directoryPaths, { cwd = y.cwd(), files, extensions, fs: fsImplementation } = {}) => {
|
|
15913
15913
|
return (await Promise.all(directoryPaths.map(async (directoryPath) => {
|
|
@@ -16022,12 +16022,12 @@ const createFilterFunction = (isIgnored, cwd) => {
|
|
|
16022
16022
|
const basePath = cwd || y.cwd();
|
|
16023
16023
|
const pathCache = /* @__PURE__ */ new Map();
|
|
16024
16024
|
return (fastGlobResult) => {
|
|
16025
|
-
const pathKey$1 =
|
|
16025
|
+
const pathKey$1 = nodePath.normalize(fastGlobResult.path ?? fastGlobResult);
|
|
16026
16026
|
if (seen.has(pathKey$1)) return false;
|
|
16027
16027
|
if (isIgnored) {
|
|
16028
16028
|
let absolutePath = pathCache.get(pathKey$1);
|
|
16029
16029
|
if (absolutePath === void 0) {
|
|
16030
|
-
absolutePath =
|
|
16030
|
+
absolutePath = nodePath.isAbsolute(pathKey$1) ? pathKey$1 : nodePath.resolve(basePath, pathKey$1);
|
|
16031
16031
|
pathCache.set(pathKey$1, absolutePath);
|
|
16032
16032
|
if (pathCache.size > 1e4) pathCache.clear();
|
|
16033
16033
|
}
|
|
@@ -17100,9 +17100,9 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17100
17100
|
//#endregion
|
|
17101
17101
|
//#region src/core/utils/fs.ts
|
|
17102
17102
|
var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
|
|
17103
|
-
async function pathExists(path$
|
|
17103
|
+
async function pathExists(path$16) {
|
|
17104
17104
|
try {
|
|
17105
|
-
await access(path$
|
|
17105
|
+
await access(path$16);
|
|
17106
17106
|
return true;
|
|
17107
17107
|
} catch {
|
|
17108
17108
|
return false;
|
|
@@ -17605,7 +17605,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17605
17605
|
* @public
|
|
17606
17606
|
*/
|
|
17607
17607
|
var fs$5 = __require("fs");
|
|
17608
|
-
var path$
|
|
17608
|
+
var path$4 = __require("path");
|
|
17609
17609
|
var utils = require_utils();
|
|
17610
17610
|
var scopeOptionWarned = false;
|
|
17611
17611
|
/** @type {string} */
|
|
@@ -17675,9 +17675,9 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17675
17675
|
* @return {String}
|
|
17676
17676
|
*/
|
|
17677
17677
|
exports.resolveInclude = function(name$1, filename, isDir) {
|
|
17678
|
-
var dirname$2 = path$
|
|
17679
|
-
var extname = path$
|
|
17680
|
-
var resolve$1 = path$
|
|
17678
|
+
var dirname$2 = path$4.dirname;
|
|
17679
|
+
var extname = path$4.extname;
|
|
17680
|
+
var resolve$1 = path$4.resolve;
|
|
17681
17681
|
var includePath = resolve$1(isDir ? filename : dirname$2(filename), name$1);
|
|
17682
17682
|
if (!extname(name$1)) includePath += ".ejs";
|
|
17683
17683
|
return includePath;
|
|
@@ -17703,22 +17703,22 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17703
17703
|
* @param {Options} options compilation options
|
|
17704
17704
|
* @return {String}
|
|
17705
17705
|
*/
|
|
17706
|
-
function getIncludePath(path$
|
|
17706
|
+
function getIncludePath(path$16, options) {
|
|
17707
17707
|
var includePath;
|
|
17708
17708
|
var filePath;
|
|
17709
17709
|
var views = options.views;
|
|
17710
|
-
var match = /^[A-Za-z]+:\\|^\//.exec(path$
|
|
17710
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path$16);
|
|
17711
17711
|
if (match && match.length) {
|
|
17712
|
-
path$
|
|
17713
|
-
if (Array.isArray(options.root)) includePath = resolvePaths(path$
|
|
17714
|
-
else includePath = exports.resolveInclude(path$
|
|
17712
|
+
path$16 = path$16.replace(/^\/*/, "");
|
|
17713
|
+
if (Array.isArray(options.root)) includePath = resolvePaths(path$16, options.root);
|
|
17714
|
+
else includePath = exports.resolveInclude(path$16, options.root || "/", true);
|
|
17715
17715
|
} else {
|
|
17716
17716
|
if (options.filename) {
|
|
17717
|
-
filePath = exports.resolveInclude(path$
|
|
17717
|
+
filePath = exports.resolveInclude(path$16, options.filename);
|
|
17718
17718
|
if (fs$5.existsSync(filePath)) includePath = filePath;
|
|
17719
17719
|
}
|
|
17720
|
-
if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$
|
|
17721
|
-
if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$
|
|
17720
|
+
if (!includePath && Array.isArray(views)) includePath = resolvePaths(path$16, views);
|
|
17721
|
+
if (!includePath && typeof options.includer !== "function") throw new Error("Could not find the include file \"" + options.escapeFunction(path$16) + "\"");
|
|
17722
17722
|
}
|
|
17723
17723
|
return includePath;
|
|
17724
17724
|
}
|
|
@@ -17810,11 +17810,11 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17810
17810
|
* Depending on the value of `options.client`, either type might be returned
|
|
17811
17811
|
* @static
|
|
17812
17812
|
*/
|
|
17813
|
-
function includeFile(path$
|
|
17813
|
+
function includeFile(path$16, options) {
|
|
17814
17814
|
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
17815
|
-
opts.filename = getIncludePath(path$
|
|
17815
|
+
opts.filename = getIncludePath(path$16, opts);
|
|
17816
17816
|
if (typeof options.includer === "function") {
|
|
17817
|
-
var includerResult = options.includer(path$
|
|
17817
|
+
var includerResult = options.includer(path$16, opts.filename);
|
|
17818
17818
|
if (includerResult) {
|
|
17819
17819
|
if (includerResult.filename) opts.filename = includerResult.filename;
|
|
17820
17820
|
if (includerResult.template) return handleCache(opts, includerResult.template);
|
|
@@ -18065,10 +18065,10 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18065
18065
|
throw e$1;
|
|
18066
18066
|
}
|
|
18067
18067
|
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
18068
|
-
var include = function(path$
|
|
18068
|
+
var include = function(path$16, includeData) {
|
|
18069
18069
|
var d$2 = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
18070
18070
|
if (includeData) d$2 = utils.shallowCopy(d$2, includeData);
|
|
18071
|
-
return includeFile(path$
|
|
18071
|
+
return includeFile(path$16, opts)(d$2);
|
|
18072
18072
|
};
|
|
18073
18073
|
return fn.apply(opts.context, [
|
|
18074
18074
|
data || utils.createNullProtoObjWherePossible(),
|
|
@@ -18079,7 +18079,7 @@ var require_ejs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18079
18079
|
};
|
|
18080
18080
|
if (opts.filename && typeof Object.defineProperty === "function") {
|
|
18081
18081
|
var filename = opts.filename;
|
|
18082
|
-
var basename$1 = path$
|
|
18082
|
+
var basename$1 = path$4.basename(filename, path$4.extname(filename));
|
|
18083
18083
|
try {
|
|
18084
18084
|
Object.defineProperty(returnedFn, "name", {
|
|
18085
18085
|
value: basename$1,
|
|
@@ -19673,15 +19673,15 @@ var ReadStream = class extends Minipass {
|
|
|
19673
19673
|
[_size];
|
|
19674
19674
|
[_remain];
|
|
19675
19675
|
[_autoClose];
|
|
19676
|
-
constructor(path$
|
|
19676
|
+
constructor(path$16, opt) {
|
|
19677
19677
|
opt = opt || {};
|
|
19678
19678
|
super(opt);
|
|
19679
19679
|
this.readable = true;
|
|
19680
19680
|
this.writable = false;
|
|
19681
|
-
if (typeof path$
|
|
19681
|
+
if (typeof path$16 !== "string") throw new TypeError("path must be a string");
|
|
19682
19682
|
this[_errored] = false;
|
|
19683
19683
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
|
|
19684
|
-
this[_path] = path$
|
|
19684
|
+
this[_path] = path$16;
|
|
19685
19685
|
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
|
19686
19686
|
this[_reading] = false;
|
|
19687
19687
|
this[_size] = typeof opt.size === "number" ? opt.size : Infinity;
|
|
@@ -19823,10 +19823,10 @@ var WriteStream = class extends EE {
|
|
|
19823
19823
|
[_flags];
|
|
19824
19824
|
[_finished] = false;
|
|
19825
19825
|
[_pos];
|
|
19826
|
-
constructor(path$
|
|
19826
|
+
constructor(path$16, opt) {
|
|
19827
19827
|
opt = opt || {};
|
|
19828
19828
|
super(opt);
|
|
19829
|
-
this[_path] = path$
|
|
19829
|
+
this[_path] = path$16;
|
|
19830
19830
|
this[_fd] = typeof opt.fd === "number" ? opt.fd : void 0;
|
|
19831
19831
|
this[_mode] = opt.mode === void 0 ? 438 : opt.mode;
|
|
19832
19832
|
this[_pos] = typeof opt.start === "number" ? opt.start : void 0;
|
|
@@ -20585,10 +20585,10 @@ var Header = class {
|
|
|
20585
20585
|
if (!(buf.length >= off + 512)) throw new Error("need 512 bytes for header");
|
|
20586
20586
|
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
20587
20587
|
const split = splitPrefix(this.path || "", prefixSize);
|
|
20588
|
-
const path$
|
|
20588
|
+
const path$16 = split[0];
|
|
20589
20589
|
const prefix = split[1];
|
|
20590
20590
|
this.needPax = !!split[2];
|
|
20591
|
-
this.needPax = encString(buf, off, 100, path$
|
|
20591
|
+
this.needPax = encString(buf, off, 100, path$16) || this.needPax;
|
|
20592
20592
|
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
20593
20593
|
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
20594
20594
|
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
@@ -21427,16 +21427,16 @@ const modeFix = (mode, isDir, portable) => {
|
|
|
21427
21427
|
//#endregion
|
|
21428
21428
|
//#region node_modules/tar/dist/esm/strip-absolute-path.js
|
|
21429
21429
|
const { isAbsolute, parse: parse$1 } = win32;
|
|
21430
|
-
const stripAbsolutePath = (path$
|
|
21430
|
+
const stripAbsolutePath = (path$16) => {
|
|
21431
21431
|
let r$1 = "";
|
|
21432
|
-
let parsed = parse$1(path$
|
|
21433
|
-
while (isAbsolute(path$
|
|
21434
|
-
const root = path$
|
|
21435
|
-
path$
|
|
21432
|
+
let parsed = parse$1(path$16);
|
|
21433
|
+
while (isAbsolute(path$16) || parsed.root) {
|
|
21434
|
+
const root = path$16.charAt(0) === "/" && path$16.slice(0, 4) !== "//?/" ? "/" : parsed.root;
|
|
21435
|
+
path$16 = path$16.slice(root.length);
|
|
21436
21436
|
r$1 += root;
|
|
21437
|
-
parsed = parse$1(path$
|
|
21437
|
+
parsed = parse$1(path$16);
|
|
21438
21438
|
}
|
|
21439
|
-
return [r$1, path$
|
|
21439
|
+
return [r$1, path$16];
|
|
21440
21440
|
};
|
|
21441
21441
|
|
|
21442
21442
|
//#endregion
|
|
@@ -21456,10 +21456,10 @@ const decode = (s) => win.reduce((s$1, c$1) => s$1.split(c$1).join(toRaw.get(c$1
|
|
|
21456
21456
|
|
|
21457
21457
|
//#endregion
|
|
21458
21458
|
//#region node_modules/tar/dist/esm/write-entry.js
|
|
21459
|
-
const prefixPath = (path$
|
|
21460
|
-
if (!prefix) return normalizeWindowsPath(path$
|
|
21461
|
-
path$
|
|
21462
|
-
return stripTrailingSlashes(prefix) + "/" + path$
|
|
21459
|
+
const prefixPath = (path$16, prefix) => {
|
|
21460
|
+
if (!prefix) return normalizeWindowsPath(path$16);
|
|
21461
|
+
path$16 = normalizeWindowsPath(path$16).replace(/^\.(\/|$)/, "");
|
|
21462
|
+
return stripTrailingSlashes(prefix) + "/" + path$16;
|
|
21463
21463
|
};
|
|
21464
21464
|
const maxReadSize = 16 * 1024 * 1024;
|
|
21465
21465
|
const PROCESS$1 = Symbol("process");
|
|
@@ -21541,7 +21541,7 @@ var WriteEntry = class extends Minipass {
|
|
|
21541
21541
|
this.path = decode(this.path.replace(/\\/g, "/"));
|
|
21542
21542
|
p$1 = p$1.replace(/\\/g, "/");
|
|
21543
21543
|
}
|
|
21544
|
-
this.absolute = normalizeWindowsPath(opt.absolute || path
|
|
21544
|
+
this.absolute = normalizeWindowsPath(opt.absolute || path.resolve(this.cwd, p$1));
|
|
21545
21545
|
if (this.path === "") this.path = "./";
|
|
21546
21546
|
if (pathWarn) this.warn("TAR_ENTRY_INFO", `stripping ${pathWarn} from absolute path`, {
|
|
21547
21547
|
entry: this,
|
|
@@ -21583,8 +21583,8 @@ var WriteEntry = class extends Minipass {
|
|
|
21583
21583
|
[MODE](mode) {
|
|
21584
21584
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
21585
21585
|
}
|
|
21586
|
-
[PREFIX](path$
|
|
21587
|
-
return prefixPath(path$
|
|
21586
|
+
[PREFIX](path$16) {
|
|
21587
|
+
return prefixPath(path$16, this.prefix);
|
|
21588
21588
|
}
|
|
21589
21589
|
[HEADER]() {
|
|
21590
21590
|
/* c8 ignore start */
|
|
@@ -21650,7 +21650,7 @@ var WriteEntry = class extends Minipass {
|
|
|
21650
21650
|
if (!this.stat) throw new Error("cannot create link entry without stat");
|
|
21651
21651
|
/* c8 ignore stop */
|
|
21652
21652
|
this.type = "Link";
|
|
21653
|
-
this.linkpath = normalizeWindowsPath(path
|
|
21653
|
+
this.linkpath = normalizeWindowsPath(path.relative(this.cwd, linkpath));
|
|
21654
21654
|
this.stat.size = 0;
|
|
21655
21655
|
this[HEADER]();
|
|
21656
21656
|
this.end();
|
|
@@ -21916,8 +21916,8 @@ var WriteEntryTar = class extends Minipass {
|
|
|
21916
21916
|
super.write(b$2);
|
|
21917
21917
|
readEntry.pipe(this);
|
|
21918
21918
|
}
|
|
21919
|
-
[PREFIX](path$
|
|
21920
|
-
return prefixPath(path$
|
|
21919
|
+
[PREFIX](path$16) {
|
|
21920
|
+
return prefixPath(path$16, this.prefix);
|
|
21921
21921
|
}
|
|
21922
21922
|
[MODE](mode) {
|
|
21923
21923
|
return modeFix(mode, this.type === "Directory", this.portable);
|
|
@@ -22226,8 +22226,8 @@ var PackJob = class {
|
|
|
22226
22226
|
pending = false;
|
|
22227
22227
|
ignore = false;
|
|
22228
22228
|
piped = false;
|
|
22229
|
-
constructor(path$
|
|
22230
|
-
this.path = path$
|
|
22229
|
+
constructor(path$16, absolute) {
|
|
22230
|
+
this.path = path$16 || "./";
|
|
22231
22231
|
this.absolute = absolute;
|
|
22232
22232
|
}
|
|
22233
22233
|
};
|
|
@@ -22332,36 +22332,36 @@ var Pack = class extends Minipass {
|
|
|
22332
22332
|
[WRITE](chunk) {
|
|
22333
22333
|
return super.write(chunk);
|
|
22334
22334
|
}
|
|
22335
|
-
add(path$
|
|
22336
|
-
this.write(path$
|
|
22335
|
+
add(path$16) {
|
|
22336
|
+
this.write(path$16);
|
|
22337
22337
|
return this;
|
|
22338
22338
|
}
|
|
22339
|
-
end(path$
|
|
22339
|
+
end(path$16, encoding, cb) {
|
|
22340
22340
|
/* c8 ignore start */
|
|
22341
|
-
if (typeof path$
|
|
22342
|
-
cb = path$
|
|
22343
|
-
path$
|
|
22341
|
+
if (typeof path$16 === "function") {
|
|
22342
|
+
cb = path$16;
|
|
22343
|
+
path$16 = void 0;
|
|
22344
22344
|
}
|
|
22345
22345
|
if (typeof encoding === "function") {
|
|
22346
22346
|
cb = encoding;
|
|
22347
22347
|
encoding = void 0;
|
|
22348
22348
|
}
|
|
22349
22349
|
/* c8 ignore stop */
|
|
22350
|
-
if (path$
|
|
22350
|
+
if (path$16) this.add(path$16);
|
|
22351
22351
|
this[ENDED$1] = true;
|
|
22352
22352
|
this[PROCESS]();
|
|
22353
22353
|
/* c8 ignore next */
|
|
22354
22354
|
if (cb) cb();
|
|
22355
22355
|
return this;
|
|
22356
22356
|
}
|
|
22357
|
-
write(path$
|
|
22357
|
+
write(path$16) {
|
|
22358
22358
|
if (this[ENDED$1]) throw new Error("write after end");
|
|
22359
|
-
if (path$
|
|
22360
|
-
else this[ADDFSENTRY](path$
|
|
22359
|
+
if (path$16 instanceof ReadEntry) this[ADDTARENTRY](path$16);
|
|
22360
|
+
else this[ADDFSENTRY](path$16);
|
|
22361
22361
|
return this.flowing;
|
|
22362
22362
|
}
|
|
22363
22363
|
[ADDTARENTRY](p$1) {
|
|
22364
|
-
const absolute = normalizeWindowsPath(path
|
|
22364
|
+
const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1.path));
|
|
22365
22365
|
if (!this.filter(p$1.path, p$1)) p$1.resume();
|
|
22366
22366
|
else {
|
|
22367
22367
|
const job = new PackJob(p$1.path, absolute);
|
|
@@ -22373,7 +22373,7 @@ var Pack = class extends Minipass {
|
|
|
22373
22373
|
this[PROCESS]();
|
|
22374
22374
|
}
|
|
22375
22375
|
[ADDFSENTRY](p$1) {
|
|
22376
|
-
const absolute = normalizeWindowsPath(path
|
|
22376
|
+
const absolute = normalizeWindowsPath(path.resolve(this.cwd, p$1));
|
|
22377
22377
|
this[QUEUE].push(new PackJob(p$1, absolute));
|
|
22378
22378
|
this[PROCESS]();
|
|
22379
22379
|
}
|
|
@@ -22574,7 +22574,7 @@ const createFile = (opt, files) => {
|
|
|
22574
22574
|
const addFilesSync$1 = (p$1, files) => {
|
|
22575
22575
|
files.forEach((file) => {
|
|
22576
22576
|
if (file.charAt(0) === "@") list({
|
|
22577
|
-
file:
|
|
22577
|
+
file: nodePath.resolve(p$1.cwd, file.slice(1)),
|
|
22578
22578
|
sync: true,
|
|
22579
22579
|
noResume: true,
|
|
22580
22580
|
onReadEntry: (entry) => p$1.add(entry)
|
|
@@ -22587,7 +22587,7 @@ const addFilesAsync$1 = async (p$1, files) => {
|
|
|
22587
22587
|
for (let i$1 = 0; i$1 < files.length; i$1++) {
|
|
22588
22588
|
const file = String(files[i$1]);
|
|
22589
22589
|
if (file.charAt(0) === "@") await list({
|
|
22590
|
-
file:
|
|
22590
|
+
file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
|
|
22591
22591
|
noResume: true,
|
|
22592
22592
|
onReadEntry: (entry) => {
|
|
22593
22593
|
p$1.add(entry);
|
|
@@ -22625,9 +22625,9 @@ const getWriteFlag = !fMapEnabled ? () => "w" : (size) => size < fMapLimit ? fMa
|
|
|
22625
22625
|
|
|
22626
22626
|
//#endregion
|
|
22627
22627
|
//#region node_modules/chownr/dist/esm/index.js
|
|
22628
|
-
const lchownSync = (path$
|
|
22628
|
+
const lchownSync = (path$16, uid, gid) => {
|
|
22629
22629
|
try {
|
|
22630
|
-
return fs.lchownSync(path$
|
|
22630
|
+
return fs.lchownSync(path$16, uid, gid);
|
|
22631
22631
|
} catch (er) {
|
|
22632
22632
|
if (er?.code !== "ENOENT") throw er;
|
|
22633
22633
|
}
|
|
@@ -22638,11 +22638,11 @@ const chown = (cpath, uid, gid, cb) => {
|
|
|
22638
22638
|
});
|
|
22639
22639
|
};
|
|
22640
22640
|
const chownrKid = (p$1, child, uid, gid, cb) => {
|
|
22641
|
-
if (child.isDirectory()) chownr(
|
|
22641
|
+
if (child.isDirectory()) chownr(nodePath.resolve(p$1, child.name), uid, gid, (er) => {
|
|
22642
22642
|
if (er) return cb(er);
|
|
22643
|
-
chown(
|
|
22643
|
+
chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
|
|
22644
22644
|
});
|
|
22645
|
-
else chown(
|
|
22645
|
+
else chown(nodePath.resolve(p$1, child.name), uid, gid, cb);
|
|
22646
22646
|
};
|
|
22647
22647
|
const chownr = (p$1, uid, gid, cb) => {
|
|
22648
22648
|
fs.readdir(p$1, { withFileTypes: true }, (er, children) => {
|
|
@@ -22664,8 +22664,8 @@ const chownr = (p$1, uid, gid, cb) => {
|
|
|
22664
22664
|
});
|
|
22665
22665
|
};
|
|
22666
22666
|
const chownrKidSync = (p$1, child, uid, gid) => {
|
|
22667
|
-
if (child.isDirectory()) chownrSync(
|
|
22668
|
-
lchownSync(
|
|
22667
|
+
if (child.isDirectory()) chownrSync(nodePath.resolve(p$1, child.name), uid, gid);
|
|
22668
|
+
lchownSync(nodePath.resolve(p$1, child.name), uid, gid);
|
|
22669
22669
|
};
|
|
22670
22670
|
const chownrSync = (p$1, uid, gid) => {
|
|
22671
22671
|
let children;
|
|
@@ -22687,9 +22687,9 @@ var CwdError = class extends Error {
|
|
|
22687
22687
|
path;
|
|
22688
22688
|
code;
|
|
22689
22689
|
syscall = "chdir";
|
|
22690
|
-
constructor(path$
|
|
22691
|
-
super(`${code$1}: Cannot cd into '${path$
|
|
22692
|
-
this.path = path$
|
|
22690
|
+
constructor(path$16, code$1) {
|
|
22691
|
+
super(`${code$1}: Cannot cd into '${path$16}'`);
|
|
22692
|
+
this.path = path$16;
|
|
22693
22693
|
this.code = code$1;
|
|
22694
22694
|
}
|
|
22695
22695
|
get name() {
|
|
@@ -22704,10 +22704,10 @@ var SymlinkError = class extends Error {
|
|
|
22704
22704
|
symlink;
|
|
22705
22705
|
syscall = "symlink";
|
|
22706
22706
|
code = "TAR_SYMLINK_ERROR";
|
|
22707
|
-
constructor(symlink, path$
|
|
22707
|
+
constructor(symlink, path$16) {
|
|
22708
22708
|
super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");
|
|
22709
22709
|
this.symlink = symlink;
|
|
22710
|
-
this.path = path$
|
|
22710
|
+
this.path = path$16;
|
|
22711
22711
|
}
|
|
22712
22712
|
get name() {
|
|
22713
22713
|
return "SymlinkError";
|
|
@@ -22753,12 +22753,12 @@ const mkdir$1 = (dir, opt, cb) => {
|
|
|
22753
22753
|
mode,
|
|
22754
22754
|
recursive: true
|
|
22755
22755
|
}).then((made) => done(null, made ?? void 0), done);
|
|
22756
|
-
mkdir_(cwd, normalizeWindowsPath(
|
|
22756
|
+
mkdir_(cwd, normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/"), mode, unlink$1, cwd, void 0, done);
|
|
22757
22757
|
};
|
|
22758
22758
|
const mkdir_ = (base, parts, mode, unlink$1, cwd, created, cb) => {
|
|
22759
22759
|
if (!parts.length) return cb(null, created);
|
|
22760
22760
|
const p$1 = parts.shift();
|
|
22761
|
-
const part = normalizeWindowsPath(
|
|
22761
|
+
const part = normalizeWindowsPath(nodePath.resolve(base + "/" + p$1));
|
|
22762
22762
|
fs.mkdir(part, mode, onmkdir(part, parts, mode, unlink$1, cwd, created, cb));
|
|
22763
22763
|
};
|
|
22764
22764
|
const onmkdir = (part, parts, mode, unlink$1, cwd, created, cb) => (er) => {
|
|
@@ -22814,10 +22814,10 @@ const mkdirSync = (dir, opt) => {
|
|
|
22814
22814
|
mode,
|
|
22815
22815
|
recursive: true
|
|
22816
22816
|
}) ?? void 0);
|
|
22817
|
-
const parts = normalizeWindowsPath(
|
|
22817
|
+
const parts = normalizeWindowsPath(nodePath.relative(cwd, dir)).split("/");
|
|
22818
22818
|
let created = void 0;
|
|
22819
22819
|
for (let p$1 = parts.shift(), part = cwd; p$1 && (part += "/" + p$1); p$1 = parts.shift()) {
|
|
22820
|
-
part = normalizeWindowsPath(
|
|
22820
|
+
part = normalizeWindowsPath(nodePath.resolve(part));
|
|
22821
22821
|
try {
|
|
22822
22822
|
fs.mkdirSync(part, mode);
|
|
22823
22823
|
created = created || part;
|
|
@@ -22857,11 +22857,11 @@ const normalizeUnicode = (s) => {
|
|
|
22857
22857
|
//#endregion
|
|
22858
22858
|
//#region node_modules/tar/dist/esm/path-reservations.js
|
|
22859
22859
|
const isWindows$1 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
22860
|
-
const getDirs = (path$
|
|
22861
|
-
return path$
|
|
22860
|
+
const getDirs = (path$16) => {
|
|
22861
|
+
return path$16.split("/").slice(0, -1).reduce((set, path$17) => {
|
|
22862
22862
|
const s = set[set.length - 1];
|
|
22863
|
-
if (s !== void 0) path$
|
|
22864
|
-
set.push(path$
|
|
22863
|
+
if (s !== void 0) path$17 = join(s, path$17);
|
|
22864
|
+
set.push(path$17 || "/");
|
|
22865
22865
|
return set;
|
|
22866
22866
|
}, []);
|
|
22867
22867
|
};
|
|
@@ -22873,7 +22873,7 @@ var PathReservations = class {
|
|
|
22873
22873
|
paths = isWindows$1 ? ["win32 parallelization disabled"] : paths.map((p$1) => {
|
|
22874
22874
|
return stripTrailingSlashes(join(normalizeUnicode(p$1))).toLowerCase();
|
|
22875
22875
|
});
|
|
22876
|
-
const dirs = new Set(paths.map((path$
|
|
22876
|
+
const dirs = new Set(paths.map((path$16) => getDirs(path$16)).reduce((a$1, b$2) => a$1.concat(b$2)));
|
|
22877
22877
|
this.#reservations.set(fn, {
|
|
22878
22878
|
dirs,
|
|
22879
22879
|
paths
|
|
@@ -22900,8 +22900,8 @@ var PathReservations = class {
|
|
|
22900
22900
|
if (!res) throw new Error("function does not have any path reservations");
|
|
22901
22901
|
/* c8 ignore stop */
|
|
22902
22902
|
return {
|
|
22903
|
-
paths: res.paths.map((path$
|
|
22904
|
-
dirs: [...res.dirs].map((path$
|
|
22903
|
+
paths: res.paths.map((path$16) => this.#queues.get(path$16)),
|
|
22904
|
+
dirs: [...res.dirs].map((path$16) => this.#queues.get(path$16))
|
|
22905
22905
|
};
|
|
22906
22906
|
}
|
|
22907
22907
|
check(fn) {
|
|
@@ -22922,14 +22922,14 @@ var PathReservations = class {
|
|
|
22922
22922
|
/* c8 ignore stop */
|
|
22923
22923
|
const { paths, dirs } = res;
|
|
22924
22924
|
const next = /* @__PURE__ */ new Set();
|
|
22925
|
-
for (const path$
|
|
22926
|
-
const q$2 = this.#queues.get(path$
|
|
22925
|
+
for (const path$16 of paths) {
|
|
22926
|
+
const q$2 = this.#queues.get(path$16);
|
|
22927
22927
|
/* c8 ignore start */
|
|
22928
22928
|
if (!q$2 || q$2?.[0] !== fn) continue;
|
|
22929
22929
|
/* c8 ignore stop */
|
|
22930
22930
|
const q0 = q$2[1];
|
|
22931
22931
|
if (!q0) {
|
|
22932
|
-
this.#queues.delete(path$
|
|
22932
|
+
this.#queues.delete(path$16);
|
|
22933
22933
|
continue;
|
|
22934
22934
|
}
|
|
22935
22935
|
q$2.shift();
|
|
@@ -22985,20 +22985,20 @@ const CHECKED_CWD = Symbol("checkedCwd");
|
|
|
22985
22985
|
const isWindows = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
|
22986
22986
|
const DEFAULT_MAX_DEPTH = 1024;
|
|
22987
22987
|
/* c8 ignore start */
|
|
22988
|
-
const unlinkFile = (path$
|
|
22989
|
-
if (!isWindows) return fs.unlink(path$
|
|
22990
|
-
const name$1 = path$
|
|
22991
|
-
fs.rename(path$
|
|
22988
|
+
const unlinkFile = (path$16, cb) => {
|
|
22989
|
+
if (!isWindows) return fs.unlink(path$16, cb);
|
|
22990
|
+
const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
|
|
22991
|
+
fs.rename(path$16, name$1, (er) => {
|
|
22992
22992
|
if (er) return cb(er);
|
|
22993
22993
|
fs.unlink(name$1, cb);
|
|
22994
22994
|
});
|
|
22995
22995
|
};
|
|
22996
22996
|
/* c8 ignore stop */
|
|
22997
22997
|
/* c8 ignore start */
|
|
22998
|
-
const unlinkFileSync = (path$
|
|
22999
|
-
if (!isWindows) return fs.unlinkSync(path$
|
|
23000
|
-
const name$1 = path$
|
|
23001
|
-
fs.renameSync(path$
|
|
22998
|
+
const unlinkFileSync = (path$16) => {
|
|
22999
|
+
if (!isWindows) return fs.unlinkSync(path$16);
|
|
23000
|
+
const name$1 = path$16 + ".DELETE." + randomBytes(16).toString("hex");
|
|
23001
|
+
fs.renameSync(path$16, name$1);
|
|
23002
23002
|
fs.unlinkSync(name$1);
|
|
23003
23003
|
};
|
|
23004
23004
|
/* c8 ignore stop */
|
|
@@ -23063,7 +23063,7 @@ var Unpack = class extends Parser {
|
|
|
23063
23063
|
this.noMtime = !!opt.noMtime;
|
|
23064
23064
|
this.preservePaths = !!opt.preservePaths;
|
|
23065
23065
|
this.unlink = !!opt.unlink;
|
|
23066
|
-
this.cwd = normalizeWindowsPath(
|
|
23066
|
+
this.cwd = normalizeWindowsPath(nodePath.resolve(opt.cwd || process.cwd()));
|
|
23067
23067
|
this.strip = Number(opt.strip) || 0;
|
|
23068
23068
|
this.processUmask = !this.chmod ? 0 : typeof opt.processUmask === "number" ? opt.processUmask : process.umask();
|
|
23069
23069
|
this.umask = typeof opt.umask === "number" ? opt.umask : this.processUmask;
|
|
@@ -23121,8 +23121,8 @@ var Unpack = class extends Parser {
|
|
|
23121
23121
|
});
|
|
23122
23122
|
}
|
|
23123
23123
|
}
|
|
23124
|
-
if (
|
|
23125
|
-
else entry.absolute = normalizeWindowsPath(
|
|
23124
|
+
if (nodePath.isAbsolute(entry.path)) entry.absolute = normalizeWindowsPath(nodePath.resolve(entry.path));
|
|
23125
|
+
else entry.absolute = normalizeWindowsPath(nodePath.resolve(this.cwd, entry.path));
|
|
23126
23126
|
/* c8 ignore start - defense in depth */
|
|
23127
23127
|
if (!this.preservePaths && typeof entry.absolute === "string" && entry.absolute.indexOf(this.cwd + "/") !== 0 && entry.absolute !== this.cwd) {
|
|
23128
23128
|
this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", {
|
|
@@ -23136,9 +23136,9 @@ var Unpack = class extends Parser {
|
|
|
23136
23136
|
/* c8 ignore stop */
|
|
23137
23137
|
if (entry.absolute === this.cwd && entry.type !== "Directory" && entry.type !== "GNUDumpDir") return false;
|
|
23138
23138
|
if (this.win32) {
|
|
23139
|
-
const { root: aRoot } =
|
|
23139
|
+
const { root: aRoot } = nodePath.win32.parse(String(entry.absolute));
|
|
23140
23140
|
entry.absolute = aRoot + encode(String(entry.absolute).slice(aRoot.length));
|
|
23141
|
-
const { root: pRoot } =
|
|
23141
|
+
const { root: pRoot } = nodePath.win32.parse(entry.path);
|
|
23142
23142
|
entry.path = pRoot + encode(entry.path.slice(pRoot.length));
|
|
23143
23143
|
}
|
|
23144
23144
|
return true;
|
|
@@ -23284,7 +23284,7 @@ var Unpack = class extends Parser {
|
|
|
23284
23284
|
this[LINK](entry, String(entry.linkpath), "symlink", done);
|
|
23285
23285
|
}
|
|
23286
23286
|
[HARDLINK](entry, done) {
|
|
23287
|
-
const linkpath = normalizeWindowsPath(
|
|
23287
|
+
const linkpath = normalizeWindowsPath(nodePath.resolve(this.cwd, String(entry.linkpath)));
|
|
23288
23288
|
this[LINK](entry, linkpath, "link", done);
|
|
23289
23289
|
}
|
|
23290
23290
|
[PEND]() {
|
|
@@ -23324,7 +23324,7 @@ var Unpack = class extends Parser {
|
|
|
23324
23324
|
};
|
|
23325
23325
|
const start = () => {
|
|
23326
23326
|
if (entry.absolute !== this.cwd) {
|
|
23327
|
-
const parent = normalizeWindowsPath(
|
|
23327
|
+
const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
|
|
23328
23328
|
if (parent !== this.cwd) return this[MKDIR](parent, this.dmode, (er) => {
|
|
23329
23329
|
if (er) {
|
|
23330
23330
|
this[ONERROR](er, entry);
|
|
@@ -23406,7 +23406,7 @@ var UnpackSync = class extends Unpack {
|
|
|
23406
23406
|
this[CHECKED_CWD] = true;
|
|
23407
23407
|
}
|
|
23408
23408
|
if (entry.absolute !== this.cwd) {
|
|
23409
|
-
const parent = normalizeWindowsPath(
|
|
23409
|
+
const parent = normalizeWindowsPath(nodePath.dirname(String(entry.absolute)));
|
|
23410
23410
|
if (parent !== this.cwd) {
|
|
23411
23411
|
const mkParent = this[MKDIR](parent, this.dmode);
|
|
23412
23412
|
if (mkParent) return this[ONERROR](mkParent, entry);
|
|
@@ -23678,7 +23678,7 @@ const replaceAsync = (opt, files) => {
|
|
|
23678
23678
|
const addFilesSync = (p$1, files) => {
|
|
23679
23679
|
files.forEach((file) => {
|
|
23680
23680
|
if (file.charAt(0) === "@") list({
|
|
23681
|
-
file:
|
|
23681
|
+
file: nodePath.resolve(p$1.cwd, file.slice(1)),
|
|
23682
23682
|
sync: true,
|
|
23683
23683
|
noResume: true,
|
|
23684
23684
|
onReadEntry: (entry) => p$1.add(entry)
|
|
@@ -23691,7 +23691,7 @@ const addFilesAsync = async (p$1, files) => {
|
|
|
23691
23691
|
for (let i$1 = 0; i$1 < files.length; i$1++) {
|
|
23692
23692
|
const file = String(files[i$1]);
|
|
23693
23693
|
if (file.charAt(0) === "@") await list({
|
|
23694
|
-
file:
|
|
23694
|
+
file: nodePath.resolve(String(p$1.cwd), file.slice(1)),
|
|
23695
23695
|
noResume: true,
|
|
23696
23696
|
onReadEntry: (entry) => p$1.add(entry)
|
|
23697
23697
|
});
|
|
@@ -23726,7 +23726,7 @@ const update = makeCommand(replace.syncFile, replace.asyncFile, replace.syncNoFi
|
|
|
23726
23726
|
const mtimeFilter = (opt) => {
|
|
23727
23727
|
const filter = opt.filter;
|
|
23728
23728
|
if (!opt.mtimeCache) opt.mtimeCache = /* @__PURE__ */ new Map();
|
|
23729
|
-
opt.filter = filter ? (path$
|
|
23729
|
+
opt.filter = filter ? (path$16, stat) => filter(path$16, stat) && !((opt.mtimeCache?.get(path$16) ?? stat.mtime ?? 0) > (stat.mtime ?? 0)) : (path$16, stat) => !((opt.mtimeCache?.get(path$16) ?? stat.mtime ?? 0) > (stat.mtime ?? 0));
|
|
23730
23730
|
};
|
|
23731
23731
|
|
|
23732
23732
|
//#endregion
|
|
@@ -24567,28 +24567,28 @@ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24567
24567
|
module.exports = isexe;
|
|
24568
24568
|
isexe.sync = sync;
|
|
24569
24569
|
var fs$4 = __require("fs");
|
|
24570
|
-
function checkPathExt(path$
|
|
24570
|
+
function checkPathExt(path$16, options) {
|
|
24571
24571
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
24572
24572
|
if (!pathext) return true;
|
|
24573
24573
|
pathext = pathext.split(";");
|
|
24574
24574
|
if (pathext.indexOf("") !== -1) return true;
|
|
24575
24575
|
for (var i$1 = 0; i$1 < pathext.length; i$1++) {
|
|
24576
24576
|
var p$1 = pathext[i$1].toLowerCase();
|
|
24577
|
-
if (p$1 && path$
|
|
24577
|
+
if (p$1 && path$16.substr(-p$1.length).toLowerCase() === p$1) return true;
|
|
24578
24578
|
}
|
|
24579
24579
|
return false;
|
|
24580
24580
|
}
|
|
24581
|
-
function checkStat(stat, path$
|
|
24581
|
+
function checkStat(stat, path$16, options) {
|
|
24582
24582
|
if (!stat.isSymbolicLink() && !stat.isFile()) return false;
|
|
24583
|
-
return checkPathExt(path$
|
|
24583
|
+
return checkPathExt(path$16, options);
|
|
24584
24584
|
}
|
|
24585
|
-
function isexe(path$
|
|
24586
|
-
fs$4.stat(path$
|
|
24587
|
-
cb(er, er ? false : checkStat(stat, path$
|
|
24585
|
+
function isexe(path$16, options, cb) {
|
|
24586
|
+
fs$4.stat(path$16, function(er, stat) {
|
|
24587
|
+
cb(er, er ? false : checkStat(stat, path$16, options));
|
|
24588
24588
|
});
|
|
24589
24589
|
}
|
|
24590
|
-
function sync(path$
|
|
24591
|
-
return checkStat(fs$4.statSync(path$
|
|
24590
|
+
function sync(path$16, options) {
|
|
24591
|
+
return checkStat(fs$4.statSync(path$16), path$16, options);
|
|
24592
24592
|
}
|
|
24593
24593
|
}));
|
|
24594
24594
|
|
|
@@ -24598,13 +24598,13 @@ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24598
24598
|
module.exports = isexe;
|
|
24599
24599
|
isexe.sync = sync;
|
|
24600
24600
|
var fs$3 = __require("fs");
|
|
24601
|
-
function isexe(path$
|
|
24602
|
-
fs$3.stat(path$
|
|
24601
|
+
function isexe(path$16, options, cb) {
|
|
24602
|
+
fs$3.stat(path$16, function(er, stat) {
|
|
24603
24603
|
cb(er, er ? false : checkStat(stat, options));
|
|
24604
24604
|
});
|
|
24605
24605
|
}
|
|
24606
|
-
function sync(path$
|
|
24607
|
-
return checkStat(fs$3.statSync(path$
|
|
24606
|
+
function sync(path$16, options) {
|
|
24607
|
+
return checkStat(fs$3.statSync(path$16), options);
|
|
24608
24608
|
}
|
|
24609
24609
|
function checkStat(stat, options) {
|
|
24610
24610
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -24632,7 +24632,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24632
24632
|
else core = require_mode();
|
|
24633
24633
|
module.exports = isexe;
|
|
24634
24634
|
isexe.sync = sync;
|
|
24635
|
-
function isexe(path$
|
|
24635
|
+
function isexe(path$16, options, cb) {
|
|
24636
24636
|
if (typeof options === "function") {
|
|
24637
24637
|
cb = options;
|
|
24638
24638
|
options = {};
|
|
@@ -24640,13 +24640,13 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24640
24640
|
if (!cb) {
|
|
24641
24641
|
if (typeof Promise !== "function") throw new TypeError("callback not provided");
|
|
24642
24642
|
return new Promise(function(resolve$1, reject) {
|
|
24643
|
-
isexe(path$
|
|
24643
|
+
isexe(path$16, options || {}, function(er, is) {
|
|
24644
24644
|
if (er) reject(er);
|
|
24645
24645
|
else resolve$1(is);
|
|
24646
24646
|
});
|
|
24647
24647
|
});
|
|
24648
24648
|
}
|
|
24649
|
-
core(path$
|
|
24649
|
+
core(path$16, options || {}, function(er, is) {
|
|
24650
24650
|
if (er) {
|
|
24651
24651
|
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
24652
24652
|
er = null;
|
|
@@ -24656,9 +24656,9 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24656
24656
|
cb(er, is);
|
|
24657
24657
|
});
|
|
24658
24658
|
}
|
|
24659
|
-
function sync(path$
|
|
24659
|
+
function sync(path$16, options) {
|
|
24660
24660
|
try {
|
|
24661
|
-
return core.sync(path$
|
|
24661
|
+
return core.sync(path$16, options || {});
|
|
24662
24662
|
} catch (er) {
|
|
24663
24663
|
if (options && options.ignoreErrors || er.code === "EACCES") return false;
|
|
24664
24664
|
else throw er;
|
|
@@ -24670,7 +24670,7 @@ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24670
24670
|
//#region node_modules/which/which.js
|
|
24671
24671
|
var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24672
24672
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
24673
|
-
const path$
|
|
24673
|
+
const path$3 = __require("path");
|
|
24674
24674
|
const COLON = isWindows ? ";" : ":";
|
|
24675
24675
|
const isexe = require_isexe();
|
|
24676
24676
|
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
@@ -24700,7 +24700,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24700
24700
|
if (i$1 === pathEnv.length) return opt.all && found.length ? resolve$1(found) : reject(getNotFoundError(cmd));
|
|
24701
24701
|
const ppRaw = pathEnv[i$1];
|
|
24702
24702
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
24703
|
-
const pCmd = path$
|
|
24703
|
+
const pCmd = path$3.join(pathPart, cmd);
|
|
24704
24704
|
resolve$1(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
|
|
24705
24705
|
});
|
|
24706
24706
|
const subStep = (p$1, i$1, ii) => new Promise((resolve$1, reject) => {
|
|
@@ -24721,7 +24721,7 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24721
24721
|
for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
|
|
24722
24722
|
const ppRaw = pathEnv[i$1];
|
|
24723
24723
|
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
24724
|
-
const pCmd = path$
|
|
24724
|
+
const pCmd = path$3.join(pathPart, cmd);
|
|
24725
24725
|
const p$1 = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
24726
24726
|
for (let j = 0; j < pathExt.length; j++) {
|
|
24727
24727
|
const cur = p$1 + pathExt[j];
|
|
@@ -24754,7 +24754,7 @@ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24754
24754
|
//#endregion
|
|
24755
24755
|
//#region node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
24756
24756
|
var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24757
|
-
const path$
|
|
24757
|
+
const path$2 = __require("path");
|
|
24758
24758
|
const which = require_which();
|
|
24759
24759
|
const getPathKey = require_path_key();
|
|
24760
24760
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
@@ -24769,12 +24769,12 @@ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
24769
24769
|
try {
|
|
24770
24770
|
resolved = which.sync(parsed.command, {
|
|
24771
24771
|
path: env$1[getPathKey({ env: env$1 })],
|
|
24772
|
-
pathExt: withoutPathExt ? path$
|
|
24772
|
+
pathExt: withoutPathExt ? path$2.delimiter : void 0
|
|
24773
24773
|
});
|
|
24774
24774
|
} catch (e$1) {} finally {
|
|
24775
24775
|
if (shouldSwitchCwd) process.chdir(cwd);
|
|
24776
24776
|
}
|
|
24777
|
-
if (resolved) resolved = path$
|
|
24777
|
+
if (resolved) resolved = path$2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
24778
24778
|
return resolved;
|
|
24779
24779
|
}
|
|
24780
24780
|
function resolveCommand(parsed) {
|
|
@@ -24817,8 +24817,8 @@ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
24817
24817
|
module.exports = (string$2 = "") => {
|
|
24818
24818
|
const match = string$2.match(shebangRegex);
|
|
24819
24819
|
if (!match) return null;
|
|
24820
|
-
const [path$
|
|
24821
|
-
const binary = path$
|
|
24820
|
+
const [path$16, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
24821
|
+
const binary = path$16.split("/").pop();
|
|
24822
24822
|
if (binary === "env") return argument;
|
|
24823
24823
|
return argument ? `${binary} ${argument}` : binary;
|
|
24824
24824
|
};
|
|
@@ -24846,7 +24846,7 @@ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24846
24846
|
//#endregion
|
|
24847
24847
|
//#region node_modules/cross-spawn/lib/parse.js
|
|
24848
24848
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
24849
|
-
const path$
|
|
24849
|
+
const path$1 = __require("path");
|
|
24850
24850
|
const resolveCommand = require_resolveCommand();
|
|
24851
24851
|
const escape = require_escape();
|
|
24852
24852
|
const readShebang = require_readShebang();
|
|
@@ -24869,7 +24869,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24869
24869
|
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
24870
24870
|
if (parsed.options.forceShell || needsShell) {
|
|
24871
24871
|
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
24872
|
-
parsed.command = path$
|
|
24872
|
+
parsed.command = path$1.normalize(parsed.command);
|
|
24873
24873
|
parsed.command = escape.command(parsed.command);
|
|
24874
24874
|
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
24875
24875
|
parsed.args = [
|
|
@@ -24987,12 +24987,12 @@ function toPath(urlOrPath) {
|
|
|
24987
24987
|
}
|
|
24988
24988
|
function traversePathUp(startPath) {
|
|
24989
24989
|
return { *[Symbol.iterator]() {
|
|
24990
|
-
let currentPath =
|
|
24990
|
+
let currentPath = nodePath.resolve(toPath(startPath));
|
|
24991
24991
|
let previousPath;
|
|
24992
24992
|
while (previousPath !== currentPath) {
|
|
24993
24993
|
yield currentPath;
|
|
24994
24994
|
previousPath = currentPath;
|
|
24995
|
-
currentPath =
|
|
24995
|
+
currentPath = nodePath.resolve(currentPath, "..");
|
|
24996
24996
|
}
|
|
24997
24997
|
} };
|
|
24998
24998
|
}
|
|
@@ -25001,21 +25001,21 @@ const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
|
25001
25001
|
//#endregion
|
|
25002
25002
|
//#region node_modules/npm-run-path/index.js
|
|
25003
25003
|
const npmRunPath = ({ cwd = y.cwd(), path: pathOption = y.env[pathKey()], preferLocal = true, execPath: execPath$1 = y.execPath, addExecPath = true } = {}) => {
|
|
25004
|
-
const cwdPath =
|
|
25004
|
+
const cwdPath = nodePath.resolve(toPath(cwd));
|
|
25005
25005
|
const result = [];
|
|
25006
|
-
const pathParts = pathOption.split(
|
|
25006
|
+
const pathParts = pathOption.split(nodePath.delimiter);
|
|
25007
25007
|
if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
|
|
25008
25008
|
if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
|
|
25009
|
-
return pathOption === "" || pathOption ===
|
|
25009
|
+
return pathOption === "" || pathOption === nodePath.delimiter ? `${result.join(nodePath.delimiter)}${pathOption}` : [...result, pathOption].join(nodePath.delimiter);
|
|
25010
25010
|
};
|
|
25011
25011
|
const applyPreferLocal = (result, pathParts, cwdPath) => {
|
|
25012
25012
|
for (const directory of traversePathUp(cwdPath)) {
|
|
25013
|
-
const pathPart =
|
|
25013
|
+
const pathPart = nodePath.join(directory, "node_modules/.bin");
|
|
25014
25014
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
25015
25015
|
}
|
|
25016
25016
|
};
|
|
25017
25017
|
const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
|
|
25018
|
-
const pathPart =
|
|
25018
|
+
const pathPart = nodePath.resolve(cwdPath, toPath(execPath$1), "..");
|
|
25019
25019
|
if (!pathParts.includes(pathPart)) result.push(pathPart);
|
|
25020
25020
|
};
|
|
25021
25021
|
const npmRunPathEnv = ({ env: env$1 = y.env, ...options } = {}) => {
|
|
@@ -26047,10 +26047,10 @@ const mapNode = ({ options }) => {
|
|
|
26047
26047
|
node: true
|
|
26048
26048
|
} };
|
|
26049
26049
|
};
|
|
26050
|
-
const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
|
|
26050
|
+
const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath: nodePath$1 = execPath, nodeOptions = execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
|
|
26051
26051
|
if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
|
|
26052
|
-
const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
|
|
26053
|
-
const resolvedNodePath =
|
|
26052
|
+
const normalizedNodePath = safeNormalizeFileUrl(nodePath$1, "The \"nodePath\" option");
|
|
26053
|
+
const resolvedNodePath = nodePath.resolve(cwd, normalizedNodePath);
|
|
26054
26054
|
const newOptions = {
|
|
26055
26055
|
...options,
|
|
26056
26056
|
nodePath: resolvedNodePath,
|
|
@@ -26062,7 +26062,7 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
|
|
|
26062
26062
|
commandArguments,
|
|
26063
26063
|
newOptions
|
|
26064
26064
|
];
|
|
26065
|
-
if (
|
|
26065
|
+
if (nodePath.basename(file, ".exe") === "node") throw new TypeError("When the \"node\" option is true, the first argument does not need to be \"node\".");
|
|
26066
26066
|
return [
|
|
26067
26067
|
resolvedNodePath,
|
|
26068
26068
|
[
|
|
@@ -26149,7 +26149,7 @@ const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encod
|
|
|
26149
26149
|
//#region node_modules/execa/lib/arguments/cwd.js
|
|
26150
26150
|
const normalizeCwd = (cwd = getDefaultCwd()) => {
|
|
26151
26151
|
const cwdString = safeNormalizeFileUrl(cwd, "The \"cwd\" option");
|
|
26152
|
-
return
|
|
26152
|
+
return nodePath.resolve(cwdString);
|
|
26153
26153
|
};
|
|
26154
26154
|
const getDefaultCwd = () => {
|
|
26155
26155
|
try {
|
|
@@ -26188,7 +26188,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
|
26188
26188
|
options.killSignal = normalizeKillSignal(options.killSignal);
|
|
26189
26189
|
options.forceKillAfterDelay = normalizeForceKillAfterDelay(options.forceKillAfterDelay);
|
|
26190
26190
|
options.lines = options.lines.map((lines, fdNumber) => lines && !BINARY_ENCODINGS.has(options.encoding) && options.buffer[fdNumber]);
|
|
26191
|
-
if (y.platform === "win32" &&
|
|
26191
|
+
if (y.platform === "win32" && nodePath.basename(file, ".exe") === "cmd") commandArguments.unshift("/q");
|
|
26192
26192
|
return {
|
|
26193
26193
|
file,
|
|
26194
26194
|
commandArguments,
|
|
@@ -26213,7 +26213,7 @@ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDi
|
|
|
26213
26213
|
ipc,
|
|
26214
26214
|
serialization
|
|
26215
26215
|
});
|
|
26216
|
-
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath }) => {
|
|
26216
|
+
const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory, nodePath: nodePath$1 }) => {
|
|
26217
26217
|
const env$1 = extendEnv ? {
|
|
26218
26218
|
...y.env,
|
|
26219
26219
|
...envOption
|
|
@@ -26221,7 +26221,7 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
|
|
|
26221
26221
|
if (preferLocal || node) return npmRunPathEnv({
|
|
26222
26222
|
env: env$1,
|
|
26223
26223
|
cwd: localDirectory,
|
|
26224
|
-
execPath: nodePath,
|
|
26224
|
+
execPath: nodePath$1,
|
|
26225
26225
|
preferLocal,
|
|
26226
26226
|
addExecPath: node
|
|
26227
26227
|
});
|
|
@@ -27966,12 +27966,12 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
|
|
|
27966
27966
|
}
|
|
27967
27967
|
};
|
|
27968
27968
|
const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
|
|
27969
|
-
for (const { path: path$
|
|
27970
|
-
const pathString = typeof path$
|
|
27971
|
-
if (append || outputFiles.has(pathString)) appendFileSync(path$
|
|
27969
|
+
for (const { path: path$16, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
|
|
27970
|
+
const pathString = typeof path$16 === "string" ? path$16 : path$16.toString();
|
|
27971
|
+
if (append || outputFiles.has(pathString)) appendFileSync(path$16, serializedResult);
|
|
27972
27972
|
else {
|
|
27973
27973
|
outputFiles.add(pathString);
|
|
27974
|
-
writeFileSync(path$
|
|
27974
|
+
writeFileSync(path$16, serializedResult);
|
|
27975
27975
|
}
|
|
27976
27976
|
}
|
|
27977
27977
|
};
|
|
@@ -30489,7 +30489,8 @@ async function create() {
|
|
|
30489
30489
|
M.success(`Dashboard link:\n${source_default.bold(`${getBase44ApiUrl()}/apps/${projectId}/editor/preview`)}`);
|
|
30490
30490
|
const { project, entities } = await readProjectConfig(resolvedPath);
|
|
30491
30491
|
if (entities.length > 0) {
|
|
30492
|
-
|
|
30492
|
+
const shouldPushEntities = await ye({ message: "Would you like to push entities now?" });
|
|
30493
|
+
if (!pD(shouldPushEntities) && shouldPushEntities) await runTask(`Pushing ${entities.length} entities to Base44...`, async () => {
|
|
30493
30494
|
await pushEntities(entities);
|
|
30494
30495
|
}, {
|
|
30495
30496
|
successMessage: "Entities pushed successfully",
|
|
@@ -30499,7 +30500,8 @@ async function create() {
|
|
|
30499
30500
|
if (project.site) {
|
|
30500
30501
|
const installCommand = project.site.installCommand;
|
|
30501
30502
|
const buildCommand = project.site.buildCommand;
|
|
30502
|
-
|
|
30503
|
+
const shouldDeploy = await ye({ message: "Would you like to deploy the site now?" });
|
|
30504
|
+
if (!pD(shouldDeploy) && shouldDeploy && installCommand && buildCommand) {
|
|
30503
30505
|
await runTask("Installing dependencies...", async () => {
|
|
30504
30506
|
await execa({
|
|
30505
30507
|
cwd: resolvedPath,
|