@pipelab/plugin-itch 1.0.0-beta.23 → 1.0.0-beta.27
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/index.cjs +181 -102
- package/dist/index.mjs +121 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { a as __require, i as __reExport, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-kImr3pkf.mjs";
|
|
2
|
-
import path, { delimiter, dirname, join } from "node:path";
|
|
2
|
+
import path, { delimiter, dirname, join, resolve } from "node:path";
|
|
3
3
|
import { access, chmod, mkdir, rm } from "node:fs/promises";
|
|
4
4
|
import { appendFileSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { hostname } from "os";
|
|
6
6
|
import { normalize } from "path";
|
|
7
7
|
import { formatWithOptions, types } from "util";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
|
-
import { constants as constants$1 } from "node:os";
|
|
9
|
+
import { constants as constants$1, homedir, platform } from "node:os";
|
|
10
10
|
import http from "node:http";
|
|
11
11
|
import { webcrypto } from "node:crypto";
|
|
12
12
|
import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
13
13
|
import { StringDecoder } from "node:string_decoder";
|
|
14
14
|
import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlCharacters } from "node:util";
|
|
15
|
-
import process$1, { execArgv, execPath, hrtime, platform } from "node:process";
|
|
15
|
+
import process$1, { execArgv, execPath, hrtime, platform as platform$1 } from "node:process";
|
|
16
16
|
import tty from "node:tty";
|
|
17
17
|
import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
18
18
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
@@ -45390,6 +45390,17 @@ const websocketPort = 33753;
|
|
|
45390
45390
|
const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
|
|
45391
45391
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
|
|
45392
45392
|
const isDev = process.env.NODE_ENV === "development";
|
|
45393
|
+
const getDefaultUserDataPath = (env) => {
|
|
45394
|
+
const base = (() => {
|
|
45395
|
+
switch (platform()) {
|
|
45396
|
+
case "win32": return process.env.APPDATA || join(homedir(), "AppData", "Roaming");
|
|
45397
|
+
case "darwin": return join(homedir(), "Library", "Application Support");
|
|
45398
|
+
default: return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
|
|
45399
|
+
}
|
|
45400
|
+
})();
|
|
45401
|
+
const mode = env ?? (isDev ? "dev" : "prod");
|
|
45402
|
+
return join(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
|
|
45403
|
+
};
|
|
45393
45404
|
/**
|
|
45394
45405
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
45395
45406
|
*/
|
|
@@ -49151,6 +49162,71 @@ var WebSocketServer = class {
|
|
|
49151
49162
|
};
|
|
49152
49163
|
new WebSocketServer();
|
|
49153
49164
|
//#endregion
|
|
49165
|
+
//#region ../../packages/core-node/src/fs-utils.ts
|
|
49166
|
+
var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
49167
|
+
module.exports = (path) => {
|
|
49168
|
+
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|
|
49169
|
+
const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
49170
|
+
if (isExtendedLengthPath || hasNonAscii) return path;
|
|
49171
|
+
return path.replace(/\\/g, "/");
|
|
49172
|
+
};
|
|
49173
|
+
})))(), 1);
|
|
49174
|
+
function removeTrailingSlash(path) {
|
|
49175
|
+
return path.replace(/[\\/]+$/, "");
|
|
49176
|
+
}
|
|
49177
|
+
removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
|
|
49178
|
+
const additionalProtectedPaths = [
|
|
49179
|
+
getDefaultUserDataPath("dev"),
|
|
49180
|
+
getDefaultUserDataPath("beta"),
|
|
49181
|
+
getDefaultUserDataPath("prod"),
|
|
49182
|
+
projectRoot,
|
|
49183
|
+
process.cwd(),
|
|
49184
|
+
"/tmp",
|
|
49185
|
+
"/var/tmp",
|
|
49186
|
+
process.env.TEMP,
|
|
49187
|
+
process.env.TMP,
|
|
49188
|
+
join(homedir(), "AppData"),
|
|
49189
|
+
join(homedir(), "AppData", "Local"),
|
|
49190
|
+
join(homedir(), "AppData", "Roaming"),
|
|
49191
|
+
join(homedir(), "Library"),
|
|
49192
|
+
join(homedir(), "Library", "Application Support"),
|
|
49193
|
+
join(homedir(), ".config"),
|
|
49194
|
+
join(homedir(), ".local"),
|
|
49195
|
+
join(homedir(), ".local", "share"),
|
|
49196
|
+
join(homedir(), ".cache"),
|
|
49197
|
+
join(homedir(), "OneDrive"),
|
|
49198
|
+
join(homedir(), "Dropbox"),
|
|
49199
|
+
join(homedir(), ".ssh"),
|
|
49200
|
+
join(homedir(), ".gnupg"),
|
|
49201
|
+
join(homedir(), ".aws"),
|
|
49202
|
+
join(homedir(), ".docker"),
|
|
49203
|
+
join(homedir(), ".kube"),
|
|
49204
|
+
join(homedir(), ".vscode"),
|
|
49205
|
+
join(homedir(), ".vscode-insiders"),
|
|
49206
|
+
join(homedir(), ".cursor"),
|
|
49207
|
+
join(homedir(), ".npm"),
|
|
49208
|
+
join(homedir(), ".pnpm-state"),
|
|
49209
|
+
join(homedir(), ".yarn"),
|
|
49210
|
+
join(homedir(), ".cargo"),
|
|
49211
|
+
join(homedir(), ".rustup"),
|
|
49212
|
+
join(homedir(), ".m2"),
|
|
49213
|
+
join(homedir(), ".gradle")
|
|
49214
|
+
].filter((p) => typeof p === "string" && p.length > 0);
|
|
49215
|
+
new Set([
|
|
49216
|
+
join(homedir(), "Downloads"),
|
|
49217
|
+
join(homedir(), "Documents"),
|
|
49218
|
+
join(homedir(), "Desktop"),
|
|
49219
|
+
join(homedir(), "Pictures"),
|
|
49220
|
+
join(homedir(), "Music"),
|
|
49221
|
+
join(homedir(), "Videos"),
|
|
49222
|
+
join(homedir(), "Saved Games"),
|
|
49223
|
+
join(homedir(), "Contacts"),
|
|
49224
|
+
join(homedir(), "Searches"),
|
|
49225
|
+
join(homedir(), "Links"),
|
|
49226
|
+
join(homedir(), "3D Objects"),
|
|
49227
|
+
...additionalProtectedPaths
|
|
49228
|
+
].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
|
|
49229
|
+
//#endregion
|
|
49154
49230
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
49155
49231
|
function isPlainObject(value) {
|
|
49156
49232
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -49432,7 +49508,7 @@ const COMMON_ESCAPES = {
|
|
|
49432
49508
|
const ASTRAL_START = 65535;
|
|
49433
49509
|
const quoteString = (escapedArgument) => {
|
|
49434
49510
|
if (NO_ESCAPE_REGEXP.test(escapedArgument)) return escapedArgument;
|
|
49435
|
-
return platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
49511
|
+
return platform$1 === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
|
|
49436
49512
|
};
|
|
49437
49513
|
const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
|
|
49438
49514
|
//#endregion
|
|
@@ -59541,13 +59617,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
59541
59617
|
//#region ../../node_modules/mkdirp/lib/path-arg.js
|
|
59542
59618
|
var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59543
59619
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59544
|
-
const { resolve: resolve$
|
|
59620
|
+
const { resolve: resolve$13, parse: parse$2 } = __require("path");
|
|
59545
59621
|
const pathArg = (path) => {
|
|
59546
59622
|
if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59547
59623
|
path,
|
|
59548
59624
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59549
59625
|
});
|
|
59550
|
-
path = resolve$
|
|
59626
|
+
path = resolve$13(path);
|
|
59551
59627
|
if (platform === "win32") {
|
|
59552
59628
|
const badWinChars = /[*|"<>?:]/;
|
|
59553
59629
|
const { root } = parse$2(path);
|
|
@@ -62592,7 +62668,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62592
62668
|
const fs$19 = __require("fs");
|
|
62593
62669
|
const { EventEmitter: EventEmitter$1 } = __require("events");
|
|
62594
62670
|
const { Minimatch } = require_minimatch$1();
|
|
62595
|
-
const { resolve: resolve$
|
|
62671
|
+
const { resolve: resolve$12 } = __require("path");
|
|
62596
62672
|
function readdir(dir, strict) {
|
|
62597
62673
|
return new Promise((resolve, reject) => {
|
|
62598
62674
|
fs$19.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
@@ -62701,7 +62777,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62701
62777
|
if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
|
|
62702
62778
|
this.skipMatchers = [];
|
|
62703
62779
|
if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
|
|
62704
|
-
this.iterator = explore(resolve$
|
|
62780
|
+
this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
62705
62781
|
this.paused = false;
|
|
62706
62782
|
this.inactive = false;
|
|
62707
62783
|
this.aborted = false;
|
|
@@ -98005,7 +98081,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98005
98081
|
const isWindows = process.platform === "win32";
|
|
98006
98082
|
const { URL: URL$6 } = __require("node:url");
|
|
98007
98083
|
const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
|
|
98008
|
-
const { homedir: homedir$
|
|
98084
|
+
const { homedir: homedir$2 } = __require("node:os");
|
|
98009
98085
|
const HostedGit = require_lib$28();
|
|
98010
98086
|
const semver = require_semver$2();
|
|
98011
98087
|
const validatePackageName = require_lib$23();
|
|
@@ -98210,7 +98286,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
98210
98286
|
}
|
|
98211
98287
|
if (/^\/~(\/|$)/.test(specPath)) {
|
|
98212
98288
|
res.saveSpec = `file:${specPath.substr(1)}`;
|
|
98213
|
-
resolvedPath = path$17.resolve(homedir$
|
|
98289
|
+
resolvedPath = path$17.resolve(homedir$2(), specPath.substr(3));
|
|
98214
98290
|
} else if (!path$17.isAbsolute(rawSpec.slice(5))) res.saveSpec = `file:${path$17.relative(where, resolvedPath)}`;
|
|
98215
98291
|
else res.saveSpec = `file:${path$17.resolve(resolvedPath)}`;
|
|
98216
98292
|
res.fetchSpec = path$17.resolve(where, resolvedPath);
|
|
@@ -99357,7 +99433,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99357
99433
|
//#region ../../node_modules/@npmcli/package-json/lib/index.js
|
|
99358
99434
|
var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99359
99435
|
const { readFile: readFile$4, writeFile: writeFile$2 } = __require("node:fs/promises");
|
|
99360
|
-
const { resolve: resolve$
|
|
99436
|
+
const { resolve: resolve$11 } = __require("node:path");
|
|
99361
99437
|
const parseJSON = require_lib$30();
|
|
99362
99438
|
const updateDeps = require_update_dependencies();
|
|
99363
99439
|
const updateScripts = require_update_scripts();
|
|
@@ -99460,7 +99536,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99460
99536
|
parseErr = err;
|
|
99461
99537
|
}
|
|
99462
99538
|
if (parseErr) {
|
|
99463
|
-
const indexFile = resolve$
|
|
99539
|
+
const indexFile = resolve$11(this.path, "index.js");
|
|
99464
99540
|
let indexFileContent;
|
|
99465
99541
|
try {
|
|
99466
99542
|
indexFileContent = await readFile$4(indexFile, "utf8");
|
|
@@ -99505,7 +99581,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99505
99581
|
return this.#path;
|
|
99506
99582
|
}
|
|
99507
99583
|
get filename() {
|
|
99508
|
-
if (this.path) return resolve$
|
|
99584
|
+
if (this.path) return resolve$11(this.path, "package.json");
|
|
99509
99585
|
}
|
|
99510
99586
|
create(path) {
|
|
99511
99587
|
this.#path = path;
|
|
@@ -100628,7 +100704,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100628
100704
|
const { ERR_FS_CP_DIR_TO_NON_DIR, ERR_FS_CP_EEXIST, ERR_FS_CP_EINVAL, ERR_FS_CP_FIFO_PIPE, ERR_FS_CP_NON_DIR_TO_DIR, ERR_FS_CP_SOCKET, ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY, ERR_FS_CP_UNKNOWN, ERR_FS_EISDIR, ERR_INVALID_ARG_TYPE } = require_errors$3();
|
|
100629
100705
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
|
|
100630
100706
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$5, readdir: readdir$4, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
|
|
100631
|
-
const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$
|
|
100707
|
+
const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = __require("path");
|
|
100632
100708
|
const { fileURLToPath: fileURLToPath$1 } = __require("url");
|
|
100633
100709
|
const defaultOptions = {
|
|
100634
100710
|
dereference: false,
|
|
@@ -100715,8 +100791,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100715
100791
|
);
|
|
100716
100792
|
}
|
|
100717
100793
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100718
|
-
const srcParent = resolve$
|
|
100719
|
-
const destParent = resolve$
|
|
100794
|
+
const srcParent = resolve$10(dirname$6(src));
|
|
100795
|
+
const destParent = resolve$10(dirname$6(dest));
|
|
100720
100796
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100721
100797
|
let destStat;
|
|
100722
100798
|
try {
|
|
@@ -100735,7 +100811,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100735
100811
|
});
|
|
100736
100812
|
return checkParentPaths(src, srcStat, destParent);
|
|
100737
100813
|
}
|
|
100738
|
-
const normalizePathToArray = (path) => resolve$
|
|
100814
|
+
const normalizePathToArray = (path) => resolve$10(path).split(sep$2).filter(Boolean);
|
|
100739
100815
|
function isSrcSubdir(src, dest) {
|
|
100740
100816
|
const srcArr = normalizePathToArray(src);
|
|
100741
100817
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100845,7 +100921,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100845
100921
|
}
|
|
100846
100922
|
async function onLink(destStat, src, dest) {
|
|
100847
100923
|
let resolvedSrc = await readlink(src);
|
|
100848
|
-
if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$
|
|
100924
|
+
if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
|
|
100849
100925
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100850
100926
|
let resolvedDest;
|
|
100851
100927
|
try {
|
|
@@ -100856,7 +100932,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100856
100932
|
// istanbul ignore next: should not be possible
|
|
100857
100933
|
throw err;
|
|
100858
100934
|
}
|
|
100859
|
-
if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$
|
|
100935
|
+
if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
|
|
100860
100936
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100861
100937
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100862
100938
|
path: dest,
|
|
@@ -100943,7 +101019,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
100943
101019
|
//#endregion
|
|
100944
101020
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
100945
101021
|
var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
100946
|
-
const { dirname: dirname$5, join: join$3, resolve: resolve$
|
|
101022
|
+
const { dirname: dirname$5, join: join$3, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
|
|
100947
101023
|
const fs$11 = __require("fs/promises");
|
|
100948
101024
|
const pathExists = async (path) => {
|
|
100949
101025
|
try {
|
|
@@ -100979,10 +101055,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100979
101055
|
if (root) {
|
|
100980
101056
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
100981
101057
|
let target = await fs$11.readlink(symSource);
|
|
100982
|
-
if (isAbsolute(target)) target = resolve$
|
|
101058
|
+
if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
100983
101059
|
let targetStat = "file";
|
|
100984
101060
|
try {
|
|
100985
|
-
targetStat = await fs$11.stat(resolve$
|
|
101061
|
+
targetStat = await fs$11.stat(resolve$9(dirname$5(symSource), target));
|
|
100986
101062
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
100987
101063
|
} catch {}
|
|
100988
101064
|
await fs$11.symlink(target, symDestination, targetStat);
|
|
@@ -106799,7 +106875,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106799
106875
|
var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
106800
106876
|
const bundled = require_lib$12();
|
|
106801
106877
|
const { readFile: readFile$1, readdir: readdir$1, stat: stat$2 } = __require("fs/promises");
|
|
106802
|
-
const { resolve: resolve$
|
|
106878
|
+
const { resolve: resolve$8, basename: basename$3, dirname: dirname$4 } = __require("path");
|
|
106803
106879
|
const normalizePackageBin = require_lib$21();
|
|
106804
106880
|
const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$1(path).then((json) => {
|
|
106805
106881
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106843,7 +106919,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106843
106919
|
const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
|
|
106844
106920
|
const binFiles = [];
|
|
106845
106921
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106846
|
-
const base = resolve$
|
|
106922
|
+
const base = resolve$8(nm, ".bin", b);
|
|
106847
106923
|
binFiles.push(base, base + ".cmd", base + ".ps1");
|
|
106848
106924
|
});
|
|
106849
106925
|
(await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
|
|
@@ -106864,7 +106940,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106864
106940
|
}
|
|
106865
106941
|
const recursePromises = [];
|
|
106866
106942
|
for (const entry of dirEntries) {
|
|
106867
|
-
const p = resolve$
|
|
106943
|
+
const p = resolve$8(path, entry.name);
|
|
106868
106944
|
if (entry.isDirectory() === false) {
|
|
106869
106945
|
result.add(p);
|
|
106870
106946
|
continue;
|
|
@@ -106883,7 +106959,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106883
106959
|
}
|
|
106884
106960
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106885
106961
|
return pkgContents({
|
|
106886
|
-
path: resolve$
|
|
106962
|
+
path: resolve$8(path, "node_modules", dep),
|
|
106887
106963
|
packageJsonCache,
|
|
106888
106964
|
pkg: true,
|
|
106889
106965
|
depth,
|
|
@@ -106895,7 +106971,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106895
106971
|
return result;
|
|
106896
106972
|
};
|
|
106897
106973
|
module.exports = ({ path, ...opts }) => pkgContents({
|
|
106898
|
-
path: resolve$
|
|
106974
|
+
path: resolve$8(path),
|
|
106899
106975
|
...opts,
|
|
106900
106976
|
pkg: true
|
|
106901
106977
|
}).then((results) => [...results]);
|
|
@@ -110506,18 +110582,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110506
110582
|
//#endregion
|
|
110507
110583
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110508
110584
|
var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
110509
|
-
const { resolve: resolve$
|
|
110510
|
-
const { tmpdir, homedir } = __require("node:os");
|
|
110585
|
+
const { resolve: resolve$7 } = __require("node:path");
|
|
110586
|
+
const { tmpdir, homedir: homedir$1 } = __require("node:os");
|
|
110511
110587
|
module.exports = (fakePlatform = false) => {
|
|
110512
110588
|
const temp = tmpdir();
|
|
110513
110589
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110514
|
-
const home = homedir() || resolve$
|
|
110590
|
+
const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
|
|
110515
110591
|
const platform = fakePlatform || process.platform;
|
|
110516
110592
|
const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
|
|
110517
110593
|
const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
|
|
110518
110594
|
return {
|
|
110519
|
-
cacache: resolve$
|
|
110520
|
-
tufcache: resolve$
|
|
110595
|
+
cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
|
|
110596
|
+
tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
|
|
110521
110597
|
};
|
|
110522
110598
|
};
|
|
110523
110599
|
}));
|
|
@@ -112331,7 +112407,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112331
112407
|
var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112332
112408
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112333
112409
|
const { lstatSync: lstat$1, readFileSync: readFile } = __require("fs");
|
|
112334
|
-
const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$
|
|
112410
|
+
const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$6, sep } = __require("path");
|
|
112335
112411
|
const { log } = require_lib$29();
|
|
112336
112412
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112337
112413
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112382,7 +112458,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112382
112458
|
...opts,
|
|
112383
112459
|
includeEmpty: false,
|
|
112384
112460
|
follow: false,
|
|
112385
|
-
path: resolve$
|
|
112461
|
+
path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
|
|
112386
112462
|
ignoreFiles: opts?.ignoreFiles || [
|
|
112387
112463
|
defaultRules,
|
|
112388
112464
|
"package.json",
|
|
@@ -112583,8 +112659,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112583
112659
|
var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112584
112660
|
init_esm_shims();
|
|
112585
112661
|
const { log } = require_lib$29();
|
|
112586
|
-
const { resolve: resolve$
|
|
112587
|
-
const nodeGypPath = resolve$
|
|
112662
|
+
const { resolve: resolve$5, dirname: dirname$2, delimiter: delimiter$1 } = __require("path");
|
|
112663
|
+
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112588
112664
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112589
112665
|
const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter$1)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter$1);
|
|
112590
112666
|
const pathArr = [];
|
|
@@ -112599,7 +112675,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112599
112675
|
let p = projectPath;
|
|
112600
112676
|
let pp;
|
|
112601
112677
|
do {
|
|
112602
|
-
pathArr.push(resolve$
|
|
112678
|
+
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112603
112679
|
pp = p;
|
|
112604
112680
|
p = dirname$2(p);
|
|
112605
112681
|
} while (p !== pp);
|
|
@@ -112614,7 +112690,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112614
112690
|
//#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
|
|
112615
112691
|
var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112616
112692
|
const setPATH = require_set_path();
|
|
112617
|
-
const { resolve: resolve$
|
|
112693
|
+
const { resolve: resolve$4 } = __require("path");
|
|
112618
112694
|
let npm_config_node_gyp;
|
|
112619
112695
|
const makeSpawnArgs = (options) => {
|
|
112620
112696
|
const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
|
|
@@ -112628,7 +112704,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
112628
112704
|
env: setPATH(path, binPaths, {
|
|
112629
112705
|
...process.env,
|
|
112630
112706
|
...env,
|
|
112631
|
-
npm_package_json: resolve$
|
|
112707
|
+
npm_package_json: resolve$4(path, "package.json"),
|
|
112632
112708
|
npm_lifecycle_event: event,
|
|
112633
112709
|
npm_lifecycle_script: cmd,
|
|
112634
112710
|
npm_config_node_gyp
|
|
@@ -112716,10 +112792,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
112716
112792
|
//#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
|
|
112717
112793
|
var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112718
112794
|
const { stat: stat$1 } = __require("node:fs/promises");
|
|
112719
|
-
const { resolve: resolve$
|
|
112795
|
+
const { resolve: resolve$3 } = __require("node:path");
|
|
112720
112796
|
module.exports = async (path) => {
|
|
112721
112797
|
try {
|
|
112722
|
-
return (await stat$1(resolve$
|
|
112798
|
+
return (await stat$1(resolve$3(path, "server.js"))).isFile();
|
|
112723
112799
|
} catch (er) {
|
|
112724
112800
|
return false;
|
|
112725
112801
|
}
|
|
@@ -112829,7 +112905,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112829
112905
|
//#endregion
|
|
112830
112906
|
//#region ../../node_modules/pacote/lib/file.js
|
|
112831
112907
|
var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112832
|
-
const { resolve: resolve$
|
|
112908
|
+
const { resolve: resolve$2 } = __require("node:path");
|
|
112833
112909
|
const { stat, chmod: chmod$1 } = __require("node:fs/promises");
|
|
112834
112910
|
const cacache = require_lib$14();
|
|
112835
112911
|
const fsm = require_lib$13();
|
|
@@ -112855,7 +112931,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112855
112931
|
#exeBins(pkg, dest) {
|
|
112856
112932
|
if (!pkg.bin) return Promise.resolve();
|
|
112857
112933
|
return Promise.all(Object.keys(pkg.bin).map(async (k) => {
|
|
112858
|
-
const script = resolve$
|
|
112934
|
+
const script = resolve$2(dest, pkg.bin[k]);
|
|
112859
112935
|
try {
|
|
112860
112936
|
const st = await stat(script);
|
|
112861
112937
|
const mode = st.mode | 73;
|
|
@@ -112906,7 +112982,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
112906
112982
|
//#endregion
|
|
112907
112983
|
//#region ../../node_modules/pacote/lib/dir.js
|
|
112908
112984
|
var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112909
|
-
const { resolve } = __require("node:path");
|
|
112985
|
+
const { resolve: resolve$1 } = __require("node:path");
|
|
112910
112986
|
const packlist = require_lib$9();
|
|
112911
112987
|
const runScript = require_run_script();
|
|
112912
112988
|
const tar = require_index_min();
|
|
@@ -112942,7 +113018,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112942
113018
|
env: {
|
|
112943
113019
|
npm_package_resolved: this.resolved,
|
|
112944
113020
|
npm_package_integrity: this.integrity,
|
|
112945
|
-
npm_package_json: resolve(this.resolved, "package.json")
|
|
113021
|
+
npm_package_json: resolve$1(this.resolved, "package.json")
|
|
112946
113022
|
}
|
|
112947
113023
|
});
|
|
112948
113024
|
});
|