@pipelab/plugin-system 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.mjs CHANGED
@@ -2,8 +2,9 @@ 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, { dirname, join } from "node:path";
5
+ import path, { dirname, join, resolve } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
+ import { homedir, platform } from "node:os";
7
8
  import { existsSync, readFileSync, readdirSync } from "node:fs";
8
9
  import http from "node:http";
9
10
  import { webcrypto } from "node:crypto";
@@ -45387,6 +45388,17 @@ const websocketPort = 33753;
45387
45388
  const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
45388
45389
  const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
45389
45390
  const isDev = process.env.NODE_ENV === "development";
45391
+ const getDefaultUserDataPath = (env) => {
45392
+ const base = (() => {
45393
+ switch (platform()) {
45394
+ case "win32": return process.env.APPDATA || join(homedir(), "AppData", "Roaming");
45395
+ case "darwin": return join(homedir(), "Library", "Application Support");
45396
+ default: return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
45397
+ }
45398
+ })();
45399
+ const mode = env ?? (isDev ? "dev" : "prod");
45400
+ return join(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
45401
+ };
45390
45402
  /**
45391
45403
  * Finds the monorepo root by looking for pnpm-workspace.yaml.
45392
45404
  */
@@ -49148,6 +49160,71 @@ var WebSocketServer = class {
49148
49160
  };
49149
49161
  new WebSocketServer();
49150
49162
  //#endregion
49163
+ //#region ../../packages/core-node/src/fs-utils.ts
49164
+ var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
49165
+ module.exports = (path) => {
49166
+ const isExtendedLengthPath = /^\\\\\?\\/.test(path);
49167
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
49168
+ if (isExtendedLengthPath || hasNonAscii) return path;
49169
+ return path.replace(/\\/g, "/");
49170
+ };
49171
+ })))(), 1);
49172
+ function removeTrailingSlash(path) {
49173
+ return path.replace(/[\\/]+$/, "");
49174
+ }
49175
+ removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
49176
+ const additionalProtectedPaths = [
49177
+ getDefaultUserDataPath("dev"),
49178
+ getDefaultUserDataPath("beta"),
49179
+ getDefaultUserDataPath("prod"),
49180
+ projectRoot,
49181
+ process.cwd(),
49182
+ "/tmp",
49183
+ "/var/tmp",
49184
+ process.env.TEMP,
49185
+ process.env.TMP,
49186
+ join(homedir(), "AppData"),
49187
+ join(homedir(), "AppData", "Local"),
49188
+ join(homedir(), "AppData", "Roaming"),
49189
+ join(homedir(), "Library"),
49190
+ join(homedir(), "Library", "Application Support"),
49191
+ join(homedir(), ".config"),
49192
+ join(homedir(), ".local"),
49193
+ join(homedir(), ".local", "share"),
49194
+ join(homedir(), ".cache"),
49195
+ join(homedir(), "OneDrive"),
49196
+ join(homedir(), "Dropbox"),
49197
+ join(homedir(), ".ssh"),
49198
+ join(homedir(), ".gnupg"),
49199
+ join(homedir(), ".aws"),
49200
+ join(homedir(), ".docker"),
49201
+ join(homedir(), ".kube"),
49202
+ join(homedir(), ".vscode"),
49203
+ join(homedir(), ".vscode-insiders"),
49204
+ join(homedir(), ".cursor"),
49205
+ join(homedir(), ".npm"),
49206
+ join(homedir(), ".pnpm-state"),
49207
+ join(homedir(), ".yarn"),
49208
+ join(homedir(), ".cargo"),
49209
+ join(homedir(), ".rustup"),
49210
+ join(homedir(), ".m2"),
49211
+ join(homedir(), ".gradle")
49212
+ ].filter((p) => typeof p === "string" && p.length > 0);
49213
+ new Set([
49214
+ join(homedir(), "Downloads"),
49215
+ join(homedir(), "Documents"),
49216
+ join(homedir(), "Desktop"),
49217
+ join(homedir(), "Pictures"),
49218
+ join(homedir(), "Music"),
49219
+ join(homedir(), "Videos"),
49220
+ join(homedir(), "Saved Games"),
49221
+ join(homedir(), "Contacts"),
49222
+ join(homedir(), "Searches"),
49223
+ join(homedir(), "Links"),
49224
+ join(homedir(), "3D Objects"),
49225
+ ...additionalProtectedPaths
49226
+ ].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
49227
+ //#endregion
49151
49228
  //#region ../../node_modules/tar/lib/high-level-opt.js
49152
49229
  var require_high_level_opt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
49153
49230
  const argmap = new Map([
@@ -53379,13 +53456,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53379
53456
  //#region ../../node_modules/mkdirp/lib/path-arg.js
53380
53457
  var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53381
53458
  const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
53382
- const { resolve: resolve$12, parse: parse$2 } = __require("path");
53459
+ const { resolve: resolve$13, parse: parse$2 } = __require("path");
53383
53460
  const pathArg = (path) => {
53384
53461
  if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
53385
53462
  path,
53386
53463
  code: "ERR_INVALID_ARG_VALUE"
53387
53464
  });
53388
- path = resolve$12(path);
53465
+ path = resolve$13(path);
53389
53466
  if (platform === "win32") {
53390
53467
  const badWinChars = /[*|"<>?:]/;
53391
53468
  const { root } = parse$2(path);
@@ -56335,7 +56412,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
56335
56412
  const fs$19 = __require("fs");
56336
56413
  const { EventEmitter } = __require("events");
56337
56414
  const { Minimatch } = require_minimatch$1();
56338
- const { resolve: resolve$11 } = __require("path");
56415
+ const { resolve: resolve$12 } = __require("path");
56339
56416
  function readdir(dir, strict) {
56340
56417
  return new Promise((resolve, reject) => {
56341
56418
  fs$19.readdir(dir, { withFileTypes: true }, (err, files) => {
@@ -56444,7 +56521,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
56444
56521
  if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
56445
56522
  this.skipMatchers = [];
56446
56523
  if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
56447
- this.iterator = explore(resolve$11(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
56524
+ this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
56448
56525
  this.paused = false;
56449
56526
  this.inactive = false;
56450
56527
  this.aborted = false;
@@ -91697,7 +91774,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91697
91774
  const isWindows = process.platform === "win32";
91698
91775
  const { URL: URL$6 } = __require("node:url");
91699
91776
  const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
91700
- const { homedir: homedir$1 } = __require("node:os");
91777
+ const { homedir: homedir$2 } = __require("node:os");
91701
91778
  const HostedGit = require_lib$28();
91702
91779
  const semver = require_semver$2();
91703
91780
  const validatePackageName = require_lib$23();
@@ -91902,7 +91979,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
91902
91979
  }
91903
91980
  if (/^\/~(\/|$)/.test(specPath)) {
91904
91981
  res.saveSpec = `file:${specPath.substr(1)}`;
91905
- resolvedPath = path$17.resolve(homedir$1(), specPath.substr(3));
91982
+ resolvedPath = path$17.resolve(homedir$2(), specPath.substr(3));
91906
91983
  } else if (!path$17.isAbsolute(rawSpec.slice(5))) res.saveSpec = `file:${path$17.relative(where, resolvedPath)}`;
91907
91984
  else res.saveSpec = `file:${path$17.resolve(resolvedPath)}`;
91908
91985
  res.fetchSpec = path$17.resolve(where, resolvedPath);
@@ -93049,7 +93126,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93049
93126
  //#region ../../node_modules/@npmcli/package-json/lib/index.js
93050
93127
  var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93051
93128
  const { readFile: readFile$4, writeFile: writeFile$2 } = __require("node:fs/promises");
93052
- const { resolve: resolve$10 } = __require("node:path");
93129
+ const { resolve: resolve$11 } = __require("node:path");
93053
93130
  const parseJSON = require_lib$30();
93054
93131
  const updateDeps = require_update_dependencies();
93055
93132
  const updateScripts = require_update_scripts();
@@ -93152,7 +93229,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93152
93229
  parseErr = err;
93153
93230
  }
93154
93231
  if (parseErr) {
93155
- const indexFile = resolve$10(this.path, "index.js");
93232
+ const indexFile = resolve$11(this.path, "index.js");
93156
93233
  let indexFileContent;
93157
93234
  try {
93158
93235
  indexFileContent = await readFile$4(indexFile, "utf8");
@@ -93197,7 +93274,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
93197
93274
  return this.#path;
93198
93275
  }
93199
93276
  get filename() {
93200
- if (this.path) return resolve$10(this.path, "package.json");
93277
+ if (this.path) return resolve$11(this.path, "package.json");
93201
93278
  }
93202
93279
  create(path) {
93203
93280
  this.#path = path;
@@ -94320,7 +94397,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94320
94397
  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();
94321
94398
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
94322
94399
  const { chmod: chmod$1, copyFile, lstat: lstat$2, mkdir: mkdir$4, readdir: readdir$4, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
94323
- const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$9, sep: sep$2, toNamespacedPath } = __require("path");
94400
+ const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = __require("path");
94324
94401
  const { fileURLToPath: fileURLToPath$1 } = __require("url");
94325
94402
  const defaultOptions = {
94326
94403
  dereference: false,
@@ -94407,8 +94484,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94407
94484
  );
94408
94485
  }
94409
94486
  async function checkParentPaths(src, srcStat, dest) {
94410
- const srcParent = resolve$9(dirname$6(src));
94411
- const destParent = resolve$9(dirname$6(dest));
94487
+ const srcParent = resolve$10(dirname$6(src));
94488
+ const destParent = resolve$10(dirname$6(dest));
94412
94489
  if (destParent === srcParent || destParent === parse(destParent).root) return;
94413
94490
  let destStat;
94414
94491
  try {
@@ -94427,7 +94504,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94427
94504
  });
94428
94505
  return checkParentPaths(src, srcStat, destParent);
94429
94506
  }
94430
- const normalizePathToArray = (path) => resolve$9(path).split(sep$2).filter(Boolean);
94507
+ const normalizePathToArray = (path) => resolve$10(path).split(sep$2).filter(Boolean);
94431
94508
  function isSrcSubdir(src, dest) {
94432
94509
  const srcArr = normalizePathToArray(src);
94433
94510
  const destArr = normalizePathToArray(dest);
@@ -94537,7 +94614,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94537
94614
  }
94538
94615
  async function onLink(destStat, src, dest) {
94539
94616
  let resolvedSrc = await readlink(src);
94540
- if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$9(dirname$6(src), resolvedSrc);
94617
+ if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
94541
94618
  if (!destStat) return symlink(resolvedSrc, dest);
94542
94619
  let resolvedDest;
94543
94620
  try {
@@ -94548,7 +94625,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94548
94625
  // istanbul ignore next: should not be possible
94549
94626
  throw err;
94550
94627
  }
94551
- if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$9(dirname$6(dest), resolvedDest);
94628
+ if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
94552
94629
  if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
94553
94630
  message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
94554
94631
  path: dest,
@@ -94635,7 +94712,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
94635
94712
  //#endregion
94636
94713
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
94637
94714
  var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94638
- const { dirname: dirname$5, join: join$3, resolve: resolve$8, relative: relative$1, isAbsolute } = __require("path");
94715
+ const { dirname: dirname$5, join: join$3, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
94639
94716
  const fs$11 = __require("fs/promises");
94640
94717
  const pathExists = async (path) => {
94641
94718
  try {
@@ -94671,10 +94748,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
94671
94748
  if (root) {
94672
94749
  await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
94673
94750
  let target = await fs$11.readlink(symSource);
94674
- if (isAbsolute(target)) target = resolve$8(symDestination, relative$1(symSource, target));
94751
+ if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
94675
94752
  let targetStat = "file";
94676
94753
  try {
94677
- targetStat = await fs$11.stat(resolve$8(dirname$5(symSource), target));
94754
+ targetStat = await fs$11.stat(resolve$9(dirname$5(symSource), target));
94678
94755
  if (targetStat.isDirectory()) targetStat = "junction";
94679
94756
  } catch {}
94680
94757
  await fs$11.symlink(target, symDestination, targetStat);
@@ -100491,7 +100568,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100491
100568
  var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100492
100569
  const bundled = require_lib$12();
100493
100570
  const { readFile: readFile$1, readdir: readdir$1, stat: stat$2 } = __require("fs/promises");
100494
- const { resolve: resolve$7, basename: basename$3, dirname: dirname$4 } = __require("path");
100571
+ const { resolve: resolve$8, basename: basename$3, dirname: dirname$4 } = __require("path");
100495
100572
  const normalizePackageBin = require_lib$21();
100496
100573
  const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$1(path).then((json) => {
100497
100574
  const pkg = normalizePackageBin(JSON.parse(json));
@@ -100535,7 +100612,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100535
100612
  const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
100536
100613
  const binFiles = [];
100537
100614
  Object.keys(pkg.bin).forEach((b) => {
100538
- const base = resolve$7(nm, ".bin", b);
100615
+ const base = resolve$8(nm, ".bin", b);
100539
100616
  binFiles.push(base, base + ".cmd", base + ".ps1");
100540
100617
  });
100541
100618
  (await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
@@ -100556,7 +100633,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100556
100633
  }
100557
100634
  const recursePromises = [];
100558
100635
  for (const entry of dirEntries) {
100559
- const p = resolve$7(path, entry.name);
100636
+ const p = resolve$8(path, entry.name);
100560
100637
  if (entry.isDirectory() === false) {
100561
100638
  result.add(p);
100562
100639
  continue;
@@ -100575,7 +100652,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100575
100652
  }
100576
100653
  if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
100577
100654
  return pkgContents({
100578
- path: resolve$7(path, "node_modules", dep),
100655
+ path: resolve$8(path, "node_modules", dep),
100579
100656
  packageJsonCache,
100580
100657
  pkg: true,
100581
100658
  depth,
@@ -100587,7 +100664,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100587
100664
  return result;
100588
100665
  };
100589
100666
  module.exports = ({ path, ...opts }) => pkgContents({
100590
- path: resolve$7(path),
100667
+ path: resolve$8(path),
100591
100668
  ...opts,
100592
100669
  pkg: true
100593
100670
  }).then((results) => [...results]);
@@ -104198,18 +104275,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104198
104275
  //#endregion
104199
104276
  //#region ../../node_modules/pacote/lib/util/cache-dir.js
104200
104277
  var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104201
- const { resolve: resolve$6 } = __require("node:path");
104202
- const { tmpdir, homedir } = __require("node:os");
104278
+ const { resolve: resolve$7 } = __require("node:path");
104279
+ const { tmpdir, homedir: homedir$1 } = __require("node:os");
104203
104280
  module.exports = (fakePlatform = false) => {
104204
104281
  const temp = tmpdir();
104205
104282
  const uidOrPid = process.getuid ? process.getuid() : process.pid;
104206
- const home = homedir() || resolve$6(temp, "npm-" + uidOrPid);
104283
+ const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
104207
104284
  const platform = fakePlatform || process.platform;
104208
104285
  const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
104209
104286
  const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
104210
104287
  return {
104211
- cacache: resolve$6(cacheRoot, cacheExtra, "_cacache"),
104212
- tufcache: resolve$6(cacheRoot, cacheExtra, "_tuf")
104288
+ cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
104289
+ tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
104213
104290
  };
104214
104291
  };
104215
104292
  }));
@@ -106023,7 +106100,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106023
106100
  var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106024
106101
  const { Walker: IgnoreWalker } = require_lib$10();
106025
106102
  const { lstatSync: lstat$1, readFileSync: readFile } = __require("fs");
106026
- const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$5, sep } = __require("path");
106103
+ const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$6, sep } = __require("path");
106027
106104
  const { log } = require_lib$29();
106028
106105
  const defaultRules = Symbol("npm-packlist.rules.default");
106029
106106
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -106074,7 +106151,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106074
106151
  ...opts,
106075
106152
  includeEmpty: false,
106076
106153
  follow: false,
106077
- path: resolve$5(opts?.path || tree.path).replace(/\\/g, "/"),
106154
+ path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
106078
106155
  ignoreFiles: opts?.ignoreFiles || [
106079
106156
  defaultRules,
106080
106157
  "package.json",
@@ -106275,8 +106352,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106275
106352
  var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106276
106353
  init_esm_shims();
106277
106354
  const { log } = require_lib$29();
106278
- const { resolve: resolve$4, dirname: dirname$2, delimiter } = __require("path");
106279
- const nodeGypPath = resolve$4(__dirname, "../lib/node-gyp-bin");
106355
+ const { resolve: resolve$5, dirname: dirname$2, delimiter } = __require("path");
106356
+ const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
106280
106357
  const setPATH = (projectPath, binPaths, env) => {
106281
106358
  const PATH = Object.keys(env).filter((p) => /^path$/i.test(p) && env[p]).map((p) => env[p].split(delimiter)).reduce((set, p) => set.concat(p.filter((concatted) => !set.includes(concatted))), []).join(delimiter);
106282
106359
  const pathArr = [];
@@ -106291,7 +106368,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106291
106368
  let p = projectPath;
106292
106369
  let pp;
106293
106370
  do {
106294
- pathArr.push(resolve$4(p, "node_modules", ".bin"));
106371
+ pathArr.push(resolve$5(p, "node_modules", ".bin"));
106295
106372
  pp = p;
106296
106373
  p = dirname$2(p);
106297
106374
  } while (p !== pp);
@@ -106306,7 +106383,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106306
106383
  //#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
106307
106384
  var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106308
106385
  const setPATH = require_set_path();
106309
- const { resolve: resolve$3 } = __require("path");
106386
+ const { resolve: resolve$4 } = __require("path");
106310
106387
  let npm_config_node_gyp;
106311
106388
  const makeSpawnArgs = (options) => {
106312
106389
  const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
@@ -106320,7 +106397,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
106320
106397
  env: setPATH(path, binPaths, {
106321
106398
  ...process.env,
106322
106399
  ...env,
106323
- npm_package_json: resolve$3(path, "package.json"),
106400
+ npm_package_json: resolve$4(path, "package.json"),
106324
106401
  npm_lifecycle_event: event,
106325
106402
  npm_lifecycle_script: cmd,
106326
106403
  npm_config_node_gyp
@@ -106408,10 +106485,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
106408
106485
  //#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
106409
106486
  var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106410
106487
  const { stat: stat$1 } = __require("node:fs/promises");
106411
- const { resolve: resolve$2 } = __require("node:path");
106488
+ const { resolve: resolve$3 } = __require("node:path");
106412
106489
  module.exports = async (path) => {
106413
106490
  try {
106414
- return (await stat$1(resolve$2(path, "server.js"))).isFile();
106491
+ return (await stat$1(resolve$3(path, "server.js"))).isFile();
106415
106492
  } catch (er) {
106416
106493
  return false;
106417
106494
  }
@@ -106521,7 +106598,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106521
106598
  //#endregion
106522
106599
  //#region ../../node_modules/pacote/lib/file.js
106523
106600
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106524
- const { resolve: resolve$1 } = __require("node:path");
106601
+ const { resolve: resolve$2 } = __require("node:path");
106525
106602
  const { stat, chmod } = __require("node:fs/promises");
106526
106603
  const cacache = require_lib$14();
106527
106604
  const fsm = require_lib$13();
@@ -106547,7 +106624,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106547
106624
  #exeBins(pkg, dest) {
106548
106625
  if (!pkg.bin) return Promise.resolve();
106549
106626
  return Promise.all(Object.keys(pkg.bin).map(async (k) => {
106550
- const script = resolve$1(dest, pkg.bin[k]);
106627
+ const script = resolve$2(dest, pkg.bin[k]);
106551
106628
  try {
106552
106629
  const st = await stat(script);
106553
106630
  const mode = st.mode | 73;
@@ -106598,7 +106675,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
106598
106675
  //#endregion
106599
106676
  //#region ../../node_modules/pacote/lib/dir.js
106600
106677
  var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106601
- const { resolve } = __require("node:path");
106678
+ const { resolve: resolve$1 } = __require("node:path");
106602
106679
  const packlist = require_lib$9();
106603
106680
  const runScript = require_run_script();
106604
106681
  const tar = require_index_min();
@@ -106634,7 +106711,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106634
106711
  env: {
106635
106712
  npm_package_resolved: this.resolved,
106636
106713
  npm_package_integrity: this.integrity,
106637
- npm_package_json: resolve(this.resolved, "package.json")
106714
+ npm_package_json: resolve$1(this.resolved, "package.json")
106638
106715
  }
106639
106716
  });
106640
106717
  });