@pipelab/plugin-nvpatch 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
@@ -6,10 +6,10 @@ import { aborted, callbackify, debuglog, inspect, promisify, stripVTControlChara
6
6
  import process$1, { execArgv, execPath, hrtime, platform } from "node:process";
7
7
  import { appendFileSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
8
8
  import tty from "node:tty";
9
- import path, { dirname, join } from "node:path";
9
+ import path, { dirname, join, resolve } from "node:path";
10
10
  import { normalize } from "path";
11
11
  import { scheduler, setImmediate as setImmediate$1, setTimeout as setTimeout$1 } from "node:timers/promises";
12
- import { constants as constants$1 } from "node:os";
12
+ import { constants as constants$1, homedir, platform as platform$1 } from "node:os";
13
13
  import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
14
14
  import { serialize } from "node:v8";
15
15
  import { finished } from "node:stream/promises";
@@ -52904,6 +52904,17 @@ const websocketPort = 33753;
52904
52904
  const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
52905
52905
  const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
52906
52906
  const isDev = process.env.NODE_ENV === "development";
52907
+ const getDefaultUserDataPath = (env) => {
52908
+ const base = (() => {
52909
+ switch (platform$1()) {
52910
+ case "win32": return process.env.APPDATA || join(homedir(), "AppData", "Roaming");
52911
+ case "darwin": return join(homedir(), "Library", "Application Support");
52912
+ default: return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
52913
+ }
52914
+ })();
52915
+ const mode = env ?? (isDev ? "dev" : "prod");
52916
+ return join(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
52917
+ };
52907
52918
  /**
52908
52919
  * Finds the monorepo root by looking for pnpm-workspace.yaml.
52909
52920
  */
@@ -56665,6 +56676,71 @@ var WebSocketServer = class {
56665
56676
  };
56666
56677
  new WebSocketServer();
56667
56678
  //#endregion
56679
+ //#region ../../packages/core-node/src/fs-utils.ts
56680
+ var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
56681
+ module.exports = (path) => {
56682
+ const isExtendedLengthPath = /^\\\\\?\\/.test(path);
56683
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
56684
+ if (isExtendedLengthPath || hasNonAscii) return path;
56685
+ return path.replace(/\\/g, "/");
56686
+ };
56687
+ })))(), 1);
56688
+ function removeTrailingSlash(path) {
56689
+ return path.replace(/[\\/]+$/, "");
56690
+ }
56691
+ removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
56692
+ const additionalProtectedPaths = [
56693
+ getDefaultUserDataPath("dev"),
56694
+ getDefaultUserDataPath("beta"),
56695
+ getDefaultUserDataPath("prod"),
56696
+ projectRoot,
56697
+ process.cwd(),
56698
+ "/tmp",
56699
+ "/var/tmp",
56700
+ process.env.TEMP,
56701
+ process.env.TMP,
56702
+ join(homedir(), "AppData"),
56703
+ join(homedir(), "AppData", "Local"),
56704
+ join(homedir(), "AppData", "Roaming"),
56705
+ join(homedir(), "Library"),
56706
+ join(homedir(), "Library", "Application Support"),
56707
+ join(homedir(), ".config"),
56708
+ join(homedir(), ".local"),
56709
+ join(homedir(), ".local", "share"),
56710
+ join(homedir(), ".cache"),
56711
+ join(homedir(), "OneDrive"),
56712
+ join(homedir(), "Dropbox"),
56713
+ join(homedir(), ".ssh"),
56714
+ join(homedir(), ".gnupg"),
56715
+ join(homedir(), ".aws"),
56716
+ join(homedir(), ".docker"),
56717
+ join(homedir(), ".kube"),
56718
+ join(homedir(), ".vscode"),
56719
+ join(homedir(), ".vscode-insiders"),
56720
+ join(homedir(), ".cursor"),
56721
+ join(homedir(), ".npm"),
56722
+ join(homedir(), ".pnpm-state"),
56723
+ join(homedir(), ".yarn"),
56724
+ join(homedir(), ".cargo"),
56725
+ join(homedir(), ".rustup"),
56726
+ join(homedir(), ".m2"),
56727
+ join(homedir(), ".gradle")
56728
+ ].filter((p) => typeof p === "string" && p.length > 0);
56729
+ new Set([
56730
+ join(homedir(), "Downloads"),
56731
+ join(homedir(), "Documents"),
56732
+ join(homedir(), "Desktop"),
56733
+ join(homedir(), "Pictures"),
56734
+ join(homedir(), "Music"),
56735
+ join(homedir(), "Videos"),
56736
+ join(homedir(), "Saved Games"),
56737
+ join(homedir(), "Contacts"),
56738
+ join(homedir(), "Searches"),
56739
+ join(homedir(), "Links"),
56740
+ join(homedir(), "3D Objects"),
56741
+ ...additionalProtectedPaths
56742
+ ].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
56743
+ //#endregion
56668
56744
  //#region ../../packages/core-node/node_modules/execa/lib/arguments/file-url.js
56669
56745
  const safeNormalizeFileUrl = (file, name) => {
56670
56746
  const fileString = normalizeFileUrl(normalizeDenoExecPath(file));
@@ -65093,13 +65169,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65093
65169
  //#region ../../node_modules/mkdirp/lib/path-arg.js
65094
65170
  var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
65095
65171
  const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
65096
- const { resolve: resolve$12, parse: parse$2 } = __require("path");
65172
+ const { resolve: resolve$13, parse: parse$2 } = __require("path");
65097
65173
  const pathArg = (path) => {
65098
65174
  if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
65099
65175
  path,
65100
65176
  code: "ERR_INVALID_ARG_VALUE"
65101
65177
  });
65102
- path = resolve$12(path);
65178
+ path = resolve$13(path);
65103
65179
  if (platform === "win32") {
65104
65180
  const badWinChars = /[*|"<>?:]/;
65105
65181
  const { root } = parse$2(path);
@@ -68049,7 +68125,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
68049
68125
  const fs$19 = __require("fs");
68050
68126
  const { EventEmitter: EventEmitter$1 } = __require("events");
68051
68127
  const { Minimatch } = require_minimatch$1();
68052
- const { resolve: resolve$11 } = __require("path");
68128
+ const { resolve: resolve$12 } = __require("path");
68053
68129
  function readdir(dir, strict) {
68054
68130
  return new Promise((resolve, reject) => {
68055
68131
  fs$19.readdir(dir, { withFileTypes: true }, (err, files) => {
@@ -68158,7 +68234,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
68158
68234
  if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
68159
68235
  this.skipMatchers = [];
68160
68236
  if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
68161
- this.iterator = explore(resolve$11(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
68237
+ this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
68162
68238
  this.paused = false;
68163
68239
  this.inactive = false;
68164
68240
  this.aborted = false;
@@ -102070,7 +102146,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
102070
102146
  const isWindows = process.platform === "win32";
102071
102147
  const { URL: URL$6 } = __require("node:url");
102072
102148
  const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
102073
- const { homedir: homedir$1 } = __require("node:os");
102149
+ const { homedir: homedir$2 } = __require("node:os");
102074
102150
  const HostedGit = require_lib$28();
102075
102151
  const semver = require_semver$4();
102076
102152
  const validatePackageName = require_lib$23();
@@ -102275,7 +102351,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
102275
102351
  }
102276
102352
  if (/^\/~(\/|$)/.test(specPath)) {
102277
102353
  res.saveSpec = `file:${specPath.substr(1)}`;
102278
- resolvedPath = path$17.resolve(homedir$1(), specPath.substr(3));
102354
+ resolvedPath = path$17.resolve(homedir$2(), specPath.substr(3));
102279
102355
  } else if (!path$17.isAbsolute(rawSpec.slice(5))) res.saveSpec = `file:${path$17.relative(where, resolvedPath)}`;
102280
102356
  else res.saveSpec = `file:${path$17.resolve(resolvedPath)}`;
102281
102357
  res.fetchSpec = path$17.resolve(where, resolvedPath);
@@ -103422,7 +103498,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103422
103498
  //#region ../../node_modules/@npmcli/package-json/lib/index.js
103423
103499
  var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103424
103500
  const { readFile: readFile$4, writeFile: writeFile$2 } = __require("node:fs/promises");
103425
- const { resolve: resolve$10 } = __require("node:path");
103501
+ const { resolve: resolve$11 } = __require("node:path");
103426
103502
  const parseJSON = require_lib$30();
103427
103503
  const updateDeps = require_update_dependencies();
103428
103504
  const updateScripts = require_update_scripts();
@@ -103525,7 +103601,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103525
103601
  parseErr = err;
103526
103602
  }
103527
103603
  if (parseErr) {
103528
- const indexFile = resolve$10(this.path, "index.js");
103604
+ const indexFile = resolve$11(this.path, "index.js");
103529
103605
  let indexFileContent;
103530
103606
  try {
103531
103607
  indexFileContent = await readFile$4(indexFile, "utf8");
@@ -103570,7 +103646,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103570
103646
  return this.#path;
103571
103647
  }
103572
103648
  get filename() {
103573
- if (this.path) return resolve$10(this.path, "package.json");
103649
+ if (this.path) return resolve$11(this.path, "package.json");
103574
103650
  }
103575
103651
  create(path) {
103576
103652
  this.#path = path;
@@ -104693,7 +104769,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104693
104769
  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();
104694
104770
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
104695
104771
  const { chmod: chmod$1, copyFile, lstat: lstat$2, mkdir: mkdir$5, readdir: readdir$4, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
104696
- const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$9, sep: sep$2, toNamespacedPath } = __require("path");
104772
+ const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = __require("path");
104697
104773
  const { fileURLToPath: fileURLToPath$1 } = __require("url");
104698
104774
  const defaultOptions = {
104699
104775
  dereference: false,
@@ -104780,8 +104856,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104780
104856
  );
104781
104857
  }
104782
104858
  async function checkParentPaths(src, srcStat, dest) {
104783
- const srcParent = resolve$9(dirname$6(src));
104784
- const destParent = resolve$9(dirname$6(dest));
104859
+ const srcParent = resolve$10(dirname$6(src));
104860
+ const destParent = resolve$10(dirname$6(dest));
104785
104861
  if (destParent === srcParent || destParent === parse(destParent).root) return;
104786
104862
  let destStat;
104787
104863
  try {
@@ -104800,7 +104876,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104800
104876
  });
104801
104877
  return checkParentPaths(src, srcStat, destParent);
104802
104878
  }
104803
- const normalizePathToArray = (path) => resolve$9(path).split(sep$2).filter(Boolean);
104879
+ const normalizePathToArray = (path) => resolve$10(path).split(sep$2).filter(Boolean);
104804
104880
  function isSrcSubdir(src, dest) {
104805
104881
  const srcArr = normalizePathToArray(src);
104806
104882
  const destArr = normalizePathToArray(dest);
@@ -104910,7 +104986,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104910
104986
  }
104911
104987
  async function onLink(destStat, src, dest) {
104912
104988
  let resolvedSrc = await readlink(src);
104913
- if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$9(dirname$6(src), resolvedSrc);
104989
+ if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
104914
104990
  if (!destStat) return symlink(resolvedSrc, dest);
104915
104991
  let resolvedDest;
104916
104992
  try {
@@ -104921,7 +104997,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
104921
104997
  // istanbul ignore next: should not be possible
104922
104998
  throw err;
104923
104999
  }
104924
- if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$9(dirname$6(dest), resolvedDest);
105000
+ if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
104925
105001
  if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
104926
105002
  message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
104927
105003
  path: dest,
@@ -105008,7 +105084,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
105008
105084
  //#endregion
105009
105085
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
105010
105086
  var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
105011
- const { dirname: dirname$5, join: join$3, resolve: resolve$8, relative: relative$1, isAbsolute } = __require("path");
105087
+ const { dirname: dirname$5, join: join$3, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
105012
105088
  const fs$11 = __require("fs/promises");
105013
105089
  const pathExists = async (path) => {
105014
105090
  try {
@@ -105044,10 +105120,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
105044
105120
  if (root) {
105045
105121
  await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
105046
105122
  let target = await fs$11.readlink(symSource);
105047
- if (isAbsolute(target)) target = resolve$8(symDestination, relative$1(symSource, target));
105123
+ if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
105048
105124
  let targetStat = "file";
105049
105125
  try {
105050
- targetStat = await fs$11.stat(resolve$8(dirname$5(symSource), target));
105126
+ targetStat = await fs$11.stat(resolve$9(dirname$5(symSource), target));
105051
105127
  if (targetStat.isDirectory()) targetStat = "junction";
105052
105128
  } catch {}
105053
105129
  await fs$11.symlink(target, symDestination, targetStat);
@@ -110864,7 +110940,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110864
110940
  var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110865
110941
  const bundled = require_lib$12();
110866
110942
  const { readFile: readFile$1, readdir: readdir$1, stat: stat$2 } = __require("fs/promises");
110867
- const { resolve: resolve$7, basename: basename$3, dirname: dirname$4 } = __require("path");
110943
+ const { resolve: resolve$8, basename: basename$3, dirname: dirname$4 } = __require("path");
110868
110944
  const normalizePackageBin = require_lib$21();
110869
110945
  const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$1(path).then((json) => {
110870
110946
  const pkg = normalizePackageBin(JSON.parse(json));
@@ -110908,7 +110984,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110908
110984
  const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
110909
110985
  const binFiles = [];
110910
110986
  Object.keys(pkg.bin).forEach((b) => {
110911
- const base = resolve$7(nm, ".bin", b);
110987
+ const base = resolve$8(nm, ".bin", b);
110912
110988
  binFiles.push(base, base + ".cmd", base + ".ps1");
110913
110989
  });
110914
110990
  (await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
@@ -110929,7 +111005,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110929
111005
  }
110930
111006
  const recursePromises = [];
110931
111007
  for (const entry of dirEntries) {
110932
- const p = resolve$7(path, entry.name);
111008
+ const p = resolve$8(path, entry.name);
110933
111009
  if (entry.isDirectory() === false) {
110934
111010
  result.add(p);
110935
111011
  continue;
@@ -110948,7 +111024,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110948
111024
  }
110949
111025
  if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
110950
111026
  return pkgContents({
110951
- path: resolve$7(path, "node_modules", dep),
111027
+ path: resolve$8(path, "node_modules", dep),
110952
111028
  packageJsonCache,
110953
111029
  pkg: true,
110954
111030
  depth,
@@ -110960,7 +111036,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110960
111036
  return result;
110961
111037
  };
110962
111038
  module.exports = ({ path, ...opts }) => pkgContents({
110963
- path: resolve$7(path),
111039
+ path: resolve$8(path),
110964
111040
  ...opts,
110965
111041
  pkg: true
110966
111042
  }).then((results) => [...results]);
@@ -114571,18 +114647,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
114571
114647
  //#endregion
114572
114648
  //#region ../../node_modules/pacote/lib/util/cache-dir.js
114573
114649
  var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
114574
- const { resolve: resolve$6 } = __require("node:path");
114575
- const { tmpdir, homedir } = __require("node:os");
114650
+ const { resolve: resolve$7 } = __require("node:path");
114651
+ const { tmpdir, homedir: homedir$1 } = __require("node:os");
114576
114652
  module.exports = (fakePlatform = false) => {
114577
114653
  const temp = tmpdir();
114578
114654
  const uidOrPid = process.getuid ? process.getuid() : process.pid;
114579
- const home = homedir() || resolve$6(temp, "npm-" + uidOrPid);
114655
+ const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
114580
114656
  const platform = fakePlatform || process.platform;
114581
114657
  const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
114582
114658
  const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
114583
114659
  return {
114584
- cacache: resolve$6(cacheRoot, cacheExtra, "_cacache"),
114585
- tufcache: resolve$6(cacheRoot, cacheExtra, "_tuf")
114660
+ cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
114661
+ tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
114586
114662
  };
114587
114663
  };
114588
114664
  }));
@@ -116396,7 +116472,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116396
116472
  var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116397
116473
  const { Walker: IgnoreWalker } = require_lib$10();
116398
116474
  const { lstatSync: lstat$1, readFileSync: readFile } = __require("fs");
116399
- const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$5, sep } = __require("path");
116475
+ const { basename: basename$2, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$6, sep } = __require("path");
116400
116476
  const { log } = require_lib$29();
116401
116477
  const defaultRules = Symbol("npm-packlist.rules.default");
116402
116478
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -116447,7 +116523,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116447
116523
  ...opts,
116448
116524
  includeEmpty: false,
116449
116525
  follow: false,
116450
- path: resolve$5(opts?.path || tree.path).replace(/\\/g, "/"),
116526
+ path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
116451
116527
  ignoreFiles: opts?.ignoreFiles || [
116452
116528
  defaultRules,
116453
116529
  "package.json",
@@ -116648,8 +116724,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116648
116724
  var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116649
116725
  init_esm_shims();
116650
116726
  const { log } = require_lib$29();
116651
- const { resolve: resolve$4, dirname: dirname$2, delimiter } = __require("path");
116652
- const nodeGypPath = resolve$4(__dirname, "../lib/node-gyp-bin");
116727
+ const { resolve: resolve$5, dirname: dirname$2, delimiter } = __require("path");
116728
+ const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
116653
116729
  const setPATH = (projectPath, binPaths, env) => {
116654
116730
  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);
116655
116731
  const pathArr = [];
@@ -116664,7 +116740,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116664
116740
  let p = projectPath;
116665
116741
  let pp;
116666
116742
  do {
116667
- pathArr.push(resolve$4(p, "node_modules", ".bin"));
116743
+ pathArr.push(resolve$5(p, "node_modules", ".bin"));
116668
116744
  pp = p;
116669
116745
  p = dirname$2(p);
116670
116746
  } while (p !== pp);
@@ -116679,7 +116755,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116679
116755
  //#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
116680
116756
  var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116681
116757
  const setPATH = require_set_path();
116682
- const { resolve: resolve$3 } = __require("path");
116758
+ const { resolve: resolve$4 } = __require("path");
116683
116759
  let npm_config_node_gyp;
116684
116760
  const makeSpawnArgs = (options) => {
116685
116761
  const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
@@ -116693,7 +116769,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
116693
116769
  env: setPATH(path, binPaths, {
116694
116770
  ...process.env,
116695
116771
  ...env,
116696
- npm_package_json: resolve$3(path, "package.json"),
116772
+ npm_package_json: resolve$4(path, "package.json"),
116697
116773
  npm_lifecycle_event: event,
116698
116774
  npm_lifecycle_script: cmd,
116699
116775
  npm_config_node_gyp
@@ -116781,10 +116857,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
116781
116857
  //#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
116782
116858
  var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116783
116859
  const { stat: stat$1 } = __require("node:fs/promises");
116784
- const { resolve: resolve$2 } = __require("node:path");
116860
+ const { resolve: resolve$3 } = __require("node:path");
116785
116861
  module.exports = async (path) => {
116786
116862
  try {
116787
- return (await stat$1(resolve$2(path, "server.js"))).isFile();
116863
+ return (await stat$1(resolve$3(path, "server.js"))).isFile();
116788
116864
  } catch (er) {
116789
116865
  return false;
116790
116866
  }
@@ -116894,7 +116970,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116894
116970
  //#endregion
116895
116971
  //#region ../../node_modules/pacote/lib/file.js
116896
116972
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116897
- const { resolve: resolve$1 } = __require("node:path");
116973
+ const { resolve: resolve$2 } = __require("node:path");
116898
116974
  const { stat, chmod } = __require("node:fs/promises");
116899
116975
  const cacache = require_lib$14();
116900
116976
  const fsm = require_lib$13();
@@ -116920,7 +116996,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116920
116996
  #exeBins(pkg, dest) {
116921
116997
  if (!pkg.bin) return Promise.resolve();
116922
116998
  return Promise.all(Object.keys(pkg.bin).map(async (k) => {
116923
- const script = resolve$1(dest, pkg.bin[k]);
116999
+ const script = resolve$2(dest, pkg.bin[k]);
116924
117000
  try {
116925
117001
  const st = await stat(script);
116926
117002
  const mode = st.mode | 73;
@@ -116971,7 +117047,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
116971
117047
  //#endregion
116972
117048
  //#region ../../node_modules/pacote/lib/dir.js
116973
117049
  var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
116974
- const { resolve } = __require("node:path");
117050
+ const { resolve: resolve$1 } = __require("node:path");
116975
117051
  const packlist = require_lib$9();
116976
117052
  const runScript = require_run_script();
116977
117053
  const tar = require_index_min();
@@ -117007,7 +117083,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117007
117083
  env: {
117008
117084
  npm_package_resolved: this.resolved,
117009
117085
  npm_package_integrity: this.integrity,
117010
- npm_package_json: resolve(this.resolved, "package.json")
117086
+ npm_package_json: resolve$1(this.resolved, "package.json")
117011
117087
  }
117012
117088
  });
117013
117089
  });