@pipelab/plugin-netlify 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,9 +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, { 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
- import { constants } from "node:os";
7
+ import { constants, homedir, platform } from "node:os";
8
8
  import { appendFileSync, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
9
9
  import { chmod, cp, mkdir, readFile, readdir, rename, rm, writeFile } from "node:fs/promises";
10
10
  import http from "node:http";
@@ -12,7 +12,7 @@ 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";
@@ -45407,6 +45407,17 @@ const DEFAULT_PNPM_VERSION = "10.12.0";
45407
45407
  const metaUrl = typeof import.meta !== "undefined" ? import.meta.url : void 0;
45408
45408
  const _dirname = typeof __dirname !== "undefined" ? __dirname : metaUrl ? dirname(fileURLToPath(metaUrl)) : process.cwd();
45409
45409
  const isDev = process.env.NODE_ENV === "development";
45410
+ const getDefaultUserDataPath = (env) => {
45411
+ const base = (() => {
45412
+ switch (platform()) {
45413
+ case "win32": return process.env.APPDATA || join(homedir(), "AppData", "Roaming");
45414
+ case "darwin": return join(homedir(), "Library", "Application Support");
45415
+ default: return process.env.XDG_CONFIG_HOME || join(homedir(), ".config");
45416
+ }
45417
+ })();
45418
+ const mode = env ?? (isDev ? "dev" : "prod");
45419
+ return join(base, "@pipelab", mode === "dev" ? "app-dev" : mode === "beta" ? "app-beta" : "app");
45420
+ };
45410
45421
  /**
45411
45422
  * Finds the monorepo root by looking for pnpm-workspace.yaml.
45412
45423
  */
@@ -49173,6 +49184,71 @@ var WebSocketServer = class {
49173
49184
  };
49174
49185
  const webSocketServer = new WebSocketServer();
49175
49186
  //#endregion
49187
+ //#region ../../packages/core-node/src/fs-utils.ts
49188
+ var import_slash = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
49189
+ module.exports = (path) => {
49190
+ const isExtendedLengthPath = /^\\\\\?\\/.test(path);
49191
+ const hasNonAscii = /[^\u0000-\u0080]+/.test(path);
49192
+ if (isExtendedLengthPath || hasNonAscii) return path;
49193
+ return path.replace(/\\/g, "/");
49194
+ };
49195
+ })))(), 1);
49196
+ function removeTrailingSlash(path) {
49197
+ return path.replace(/[\\/]+$/, "");
49198
+ }
49199
+ removeTrailingSlash((0, import_slash.default)(resolve(homedir()))).toLowerCase();
49200
+ const additionalProtectedPaths = [
49201
+ getDefaultUserDataPath("dev"),
49202
+ getDefaultUserDataPath("beta"),
49203
+ getDefaultUserDataPath("prod"),
49204
+ projectRoot,
49205
+ process.cwd(),
49206
+ "/tmp",
49207
+ "/var/tmp",
49208
+ process.env.TEMP,
49209
+ process.env.TMP,
49210
+ join(homedir(), "AppData"),
49211
+ join(homedir(), "AppData", "Local"),
49212
+ join(homedir(), "AppData", "Roaming"),
49213
+ join(homedir(), "Library"),
49214
+ join(homedir(), "Library", "Application Support"),
49215
+ join(homedir(), ".config"),
49216
+ join(homedir(), ".local"),
49217
+ join(homedir(), ".local", "share"),
49218
+ join(homedir(), ".cache"),
49219
+ join(homedir(), "OneDrive"),
49220
+ join(homedir(), "Dropbox"),
49221
+ join(homedir(), ".ssh"),
49222
+ join(homedir(), ".gnupg"),
49223
+ join(homedir(), ".aws"),
49224
+ join(homedir(), ".docker"),
49225
+ join(homedir(), ".kube"),
49226
+ join(homedir(), ".vscode"),
49227
+ join(homedir(), ".vscode-insiders"),
49228
+ join(homedir(), ".cursor"),
49229
+ join(homedir(), ".npm"),
49230
+ join(homedir(), ".pnpm-state"),
49231
+ join(homedir(), ".yarn"),
49232
+ join(homedir(), ".cargo"),
49233
+ join(homedir(), ".rustup"),
49234
+ join(homedir(), ".m2"),
49235
+ join(homedir(), ".gradle")
49236
+ ].filter((p) => typeof p === "string" && p.length > 0);
49237
+ new Set([
49238
+ join(homedir(), "Downloads"),
49239
+ join(homedir(), "Documents"),
49240
+ join(homedir(), "Desktop"),
49241
+ join(homedir(), "Pictures"),
49242
+ join(homedir(), "Music"),
49243
+ join(homedir(), "Videos"),
49244
+ join(homedir(), "Saved Games"),
49245
+ join(homedir(), "Contacts"),
49246
+ join(homedir(), "Searches"),
49247
+ join(homedir(), "Links"),
49248
+ join(homedir(), "3D Objects"),
49249
+ ...additionalProtectedPaths
49250
+ ].map((p) => removeTrailingSlash((0, import_slash.default)(resolve(p))).toLowerCase()));
49251
+ //#endregion
49176
49252
  //#region ../../node_modules/is-plain-obj/index.js
