@pipelab/plugin-tauri 1.0.0-beta.23 → 1.0.0-beta.26
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 +115 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { a as __require, i as __reExport, n as __esmMin, o as __toESM, r as __ex
|
|
|
2
2
|
import { hostname } from "os";
|
|
3
3
|
import { normalize } from "path";
|
|
4
4
|
import { formatWithOptions, types } from "util";
|
|
5
|
-
import path, { basename, delimiter, dirname, join } from "node:path";
|
|
5
|
+
import path, { basename, delimiter, dirname, join, resolve } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { arch, constants, homedir, platform } from "node:os";
|
|
8
8
|
import { appendFileSync, createReadStream, createWriteStream, existsSync, readFile, readFileSync, readdirSync, statSync, writeFile, writeFileSync } from "node:fs";
|
|
@@ -45428,6 +45428,17 @@ const DEFAULT_PNPM_VERSION = "10.12.0";
|
|
|
45428
45428
|
const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
|
|
45429
45429
|
const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
|
|
45430
45430
|
const isDev = process.env.NODE_ENV === "development";
|
|
45431
|
+
const getDefaultUserDataPath = (env) => {
|
|
45432
|
+
const base = (() => {
|
|
45433
|
+
switch (platform()) {
|
|
45434
|
+
case "win32": return process.env.APPDATA || join(homedir(), "AppData", "Roaming");
|
|
45435
|
+
case "darwin": return join(homedir(), "Library", "Application Support");
|
|
45436
|
+
default: return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
|
|
45437
|
+
}
|
|
45438
|
+
})();
|
|
45439
|
+
const mode = env ?? (isDev ? "dev" : "prod");
|
|
45440
|
+
return join(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
|
|
45441
|
+
};
|
|
45431
45442
|
/**
|
|
45432
45443
|
* Finds the monorepo root by looking for pnpm-workspace.yaml.
|
|
45433
45444
|
*/
|
|
@@ -49194,6 +49205,71 @@ var WebSocketServer = class {
|
|
|
49194
49205
|
};
|
|
49195
49206
|
const webSocketServer = new WebSocketServer();
|
|
49196
49207
|
//#endregion
|
|
49208
|
+
//#region ../../packages/core-node/src/fs-utils.ts
|
|
49209
|
+
var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
49210
|
+
module.exports = (path) => {
|
|
49211
|
+
const isExtendedLengthPath = /^\\\\\?\\/.test(path);
|
|
49212
|
+
const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
|
|
49213
|
+
if (isExtendedLengthPath || hasNonAscii) return path;
|
|
49214
|
+
return path.replace(/\\/g, "/");
|
|
49215
|
+
};
|
|
49216
|
+
})))(), 1);
|
|
49217
|
+
function removeTrailingSlash(path) {
|
|
49218
|
+
return path.replace(/[\\/]+$/, "");
|
|
49219
|
+
}
|
|
49220
|
+
removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
|
|
49221
|
+
const additionalProtectedPaths = [
|
|
49222
|
+
getDefaultUserDataPath("dev"),
|
|
49223
|
+
getDefaultUserDataPath("beta"),
|
|
49224
|
+
getDefaultUserDataPath("prod"),
|
|
49225
|
+
projectRoot,
|
|
49226
|
+
process.cwd(),
|
|
49227
|
+
"/tmp",
|
|
49228
|
+
"/var/tmp",
|
|
49229
|
+
process.env.TEMP,
|
|
49230
|
+
process.env.TMP,
|
|
49231
|
+
join(homedir(), "AppData"),
|
|
49232
|
+
join(homedir(), "AppData", "Local"),
|
|
49233
|
+
join(homedir(), "AppData", "Roaming"),
|
|
49234
|
+
join(homedir(), "Library"),
|
|
49235
|
+
join(homedir(), "Library", "Application Support"),
|
|
49236
|
+
join(homedir(), ".config"),
|
|
49237
|
+
join(homedir(), ".local"),
|
|
49238
|
+
join(homedir(), ".local", "share"),
|
|
49239
|
+
join(homedir(), ".cache"),
|
|
49240
|
+
join(homedir(), "OneDrive"),
|
|
49241
|
+
join(homedir(), "Dropbox"),
|
|
49242
|
+
join(homedir(), ".ssh"),
|
|
49243
|
+
join(homedir(), ".gnupg"),
|
|
49244
|
+
join(homedir(), ".aws"),
|
|
49245
|
+
join(homedir(), ".docker"),
|
|
49246
|
+
join(homedir(), ".kube"),
|
|
49247
|
+
join(homedir(), ".vscode"),
|
|
49248
|
+
join(homedir(), ".vscode-insiders"),
|
|
49249
|
+
join(homedir(), ".cursor"),
|
|
49250
|
+
join(homedir(), ".npm"),
|
|
49251
|
+
join(homedir(), ".pnpm-state"),
|
|
49252
|
+
join(homedir(), ".yarn"),
|
|
49253
|
+
join(homedir(), ".cargo"),
|
|
49254
|
+
join(homedir(), ".rustup"),
|
|
49255
|
+
join(homedir(), ".m2"),
|
|
49256
|
+
join(homedir(), ".gradle")
|
|
49257
|
+
].filter((p) => typeof p === "string" && p.length > 0);
|
|
49258
|
+
new Set([
|
|
49259
|
+
join(homedir(), "Downloads"),
|
|
49260
|
+
join(homedir(), "Documents"),
|
|
49261
|
+
join(homedir(), "Desktop"),
|
|
49262
|
+
join(homedir(), "Pictures"),
|
|
49263
|
+
join(homedir(), "Music"),
|
|
49264
|
+
join(homedir(), "Videos"),
|
|
49265
|
+
join(homedir(), "Saved Games"),
|
|
49266
|
+
join(homedir(), "Contacts"),
|
|
49267
|
+
join(homedir(), "Searches"),
|
|
49268
|
+
join(homedir(), "Links"),
|
|
49269
|
+
join(homedir(), "3D Objects"),
|
|
49270
|
+
...additionalProtectedPaths
|
|
49271
|
+
].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
|
|
49272
|
+
//#endregion
|
|
49197
49273
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
49198
49274
|
function isPlainObject(value) {
|
|
49199
49275
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -59584,13 +59660,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
59584
59660
|
//#region ../../node_modules/mkdirp/lib/path-arg.js
|
|
59585
59661
|
var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59586
59662
|
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
|
|
59587
|
-
const { resolve: resolve$
|
|
59663
|
+
const { resolve: resolve$13, parse: parse$2 } = __require("path");
|
|
59588
59664
|
const pathArg = (path) => {
|
|
59589
59665
|
if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
|
|
59590
59666
|
path,
|
|
59591
59667
|
code: "ERR_INVALID_ARG_VALUE"
|
|
59592
59668
|
});
|
|
59593
|
-
path = resolve$
|
|
59669
|
+
path = resolve$13(path);
|
|
59594
59670
|
if (platform === "win32") {
|
|
59595
59671
|
const badWinChars = /[*|"<>?:]/;
|
|
59596
59672
|
const { root } = parse$2(path);
|
|
@@ -62635,7 +62711,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62635
62711
|
const fs$19 = __require("fs");
|
|
62636
62712
|
const { EventEmitter: EventEmitter$1 } = __require("events");
|
|
62637
62713
|
const { Minimatch } = require_minimatch$1();
|
|
62638
|
-
const { resolve: resolve$
|
|
62714
|
+
const { resolve: resolve$12 } = __require("path");
|
|
62639
62715
|
function readdir(dir, strict) {
|
|
62640
62716
|
return new Promise((resolve, reject) => {
|
|
62641
62717
|
fs$19.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
@@ -62744,7 +62820,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
62744
62820
|
if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
|
|
62745
62821
|
this.skipMatchers = [];
|
|
62746
62822
|
if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
|
|
62747
|
-
this.iterator = explore(resolve$
|
|
62823
|
+
this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
62748
62824
|
this.paused = false;
|
|
62749
62825
|
this.inactive = false;
|
|
62750
62826
|
this.aborted = false;
|
|
@@ -99440,7 +99516,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99440
99516
|
//#region ../../node_modules/@npmcli/package-json/lib/index.js
|
|
99441
99517
|
var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
99442
99518
|
const { readFile: readFile$6, writeFile: writeFile$4 } = __require("node:fs/promises");
|
|
99443
|
-
const { resolve: resolve$
|
|
99519
|
+
const { resolve: resolve$11 } = __require("node:path");
|
|
99444
99520
|
const parseJSON = require_lib$30();
|
|
99445
99521
|
const updateDeps = require_update_dependencies();
|
|
99446
99522
|
const updateScripts = require_update_scripts();
|
|
@@ -99543,7 +99619,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99543
99619
|
parseErr = err;
|
|
99544
99620
|
}
|
|
99545
99621
|
if (parseErr) {
|
|
99546
|
-
const indexFile = resolve$
|
|
99622
|
+
const indexFile = resolve$11(this.path, "index.js");
|
|
99547
99623
|
let indexFileContent;
|
|
99548
99624
|
try {
|
|
99549
99625
|
indexFileContent = await readFile$6(indexFile, "utf8");
|
|
@@ -99588,7 +99664,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
99588
99664
|
return this.#path;
|
|
99589
99665
|
}
|
|
99590
99666
|
get filename() {
|
|
99591
|
-
if (this.path) return resolve$
|
|
99667
|
+
if (this.path) return resolve$11(this.path, "package.json");
|
|
99592
99668
|
}
|
|
99593
99669
|
create(path) {
|
|
99594
99670
|
this.#path = path;
|
|
@@ -100711,7 +100787,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100711
100787
|
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();
|
|
100712
100788
|
const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
|
|
100713
100789
|
const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$5, readdir: readdir$5, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
|
|
100714
|
-
const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$
|
|
100790
|
+
const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = __require("path");
|
|
100715
100791
|
const { fileURLToPath: fileURLToPath$1 } = __require("url");
|
|
100716
100792
|
const defaultOptions = {
|
|
100717
100793
|
dereference: false,
|
|
@@ -100798,8 +100874,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100798
100874
|
);
|
|
100799
100875
|
}
|
|
100800
100876
|
async function checkParentPaths(src, srcStat, dest) {
|
|
100801
|
-
const srcParent = resolve$
|
|
100802
|
-
const destParent = resolve$
|
|
100877
|
+
const srcParent = resolve$10(dirname$6(src));
|
|
100878
|
+
const destParent = resolve$10(dirname$6(dest));
|
|
100803
100879
|
if (destParent === srcParent || destParent === parse(destParent).root) return;
|
|
100804
100880
|
let destStat;
|
|
100805
100881
|
try {
|
|
@@ -100818,7 +100894,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100818
100894
|
});
|
|
100819
100895
|
return checkParentPaths(src, srcStat, destParent);
|
|
100820
100896
|
}
|
|
100821
|
-
const normalizePathToArray = (path) => resolve$
|
|
100897
|
+
const normalizePathToArray = (path) => resolve$10(path).split(sep$2).filter(Boolean);
|
|
100822
100898
|
function isSrcSubdir(src, dest) {
|
|
100823
100899
|
const srcArr = normalizePathToArray(src);
|
|
100824
100900
|
const destArr = normalizePathToArray(dest);
|
|
@@ -100928,7 +101004,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100928
101004
|
}
|
|
100929
101005
|
async function onLink(destStat, src, dest) {
|
|
100930
101006
|
let resolvedSrc = await readlink(src);
|
|
100931
|
-
if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$
|
|
101007
|
+
if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
|
|
100932
101008
|
if (!destStat) return symlink(resolvedSrc, dest);
|
|
100933
101009
|
let resolvedDest;
|
|
100934
101010
|
try {
|
|
@@ -100939,7 +101015,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
100939
101015
|
// istanbul ignore next: should not be possible
|
|
100940
101016
|
throw err;
|
|
100941
101017
|
}
|
|
100942
|
-
if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$
|
|
101018
|
+
if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
|
|
100943
101019
|
if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
|
|
100944
101020
|
message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
|
|
100945
101021
|
path: dest,
|
|
@@ -101026,7 +101102,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
101026
101102
|
//#endregion
|
|
101027
101103
|
//#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
|
|
101028
101104
|
var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
101029
|
-
const { dirname: dirname$5, join: join$3, resolve: resolve$
|
|
101105
|
+
const { dirname: dirname$5, join: join$3, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
|
|
101030
101106
|
const fs$11 = __require("fs/promises");
|
|
101031
101107
|
const pathExists = async (path) => {
|
|
101032
101108
|
try {
|
|
@@ -101062,10 +101138,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
101062
101138
|
if (root) {
|
|
101063
101139
|
await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
|
|
101064
101140
|
let target = await fs$11.readlink(symSource);
|
|
101065
|
-
if (isAbsolute(target)) target = resolve$
|
|
101141
|
+
if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
|
|
101066
101142
|
let targetStat = "file";
|
|
101067
101143
|
try {
|
|
101068
|
-
targetStat = await fs$11.stat(resolve$
|
|
101144
|
+
targetStat = await fs$11.stat(resolve$9(dirname$5(symSource), target));
|
|
101069
101145
|
if (targetStat.isDirectory()) targetStat = "junction";
|
|
101070
101146
|
} catch {}
|
|
101071
101147
|
await fs$11.symlink(target, symDestination, targetStat);
|
|
@@ -106882,7 +106958,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106882
106958
|
var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
106883
106959
|
const bundled = require_lib$12();
|
|
106884
106960
|
const { readFile: readFile$3, readdir: readdir$2, stat: stat$2 } = __require("fs/promises");
|
|
106885
|
-
const { resolve: resolve$
|
|
106961
|
+
const { resolve: resolve$8, basename: basename$4, dirname: dirname$4 } = __require("path");
|
|
106886
106962
|
const normalizePackageBin = require_lib$21();
|
|
106887
106963
|
const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$3(path).then((json) => {
|
|
106888
106964
|
const pkg = normalizePackageBin(JSON.parse(json));
|
|
@@ -106926,7 +107002,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106926
107002
|
const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
|
|
106927
107003
|
const binFiles = [];
|
|
106928
107004
|
Object.keys(pkg.bin).forEach((b) => {
|
|
106929
|
-
const base = resolve$
|
|
107005
|
+
const base = resolve$8(nm, ".bin", b);
|
|
106930
107006
|
binFiles.push(base, base + ".cmd", base + ".ps1");
|
|
106931
107007
|
});
|
|
106932
107008
|
(await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
|
|
@@ -106947,7 +107023,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106947
107023
|
}
|
|
106948
107024
|
const recursePromises = [];
|
|
106949
107025
|
for (const entry of dirEntries) {
|
|
106950
|
-
const p = resolve$
|
|
107026
|
+
const p = resolve$8(path, entry.name);
|
|
106951
107027
|
if (entry.isDirectory() === false) {
|
|
106952
107028
|
result.add(p);
|
|
106953
107029
|
continue;
|
|
@@ -106966,7 +107042,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106966
107042
|
}
|
|
106967
107043
|
if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
|
|
106968
107044
|
return pkgContents({
|
|
106969
|
-
path: resolve$
|
|
107045
|
+
path: resolve$8(path, "node_modules", dep),
|
|
106970
107046
|
packageJsonCache,
|
|
106971
107047
|
pkg: true,
|
|
106972
107048
|
depth,
|
|
@@ -106978,7 +107054,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
106978
107054
|
return result;
|
|
106979
107055
|
};
|
|
106980
107056
|
module.exports = ({ path, ...opts }) => pkgContents({
|
|
106981
|
-
path: resolve$
|
|
107057
|
+
path: resolve$8(path),
|
|
106982
107058
|
...opts,
|
|
106983
107059
|
pkg: true
|
|
106984
107060
|
}).then((results) => [...results]);
|
|
@@ -110589,18 +110665,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
110589
110665
|
//#endregion
|
|
110590
110666
|
//#region ../../node_modules/pacote/lib/util/cache-dir.js
|
|
110591
110667
|
var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
110592
|
-
const { resolve: resolve$
|
|
110668
|
+
const { resolve: resolve$7 } = __require("node:path");
|
|
110593
110669
|
const { tmpdir, homedir: homedir$1 } = __require("node:os");
|
|
110594
110670
|
module.exports = (fakePlatform = false) => {
|
|
110595
110671
|
const temp = tmpdir();
|
|
110596
110672
|
const uidOrPid = process.getuid ? process.getuid() : process.pid;
|
|
110597
|
-
const home = homedir$1() || resolve$
|
|
110673
|
+
const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
|
|
110598
110674
|
const platform = fakePlatform || process.platform;
|
|
110599
110675
|
const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
|
|
110600
110676
|
const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
|
|
110601
110677
|
return {
|
|
110602
|
-
cacache: resolve$
|
|
110603
|
-
tufcache: resolve$
|
|
110678
|
+
cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
|
|
110679
|
+
tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
|
|
110604
110680
|
};
|
|
110605
110681
|
};
|
|
110606
110682
|
}));
|
|
@@ -112414,7 +112490,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112414
112490
|
var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112415
112491
|
const { Walker: IgnoreWalker } = require_lib$10();
|
|
112416
112492
|
const { lstatSync: lstat$1, readFileSync: readFile$2 } = __require("fs");
|
|
112417
|
-
const { basename: basename$3, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$
|
|
112493
|
+
const { basename: basename$3, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$6, sep } = __require("path");
|
|
112418
112494
|
const { log } = require_lib$29();
|
|
112419
112495
|
const defaultRules = Symbol("npm-packlist.rules.default");
|
|
112420
112496
|
const strictRules = Symbol("npm-packlist.rules.strict");
|
|
@@ -112465,7 +112541,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112465
112541
|
...opts,
|
|
112466
112542
|
includeEmpty: false,
|
|
112467
112543
|
follow: false,
|
|
112468
|
-
path: resolve$
|
|
112544
|
+
path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
|
|
112469
112545
|
ignoreFiles: opts?.ignoreFiles || [
|
|
112470
112546
|
defaultRules,
|
|
112471
112547
|
"package.json",
|
|
@@ -112666,8 +112742,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112666
112742
|
var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112667
112743
|
init_esm_shims();
|
|
112668
112744
|
const { log } = require_lib$29();
|
|
112669
|
-
const { resolve: resolve$
|
|
112670
|
-
const nodeGypPath = resolve$
|
|
112745
|
+
const { resolve: resolve$5, dirname: dirname$2, delimiter: delimiter$1 } = __require("path");
|
|
112746
|
+
const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
|
|
112671
112747
|
const setPATH = (projectPath, binPaths, env) => {
|
|
112672
112748
|
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);
|
|
112673
112749
|
const pathArr = [];
|
|
@@ -112682,7 +112758,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112682
112758
|
let p = projectPath;
|
|
112683
112759
|
let pp;
|
|
112684
112760
|
do {
|
|
112685
|
-
pathArr.push(resolve$
|
|
112761
|
+
pathArr.push(resolve$5(p, "node_modules", ".bin"));
|
|
112686
112762
|
pp = p;
|
|
112687
112763
|
p = dirname$2(p);
|
|
112688
112764
|
} while (p !== pp);
|
|
@@ -112697,7 +112773,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112697
112773
|
//#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
|
|
112698
112774
|
var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112699
112775
|
const setPATH = require_set_path();
|
|
112700
|
-
const { resolve: resolve$
|
|
112776
|
+
const { resolve: resolve$4 } = __require("path");
|
|
112701
112777
|
let npm_config_node_gyp;
|
|
112702
112778
|
const makeSpawnArgs = (options) => {
|
|
112703
112779
|
const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
|
|
@@ -112711,7 +112787,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
112711
112787
|
env: setPATH(path, binPaths, {
|
|
112712
112788
|
...process.env,
|
|
112713
112789
|
...env,
|
|
112714
|
-
npm_package_json: resolve$
|
|
112790
|
+
npm_package_json: resolve$4(path, "package.json"),
|
|
112715
112791
|
npm_lifecycle_event: event,
|
|
112716
112792
|
npm_lifecycle_script: cmd,
|
|
112717
112793
|
npm_config_node_gyp
|
|
@@ -112799,10 +112875,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
112799
112875
|
//#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
|
|
112800
112876
|
var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112801
112877
|
const { stat: stat$1 } = __require("node:fs/promises");
|
|
112802
|
-
const { resolve: resolve$
|
|
112878
|
+
const { resolve: resolve$3 } = __require("node:path");
|
|
112803
112879
|
module.exports = async (path) => {
|
|
112804
112880
|
try {
|
|
112805
|
-
return (await stat$1(resolve$
|
|
112881
|
+
return (await stat$1(resolve$3(path, "server.js"))).isFile();
|
|
112806
112882
|
} catch (er) {
|
|
112807
112883
|
return false;
|
|
112808
112884
|
}
|
|
@@ -112912,7 +112988,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112912
112988
|
//#endregion
|
|
112913
112989
|
//#region ../../node_modules/pacote/lib/file.js
|
|
112914
112990
|
var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112915
|
-
const { resolve: resolve$
|
|
112991
|
+
const { resolve: resolve$2 } = __require("node:path");
|
|
112916
112992
|
const { stat, chmod: chmod$1 } = __require("node:fs/promises");
|
|
112917
112993
|
const cacache = require_lib$14();
|
|
112918
112994
|
const fsm = require_lib$13();
|
|
@@ -112938,7 +113014,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
112938
113014
|
#exeBins(pkg, dest) {
|
|
112939
113015
|
if (!pkg.bin) return Promise.resolve();
|
|
112940
113016
|
return Promise.all(Object.keys(pkg.bin).map(async (k) => {
|
|
112941
|
-
const script = resolve$
|
|
113017
|
+
const script = resolve$2(dest, pkg.bin[k]);
|
|
112942
113018
|
try {
|
|
112943
113019
|
const st = await stat(script);
|
|
112944
113020
|
const mode = st.mode | 73;
|
|
@@ -112989,7 +113065,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
112989
113065
|
//#endregion
|
|
112990
113066
|
//#region ../../node_modules/pacote/lib/dir.js
|
|
112991
113067
|
var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
112992
|
-
const { resolve } = __require("node:path");
|
|
113068
|
+
const { resolve: resolve$1 } = __require("node:path");
|
|
112993
113069
|
const packlist = require_lib$9();
|
|
112994
113070
|
const runScript = require_run_script();
|
|
112995
113071
|
const tar = require_index_min();
|
|
@@ -113025,7 +113101,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
113025
113101
|
env: {
|
|
113026
113102
|
npm_package_resolved: this.resolved,
|
|
113027
113103
|
npm_package_integrity: this.integrity,
|
|
113028
|
-
npm_package_json: resolve(this.resolved, "package.json")
|
|
113104
|
+
npm_package_json: resolve$1(this.resolved, "package.json")
|
|
113029
113105
|
}
|
|
113030
113106
|
});
|
|
113031
113107
|
});
|