49177
49253
  function isPlainObject(value) {
49178
49254
  if (typeof value !== "object" || value === null) return false;
@@ -49454,7 +49530,7 @@ const COMMON_ESCAPES = {
49454
49530
  const ASTRAL_START = 65535;
49455
49531
  const quoteString = (escapedArgument) => {
49456
49532
  if (NO_ESCAPE_REGEXP.test(escapedArgument)) return escapedArgument;
49457
- return platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
49533
+ return platform$1 === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
49458
49534
  };
49459
49535
  const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
49460
49536
  //#endregion
@@ -59563,13 +59639,13 @@ var require_opts_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59563
59639
  //#region ../../node_modules/mkdirp/lib/path-arg.js
59564
59640
  var require_path_arg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
59565
59641
  const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform;
59566
- const { resolve: resolve$12, parse: parse$2 } = __require("path");
59642
+ const { resolve: resolve$13, parse: parse$2 } = __require("path");
59567
59643
  const pathArg = (path) => {
59568
59644
  if (/\0/.test(path)) throw Object.assign(/* @__PURE__ */ new TypeError("path must be a string without null bytes"), {
59569
59645
  path,
59570
59646
  code: "ERR_INVALID_ARG_VALUE"
59571
59647
  });
59572
- path = resolve$12(path);
59648
+ path = resolve$13(path);
59573
59649
  if (platform === "win32") {
59574
59650
  const badWinChars = /[*|"<>?:]/;
59575
59651
  const { root } = parse$2(path);
@@ -62614,7 +62690,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62614
62690
  const fs$19 = __require("fs");
62615
62691
  const { EventEmitter: EventEmitter$1 } = __require("events");
62616
62692
  const { Minimatch } = require_minimatch$1();
62617
- const { resolve: resolve$11 } = __require("path");
62693
+ const { resolve: resolve$12 } = __require("path");
62618
62694
  function readdir(dir, strict) {
62619
62695
  return new Promise((resolve, reject) => {
62620
62696
  fs$19.readdir(dir, { withFileTypes: true }, (err, files) => {
@@ -62723,7 +62799,7 @@ var require_readdir_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62723
62799
  if (this.options.ignore) this.ignoreMatchers = (Array.isArray(this.options.ignore) ? this.options.ignore : [this.options.ignore]).map((ignore) => new Minimatch(ignore, { dot: true }));
62724
62800
  this.skipMatchers = [];
62725
62801
  if (this.options.skip) this.skipMatchers = (Array.isArray(this.options.skip) ? this.options.skip : [this.options.skip]).map((skip) => new Minimatch(skip, { dot: true }));
62726
- this.iterator = explore(resolve$11(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
62802
+ this.iterator = explore(resolve$12(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
62727
62803
  this.paused = false;
62728
62804
  this.inactive = false;
62729
62805
  this.aborted = false;
@@ -98037,7 +98113,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
98037
98113
  const isWindows = process.platform === "win32";
98038
98114
  const { URL: URL$6 } = __require("node:url");
98039
98115
  const path$17 = isWindows ? __require("node:path/win32") : __require("node:path");
98040
- const { homedir: homedir$1 } = __require("node:os");
98116
+ const { homedir: homedir$2 } = __require("node:os");
98041
98117
  const HostedGit = require_lib$28();
98042
98118
  const semver = require_semver$2();
98043
98119
  const validatePackageName = require_lib$23();
@@ -98242,7 +98318,7 @@ var require_npa = /* @__PURE__ */ __commonJSMin(((exports, module) => {
98242
98318
  }
98243
98319
  if (/^\/~(\/|$)/.test(specPath)) {
98244
98320
  res.saveSpec = `file:${specPath.substr(1)}`;
98245
- resolvedPath = path$17.resolve(homedir$1(), specPath.substr(3));
98321
+ resolvedPath = path$17.resolve(homedir$2(), specPath.substr(3));
98246
98322
  } else if (!path$17.isAbsolute(rawSpec.slice(5))) res.saveSpec = `file:${path$17.relative(where, resolvedPath)}`;
98247
98323
  else res.saveSpec = `file:${path$17.resolve(resolvedPath)}`;
98248
98324
  res.fetchSpec = path$17.resolve(where, resolvedPath);
@@ -99389,7 +99465,7 @@ var require_sort$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99389
99465
  //#region ../../node_modules/@npmcli/package-json/lib/index.js
99390
99466
  var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99391
99467
  const { readFile: readFile$5, writeFile: writeFile$3 } = __require("node:fs/promises");
99392
- const { resolve: resolve$10 } = __require("node:path");
99468
+ const { resolve: resolve$11 } = __require("node:path");
99393
99469
  const parseJSON = require_lib$30();
99394
99470
  const updateDeps = require_update_dependencies();
99395
99471
  const updateScripts = require_update_scripts();
@@ -99492,7 +99568,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99492
99568
  parseErr = err;
99493
99569
  }
99494
99570
  if (parseErr) {
99495
- const indexFile = resolve$10(this.path, "index.js");
99571
+ const indexFile = resolve$11(this.path, "index.js");
99496
99572
  let indexFileContent;
99497
99573
  try {
99498
99574
  indexFileContent = await readFile$5(indexFile, "utf8");
@@ -99537,7 +99613,7 @@ var require_lib$18 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
99537
99613
  return this.#path;
99538
99614
  }
99539
99615
  get filename() {
99540
- if (this.path) return resolve$10(this.path, "package.json");
99616
+ if (this.path) return resolve$11(this.path, "package.json");
99541
99617
  }
99542
99618
  create(path) {
99543
99619
  this.#path = path;
@@ -100660,7 +100736,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100660
100736
  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();
100661
100737
  const { constants: { errno: { EEXIST, EISDIR, EINVAL, ENOTDIR } } } = __require("os");
100662
100738
  const { chmod: chmod$2, copyFile, lstat: lstat$2, mkdir: mkdir$5, readdir: readdir$5, readlink, stat: stat$4, symlink, unlink, utimes } = __require("fs/promises");
100663
- const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$9, sep: sep$2, toNamespacedPath } = __require("path");
100739
+ const { dirname: dirname$6, isAbsolute: isAbsolute$1, join: join$6, parse, resolve: resolve$10, sep: sep$2, toNamespacedPath } = __require("path");
100664
100740
  const { fileURLToPath: fileURLToPath$1 } = __require("url");
100665
100741
  const defaultOptions = {
100666
100742
  dereference: false,
@@ -100747,8 +100823,8 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100747
100823
  );
100748
100824
  }
100749
100825
  async function checkParentPaths(src, srcStat, dest) {
100750
- const srcParent = resolve$9(dirname$6(src));
100751
- const destParent = resolve$9(dirname$6(dest));
100826
+ const srcParent = resolve$10(dirname$6(src));
100827
+ const destParent = resolve$10(dirname$6(dest));
100752
100828
  if (destParent === srcParent || destParent === parse(destParent).root) return;
100753
100829
  let destStat;
100754
100830
  try {
@@ -100767,7 +100843,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100767
100843
  });
100768
100844
  return checkParentPaths(src, srcStat, destParent);
100769
100845
  }
100770
- const normalizePathToArray = (path) => resolve$9(path).split(sep$2).filter(Boolean);
100846
+ const normalizePathToArray = (path) => resolve$10(path).split(sep$2).filter(Boolean);
100771
100847
  function isSrcSubdir(src, dest) {
100772
100848
  const srcArr = normalizePathToArray(src);
100773
100849
  const destArr = normalizePathToArray(dest);
@@ -100877,7 +100953,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100877
100953
  }
100878
100954
  async function onLink(destStat, src, dest) {
100879
100955
  let resolvedSrc = await readlink(src);
100880
- if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$9(dirname$6(src), resolvedSrc);
100956
+ if (!isAbsolute$1(resolvedSrc)) resolvedSrc = resolve$10(dirname$6(src), resolvedSrc);
100881
100957
  if (!destStat) return symlink(resolvedSrc, dest);
100882
100958
  let resolvedDest;
100883
100959
  try {
@@ -100888,7 +100964,7 @@ var require_polyfill = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100888
100964
  // istanbul ignore next: should not be possible
100889
100965
  throw err;
100890
100966
  }
100891
- if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$9(dirname$6(dest), resolvedDest);
100967
+ if (!isAbsolute$1(resolvedDest)) resolvedDest = resolve$10(dirname$6(dest), resolvedDest);
100892
100968
  if (isSrcSubdir(resolvedSrc, resolvedDest)) throw new ERR_FS_CP_EINVAL({
100893
100969
  message: `cannot copy ${resolvedSrc} to a subdirectory of self ${resolvedDest}`,
100894
100970
  path: dest,
@@ -100975,7 +101051,7 @@ var require_readdir_scoped = /* @__PURE__ */ __commonJSMin(((exports, module) =>
100975
101051
  //#endregion
100976
101052
  //#region ../../node_modules/cacache/node_modules/@npmcli/fs/lib/move-file.js
100977
101053
  var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
100978
- const { dirname: dirname$5, join: join$3, resolve: resolve$8, relative: relative$1, isAbsolute } = __require("path");
101054
+ const { dirname: dirname$5, join: join$3, resolve: resolve$9, relative: relative$1, isAbsolute } = __require("path");
100979
101055
  const fs$11 = __require("fs/promises");
100980
101056
  const pathExists = async (path) => {
100981
101057
  try {
@@ -101011,10 +101087,10 @@ var require_move_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
101011
101087
  if (root) {
101012
101088
  await Promise.all(symlinks.map(async ({ source: symSource, destination: symDestination }) => {
101013
101089
  let target = await fs$11.readlink(symSource);
101014
- if (isAbsolute(target)) target = resolve$8(symDestination, relative$1(symSource, target));
101090
+ if (isAbsolute(target)) target = resolve$9(symDestination, relative$1(symSource, target));
101015
101091
  let targetStat = "file";
101016
101092
  try {
101017
- targetStat = await fs$11.stat(resolve$8(dirname$5(symSource), target));
101093
+ targetStat = await fs$11.stat(resolve$9(dirname$5(symSource), target));
101018
101094
  if (targetStat.isDirectory()) targetStat = "junction";
101019
101095
  } catch {}
101020
101096
  await fs$11.symlink(target, symDestination, targetStat);
@@ -106831,7 +106907,7 @@ var require_lib$12 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106831
106907
  var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106832
106908
  const bundled = require_lib$12();
106833
106909
  const { readFile: readFile$2, readdir: readdir$2, stat: stat$2 } = __require("fs/promises");
106834
- const { resolve: resolve$7, basename: basename$4, dirname: dirname$4 } = __require("path");
106910
+ const { resolve: resolve$8, basename: basename$4, dirname: dirname$4 } = __require("path");
106835
106911
  const normalizePackageBin = require_lib$21();
106836
106912
  const readPackage = ({ path, packageJsonCache }) => packageJsonCache.has(path) ? Promise.resolve(packageJsonCache.get(path)) : readFile$2(path).then((json) => {
106837
106913
  const pkg = normalizePackageBin(JSON.parse(json));
@@ -106875,7 +106951,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106875
106951
  const nm = /^@.+/.test(scope) ? dirname$4(dir) : dir;
106876
106952
  const binFiles = [];
106877
106953
  Object.keys(pkg.bin).forEach((b) => {
106878
- const base = resolve$7(nm, ".bin", b);
106954
+ const base = resolve$8(nm, ".bin", b);
106879
106955
  binFiles.push(base, base + ".cmd", base + ".ps1");
106880
106956
  });
106881
106957
  (await Promise.all(binFiles.map((b) => stat$2(b).then(() => b).catch(() => null)))).filter((b) => b).forEach((b) => result.add(b));
@@ -106896,7 +106972,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106896
106972
  }
106897
106973
  const recursePromises = [];
106898
106974
  for (const entry of dirEntries) {
106899
- const p = resolve$7(path, entry.name);
106975
+ const p = resolve$8(path, entry.name);
106900
106976
  if (entry.isDirectory() === false) {
106901
106977
  result.add(p);
106902
106978
  continue;
@@ -106915,7 +106991,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106915
106991
  }
106916
106992
  if (bundleDeps) recursePromises.push(...bundleDeps.map((dep) => {
106917
106993
  return pkgContents({
106918
- path: resolve$7(path, "node_modules", dep),
106994
+ path: resolve$8(path, "node_modules", dep),
106919
106995
  packageJsonCache,
106920
106996
  pkg: true,
106921
106997
  depth,
@@ -106927,7 +107003,7 @@ var require_lib$11 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
106927
107003
  return result;
106928
107004
  };
106929
107005
  module.exports = ({ path, ...opts }) => pkgContents({
106930
- path: resolve$7(path),
107006
+ path: resolve$8(path),
106931
107007
  ...opts,
106932
107008
  pkg: true
106933
107009
  }).then((results) => [...results]);
@@ -110538,18 +110614,18 @@ var require_protected = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110538
110614
  //#endregion
110539
110615
  //#region ../../node_modules/pacote/lib/util/cache-dir.js
110540
110616
  var require_cache_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
110541
- const { resolve: resolve$6 } = __require("node:path");
110542
- const { tmpdir, homedir } = __require("node:os");
110617
+ const { resolve: resolve$7 } = __require("node:path");
110618
+ const { tmpdir, homedir: homedir$1 } = __require("node:os");
110543
110619
  module.exports = (fakePlatform = false) => {
110544
110620
  const temp = tmpdir();
110545
110621
  const uidOrPid = process.getuid ? process.getuid() : process.pid;
110546
- const home = homedir() || resolve$6(temp, "npm-" + uidOrPid);
110622
+ const home = homedir$1() || resolve$7(temp, "npm-" + uidOrPid);
110547
110623
  const platform = fakePlatform || process.platform;
110548
110624
  const cacheExtra = platform === "win32" ? "npm-cache" : ".npm";
110549
110625
  const cacheRoot = platform === "win32" && process.env.LOCALAPPDATA || home;
110550
110626
  return {
110551
- cacache: resolve$6(cacheRoot, cacheExtra, "_cacache"),
110552
- tufcache: resolve$6(cacheRoot, cacheExtra, "_tuf")
110627
+ cacache: resolve$7(cacheRoot, cacheExtra, "_cacache"),
110628
+ tufcache: resolve$7(cacheRoot, cacheExtra, "_tuf")
110553
110629
  };
110554
110630
  };
110555
110631
  }));
@@ -112363,7 +112439,7 @@ var require_lib$10 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112363
112439
  var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112364
112440
  const { Walker: IgnoreWalker } = require_lib$10();
112365
112441
  const { lstatSync: lstat$1, readFileSync: readFile$1 } = __require("fs");
112366
- const { basename: basename$3, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$5, sep } = __require("path");
112442
+ const { basename: basename$3, dirname: dirname$3, extname: extname$1, join: join$2, relative, resolve: resolve$6, sep } = __require("path");
112367
112443
  const { log } = require_lib$29();
112368
112444
  const defaultRules = Symbol("npm-packlist.rules.default");
112369
112445
  const strictRules = Symbol("npm-packlist.rules.strict");
@@ -112414,7 +112490,7 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112414
112490
  ...opts,
112415
112491
  includeEmpty: false,
112416
112492
  follow: false,
112417
- path: resolve$5(opts?.path || tree.path).replace(/\\/g, "/"),
112493
+ path: resolve$6(opts?.path || tree.path).replace(/\\/g, "/"),
112418
112494
  ignoreFiles: opts?.ignoreFiles || [
112419
112495
  defaultRules,
112420
112496
  "package.json",
@@ -112615,8 +112691,8 @@ var require_lib$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112615
112691
  var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112616
112692
  init_esm_shims();
112617
112693
  const { log } = require_lib$29();
112618
- const { resolve: resolve$4, dirname: dirname$2, delimiter: delimiter$1 } = __require("path");
112619
- const nodeGypPath = resolve$4(__dirname, "../lib/node-gyp-bin");
112694
+ const { resolve: resolve$5, dirname: dirname$2, delimiter: delimiter$1 } = __require("path");
112695
+ const nodeGypPath = resolve$5(__dirname, "../lib/node-gyp-bin");
112620
112696
  const setPATH = (projectPath, binPaths, env) => {
112621
112697
  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);
112622
112698
  const pathArr = [];
@@ -112631,7 +112707,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112631
112707
  let p = projectPath;
112632
112708
  let pp;
112633
112709
  do {
112634
- pathArr.push(resolve$4(p, "node_modules", ".bin"));
112710
+ pathArr.push(resolve$5(p, "node_modules", ".bin"));
112635
112711
  pp = p;
112636
112712
  p = dirname$2(p);
112637
112713
  } while (p !== pp);
@@ -112646,7 +112722,7 @@ var require_set_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112646
112722
  //#region ../../node_modules/@npmcli/run-script/lib/make-spawn-args.js
112647
112723
  var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112648
112724
  const setPATH = require_set_path();
112649
- const { resolve: resolve$3 } = __require("path");
112725
+ const { resolve: resolve$4 } = __require("path");
112650
112726
  let npm_config_node_gyp;
112651
112727
  const makeSpawnArgs = (options) => {
112652
112728
  const { args, binPaths, cmd, env, event, nodeGyp, path, scriptShell = true, stdio, stdioString } = options;
@@ -112660,7 +112736,7 @@ var require_make_spawn_args = /* @__PURE__ */ __commonJSMin(((exports, module) =
112660
112736
  env: setPATH(path, binPaths, {
112661
112737
  ...process.env,
112662
112738
  ...env,
112663
- npm_package_json: resolve$3(path, "package.json"),
112739
+ npm_package_json: resolve$4(path, "package.json"),
112664
112740
  npm_lifecycle_event: event,
112665
112741
  npm_lifecycle_script: cmd,
112666
112742
  npm_config_node_gyp
@@ -112748,10 +112824,10 @@ var require_signal_manager = /* @__PURE__ */ __commonJSMin(((exports, module) =>
112748
112824
  //#region ../../node_modules/@npmcli/run-script/lib/is-server-package.js
112749
112825
  var require_is_server_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112750
112826
  const { stat: stat$1 } = __require("node:fs/promises");
112751
- const { resolve: resolve$2 } = __require("node:path");
112827
+ const { resolve: resolve$3 } = __require("node:path");
112752
112828
  module.exports = async (path) => {
112753
112829
  try {
112754
- return (await stat$1(resolve$2(path, "server.js"))).isFile();
112830
+ return (await stat$1(resolve$3(path, "server.js"))).isFile();
112755
112831
  } catch (er) {
112756
112832
  return false;
112757
112833
  }
@@ -112861,7 +112937,7 @@ var require_run_script = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112861
112937
  //#endregion
112862
112938
  //#region ../../node_modules/pacote/lib/file.js
112863
112939
  var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112864
- const { resolve: resolve$1 } = __require("node:path");
112940
+ const { resolve: resolve$2 } = __require("node:path");
112865
112941
  const { stat, chmod: chmod$1 } = __require("node:fs/promises");
112866
112942
  const cacache = require_lib$14();
112867
112943
  const fsm = require_lib$13();
@@ -112887,7 +112963,7 @@ var require_file$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112887
112963
  #exeBins(pkg, dest) {
112888
112964
  if (!pkg.bin) return Promise.resolve();
112889
112965
  return Promise.all(Object.keys(pkg.bin).map(async (k) => {
112890
- const script = resolve$1(dest, pkg.bin[k]);
112966
+ const script = resolve$2(dest, pkg.bin[k]);
112891
112967
  try {
112892
112968
  const st = await stat(script);
112893
112969
  const mode = st.mode | 73;
@@ -112938,7 +113014,7 @@ var require_tar_create_options = /* @__PURE__ */ __commonJSMin(((exports, module
112938
113014
  //#endregion
112939
113015
  //#region ../../node_modules/pacote/lib/dir.js
112940
113016
  var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112941
- const { resolve } = __require("node:path");
113017
+ const { resolve: resolve$1 } = __require("node:path");
112942
113018
  const packlist = require_lib$9();
112943
113019
  const runScript = require_run_script();
112944
113020
  const tar = require_index_min();
@@ -112974,7 +113050,7 @@ var require_dir = /* @__PURE__ */ __commonJSMin(((exports, module) => {
112974
113050
  env: {
112975
113051
  npm_package_resolved: this.resolved,
112976
113052
  npm_package_integrity: this.integrity,
112977
- npm_package_json: resolve(this.resolved, "package.json")
113053
+ npm_package_json: resolve$1(this.resolved, "package.json")
112978
113054
  }
112979
113055
  });
112980
113056
  });