@ariestools/toolchain 8.7.29 → 9.0.1

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.
Files changed (232) hide show
  1. package/README.md +94 -0
  2. package/dist/actions/analyze.d.ts.map +1 -1
  3. package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
  4. package/dist/actions/build.d.ts.map +1 -1
  5. package/dist/actions/clean.d.ts.map +1 -1
  6. package/dist/actions/compile.d.ts +9 -3
  7. package/dist/actions/compile.d.ts.map +1 -1
  8. package/dist/actions/copy-assets.d.ts.map +1 -1
  9. package/dist/actions/dead/dead.d.ts.map +1 -1
  10. package/dist/actions/deplint/deplint.d.ts.map +1 -1
  11. package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
  12. package/dist/actions/deplint/editXyConfigPackages.d.ts +1 -1
  13. package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
  14. package/dist/actions/deplint/implicitDevDependencies.d.ts.map +1 -1
  15. package/dist/actions/deplint/packageEditor.d.ts.map +1 -1
  16. package/dist/actions/fix.d.ts.map +1 -1
  17. package/dist/actions/index.d.ts +1 -1
  18. package/dist/actions/index.d.ts.map +1 -1
  19. package/dist/actions/license.d.ts.map +1 -1
  20. package/dist/actions/lint-config.d.ts +1 -1
  21. package/dist/actions/lint-config.d.ts.map +1 -1
  22. package/dist/actions/lint.d.ts.map +1 -1
  23. package/dist/actions/lintNextWorker.d.ts.map +1 -1
  24. package/dist/actions/npmignore-gen.d.ts.map +1 -1
  25. package/dist/actions/package/clean-outputs.d.ts.map +1 -1
  26. package/dist/actions/package/clean-typescript.d.ts.map +1 -1
  27. package/dist/actions/package/clean.d.ts.map +1 -1
  28. package/dist/actions/package/cleanPlan.d.ts +1 -1
  29. package/dist/actions/package/cleanPlan.d.ts.map +1 -1
  30. package/dist/actions/package/cleanRules.d.ts +6 -6
  31. package/dist/actions/package/cleanRules.d.ts.map +1 -1
  32. package/dist/actions/package/compile/XyConfig.d.ts +21 -0
  33. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  34. package/dist/actions/package/compile/buildEntries.d.ts.map +1 -1
  35. package/dist/actions/package/compile/compile.d.ts.map +1 -1
  36. package/dist/actions/package/compile/createTypescriptConfig.d.ts.map +1 -1
  37. package/dist/actions/package/compile/entryOutputName.d.ts +1 -1
  38. package/dist/actions/package/compile/entryOutputName.d.ts.map +1 -1
  39. package/dist/actions/package/compile/getCompilerOptions.d.ts.map +1 -1
  40. package/dist/actions/package/compile/inputs.d.ts.map +1 -1
  41. package/dist/actions/package/compile/monolithCompileLayout.d.ts +1 -1
  42. package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
  43. package/dist/actions/package/compile/packageCompileEsbuild.d.ts +2 -2
  44. package/dist/actions/package/compile/packageCompileEsbuild.d.ts.map +1 -1
  45. package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
  46. package/dist/actions/package/compile/packageCompileTsc.d.ts +1 -1
  47. package/dist/actions/package/compile/packageCompileTsc.d.ts.map +1 -1
  48. package/dist/actions/package/compile/packageCompileTsup.d.ts.map +1 -1
  49. package/dist/actions/package/compile/packageCompileVendor.d.ts.map +1 -1
  50. package/dist/actions/package/compile/resolveCompilePlatforms.d.ts.map +1 -1
  51. package/dist/actions/package/compile/resolvePlatformTypes.d.ts.map +1 -1
  52. package/dist/actions/package/compile/resolveTscBin.d.ts +46 -0
  53. package/dist/actions/package/compile/resolveTscBin.d.ts.map +1 -0
  54. package/dist/actions/package/compile/runTsc.d.ts +14 -1
  55. package/dist/actions/package/compile/runTsc.d.ts.map +1 -1
  56. package/dist/actions/package/compile/validateFullPackage.d.ts +2 -1
  57. package/dist/actions/package/compile/validateFullPackage.d.ts.map +1 -1
  58. package/dist/actions/package/compile/vendorCompileInternals.d.ts.map +1 -1
  59. package/dist/actions/package/compile/vendorCompileTypes.d.ts +1 -1
  60. package/dist/actions/package/compile/vendorCompileTypes.d.ts.map +1 -1
  61. package/dist/actions/package/copy-assets.d.ts.map +1 -1
  62. package/dist/actions/package/lint.d.ts.map +1 -1
  63. package/dist/actions/package/publint.d.ts.map +1 -1
  64. package/dist/actions/package/recompile.d.ts.map +1 -1
  65. package/dist/actions/package-lint-pnpm.d.ts +8 -1
  66. package/dist/actions/package-lint-pnpm.d.ts.map +1 -1
  67. package/dist/actions/package-lint.d.ts +16 -1
  68. package/dist/actions/package-lint.d.ts.map +1 -1
  69. package/dist/actions/packman/lint.d.ts.map +1 -1
  70. package/dist/actions/publint.d.ts.map +1 -1
  71. package/dist/actions/publish.d.ts.map +1 -1
  72. package/dist/actions/rebuild.d.ts.map +1 -1
  73. package/dist/actions/recompile.d.ts.map +1 -1
  74. package/dist/actions/reinstall.d.ts.map +1 -1
  75. package/dist/actions/releaseAgeExcludeScopes.d.ts +1 -1
  76. package/dist/actions/releaseAgeExcludeScopes.d.ts.map +1 -1
  77. package/dist/actions/relint.d.ts.map +1 -1
  78. package/dist/actions/republint.d.ts.map +1 -1
  79. package/dist/actions/retest.d.ts.map +1 -1
  80. package/dist/actions/ruleCatalog.d.ts +4 -1
  81. package/dist/actions/ruleCatalog.d.ts.map +1 -1
  82. package/dist/actions/ruleRunner.d.ts +2 -1
  83. package/dist/actions/ruleRunner.d.ts.map +1 -1
  84. package/dist/actions/secure/dependabot.d.ts +22 -0
  85. package/dist/actions/secure/dependabot.d.ts.map +1 -0
  86. package/dist/actions/secure/dependabotRules.d.ts +9 -0
  87. package/dist/actions/secure/dependabotRules.d.ts.map +1 -0
  88. package/dist/actions/secure/deps.d.ts +18 -0
  89. package/dist/actions/secure/deps.d.ts.map +1 -0
  90. package/dist/actions/secure/index.d.ts +5 -0
  91. package/dist/actions/secure/index.d.ts.map +1 -0
  92. package/dist/actions/secure/secure.d.ts +16 -0
  93. package/dist/actions/secure/secure.d.ts.map +1 -0
  94. package/dist/actions/secure.d.ts.map +1 -1
  95. package/dist/actions/skills/defaults.d.ts +2 -2
  96. package/dist/actions/skills/defaults.d.ts.map +1 -1
  97. package/dist/actions/skills/detectProfile.d.ts.map +1 -1
  98. package/dist/actions/skills/installed.d.ts +1 -1
  99. package/dist/actions/skills/installed.d.ts.map +1 -1
  100. package/dist/actions/skills/lint.d.ts.map +1 -1
  101. package/dist/actions/skills/passthrough.d.ts.map +1 -1
  102. package/dist/actions/skills/skillRules.d.ts.map +1 -1
  103. package/dist/actions/skills/updo.d.ts.map +1 -1
  104. package/dist/actions/skills/versions.d.ts.map +1 -1
  105. package/dist/actions/test.d.ts.map +1 -1
  106. package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
  107. package/dist/actions/updo.d.ts.map +1 -1
  108. package/dist/actions/work/github.d.ts +5 -10
  109. package/dist/actions/work/github.d.ts.map +1 -1
  110. package/dist/actions/work/helpers.d.ts +1 -1
  111. package/dist/actions/work/helpers.d.ts.map +1 -1
  112. package/dist/actions/work/id.d.ts.map +1 -1
  113. package/dist/actions/work/index.d.ts.map +1 -1
  114. package/dist/actions/work/inline.d.ts.map +1 -1
  115. package/dist/actions/work/lifecycle.d.ts.map +1 -1
  116. package/dist/actions/work/lint.d.ts.map +1 -1
  117. package/dist/actions/work/list.d.ts.map +1 -1
  118. package/dist/actions/work/move.d.ts.map +1 -1
  119. package/dist/actions/work/priority.d.ts.map +1 -1
  120. package/dist/actions/work/queue.d.ts.map +1 -1
  121. package/dist/actions/work/render.d.ts.map +1 -1
  122. package/dist/actions/work/result.d.ts.map +1 -1
  123. package/dist/actions/work/schema.d.ts +3 -3
  124. package/dist/actions/work/schema.d.ts.map +1 -1
  125. package/dist/actions/work/store.d.ts.map +1 -1
  126. package/dist/actions/work/sync.d.ts.map +1 -1
  127. package/dist/actions/work/workspace.d.ts +1 -1
  128. package/dist/actions/work/workspace.d.ts.map +1 -1
  129. package/dist/bin/package/build.mjs +557 -437
  130. package/dist/bin/package/build.mjs.map +1 -1
  131. package/dist/bin/package/clean.mjs +36 -30
  132. package/dist/bin/package/clean.mjs.map +1 -1
  133. package/dist/bin/package/compile.mjs +141 -47
  134. package/dist/bin/package/compile.mjs.map +1 -1
  135. package/dist/bin/package/publint.mjs +395 -369
  136. package/dist/bin/package/publint.mjs.map +1 -1
  137. package/dist/bin/package/recompile.mjs +149 -49
  138. package/dist/bin/package/recompile.mjs.map +1 -1
  139. package/dist/bin/package/sync-layout.mjs +28 -28
  140. package/dist/bin/package/sync-layout.mjs.map +1 -1
  141. package/dist/bin/xy.mjs +1415 -739
  142. package/dist/bin/xy.mjs.map +1 -1
  143. package/dist/lib/aliasSpec.d.ts +28 -0
  144. package/dist/lib/aliasSpec.d.ts.map +1 -0
  145. package/dist/lib/checkResult.d.ts +1 -1
  146. package/dist/lib/checkResult.d.ts.map +1 -1
  147. package/dist/lib/createBuildConfig.d.ts +1 -1
  148. package/dist/lib/createBuildConfig.d.ts.map +1 -1
  149. package/dist/lib/defaultBuildConfig.d.ts.map +1 -1
  150. package/dist/lib/deleteGlob.d.ts.map +1 -1
  151. package/dist/lib/dependencies/DuplicateDetector.d.ts.map +1 -1
  152. package/dist/lib/dependencies/detectDuplicateDependencies.d.ts.map +1 -1
  153. package/dist/lib/file/fileLines.d.ts.map +1 -1
  154. package/dist/lib/file/tryReadFileSync.d.ts.map +1 -1
  155. package/dist/lib/generateIgnoreFiles.d.ts.map +1 -1
  156. package/dist/lib/github/index.d.ts +2 -0
  157. package/dist/lib/github/index.d.ts.map +1 -0
  158. package/dist/lib/github/runner.d.ts +25 -0
  159. package/dist/lib/github/runner.d.ts.map +1 -0
  160. package/dist/lib/index.d.ts +2 -0
  161. package/dist/lib/index.d.ts.map +1 -1
  162. package/dist/lib/jsonFormatters.d.ts.map +1 -1
  163. package/dist/lib/latestVersions.d.ts +5 -5
  164. package/dist/lib/latestVersions.d.ts.map +1 -1
  165. package/dist/lib/loadConfig.d.ts.map +1 -1
  166. package/dist/lib/parsedPackageJson.d.ts.map +1 -1
  167. package/dist/lib/processEx.d.ts.map +1 -1
  168. package/dist/lib/ruleCommandRegistry.d.ts +61 -46
  169. package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
  170. package/dist/lib/runSteps.d.ts.map +1 -1
  171. package/dist/lib/runStepsAsync.d.ts.map +1 -1
  172. package/dist/lib/runXy.d.ts.map +1 -1
  173. package/dist/lib/runXyWithWarning.d.ts.map +1 -1
  174. package/dist/lib/safeExit.d.ts.map +1 -1
  175. package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts +12 -0
  176. package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts.map +1 -0
  177. package/dist/lib/secure/dependabot/index.d.ts +6 -0
  178. package/dist/lib/secure/dependabot/index.d.ts.map +1 -0
  179. package/dist/lib/secure/dependabot/interfaces.d.ts +49 -0
  180. package/dist/lib/secure/dependabot/interfaces.d.ts.map +1 -0
  181. package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts +4 -0
  182. package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts.map +1 -0
  183. package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts +5 -0
  184. package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts.map +1 -0
  185. package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts +21 -0
  186. package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts.map +1 -0
  187. package/dist/lib/secure/index.d.ts +1 -0
  188. package/dist/lib/secure/index.d.ts.map +1 -1
  189. package/dist/lib/secure/renderSecurityAudit.d.ts +4 -0
  190. package/dist/lib/secure/renderSecurityAudit.d.ts.map +1 -1
  191. package/dist/lib/string/empty.d.ts.map +1 -1
  192. package/dist/lib/string/union.d.ts.map +1 -1
  193. package/dist/lib/updo/collectWorkspaceDeps.d.ts.map +1 -1
  194. package/dist/lib/updo/index.d.ts +1 -0
  195. package/dist/lib/updo/index.d.ts.map +1 -1
  196. package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
  197. package/dist/lib/updo/interfaces.d.ts +20 -0
  198. package/dist/lib/updo/interfaces.d.ts.map +1 -1
  199. package/dist/lib/updo/majorCeiling.d.ts +21 -0
  200. package/dist/lib/updo/majorCeiling.d.ts.map +1 -0
  201. package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
  202. package/dist/lib/updo/runUpdo.d.ts.map +1 -1
  203. package/dist/lib/withErrnoException.d.ts.map +1 -1
  204. package/dist/lib/withError.d.ts.map +1 -1
  205. package/dist/lib/yarn/isYarnVersionOrGreater.d.ts.map +1 -1
  206. package/dist/lib/yarn/workspace/yarnWorkspace.d.ts.map +1 -1
  207. package/dist/pm/bunPackageManager.d.ts +1 -1
  208. package/dist/pm/bunPackageManager.d.ts.map +1 -1
  209. package/dist/pm/npmPackageManager.d.ts +1 -1
  210. package/dist/pm/npmPackageManager.d.ts.map +1 -1
  211. package/dist/pm/pnpmPackageManager.d.ts +1 -1
  212. package/dist/pm/pnpmPackageManager.d.ts.map +1 -1
  213. package/dist/pm/yarnPackageManager.d.ts +1 -1
  214. package/dist/pm/yarnPackageManager.d.ts.map +1 -1
  215. package/dist/xy/build/index.d.ts.map +1 -1
  216. package/dist/xy/common/index.d.ts.map +1 -1
  217. package/dist/xy/common/secure/dependabotCommand.d.ts +3 -0
  218. package/dist/xy/common/secure/dependabotCommand.d.ts.map +1 -0
  219. package/dist/xy/common/secure/depsCommand.d.ts +3 -0
  220. package/dist/xy/common/secure/depsCommand.d.ts.map +1 -0
  221. package/dist/xy/common/secure/index.d.ts +5 -0
  222. package/dist/xy/common/secure/index.d.ts.map +1 -0
  223. package/dist/xy/common/work/options.d.ts.map +1 -1
  224. package/dist/xy/deploy/index.d.ts.map +1 -1
  225. package/dist/xy/install/cleanCommand.d.ts.map +1 -1
  226. package/dist/xy/install/index.d.ts.map +1 -1
  227. package/dist/xy/lint/index.d.ts.map +1 -1
  228. package/dist/xy/param.d.ts.map +1 -1
  229. package/dist/xy/react/index.d.ts.map +1 -1
  230. package/dist/xy/xy.d.ts +2 -2
  231. package/dist/xy/xy.d.ts.map +1 -1
  232. package/package.json +5 -4
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import Be, { builtinModules, createRequire } from "node:module";
3
- import process$1, { cwd } from "node:process";
3
+ import process$1, { cwd, execPath } from "node:process";
4
4
  import os from "node:os";
5
5
  import tty from "node:tty";
6
6
  import * as xi from "node:fs";
@@ -14,7 +14,7 @@ import Pe, { PassThrough } from "node:stream";
14
14
  import { StringDecoder } from "node:string_decoder";
15
15
  import Re from "path";
16
16
  import { spawn } from "node:child_process";
17
- import u from "node:readline";
17
+ import readline from "node:readline";
18
18
  import Ue from "os";
19
19
  import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
20
20
  import util from "node:util";
@@ -617,24 +617,24 @@ function ht(n, t, e) {
617
617
  return s;
618
618
  }
619
619
  function Bt(n, t = {}) {
620
- return new I$2(n, t).streamSync();
620
+ return new I$1(n, t).streamSync();
621
621
  }
622
622
  function Qe$1(n, t = {}) {
623
- return new I$2(n, t).stream();
623
+ return new I$1(n, t).stream();
624
624
  }
625
625
  function ts$1(n, t = {}) {
626
- return new I$2(n, t).walkSync();
626
+ return new I$1(n, t).walkSync();
627
627
  }
628
628
  async function Je$1(n, t = {}) {
629
- return new I$2(n, t).walk();
629
+ return new I$1(n, t).walk();
630
630
  }
631
631
  function Ut(n, t = {}) {
632
- return new I$2(n, t).iterateSync();
632
+ return new I$1(n, t).iterateSync();
633
633
  }
634
634
  function es(n, t = {}) {
635
- return new I$2(n, t).iterate();
635
+ return new I$1(n, t).iterate();
636
636
  }
637
- var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$3, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$2, Zs, ke$1, Qs, ti, ve$1, ei, D$1, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P$1, et, v$2, dt, st, C$2, F$1, T$1, Yt, Ft, k$1, x$2, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$2, gt, se$1, je$1, yt, j$1, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$3, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$2, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
637
+ var Gt, ce, ss, fe$1, ue$1, qt, de$1, pe$1, is, rs, ns, os$2, hs, as, ls, cs, fs$5, us, ds, at, Ss, lt, Es, we$1, ye$1, W, xs, be$1, vs, Ct, Cs, Ts, As, ks, Kt, Se$1, Ee$1, Q$1, tt, O$2, Rs, Os, Fs, Ds, Ms, Ns, _s, Ls, Ws, Ps, js, Is, zs, Bs, Us, $s, Gs, Hs, Ce$1, Te$1, Ae$1, xe$1, A$1, Vs, Ys, Xs, Js, N$1, Zs, ke$1, Qs, ti, ve$1, ei, D, si, Oe$1, Vt, Fe$1, At, Re$1, ii, q$1, De$1, Tt, ri, ft, Ne$1, oi, hi, ai, G, H$1, K$1, kt, ut, Rt, _e$1, Ot, Le$1, P, et, v$1, dt, st, C$1, F, T, Yt, Ft, k, x$2, Xt, Jt, We$1, Zt, B, Qt, Dt, pt, Y$1, M, mt, li, ci, fi, ui, Mt, te$1, di, pi, V, vi, wt, Ue$1, $e, Ri, Oi, L$1, Ge$1, He$1, U, qe$1, Ke$1, X$1, Ve$1, _$1, gt, se$1, je$1, yt, j, Nt, Lt, Ie$1, Fi, ie$1, ze$1, bt, Be$1, _t, Wt, ne$1, Ye$1, R$2, Pt, jt, It, it, rt, St, Xe$1, Di, Mi, Ni, nt, _i, ot, oe$1, he$1, ae$1, Et, Li, zt, xt, vt, Pi, I$1, le$1, ji, Ii, zi, Bi, Ui, Ze$1;
638
638
  var init_index_min = __esmMin((() => {
639
639
  Gt = (n, t, e) => {
640
640
  let s = n instanceof RegExp ? ce(n, e) : n, i = t instanceof RegExp ? ce(t, e) : t, r = s !== null && i != null && ss(s, i, e);
@@ -1038,7 +1038,7 @@ var init_index_min = __esmMin((() => {
1038
1038
  }
1039
1039
  };
1040
1040
  tt = (n, { windowsPathsNoEscape: t = !1, magicalBraces: e = !1 } = {}) => e ? t ? n.replace(/[?*()[\]{}]/g, "[$&]") : n.replace(/[?*()[\]\\{}]/g, "\\$&") : t ? n.replace(/[?*()[\]]/g, "[$&]") : n.replace(/[?*()[\]\\]/g, "\\$&");
1041
- O$3 = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D$1(t, e).match(n));
1041
+ O$2 = (n, t, e = {}) => (at(t), !e.nocomment && t.charAt(0) === "#" ? !1 : new D(t, e).match(n));
1042
1042
  Rs = /^\*+([^+@!?\*\[\(]*)$/;
1043
1043
  Os = (n) => (t) => !t.startsWith(".") && t.endsWith(n);
1044
1044
  Fs = (n) => (t) => t.endsWith(n);
@@ -1082,59 +1082,59 @@ var init_index_min = __esmMin((() => {
1082
1082
  win32: { sep: "\\" },
1083
1083
  posix: { sep: "/" }
1084
1084
  };
1085
- O$3.sep = Ae$1 === "win32" ? xe$1.win32.sep : xe$1.posix.sep;
1085
+ O$2.sep = Ae$1 === "win32" ? xe$1.win32.sep : xe$1.posix.sep;
1086
1086
  A$1 = Symbol("globstar **");
1087
- O$3.GLOBSTAR = A$1;
1087
+ O$2.GLOBSTAR = A$1;
1088
1088
  Vs = "[^/]*?";
1089
1089
  Ys = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
1090
1090
  Xs = "(?:(?!(?:\\/|^)\\.).)*?";
1091
- Js = (n, t = {}) => (e) => O$3(e, n, t);
1092
- O$3.filter = Js;
1093
- N$2 = (n, t = {}) => Object.assign({}, n, t);
1091
+ Js = (n, t = {}) => (e) => O$2(e, n, t);
1092
+ O$2.filter = Js;
1093
+ N$1 = (n, t = {}) => Object.assign({}, n, t);
1094
1094
  Zs = (n) => {
1095
- if (!n || typeof n != "object" || !Object.keys(n).length) return O$3;
1096
- let t = O$3;
1097
- return Object.assign((s, i, r = {}) => t(s, i, N$2(n, r)), {
1095
+ if (!n || typeof n != "object" || !Object.keys(n).length) return O$2;
1096
+ let t = O$2;
1097
+ return Object.assign((s, i, r = {}) => t(s, i, N$1(n, r)), {
1098
1098
  Minimatch: class extends t.Minimatch {
1099
1099
  constructor(i, r = {}) {
1100
- super(i, N$2(n, r));
1100
+ super(i, N$1(n, r));
1101
1101
  }
1102
1102
  static defaults(i) {
1103
- return t.defaults(N$2(n, i)).Minimatch;
1103
+ return t.defaults(N$1(n, i)).Minimatch;
1104
1104
  }
1105
1105
  },
1106
1106
  AST: class extends t.AST {
1107
1107
  constructor(i, r, o = {}) {
1108
- super(i, r, N$2(n, o));
1108
+ super(i, r, N$1(n, o));
1109
1109
  }
1110
1110
  static fromGlob(i, r = {}) {
1111
- return t.AST.fromGlob(i, N$2(n, r));
1111
+ return t.AST.fromGlob(i, N$1(n, r));
1112
1112
  }
1113
1113
  },
1114
- unescape: (s, i = {}) => t.unescape(s, N$2(n, i)),
1115
- escape: (s, i = {}) => t.escape(s, N$2(n, i)),
1116
- filter: (s, i = {}) => t.filter(s, N$2(n, i)),
1117
- defaults: (s) => t.defaults(N$2(n, s)),
1118
- makeRe: (s, i = {}) => t.makeRe(s, N$2(n, i)),
1119
- braceExpand: (s, i = {}) => t.braceExpand(s, N$2(n, i)),
1120
- match: (s, i, r = {}) => t.match(s, i, N$2(n, r)),
1114
+ unescape: (s, i = {}) => t.unescape(s, N$1(n, i)),
1115
+ escape: (s, i = {}) => t.escape(s, N$1(n, i)),
1116
+ filter: (s, i = {}) => t.filter(s, N$1(n, i)),
1117
+ defaults: (s) => t.defaults(N$1(n, s)),
1118
+ makeRe: (s, i = {}) => t.makeRe(s, N$1(n, i)),
1119
+ braceExpand: (s, i = {}) => t.braceExpand(s, N$1(n, i)),
1120
+ match: (s, i, r = {}) => t.match(s, i, N$1(n, r)),
1121
1121
  sep: t.sep,
1122
1122
  GLOBSTAR: A$1
1123
1123
  });
1124
1124
  };
1125
- O$3.defaults = Zs;
1125
+ O$2.defaults = Zs;
1126
1126
  ke$1 = (n, t = {}) => (at(n), t.nobrace || !/\{(?:(?!\{).)*\}/.test(n) ? [n] : ge$1(n, { max: t.braceExpandMax }));
1127
- O$3.braceExpand = ke$1;
1128
- Qs = (n, t = {}) => new D$1(n, t).makeRe();
1129
- O$3.makeRe = Qs;
1127
+ O$2.braceExpand = ke$1;
1128
+ Qs = (n, t = {}) => new D(n, t).makeRe();
1129
+ O$2.makeRe = Qs;
1130
1130
  ti = (n, t, e = {}) => {
1131
- let s = new D$1(t, e);
1131
+ let s = new D(t, e);
1132
1132
  return n = n.filter((i) => s.match(i)), s.options.nonull && !n.length && n.push(t), n;
1133
1133
  };
1134
- O$3.match = ti;
1134
+ O$2.match = ti;
1135
1135
  ve$1 = /[?*]|[+@!]\(.*?\)|\[|\]/;
1136
1136
  ei = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
1137
- D$1 = class {
1137
+ D = class {
1138
1138
  options;
1139
1139
  set;
1140
1140
  pattern;
@@ -1411,13 +1411,13 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1411
1411
  return s.flipNegate ? !1 : this.negate;
1412
1412
  }
1413
1413
  static defaults(t) {
1414
- return O$3.defaults(t).Minimatch;
1414
+ return O$2.defaults(t).Minimatch;
1415
1415
  }
1416
1416
  };
1417
- O$3.AST = Q$1;
1418
- O$3.Minimatch = D$1;
1419
- O$3.escape = tt;
1420
- O$3.unescape = W;
1417
+ O$2.AST = Q$1;
1418
+ O$2.Minimatch = D;
1419
+ O$2.escape = tt;
1420
+ O$2.unescape = W;
1421
1421
  si = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1422
1422
  Oe$1 = /* @__PURE__ */ new Set();
1423
1423
  Vt = typeof process == "object" && process ? process : {};
@@ -2038,17 +2038,17 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
2038
2038
  _e$1 = Symbol("read");
2039
2039
  Ot = Symbol("flush");
2040
2040
  Le$1 = Symbol("flushChunk");
2041
- P$1 = Symbol("encoding");
2041
+ P = Symbol("encoding");
2042
2042
  et = Symbol("decoder");
2043
- v$2 = Symbol("flowing");
2043
+ v$1 = Symbol("flowing");
2044
2044
  dt = Symbol("paused");
2045
2045
  st = Symbol("resume");
2046
- C$2 = Symbol("buffer");
2047
- F$1 = Symbol("pipes");
2048
- T$1 = Symbol("bufferLength");
2046
+ C$1 = Symbol("buffer");
2047
+ F = Symbol("pipes");
2048
+ T = Symbol("bufferLength");
2049
2049
  Yt = Symbol("bufferPush");
2050
2050
  Ft = Symbol("bufferShift");
2051
- k$1 = Symbol("objectMode");
2051
+ k = Symbol("objectMode");
2052
2052
  x$2 = Symbol("destroyed");
2053
2053
  Xt = Symbol("error");
2054
2054
  Jt = Symbol("emitData");
@@ -2092,12 +2092,12 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
2092
2092
  di = (n) => !!n.objectMode;
2093
2093
  pi = (n) => !n.objectMode && !!n.encoding && n.encoding !== "buffer";
2094
2094
  V = class extends EventEmitter {
2095
- [v$2] = !1;
2095
+ [v$1] = !1;
2096
2096
  [dt] = !1;
2097
- [F$1] = [];
2098
- [C$2] = [];
2099
- [k$1];
2100
- [P$1];
2097
+ [F] = [];
2098
+ [C$1] = [];
2099
+ [k];
2100
+ [P];
2101
2101
  [B];
2102
2102
  [et];
2103
2103
  [G] = !1;
@@ -2105,7 +2105,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
2105
2105
  [kt] = !1;
2106
2106
  [Rt] = !1;
2107
2107
  [ut] = null;
2108
- [T$1] = 0;
2108
+ [T] = 0;
2109
2109
  [x$2] = !1;
2110
2110
  [pt];
2111
2111
  [Dt] = !1;
@@ -2116,15 +2116,15 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
2116
2116
  constructor(...t) {
2117
2117
  let e = t[0] || {};
2118
2118
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
2119
- di(e) ? (this[k$1] = !0, this[P$1] = null) : pi(e) ? (this[P$1] = e.encoding, this[k$1] = !1) : (this[k$1] = !1, this[P$1] = null), this[B] = !!e.async, this[et] = this[P$1] ? new StringDecoder(this[P$1]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C$2] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F$1] });
2119
+ di(e) ? (this[k] = !0, this[P] = null) : pi(e) ? (this[P] = e.encoding, this[k] = !1) : (this[k] = !1, this[P] = null), this[B] = !!e.async, this[et] = this[P] ? new StringDecoder(this[P]) : null, e && e.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[C$1] }), e && e.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[F] });
2120
2120
  let { signal: s } = e;
2121
2121
  s && (this[pt] = s, s.aborted ? this[Qt]() : s.addEventListener("abort", () => this[Qt]()));
2122
2122
  }
2123
2123
  get bufferLength() {
2124
- return this[T$1];
2124
+ return this[T];
2125
2125
  }
2126
2126
  get encoding() {
2127
- return this[P$1];
2127
+ return this[P];
2128
2128
  }
2129
2129
  set encoding(t) {
2130
2130
  throw new Error("Encoding must be set at instantiation time");
@@ -2133,7 +2133,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
2133
2133
  throw new Error("Encoding must be set at instantiation time");
2134
2134
  }
2135
2135
  get objectMode() {
2136
- return this[k$1];
2136
+ return this[k];
2137
2137
  }
2138
2138
  set objectMode(t) {
2139
2139
  throw new Error("objectMode must be set at instantiation time");
@@ -2157,80 +2157,80 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
2157
2157
  if (this[x$2]) return this.emit("error", Object.assign(/* @__PURE__ */ new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), !0;
2158
2158
  typeof e == "function" && (s = e, e = "utf8"), e || (e = "utf8");
2159
2159
  let i = this[B] ? mt : li;
2160
- if (!this[k$1] && !Buffer.isBuffer(t)) {
2160
+ if (!this[k] && !Buffer.isBuffer(t)) {
2161
2161
  if (ui(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
2162
2162
  else if (fi(t)) t = Buffer.from(t);
2163
2163
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
2164
2164
  }
2165
- return this[k$1] ? (this[v$2] && this[T$1] !== 0 && this[Ot](!0), this[v$2] ? this.emit("data", t) : this[Yt](t), this[T$1] !== 0 && this.emit("readable"), s && i(s), this[v$2]) : t.length ? (typeof t == "string" && !(e === this[P$1] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P$1] && (t = this[et].write(t)), this[v$2] && this[T$1] !== 0 && this[Ot](!0), this[v$2] ? this.emit("data", t) : this[Yt](t), this[T$1] !== 0 && this.emit("readable"), s && i(s), this[v$2]) : (this[T$1] !== 0 && this.emit("readable"), s && i(s), this[v$2]);
2165
+ return this[k] ? (this[v$1] && this[T] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : t.length ? (typeof t == "string" && !(e === this[P] && !this[et]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[P] && (t = this[et].write(t)), this[v$1] && this[T] !== 0 && this[Ot](!0), this[v$1] ? this.emit("data", t) : this[Yt](t), this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]) : (this[T] !== 0 && this.emit("readable"), s && i(s), this[v$1]);
2166
2166
  }
2167
2167
  read(t) {
2168
2168
  if (this[x$2]) return null;
2169
- if (this[M] = !1, this[T$1] === 0 || t === 0 || t && t > this[T$1]) return this[H$1](), null;
2170
- this[k$1] && (t = null), this[C$2].length > 1 && !this[k$1] && (this[C$2] = [this[P$1] ? this[C$2].join("") : Buffer.concat(this[C$2], this[T$1])]);
2171
- let e = this[_e$1](t || null, this[C$2][0]);
2169
+ if (this[M] = !1, this[T] === 0 || t === 0 || t && t > this[T]) return this[H$1](), null;
2170
+ this[k] && (t = null), this[C$1].length > 1 && !this[k] && (this[C$1] = [this[P] ? this[C$1].join("") : Buffer.concat(this[C$1], this[T])]);
2171
+ let e = this[_e$1](t || null, this[C$1][0]);
2172
2172
  return this[H$1](), e;
2173
2173
  }
2174
2174
  [_e$1](t, e) {
2175
- if (this[k$1]) this[Ft]();
2175
+ if (this[k]) this[Ft]();
2176
2176
  else {
2177
2177
  let s = e;
2178
- t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$2][0] = s.slice(t), e = s.slice(0, t), this[T$1] -= t) : (this[C$2][0] = s.subarray(t), e = s.subarray(0, t), this[T$1] -= t);
2178
+ t === s.length || t === null ? this[Ft]() : typeof s == "string" ? (this[C$1][0] = s.slice(t), e = s.slice(0, t), this[T] -= t) : (this[C$1][0] = s.subarray(t), e = s.subarray(0, t), this[T] -= t);
2179
2179
  }
2180
- return this.emit("data", e), !this[C$2].length && !this[G] && this.emit("drain"), e;
2180
+ return this.emit("data", e), !this[C$1].length && !this[G] && this.emit("drain"), e;
2181
2181
  }
2182
2182
  end(t, e, s) {
2183
- return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v$2] || !this[dt]) && this[H$1](), this;
2183
+ return typeof t == "function" && (s = t, t = void 0), typeof e == "function" && (s = e, e = "utf8"), t !== void 0 && this.write(t, e), s && this.once("end", s), this[G] = !0, this.writable = !1, (this[v$1] || !this[dt]) && this[H$1](), this;
2184
2184
  }
2185
2185
  [st]() {
2186
- this[x$2] || (!this[Y$1] && !this[F$1].length && (this[M] = !0), this[dt] = !1, this[v$2] = !0, this.emit("resume"), this[C$2].length ? this[Ot]() : this[G] ? this[H$1]() : this.emit("drain"));
2186
+ this[x$2] || (!this[Y$1] && !this[F].length && (this[M] = !0), this[dt] = !1, this[v$1] = !0, this.emit("resume"), this[C$1].length ? this[Ot]() : this[G] ? this[H$1]() : this.emit("drain"));
2187
2187
  }
2188
2188
  resume() {
2189
2189
  return this[st]();
2190
2190
  }
2191
2191
  pause() {
2192
- this[v$2] = !1, this[dt] = !0, this[M] = !1;
2192
+ this[v$1] = !1, this[dt] = !0, this[M] = !1;
2193
2193
  }
2194
2194
  get destroyed() {
2195
2195
  return this[x$2];
2196
2196
  }
2197
2197
  get flowing() {
2198
- return this[v$2];
2198
+ return this[v$1];
2199
2199
  }
2200
2200
  get paused() {
2201
2201
  return this[dt];
2202
2202
  }
2203
2203
  [Yt](t) {
2204
- this[k$1] ? this[T$1] += 1 : this[T$1] += t.length, this[C$2].push(t);
2204
+ this[k] ? this[T] += 1 : this[T] += t.length, this[C$1].push(t);
2205
2205
  }
2206
2206
  [Ft]() {
2207
- return this[k$1] ? this[T$1] -= 1 : this[T$1] -= this[C$2][0].length, this[C$2].shift();
2207
+ return this[k] ? this[T] -= 1 : this[T] -= this[C$1][0].length, this[C$1].shift();
2208
2208
  }
2209
2209
  [Ot](t = !1) {
2210
2210
  do ;
2211
- while (this[Le$1](this[Ft]()) && this[C$2].length);
2212
- !t && !this[C$2].length && !this[G] && this.emit("drain");
2211
+ while (this[Le$1](this[Ft]()) && this[C$1].length);
2212
+ !t && !this[C$1].length && !this[G] && this.emit("drain");
2213
2213
  }
2214
2214
  [Le$1](t) {
2215
- return this.emit("data", t), this[v$2];
2215
+ return this.emit("data", t), this[v$1];
2216
2216
  }
2217
2217
  pipe(t, e) {
2218
2218
  if (this[x$2]) return t;
2219
2219
  this[M] = !1;
2220
2220
  let s = this[K$1];
2221
- return e = e || {}, t === Ne$1.stdout || t === Ne$1.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F$1].push(e.proxyErrors ? new te$1(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
2221
+ return e = e || {}, t === Ne$1.stdout || t === Ne$1.stderr ? e.end = !1 : e.end = e.end !== !1, e.proxyErrors = !!e.proxyErrors, s ? e.end && t.end() : (this[F].push(e.proxyErrors ? new te$1(this, t, e) : new Mt(this, t, e)), this[B] ? mt(() => this[st]()) : this[st]()), t;
2222
2222
  }
2223
2223
  unpipe(t) {
2224
- let e = this[F$1].find((s) => s.dest === t);
2225
- e && (this[F$1].length === 1 ? (this[v$2] && this[Y$1] === 0 && (this[v$2] = !1), this[F$1] = []) : this[F$1].splice(this[F$1].indexOf(e), 1), e.unpipe());
2224
+ let e = this[F].find((s) => s.dest === t);
2225
+ e && (this[F].length === 1 ? (this[v$1] && this[Y$1] === 0 && (this[v$1] = !1), this[F] = []) : this[F].splice(this[F].indexOf(e), 1), e.unpipe());
2226
2226
  }
2227
2227
  addListener(t, e) {
2228
2228
  return this.on(t, e);
2229
2229
  }
2230
2230
  on(t, e) {
2231
2231
  let s = super.on(t, e);
2232
- if (t === "data") this[M] = !1, this[Y$1]++, !this[F$1].length && !this[v$2] && this[st]();
2233
- else if (t === "readable" && this[T$1] !== 0) super.emit("readable");
2232
+ if (t === "data") this[M] = !1, this[Y$1]++, !this[F].length && !this[v$1] && this[st]();
2233
+ else if (t === "readable" && this[T] !== 0) super.emit("readable");
2234
2234
  else if (ci(t) && this[K$1]) super.emit(t), this.removeAllListeners(t);
2235
2235
  else if (t === "error" && this[ut]) {
2236
2236
  let i = e;
@@ -2243,22 +2243,22 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2243
2243
  }
2244
2244
  off(t, e) {
2245
2245
  let s = super.off(t, e);
2246
- return t === "data" && (this[Y$1] = this.listeners("data").length, this[Y$1] === 0 && !this[M] && !this[F$1].length && (this[v$2] = !1)), s;
2246
+ return t === "data" && (this[Y$1] = this.listeners("data").length, this[Y$1] === 0 && !this[M] && !this[F].length && (this[v$1] = !1)), s;
2247
2247
  }
2248
2248
  removeAllListeners(t) {
2249
2249
  let e = super.removeAllListeners(t);
2250
- return (t === "data" || t === void 0) && (this[Y$1] = 0, !this[M] && !this[F$1].length && (this[v$2] = !1)), e;
2250
+ return (t === "data" || t === void 0) && (this[Y$1] = 0, !this[M] && !this[F].length && (this[v$1] = !1)), e;
2251
2251
  }
2252
2252
  get emittedEnd() {
2253
2253
  return this[K$1];
2254
2254
  }
2255
2255
  [H$1]() {
2256
- !this[kt] && !this[K$1] && !this[x$2] && this[C$2].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
2256
+ !this[kt] && !this[K$1] && !this[x$2] && this[C$1].length === 0 && this[G] && (this[kt] = !0, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Rt] && this.emit("close"), this[kt] = !1);
2257
2257
  }
2258
2258
  emit(t, ...e) {
2259
2259
  let s = e[0];
2260
2260
  if (t !== "error" && t !== "close" && t !== x$2 && this[x$2]) return !1;
2261
- if (t === "data") return !this[k$1] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
2261
+ if (t === "data") return !this[k] && !s ? !1 : this[B] ? (mt(() => this[Jt](s)), !0) : this[Jt](s);
2262
2262
  if (t === "end") return this[We$1]();
2263
2263
  if (t === "close") {
2264
2264
  if (this[Rt] = !0, !this[K$1] && !this[x$2]) return !1;
@@ -2279,7 +2279,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2279
2279
  return this[H$1](), i;
2280
2280
  }
2281
2281
  [Jt](t) {
2282
- for (let s of this[F$1]) s.dest.write(t) === !1 && this.pause();
2282
+ for (let s of this[F]) s.dest.write(t) === !1 && this.pause();
2283
2283
  let e = this[M] ? !1 : super.emit("data", t);
2284
2284
  return this[H$1](), e;
2285
2285
  }
@@ -2290,26 +2290,26 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2290
2290
  if (this[et]) {
2291
2291
  let e = this[et].end();
2292
2292
  if (e) {
2293
- for (let s of this[F$1]) s.dest.write(e);
2293
+ for (let s of this[F]) s.dest.write(e);
2294
2294
  this[M] || super.emit("data", e);
2295
2295
  }
2296
2296
  }
2297
- for (let e of this[F$1]) e.end();
2297
+ for (let e of this[F]) e.end();
2298
2298
  let t = super.emit("end");
2299
2299
  return this.removeAllListeners("end"), t;
2300
2300
  }
2301
2301
  async collect() {
2302
2302
  let t = Object.assign([], { dataLength: 0 });
2303
- this[k$1] || (t.dataLength = 0);
2303
+ this[k] || (t.dataLength = 0);
2304
2304
  let e = this.promise();
2305
2305
  return this.on("data", (s) => {
2306
- t.push(s), this[k$1] || (t.dataLength += s.length);
2306
+ t.push(s), this[k] || (t.dataLength += s.length);
2307
2307
  }), await e, t;
2308
2308
  }
2309
2309
  async concat() {
2310
- if (this[k$1]) throw new Error("cannot concat in objectMode");
2310
+ if (this[k]) throw new Error("cannot concat in objectMode");
2311
2311
  let t = await this.collect();
2312
- return this[P$1] ? t.join("") : Buffer.concat(t, t.dataLength);
2312
+ return this[P] ? t.join("") : Buffer.concat(t, t.dataLength);
2313
2313
  }
2314
2314
  async promise() {
2315
2315
  return new Promise((t, e) => {
@@ -2381,7 +2381,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2381
2381
  }
2382
2382
  destroy(t) {
2383
2383
  if (this[x$2]) return t ? this.emit("error", t) : this.emit(x$2), this;
2384
- this[x$2] = !0, this[M] = !0, this[C$2].length = 0, this[T$1] = 0;
2384
+ this[x$2] = !0, this[M] = !0, this[C$1].length = 0, this[T] = 0;
2385
2385
  let e = this;
2386
2386
  return typeof e.close == "function" && !this[Rt] && e.close(), t ? this.emit("error", t) : this.emit(x$2), this;
2387
2387
  }
@@ -2422,15 +2422,15 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2422
2422
  Ke$1 = 8;
2423
2423
  X$1 = 10;
2424
2424
  Ve$1 = 12;
2425
- _$2 = 15;
2426
- gt = ~_$2;
2425
+ _$1 = 15;
2426
+ gt = ~_$1;
2427
2427
  se$1 = 16;
2428
2428
  je$1 = 32;
2429
2429
  yt = 64;
2430
- j$1 = 128;
2430
+ j = 128;
2431
2431
  Nt = 256;
2432
2432
  Lt = 512;
2433
- Ie$1 = yt | j$1 | Lt;
2433
+ Ie$1 = yt | j | Lt;
2434
2434
  Fi = 1023;
2435
2435
  ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
2436
2436
  ze$1 = new ft({ max: 4096 });
@@ -2461,7 +2461,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2461
2461
  }
2462
2462
  };
2463
2463
  Ye$1 = Symbol("PathScurry setAsCwd");
2464
- R$3 = class {
2464
+ R$2 = class {
2465
2465
  name;
2466
2466
  root;
2467
2467
  roots;
@@ -2592,7 +2592,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2592
2592
  parent: this,
2593
2593
  fullpath: o
2594
2594
  });
2595
- return this.canReaddir() || (h.#e |= j$1), s.push(h), h;
2595
+ return this.canReaddir() || (h.#e |= j), s.push(h), h;
2596
2596
  }
2597
2597
  relative() {
2598
2598
  if (this.isCWD) return "";
@@ -2629,7 +2629,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2629
2629
  return this.#y = s;
2630
2630
  }
2631
2631
  isUnknown() {
2632
- return (this.#e & _$2) === L$1;
2632
+ return (this.#e & _$1) === L$1;
2633
2633
  }
2634
2634
  isType(t) {
2635
2635
  return this[`is${t}`]();
@@ -2638,22 +2638,22 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2638
2638
  return this.isUnknown() ? "Unknown" : this.isDirectory() ? "Directory" : this.isFile() ? "File" : this.isSymbolicLink() ? "SymbolicLink" : this.isFIFO() ? "FIFO" : this.isCharacterDevice() ? "CharacterDevice" : this.isBlockDevice() ? "BlockDevice" : this.isSocket() ? "Socket" : "Unknown";
2639
2639
  }
2640
2640
  isFile() {
2641
- return (this.#e & _$2) === Ke$1;
2641
+ return (this.#e & _$1) === Ke$1;
2642
2642
  }
2643
2643
  isDirectory() {
2644
- return (this.#e & _$2) === U;
2644
+ return (this.#e & _$1) === U;
2645
2645
  }
2646
2646
  isCharacterDevice() {
2647
- return (this.#e & _$2) === He$1;
2647
+ return (this.#e & _$1) === He$1;
2648
2648
  }
2649
2649
  isBlockDevice() {
2650
- return (this.#e & _$2) === qe$1;
2650
+ return (this.#e & _$1) === qe$1;
2651
2651
  }
2652
2652
  isFIFO() {
2653
- return (this.#e & _$2) === Ge$1;
2653
+ return (this.#e & _$1) === Ge$1;
2654
2654
  }
2655
2655
  isSocket() {
2656
- return (this.#e & _$2) === Ve$1;
2656
+ return (this.#e & _$1) === Ve$1;
2657
2657
  }
2658
2658
  isSymbolicLink() {
2659
2659
  return (this.#e & X$1) === X$1;
@@ -2674,14 +2674,14 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2674
2674
  canReadlink() {
2675
2675
  if (this.#M) return !0;
2676
2676
  if (!this.parent) return !1;
2677
- let t = this.#e & _$2;
2678
- return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j$1);
2677
+ let t = this.#e & _$1;
2678
+ return !(t !== L$1 && t !== X$1 || this.#e & Nt || this.#e & j);
2679
2679
  }
2680
2680
  calledReaddir() {
2681
2681
  return !!(this.#e & se$1);
2682
2682
  }
2683
2683
  isENOENT() {
2684
- return !!(this.#e & j$1);
2684
+ return !!(this.#e & j);
2685
2685
  }
2686
2686
  isNamed(t) {
2687
2687
  return this.nocase ? this.#C === _t(t) : this.#C === bt(t);
@@ -2716,7 +2716,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2716
2716
  }
2717
2717
  }
2718
2718
  #v() {
2719
- this.#e & j$1 || (this.#e = (this.#e | j$1) & gt, this.#G());
2719
+ this.#e & j || (this.#e = (this.#e | j) & gt, this.#G());
2720
2720
  }
2721
2721
  #G() {
2722
2722
  let t = this.children();
@@ -2729,7 +2729,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2729
2729
  #L() {
2730
2730
  if (this.#e & yt) return;
2731
2731
  let t = this.#e;
2732
- (t & _$2) === U && (t &= gt), this.#e = t | yt, this.#G();
2732
+ (t & _$1) === U && (t &= gt), this.#e = t | yt, this.#G();
2733
2733
  }
2734
2734
  #I(t = "") {
2735
2735
  t === "ENOTDIR" || t === "EPERM" ? this.#L() : t === "ENOENT" ? this.#v() : this.children().provisional = 0;
@@ -2739,13 +2739,13 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2739
2739
  }
2740
2740
  #D(t = "") {
2741
2741
  let e = this.#e;
2742
- e |= Nt, t === "ENOENT" && (e |= j$1), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
2742
+ e |= Nt, t === "ENOENT" && (e |= j), (t === "EINVAL" || t === "UNKNOWN") && (e &= gt), this.#e = e, t === "ENOTDIR" && this.parent && this.parent.#L();
2743
2743
  }
2744
2744
  #z(t, e) {
2745
2745
  return this.#U(t, e) || this.#B(t, e);
2746
2746
  }
2747
2747
  #B(t, e) {
2748
- let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$2;
2748
+ let s = ie$1(t), i = this.newChild(t.name, s, { parent: this }), r = i.#e & _$1;
2749
2749
  return r !== U && r !== X$1 && r !== L$1 && (i.#e |= yt), e.unshift(i), e.provisional++, i;
2750
2750
  }
2751
2751
  #U(t, e) {
@@ -2759,14 +2759,14 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2759
2759
  return e.#e = e.#e & gt | ie$1(t), r !== t.name && (e.name = t.name), s !== i.provisional && (s === i.length - 1 ? i.pop() : i.splice(s, 1), i.unshift(e)), i.provisional++, e;
2760
2760
  }
2761
2761
  async lstat() {
2762
- if ((this.#e & j$1) === 0) try {
2762
+ if ((this.#e & j) === 0) try {
2763
2763
  return this.#$(await this.#t.promises.lstat(this.fullpath())), this;
2764
2764
  } catch (t) {
2765
2765
  this.#F(t.code);
2766
2766
  }
2767
2767
  }
2768
2768
  lstatSync() {
2769
- if ((this.#e & j$1) === 0) try {
2769
+ if ((this.#e & j) === 0) try {
2770
2770
  return this.#$(this.#t.lstatSync(this.fullpath())), this;
2771
2771
  } catch (t) {
2772
2772
  this.#F(t.code);
@@ -2843,7 +2843,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2843
2843
  }
2844
2844
  canReaddir() {
2845
2845
  if (this.#e & Ie$1) return !1;
2846
- let t = _$2 & this.#e;
2846
+ let t = _$1 & this.#e;
2847
2847
  return t === L$1 || t === U || t === X$1;
2848
2848
  }
2849
2849
  shouldWalk(t, e) {
@@ -2851,7 +2851,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2851
2851
  }
2852
2852
  async realpath() {
2853
2853
  if (this.#k) return this.#k;
2854
- if (!((Lt | Nt | j$1) & this.#e)) try {
2854
+ if (!((Lt | Nt | j) & this.#e)) try {
2855
2855
  let t = await this.#t.promises.realpath(this.fullpath());
2856
2856
  return this.#k = this.resolve(t);
2857
2857
  } catch {
@@ -2860,7 +2860,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2860
2860
  }
2861
2861
  realpathSync() {
2862
2862
  if (this.#k) return this.#k;
2863
- if (!((Lt | Nt | j$1) & this.#e)) try {
2863
+ if (!((Lt | Nt | j) & this.#e)) try {
2864
2864
  let t = this.#t.realpathSync(this.fullpath());
2865
2865
  return this.#k = this.resolve(t);
2866
2866
  } catch {
@@ -2875,7 +2875,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2875
2875
  for (i = t; i && i.parent && !e.has(i);) i.#x = void 0, i.#A = void 0, i = i.parent;
2876
2876
  }
2877
2877
  };
2878
- Pt = class n extends R$3 {
2878
+ Pt = class n extends R$2 {
2879
2879
  sep = "\\";
2880
2880
  splitSep = Oi;
2881
2881
  constructor(t, e = L$1, s, i, r, o, h) {
@@ -2896,7 +2896,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2896
2896
  return t = t.toUpperCase().replace(/\//g, "\\").replace($e, "$1\\"), t === e;
2897
2897
  }
2898
2898
  };
2899
- jt = class n extends R$3 {
2899
+ jt = class n extends R$2 {
2900
2900
  splitSep = "/";
2901
2901
  sep = "/";
2902
2902
  constructor(t, e = L$1, s, i, r, o, h) {
@@ -2981,7 +2981,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2981
2981
  return typeof t == "string" && (t = this.cwd.resolve(t)), (t.parent || t).fullpath();
2982
2982
  }
2983
2983
  async readdir(t = this.cwd, e = { withFileTypes: !0 }) {
2984
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
2984
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
2985
2985
  let { withFileTypes: s } = e;
2986
2986
  if (t.canReaddir()) {
2987
2987
  let i = await t.readdir();
@@ -2989,7 +2989,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
2989
2989
  } else return [];
2990
2990
  }
2991
2991
  readdirSync(t = this.cwd, e = { withFileTypes: !0 }) {
2992
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
2992
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
2993
2993
  let { withFileTypes: s = !0 } = e;
2994
2994
  return t.canReaddir() ? s ? t.readdirSync() : t.readdirSync().map((i) => i.name) : [];
2995
2995
  }
@@ -3000,27 +3000,27 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3000
3000
  return typeof t == "string" && (t = this.cwd.resolve(t)), t.lstatSync();
3001
3001
  }
3002
3002
  async readlink(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
3003
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t.withFileTypes, t = this.cwd);
3003
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
3004
3004
  let s = await t.readlink();
3005
3005
  return e ? s : s?.fullpath();
3006
3006
  }
3007
3007
  readlinkSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
3008
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t.withFileTypes, t = this.cwd);
3008
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
3009
3009
  let s = t.readlinkSync();
3010
3010
  return e ? s : s?.fullpath();
3011
3011
  }
3012
3012
  async realpath(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
3013
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t.withFileTypes, t = this.cwd);
3013
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
3014
3014
  let s = await t.realpath();
3015
3015
  return e ? s : s?.fullpath();
3016
3016
  }
3017
3017
  realpathSync(t = this.cwd, { withFileTypes: e } = { withFileTypes: !1 }) {
3018
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t.withFileTypes, t = this.cwd);
3018
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t.withFileTypes, t = this.cwd);
3019
3019
  let s = t.realpathSync();
3020
3020
  return e ? s : s?.fullpath();
3021
3021
  }
3022
3022
  async walk(t = this.cwd, e = {}) {
3023
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
3023
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
3024
3024
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
3025
3025
  (!r || r(t)) && h.push(s ? t : t.fullpath());
3026
3026
  let a = /* @__PURE__ */ new Set(), l = (c, d) => {
@@ -3042,7 +3042,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3042
3042
  });
3043
3043
  }
3044
3044
  walkSync(t = this.cwd, e = {}) {
3045
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
3045
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
3046
3046
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = [];
3047
3047
  (!r || r(t)) && h.push(s ? t : t.fullpath());
3048
3048
  let a = /* @__PURE__ */ new Set([t]);
@@ -3064,13 +3064,13 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3064
3064
  return this.iterate();
3065
3065
  }
3066
3066
  iterate(t = this.cwd, e = {}) {
3067
- return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
3067
+ return typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd), this.stream(t, e)[Symbol.asyncIterator]();
3068
3068
  }
3069
3069
  [Symbol.iterator]() {
3070
3070
  return this.iterateSync();
3071
3071
  }
3072
3072
  *iterateSync(t = this.cwd, e = {}) {
3073
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
3073
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
3074
3074
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e;
3075
3075
  (!r || r(t)) && (yield s ? t : t.fullpath());
3076
3076
  let h = /* @__PURE__ */ new Set([t]);
@@ -3088,7 +3088,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3088
3088
  }
3089
3089
  }
3090
3090
  stream(t = this.cwd, e = {}) {
3091
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
3091
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
3092
3092
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 });
3093
3093
  (!r || r(t)) && h.write(s ? t : t.fullpath());
3094
3094
  let a = /* @__PURE__ */ new Set(), l = [t], u = 0, c = () => {
@@ -3124,7 +3124,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3124
3124
  return c(), h;
3125
3125
  }
3126
3126
  streamSync(t = this.cwd, e = {}) {
3127
- typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$3 || (e = t, t = this.cwd);
3127
+ typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R$2 || (e = t, t = this.cwd);
3128
3128
  let { withFileTypes: s = !0, follow: i = !1, filter: r, walkFilter: o } = e, h = new V({ objectMode: !0 }), a = /* @__PURE__ */ new Set();
3129
3129
  (!r || r(t)) && h.write(s ? t : t.fullpath());
3130
3130
  let l = [t], u = 0, c = () => {
@@ -3323,12 +3323,12 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3323
3323
  for (let h of t) this.add(h);
3324
3324
  }
3325
3325
  add(t) {
3326
- let e = new D$1(t, this.mmopts);
3326
+ let e = new D(t, this.mmopts);
3327
3327
  for (let s = 0; s < e.set.length; s++) {
3328
3328
  let i = e.set[s], r = e.globParts[s];
3329
3329
  if (!i || !r) throw new Error("invalid pattern object");
3330
3330
  for (; i[0] === "." && r[0] === ".";) i.shift(), r.shift();
3331
- let o = new nt(i, r, 0, this.platform), h = new D$1(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
3331
+ let o = new nt(i, r, 0, this.platform), h = new D(o.globString(), this.mmopts), a = r[r.length - 1] === "**", l = o.isAbsolute();
3332
3332
  l ? this.absolute.push(h) : this.relative.push(h), a && (l ? this.absoluteChildren.push(h) : this.relativeChildren.push(h));
3333
3333
  }
3334
3334
  }
@@ -3677,7 +3677,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3677
3677
  }
3678
3678
  };
3679
3679
  Pi = typeof process == "object" && process && typeof process.platform == "string" ? process.platform : "linux";
3680
- I$2 = class {
3680
+ I$1 = class {
3681
3681
  absolute;
3682
3682
  cwd;
3683
3683
  root;
@@ -3740,7 +3740,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3740
3740
  platform: this.platform,
3741
3741
  windowsPathsNoEscape: this.windowsPathsNoEscape,
3742
3742
  debug: !!this.opts.debug
3743
- }, [o, h] = this.pattern.map((a) => new D$1(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
3743
+ }, [o, h] = this.pattern.map((a) => new D(a, i)).reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
3744
3744
  this.patterns = o.map((a, l) => {
3745
3745
  let u = h[l];
3746
3746
  if (!u) throw new Error("invalid pattern object");
@@ -3798,7 +3798,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3798
3798
  };
3799
3799
  le$1 = (n, t = {}) => {
3800
3800
  Array.isArray(n) || (n = [n]);
3801
- for (let e of n) if (new D$1(e, t).hasMagic()) return !0;
3801
+ for (let e of n) if (new D(e, t).hasMagic()) return !0;
3802
3802
  return !1;
3803
3803
  };
3804
3804
  ji = Bt;
@@ -3821,7 +3821,7 @@ while (this[Le$1](this[Ft]()) && this[C$2].length);
3821
3821
  iterate: Bi,
3822
3822
  globIterateSync: Ut,
3823
3823
  iterateSync: zi,
3824
- Glob: I$2,
3824
+ Glob: I$1,
3825
3825
  hasMagic: le$1,
3826
3826
  escape: tt,
3827
3827
  unescape: W
@@ -5203,7 +5203,7 @@ function INIT_CWD() {
5203
5203
  return process.env.INIT_CWD ?? process.cwd();
5204
5204
  }
5205
5205
  //#endregion
5206
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/common.js
5206
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/common.js
5207
5207
  var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5208
5208
  function isNothing(subject) {
5209
5209
  return typeof subject === "undefined" || subject === null;
@@ -5242,7 +5242,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5242
5242
  module.exports.extend = extend;
5243
5243
  }));
5244
5244
  //#endregion
5245
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/exception.js
5245
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/exception.js
5246
5246
  var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5247
5247
  function formatError(exception, compact) {
5248
5248
  let where = "";
@@ -5270,7 +5270,7 @@ var require_exception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5270
5270
  module.exports = YAMLException;
5271
5271
  }));
5272
5272
  //#endregion
5273
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/snippet.js
5273
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/snippet.js
5274
5274
  var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5275
5275
  const common = require_common();
5276
5276
  function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
@@ -5332,7 +5332,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5332
5332
  module.exports = makeSnippet;
5333
5333
  }));
5334
5334
  //#endregion
5335
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type.js
5335
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type.js
5336
5336
  var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5337
5337
  const YAMLException = require_exception();
5338
5338
  const TYPE_CONSTRUCTOR_OPTIONS = [
@@ -5387,7 +5387,7 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5387
5387
  module.exports = Type;
5388
5388
  }));
5389
5389
  //#endregion
5390
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema.js
5390
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema.js
5391
5391
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5392
5392
  const YAMLException = require_exception();
5393
5393
  const Type = require_type();
@@ -5455,7 +5455,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5455
5455
  module.exports = Schema;
5456
5456
  }));
5457
5457
  //#endregion
5458
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/str.js
5458
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/str.js
5459
5459
  var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5460
5460
  module.exports = new (require_type())("tag:yaml.org,2002:str", {
5461
5461
  kind: "scalar",
@@ -5465,7 +5465,7 @@ var require_str = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5465
5465
  });
5466
5466
  }));
5467
5467
  //#endregion
5468
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/seq.js
5468
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/seq.js
5469
5469
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5470
5470
  module.exports = new (require_type())("tag:yaml.org,2002:seq", {
5471
5471
  kind: "sequence",
@@ -5475,7 +5475,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5475
5475
  });
5476
5476
  }));
5477
5477
  //#endregion
5478
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/map.js
5478
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/map.js
5479
5479
  var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5480
5480
  module.exports = new (require_type())("tag:yaml.org,2002:map", {
5481
5481
  kind: "mapping",
@@ -5485,7 +5485,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5485
5485
  });
5486
5486
  }));
5487
5487
  //#endregion
5488
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/failsafe.js
5488
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/failsafe.js
5489
5489
  var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5490
5490
  module.exports = new (require_schema())({ explicit: [
5491
5491
  require_str(),
@@ -5494,7 +5494,7 @@ var require_failsafe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5494
5494
  ] });
5495
5495
  }));
5496
5496
  //#endregion
5497
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/null.js
5497
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/null.js
5498
5498
  var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5499
5499
  const Type = require_type();
5500
5500
  function resolveYamlNull(data) {
@@ -5534,7 +5534,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5534
5534
  });
5535
5535
  }));
5536
5536
  //#endregion
5537
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/bool.js
5537
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/bool.js
5538
5538
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5539
5539
  const Type = require_type();
5540
5540
  function resolveYamlBoolean(data) {
@@ -5568,7 +5568,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5568
5568
  });
5569
5569
  }));
5570
5570
  //#endregion
5571
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/int.js
5571
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/int.js
5572
5572
  var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5573
5573
  const common = require_common();
5574
5574
  const Type = require_type();
@@ -5677,7 +5677,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5677
5677
  });
5678
5678
  }));
5679
5679
  //#endregion
5680
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/float.js
5680
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/float.js
5681
5681
  var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5682
5682
  const common = require_common();
5683
5683
  const Type = require_type();
@@ -5731,7 +5731,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5731
5731
  });
5732
5732
  }));
5733
5733
  //#endregion
5734
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/json.js
5734
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/json.js
5735
5735
  var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5736
5736
  module.exports = require_failsafe().extend({ implicit: [
5737
5737
  require_null(),
@@ -5741,12 +5741,12 @@ var require_json = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5741
5741
  ] });
5742
5742
  }));
5743
5743
  //#endregion
5744
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/core.js
5744
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/core.js
5745
5745
  var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5746
5746
  module.exports = require_json();
5747
5747
  }));
5748
5748
  //#endregion
5749
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/timestamp.js
5749
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/timestamp.js
5750
5750
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5751
5751
  const Type = require_type();
5752
5752
  const YAML_DATE_REGEXP = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
@@ -5797,7 +5797,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5797
5797
  });
5798
5798
  }));
5799
5799
  //#endregion
5800
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/merge.js
5800
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/merge.js
5801
5801
  var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5802
5802
  const Type = require_type();
5803
5803
  function resolveYamlMerge(data) {
@@ -5809,7 +5809,7 @@ var require_merge$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5809
5809
  });
5810
5810
  }));
5811
5811
  //#endregion
5812
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/binary.js
5812
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/binary.js
5813
5813
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5814
5814
  const Type = require_type();
5815
5815
  const BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
@@ -5896,14 +5896,14 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5896
5896
  });
5897
5897
  }));
5898
5898
  //#endregion
5899
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/omap.js
5899
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/omap.js
5900
5900
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5901
5901
  const Type = require_type();
5902
5902
  const _hasOwnProperty = Object.prototype.hasOwnProperty;
5903
5903
  const _toString = Object.prototype.toString;
5904
5904
  function resolveYamlOmap(data) {
5905
5905
  if (data === null) return true;
5906
- const objectKeys = [];
5906
+ const objectKeys = {};
5907
5907
  const object = data;
5908
5908
  for (let index = 0, length = object.length; index < length; index += 1) {
5909
5909
  const pair = object[index];
@@ -5915,8 +5915,8 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5915
5915
  else return false;
5916
5916
  }
5917
5917
  if (!pairHasKey) return false;
5918
- if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
5919
- else return false;
5918
+ if (_hasOwnProperty.call(objectKeys, pairKey)) return false;
5919
+ Object.defineProperty(objectKeys, pairKey, { value: true });
5920
5920
  }
5921
5921
  return true;
5922
5922
  }
@@ -5930,7 +5930,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5930
5930
  });
5931
5931
  }));
5932
5932
  //#endregion
5933
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/pairs.js
5933
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/pairs.js
5934
5934
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5935
5935
  const Type = require_type();
5936
5936
  const _toString = Object.prototype.toString;
@@ -5965,7 +5965,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5965
5965
  });
5966
5966
  }));
5967
5967
  //#endregion
5968
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/type/set.js
5968
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/type/set.js
5969
5969
  var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5970
5970
  const Type = require_type();
5971
5971
  const _hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -5987,7 +5987,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5987
5987
  });
5988
5988
  }));
5989
5989
  //#endregion
5990
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/schema/default.js
5990
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/schema/default.js
5991
5991
  var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5992
5992
  module.exports = require_core().extend({
5993
5993
  implicit: [require_timestamp(), require_merge$1()],
@@ -6000,7 +6000,7 @@ var require_default = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6000
6000
  });
6001
6001
  }));
6002
6002
  //#endregion
6003
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/loader.js
6003
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/loader.js
6004
6004
  var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6005
6005
  const common = require_common();
6006
6006
  const YAMLException = require_exception();
@@ -7028,7 +7028,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7028
7028
  module.exports.load = load;
7029
7029
  }));
7030
7030
  //#endregion
7031
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/lib/dumper.js
7031
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/lib/dumper.js
7032
7032
  var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7033
7033
  const common = require_common();
7034
7034
  const YAMLException = require_exception();
@@ -7527,7 +7527,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7527
7527
  module.exports.dump = dump;
7528
7528
  }));
7529
7529
  //#endregion
7530
- //#region ../../node_modules/.pnpm/js-yaml@4.3.0/node_modules/js-yaml/index.js
7530
+ //#region ../../node_modules/.pnpm/js-yaml@4.3.1/node_modules/js-yaml/index.js
7531
7531
  var require_js_yaml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7532
7532
  const loader = require_loader();
7533
7533
  const dumper = require_dumper();
@@ -8478,7 +8478,7 @@ const RULE_COMMANDS = {
8478
8478
  },
8479
8479
  check: {
8480
8480
  command: "check",
8481
- includeInRoot: true,
8481
+ includeInRoot: false,
8482
8482
  title: "Check Rules"
8483
8483
  },
8484
8484
  clean: {
@@ -8498,6 +8498,12 @@ const RULE_COMMANDS = {
8498
8498
  includeInRoot: true,
8499
8499
  title: "Dead Rules"
8500
8500
  },
8501
+ dependabot: {
8502
+ command: "secure dependabot",
8503
+ configKey: "dependabot",
8504
+ includeInRoot: true,
8505
+ title: "Dependabot Rules"
8506
+ },
8501
8507
  deplint: {
8502
8508
  command: "deplint",
8503
8509
  configKey: "deplint",
@@ -8519,7 +8525,7 @@ const RULE_COMMANDS = {
8519
8525
  lint: {
8520
8526
  aliases: ["relint"],
8521
8527
  command: "lint",
8522
- includeInRoot: true,
8528
+ includeInRoot: false,
8523
8529
  title: "Lint Rules"
8524
8530
  },
8525
8531
  lintLint: {
@@ -11130,29 +11136,29 @@ const entryOutputBasename = (entry, entryMode) => {
11130
11136
  //#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
11131
11137
  const A = (r) => r !== null && typeof r == "object";
11132
11138
  const a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r });
11133
- const _$1 = "ERR_INVALID_PACKAGE_CONFIG";
11134
- const E$2 = "ERR_INVALID_PACKAGE_TARGET";
11135
- const I$1 = "ERR_PACKAGE_PATH_NOT_EXPORTED";
11136
- const R$2 = /^\d+$/;
11137
- const O$2 = /^(\.{1,2}|node_modules)$/i;
11138
- const w$1 = /\/|\\/;
11139
- var h$1 = ((r) => (r.Export = "exports", r.Import = "imports", r))(h$1 || {});
11139
+ const _ = "ERR_INVALID_PACKAGE_CONFIG";
11140
+ const E$1 = "ERR_INVALID_PACKAGE_TARGET";
11141
+ const I = "ERR_PACKAGE_PATH_NOT_EXPORTED";
11142
+ const R$1 = /^\d+$/;
11143
+ const O$1 = /^(\.{1,2}|node_modules)$/i;
11144
+ const w = /\/|\\/;
11145
+ var h = ((r) => (r.Export = "exports", r.Import = "imports", r))(h || {});
11140
11146
  const f = (r, t, e, o, c) => {
11141
11147
  if (t == null) return [];
11142
11148
  if (typeof t == "string") {
11143
- const [n, ...i] = t.split(w$1);
11144
- if (n === ".." || i.some((l) => O$2.test(l))) throw a(E$2, `Invalid "${r}" target "${t}" defined in the package config`);
11149
+ const [n, ...i] = t.split(w);
11150
+ if (n === ".." || i.some((l) => O$1.test(l))) throw a(E$1, `Invalid "${r}" target "${t}" defined in the package config`);
11145
11151
  return [c ? t.replace(/\*/g, c) : t];
11146
11152
  }
11147
11153
  if (Array.isArray(t)) return t.flatMap((n) => f(r, n, e, o, c));
11148
11154
  if (A(t)) {
11149
11155
  for (const n of Object.keys(t)) {
11150
- if (R$2.test(n)) throw a(_$1, "Cannot contain numeric property keys");
11156
+ if (R$1.test(n)) throw a(_, "Cannot contain numeric property keys");
11151
11157
  if (n === "default" || o.includes(n)) return f(r, t[n], e, o, c);
11152
11158
  }
11153
11159
  return [];
11154
11160
  }
11155
- throw a(E$2, `Invalid "${r}" target "${t}"`);
11161
+ throw a(E$1, `Invalid "${r}" target "${t}"`);
11156
11162
  };
11157
11163
  const s = "*";
11158
11164
  const m = (r, t) => {
@@ -11174,15 +11180,15 @@ function d(r, t) {
11174
11180
  const p = (r) => Object.keys(r).reduce((t, e) => {
11175
11181
  const o = e === "" || e[0] !== ".";
11176
11182
  if (t === void 0 || t === o) return o;
11177
- throw a(_$1, "\"exports\" cannot contain some keys starting with \".\" and some not");
11183
+ throw a(_, "\"exports\" cannot contain some keys starting with \".\" and some not");
11178
11184
  }, void 0);
11179
- const u$1 = /^\w+:/;
11180
- const v$1 = (r, t, e) => {
11185
+ const u = /^\w+:/;
11186
+ const v = (r, t, e) => {
11181
11187
  if (!r) throw new Error("\"exports\" is required");
11182
11188
  t = t === "" ? "." : `./${t}`, (typeof r == "string" || Array.isArray(r) || A(r) && p(r)) && (r = { ".": r });
11183
- const [o, c] = d(r, t), n = f(h$1.Export, r[o], t, e, c);
11184
- if (n.length === 0) throw a(I$1, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
11185
- for (const i of n) if (!i.startsWith("./") && !u$1.test(i)) throw a(E$2, `Invalid "exports" target "${i}" defined in the package config`);
11189
+ const [o, c] = d(r, t), n = f(h.Export, r[o], t, e, c);
11190
+ if (n.length === 0) throw a(I, t === "." ? "No \"exports\" main defined" : `Package subpath '${t}' is not defined by "exports"`);
11191
+ for (const i of n) if (!i.startsWith("./") && !u.test(i)) throw a(E$1, `Invalid "exports" target "${i}" defined in the package config`);
11186
11192
  return n;
11187
11193
  };
11188
11194
  //#endregion
@@ -11213,7 +11219,7 @@ const Pe$1 = i((...[e, t]) => {
11213
11219
  if (typeof s != "string") throw new TypeError(`Unexpected resolved path type for ${s} in ${t}`);
11214
11220
  return s;
11215
11221
  }, "realpath");
11216
- const O$1 = i((e, t, s) => {
11222
+ const O = i((e, t, s) => {
11217
11223
  for (;;) {
11218
11224
  const n = PATH.posix.join(e, t);
11219
11225
  if (x$1(s, n)) return n;
@@ -11222,10 +11228,10 @@ const O$1 = i((e, t, s) => {
11222
11228
  e = o;
11223
11229
  }
11224
11230
  }, "findUp");
11225
- const C$1 = /^\.{1,2}(\/.*)?$/;
11231
+ const C = /^\.{1,2}(\/.*)?$/;
11226
11232
  const X = i((e) => {
11227
11233
  const t = L(e);
11228
- return C$1.test(t) ? t : `./${t}`;
11234
+ return C.test(t) ? t : `./${t}`;
11229
11235
  }, "normalizeRelativePath");
11230
11236
  function We(e, t = !1) {
11231
11237
  const s = e.length;
@@ -11250,12 +11256,12 @@ function We(e, t = !1) {
11250
11256
  function D() {
11251
11257
  let c = n;
11252
11258
  if (e.charCodeAt(n) === 48) n++;
11253
- else for (n++; n < e.length && R$1(e.charCodeAt(n));) n++;
11254
- if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R$1(e.charCodeAt(n))) for (n++; n < e.length && R$1(e.charCodeAt(n));) n++;
11259
+ else for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11260
+ if (n < e.length && e.charCodeAt(n) === 46) if (n++, n < e.length && R(e.charCodeAt(n))) for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11255
11261
  else return b = 3, e.substring(c, n);
11256
11262
  let j = n;
11257
- if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R$1(e.charCodeAt(n))) {
11258
- for (n++; n < e.length && R$1(e.charCodeAt(n));) n++;
11263
+ if (n < e.length && (e.charCodeAt(n) === 69 || e.charCodeAt(n) === 101)) if (n++, (n < e.length && e.charCodeAt(n) === 43 || e.charCodeAt(n) === 45) && n++, n < e.length && R(e.charCodeAt(n))) {
11264
+ for (n++; n < e.length && R(e.charCodeAt(n));) n++;
11259
11265
  j = n;
11260
11266
  } else b = 3;
11261
11267
  return e.substring(c, j);
@@ -11362,7 +11368,7 @@ function We(e, t = !1) {
11362
11368
  return A || (n++, b = 1), o = e.substring(j, n), r = 13;
11363
11369
  }
11364
11370
  return o += String.fromCharCode(c), n++, r = 16;
11365
- case 45: if (o += String.fromCharCode(c), n++, n === s || !R$1(e.charCodeAt(n))) return r = 16;
11371
+ case 45: if (o += String.fromCharCode(c), n++, n === s || !R(e.charCodeAt(n))) return r = 16;
11366
11372
  case 48:
11367
11373
  case 49:
11368
11374
  case 50:
@@ -11431,19 +11437,19 @@ function J(e) {
11431
11437
  return e === 10 || e === 13;
11432
11438
  }
11433
11439
  i(J, "isLineBreak");
11434
- function R$1(e) {
11440
+ function R(e) {
11435
11441
  return e >= 48 && e <= 57;
11436
11442
  }
11437
- i(R$1, "isDigit");
11443
+ i(R, "isDigit");
11438
11444
  var ge;
11439
11445
  (function(e) {
11440
11446
  e[e.lineFeed = 10] = "lineFeed", e[e.carriageReturn = 13] = "carriageReturn", e[e.space = 32] = "space", e[e._0 = 48] = "_0", e[e._1 = 49] = "_1", e[e._2 = 50] = "_2", e[e._3 = 51] = "_3", e[e._4 = 52] = "_4", e[e._5 = 53] = "_5", e[e._6 = 54] = "_6", e[e._7 = 55] = "_7", e[e._8 = 56] = "_8", e[e._9 = 57] = "_9", e[e.a = 97] = "a", e[e.b = 98] = "b", e[e.c = 99] = "c", e[e.d = 100] = "d", e[e.e = 101] = "e", e[e.f = 102] = "f", e[e.g = 103] = "g", e[e.h = 104] = "h", e[e.i = 105] = "i", e[e.j = 106] = "j", e[e.k = 107] = "k", e[e.l = 108] = "l", e[e.m = 109] = "m", e[e.n = 110] = "n", e[e.o = 111] = "o", e[e.p = 112] = "p", e[e.q = 113] = "q", e[e.r = 114] = "r", e[e.s = 115] = "s", e[e.t = 116] = "t", e[e.u = 117] = "u", e[e.v = 118] = "v", e[e.w = 119] = "w", e[e.x = 120] = "x", e[e.y = 121] = "y", e[e.z = 122] = "z", e[e.A = 65] = "A", e[e.B = 66] = "B", e[e.C = 67] = "C", e[e.D = 68] = "D", e[e.E = 69] = "E", e[e.F = 70] = "F", e[e.G = 71] = "G", e[e.H = 72] = "H", e[e.I = 73] = "I", e[e.J = 74] = "J", e[e.K = 75] = "K", e[e.L = 76] = "L", e[e.M = 77] = "M", e[e.N = 78] = "N", e[e.O = 79] = "O", e[e.P = 80] = "P", e[e.Q = 81] = "Q", e[e.R = 82] = "R", e[e.S = 83] = "S", e[e.T = 84] = "T", e[e.U = 85] = "U", e[e.V = 86] = "V", e[e.W = 87] = "W", e[e.X = 88] = "X", e[e.Y = 89] = "Y", e[e.Z = 90] = "Z", e[e.asterisk = 42] = "asterisk", e[e.backslash = 92] = "backslash", e[e.closeBrace = 125] = "closeBrace", e[e.closeBracket = 93] = "closeBracket", e[e.colon = 58] = "colon", e[e.comma = 44] = "comma", e[e.dot = 46] = "dot", e[e.doubleQuote = 34] = "doubleQuote", e[e.minus = 45] = "minus", e[e.openBrace = 123] = "openBrace", e[e.openBracket = 91] = "openBracket", e[e.plus = 43] = "plus", e[e.slash = 47] = "slash", e[e.formFeed = 12] = "formFeed", e[e.tab = 9] = "tab";
11441
11447
  })(ge || (ge = {})), new Array(20).fill(0).map((e, t) => " ".repeat(t));
11442
- const S$1 = 200;
11443
- new Array(S$1).fill(0).map((e, t) => `
11444
- ` + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => `\r
11445
- ` + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => `
11446
- ` + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S$1).fill(0).map((e, t) => `\r
11448
+ const S = 200;
11449
+ new Array(S).fill(0).map((e, t) => `
11450
+ ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
11451
+ ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `
11452
+ ` + " ".repeat(t)), new Array(S).fill(0).map((e, t) => "\r" + " ".repeat(t)), new Array(S).fill(0).map((e, t) => `\r
11447
11453
  ` + " ".repeat(t));
11448
11454
  var Y;
11449
11455
  (function(e) {
@@ -11641,7 +11647,7 @@ var we;
11641
11647
  })(we || (we = {}));
11642
11648
  const de = i((e, t) => Ve(Se(t, e, "utf8")), "readJsonc");
11643
11649
  const ne = Symbol("implicitBaseUrl");
11644
- const E$1 = "${configDir}";
11650
+ const E = "${configDir}";
11645
11651
  const ze = i(() => {
11646
11652
  const { findPnpApi: e } = Be;
11647
11653
  return e && e(process.cwd());
@@ -11653,7 +11659,7 @@ const te = i((e, t, s, n) => {
11653
11659
  if (!l) return;
11654
11660
  let r = t || "tsconfig.json";
11655
11661
  if (!s && l.exports) try {
11656
- const [f] = v$1(l.exports, t, ["require", "types"]);
11662
+ const [f] = v(l.exports, t, ["require", "types"]);
11657
11663
  r = f;
11658
11664
  } catch {
11659
11665
  return !1;
@@ -11696,7 +11702,7 @@ const Ge = i((e, t, s) => {
11696
11702
  }
11697
11703
  } catch {}
11698
11704
  }
11699
- const d = O$1(PATH.resolve(t), PATH.join("node_modules", f), s);
11705
+ const d = O(PATH.resolve(t), PATH.join("node_modules", f), s);
11700
11706
  if (!d || !((n = H(s, d)) != null && n.isDirectory())) return;
11701
11707
  const b = Pe$1(s, d), _ = PATH.join(b, se);
11702
11708
  if (x$1(s, _)) {
@@ -11727,7 +11733,7 @@ const pe = [
11727
11733
  "include",
11728
11734
  "exclude"
11729
11735
  ];
11730
- const N$1 = i((e, t, s) => {
11736
+ const N = i((e, t, s) => {
11731
11737
  const n = PATH.join(t, s);
11732
11738
  return L(PATH.relative(e, n)) || "./";
11733
11739
  }, "resolveAndRelativize");
@@ -11746,21 +11752,21 @@ const He = i((e, t, s, n) => {
11746
11752
  const { compilerOptions: f } = r;
11747
11753
  if (f) {
11748
11754
  const { baseUrl: u } = f;
11749
- u && !u.startsWith(E$1) && (f.baseUrl = N$1(t, l, u));
11755
+ u && !u.startsWith(E) && (f.baseUrl = N(t, l, u));
11750
11756
  const { outDir: g } = f;
11751
- g && !g.startsWith(E$1) && (f.outDir = N$1(t, l, g));
11757
+ g && !g.startsWith(E) && (f.outDir = N(t, l, g));
11752
11758
  const { declarationDir: d } = f;
11753
- d && !d.startsWith(E$1) && (f.declarationDir = N$1(t, l, d));
11759
+ d && !d.startsWith(E) && (f.declarationDir = N(t, l, d));
11754
11760
  const { rootDir: b } = f;
11755
- b && !b.startsWith(E$1) && (f.rootDir = N$1(t, l, b));
11761
+ b && !b.startsWith(E) && (f.rootDir = N(t, l, b));
11756
11762
  const { rootDirs: _ } = f;
11757
- _ && (f.rootDirs = _.map((D) => D.startsWith(E$1) ? D : N$1(t, l, D)));
11763
+ _ && (f.rootDirs = _.map((D) => D.startsWith(E) ? D : N(t, l, D)));
11758
11764
  const { typeRoots: h } = f;
11759
- h && (f.typeRoots = h.map((D) => D.startsWith(E$1) ? D : N$1(t, l, D)));
11765
+ h && (f.typeRoots = h.map((D) => D.startsWith(E) ? D : N(t, l, D)));
11760
11766
  }
11761
11767
  for (const u of pe) {
11762
11768
  const g = r[u];
11763
- g && (r[u] = g.map((d) => d.startsWith(E$1) ? d : Qe(t, l, d)));
11769
+ g && (r[u] = g.map((d) => d.startsWith(E) ? d : Qe(t, l, d)));
11764
11770
  }
11765
11771
  return r;
11766
11772
  }, "resolveExtends");
@@ -11800,24 +11806,24 @@ const ve = i((e, t, s = /* @__PURE__ */ new Set()) => {
11800
11806
  const { compilerOptions: l } = n;
11801
11807
  for (const f of ["baseUrl", "rootDir"]) {
11802
11808
  const u = l[f];
11803
- if (u && !u.startsWith(E$1)) {
11809
+ if (u && !u.startsWith(E)) {
11804
11810
  const g = PATH.resolve(o, u);
11805
11811
  l[f] = oe(o, g);
11806
11812
  }
11807
11813
  }
11808
11814
  for (const f of be) {
11809
11815
  let u = l[f];
11810
- u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E$1) || (u = X(u)), l[f] = u);
11816
+ u && (Array.isArray(n.exclude) || (n.exclude = be.map((g) => l[g]).filter(Boolean)), u.startsWith(E) || (u = X(u)), l[f] = u);
11811
11817
  }
11812
11818
  } else n.compilerOptions = {};
11813
- if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E$1) ? l : X(l))), n.watchOptions) {
11819
+ if (n.include && (n.include = n.include.map(L)), n.files && (n.files = n.files.map((l) => l.startsWith(E) ? l : X(l))), n.watchOptions) {
11814
11820
  const { watchOptions: l } = n;
11815
11821
  l.excludeDirectories && (l.excludeDirectories = l.excludeDirectories.map((r) => L(PATH.resolve(o, r)))), l.excludeFiles && (l.excludeFiles = l.excludeFiles.map((r) => L(PATH.resolve(o, r)))), l.watchFile && (l.watchFile = l.watchFile.toLowerCase()), l.watchDirectory && (l.watchDirectory = l.watchDirectory.toLowerCase()), l.fallbackPolling && (l.fallbackPolling = l.fallbackPolling.toLowerCase());
11816
11822
  }
11817
11823
  return n;
11818
11824
  }, "_parseTsconfig");
11819
11825
  const Z = i((e, t) => {
11820
- if (e.startsWith(E$1)) return L(PATH.join(t, e.slice(12)));
11826
+ if (e.startsWith(E)) return L(PATH.join(t, e.slice(12)));
11821
11827
  }, "interpolateConfigDir");
11822
11828
  const Xe = [
11823
11829
  "outDir",
@@ -11976,7 +11982,7 @@ const Te = q((e) => {
11976
11982
  const n = PATH.resolve(e);
11977
11983
  let o = L(e);
11978
11984
  for (;;) {
11979
- const l = O$1(o, t, s);
11985
+ const l = O(o, t, s);
11980
11986
  if (!l) return;
11981
11987
  const r = PATH.resolve(l), f = ie(r, s), u = {
11982
11988
  path: L(r),
@@ -11989,7 +11995,7 @@ const Te = q((e) => {
11989
11995
  }
11990
11996
  }, "findConfigApplicable"), Le = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
11991
11997
  var o;
11992
- return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O$1(L(e), t, s);
11998
+ return n ? (o = he(e, t, s)) == null ? void 0 : o.path : O(L(e), t, s);
11993
11999
  }, "findTsconfig"), tn = i((e = process.cwd(), t = "tsconfig.json", s = /* @__PURE__ */ new Map(), n = !1) => {
11994
12000
  var o;
11995
12001
  if (!n) {
@@ -12016,7 +12022,7 @@ const Te = q((e) => {
12016
12022
  }, "parsePattern"), on = i(({ prefix: e, suffix: t }, s) => s.startsWith(e) && s.endsWith(t), "isPatternMatch"), rn = i((e, t, s) => Object.entries(e).map(([n, o]) => (Ee(n, `Pattern '${n}' can have at most one '*' character.`), {
12017
12023
  pattern: ln(n),
12018
12024
  substitutions: o.map((l) => {
12019
- if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C$1.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
12025
+ if (Ee(l, `Substitution '${l}' in pattern '${n}' can have at most one '*' character.`), !t && !C.test(l) && !PATH.isAbsolute(l)) throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
12020
12026
  return PATH.resolve(s, l);
12021
12027
  })
12022
12028
  })), "parsePaths");
@@ -12027,7 +12033,7 @@ i((e) => {
12027
12033
  if (!s && !n) return null;
12028
12034
  const o = ne in t && t[ne], l = PATH.resolve(PATH.dirname(e.path), s || o || "."), r = n ? rn(n, s, l) : [];
12029
12035
  return (f) => {
12030
- if (C$1.test(f)) return [];
12036
+ if (C.test(f)) return [];
12031
12037
  const u = [];
12032
12038
  for (const _ of r) {
12033
12039
  if (_.pattern === f) return _.substitutions.map(L);
@@ -12290,16 +12296,88 @@ const warnDeprecatedEmptyObjectTargets = (targets) => {
12290
12296
  }
12291
12297
  };
12292
12298
  //#endregion
12299
+ //#region src/actions/package/compile/resolveTscBin.ts
12300
+ /**
12301
+ * Default `package.json` key the native compiler is expected under:
12302
+ * `"typescript-native": "npm:typescript@~7.0.2"`. Override per package with
12303
+ * `compile.nativePackage`.
12304
+ */
12305
+ const DEFAULT_NATIVE_PACKAGE = "typescript-native";
12306
+ const readTscBinEntry = (packageJsonPath) => {
12307
+ const { bin } = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
12308
+ if (typeof bin === "string") return bin;
12309
+ return bin?.tsc;
12310
+ };
12311
+ /**
12312
+ * Resolves a compiler package's `tsc` entry script from `fromDir`.
12313
+ *
12314
+ * We deliberately do not go through `node_modules/.bin/tsc`. Both the API
12315
+ * package (`typescript@6`) and the native compiler (`typescript@7`, installed
12316
+ * under an alias) declare a `tsc` bin, so the `.bin` shim is whichever one the
12317
+ * package manager linked last — observed to be the alias, silently, in both
12318
+ * declaration orders. Resolving the package explicitly makes the choice the
12319
+ * caller's rather than the installer's.
12320
+ */
12321
+ const resolveTscBin = (packageName, fromDir) => {
12322
+ try {
12323
+ const packageJsonPath = createRequire(PATH.join(fromDir, "package.json")).resolve(`${packageName}/package.json`);
12324
+ const binEntry = readTscBinEntry(packageJsonPath);
12325
+ if (binEntry === void 0) return void 0;
12326
+ return {
12327
+ binPath: PATH.resolve(PATH.dirname(packageJsonPath), binEntry),
12328
+ packageName
12329
+ };
12330
+ } catch {
12331
+ return;
12332
+ }
12333
+ };
12334
+ //#endregion
12293
12335
  //#region src/actions/package/compile/runTsc.ts
12294
- const runTsc = (configPath, isVerbose = false, extraArgs = []) => {
12336
+ const resolvedCache = /* @__PURE__ */ new Map();
12337
+ const resolveCached = (packageName, fromDir) => {
12338
+ const key = `${packageName}\0${fromDir}`;
12339
+ if (resolvedCache.has(key)) return resolvedCache.get(key);
12340
+ const resolved = resolveTscBin(packageName, fromDir);
12341
+ resolvedCache.set(key, resolved);
12342
+ return resolved;
12343
+ };
12344
+ const missingNativeMessage = (packageName) => [
12345
+ `Compile: compile.compiler is "native" but "${packageName}" is not installed.`,
12346
+ " Add it as an alias so it does not collide with the compiler API package:",
12347
+ ` "${packageName}": "npm:typescript@~7.0.2"`,
12348
+ " Keep \"typescript\" pinned to 6.x — ESLint and the xy analyzers load the compiler API from it."
12349
+ ].join("\n");
12350
+ /**
12351
+ * Runs `tsc -p <configPath>` against an explicitly resolved compiler.
12352
+ *
12353
+ * `native` selects the Go compiler (`typescript@7`) installed under an alias;
12354
+ * it is resolved from the package being compiled, not from `PATH`, because
12355
+ * both implementations declare a `tsc` bin and the `.bin` shim silently
12356
+ * resolves to whichever the package manager linked last.
12357
+ */
12358
+ const runTsc = (configPath, options = {}) => {
12359
+ const { compiler = "typescript", extraArgs = [], isVerbose = false, nativePackage = DEFAULT_NATIVE_PACKAGE } = options;
12360
+ const pkg = cwd();
12295
12361
  const args = [
12296
12362
  "-p",
12297
12363
  configPath,
12298
12364
  ...extraArgs
12299
12365
  ];
12300
- if (isVerbose) console.log(chalk.gray(`tsc ${args.join(" ")}`));
12301
- const result = spawnSync("tsc", args, {
12302
- cwd: cwd(),
12366
+ const packageName = compiler === "native" ? nativePackage : "typescript";
12367
+ const resolved = resolveCached(packageName, pkg);
12368
+ if (resolved === void 0 && compiler === "native") {
12369
+ console.error(chalk.red(missingNativeMessage(packageName)));
12370
+ return 1;
12371
+ }
12372
+ if (isVerbose) {
12373
+ const label = resolved === void 0 ? "tsc (PATH)" : `${resolved.packageName} ${resolved.binPath}`;
12374
+ console.log(chalk.gray(`tsc [${label}] ${args.join(" ")}`));
12375
+ }
12376
+ const result = resolved === void 0 ? spawnSync("tsc", args, {
12377
+ cwd: pkg,
12378
+ stdio: "inherit"
12379
+ }) : spawnSync(execPath, [resolved.binPath, ...args], {
12380
+ cwd: pkg,
12303
12381
  stdio: "inherit"
12304
12382
  });
12305
12383
  return result.status ?? (result.error === void 0 ? 0 : 1);
@@ -12352,7 +12430,7 @@ const createFullValidationConfig = (pkg, tsconfigPath) => {
12352
12430
  diagnostics: parsed.errors
12353
12431
  };
12354
12432
  };
12355
- const validateFullPackage = (pkg, isVerbose = false) => {
12433
+ const validateFullPackage = (pkg, isVerbose = false, tsc = {}) => {
12356
12434
  const tsconfigPath = PATH.resolve(pkg, "tsconfig.json");
12357
12435
  if (!fs.existsSync(tsconfigPath)) {
12358
12436
  console.warn(chalk.yellow("Compile:Validate skipped — tsconfig.json not found"));
@@ -12364,7 +12442,10 @@ const validateFullPackage = (pkg, isVerbose = false) => {
12364
12442
  console.error(formatTsConfigDiagnostics(diagnostics, pkg));
12365
12443
  return 1;
12366
12444
  }
12367
- const result = runTsc(configPath, isVerbose);
12445
+ const result = runTsc(configPath, {
12446
+ ...tsc,
12447
+ isVerbose
12448
+ });
12368
12449
  if (result !== 0) console.error(chalk.red(`Compile:Validate failed (tsc exit code ${result})`));
12369
12450
  return result;
12370
12451
  };
@@ -12538,7 +12619,7 @@ const resolvePlatformEsbuildOptions = (value) => {
12538
12619
  const getRootOutDir$1 = (options) => {
12539
12620
  return options.outDir ?? options.outdir ?? "dist";
12540
12621
  };
12541
- const compileFolder = async (srcDir, entries, options, platform, outDir, shouldCheckTypes, emitDeclarations, entryMode, isVerbose) => {
12622
+ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldCheckTypes, emitDeclarations, entryMode, isVerbose, tsc = {}) => {
12542
12623
  const pkg = cwd();
12543
12624
  if (isVerbose ?? false) console.log(chalk.gray(`compileFolder [${srcDir}, ${outDir}]`));
12544
12625
  if (!fs.existsSync(PATH.resolve(pkg, srcDir))) {
@@ -12551,7 +12632,10 @@ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldC
12551
12632
  }
12552
12633
  const checkConfig = writeTypescriptConfig(pkg, platform, srcDir, false);
12553
12634
  if (shouldCheckTypes) {
12554
- const checkResult = runTsc(checkConfig, isVerbose);
12635
+ const checkResult = runTsc(checkConfig, {
12636
+ ...tsc,
12637
+ isVerbose
12638
+ });
12555
12639
  if (checkResult !== 0) {
12556
12640
  console.error(chalk.red(`Compile:Validation had ${checkResult} errors`));
12557
12641
  return checkResult;
@@ -12584,7 +12668,7 @@ const compileFolder = async (srcDir, entries, options, platform, outDir, shouldC
12584
12668
  if (isVerbose ?? false) console.log(chalk.cyan(`ESBUILD:build:stop [${srcDir}]`));
12585
12669
  return 0;
12586
12670
  };
12587
- function createDeclarationEmitter(isVerbose = false) {
12671
+ function createDeclarationEmitter(isVerbose = false, tsc = {}) {
12588
12672
  const declarationPromises = /* @__PURE__ */ new Map();
12589
12673
  return async (srcDir, rootOutDir, platform, outDir) => {
12590
12674
  const key = `${srcDir}\0${rootOutDir}`;
@@ -12594,7 +12678,10 @@ function createDeclarationEmitter(isVerbose = false) {
12594
12678
  const dtsConfig = writeTypescriptConfig(cwd(), platform, srcDir, true, outDir);
12595
12679
  return {
12596
12680
  outDir,
12597
- result: runTsc(dtsConfig, isVerbose)
12681
+ result: runTsc(dtsConfig, {
12682
+ ...tsc,
12683
+ isVerbose
12684
+ })
12598
12685
  };
12599
12686
  })();
12600
12687
  declarationPromises.set(key, promise);
@@ -12615,10 +12702,14 @@ function resolveCompileMode(config, mode) {
12615
12702
  shouldEmit,
12616
12703
  shouldRunFolderChecks: !shouldRunFullValidation && !(mode.emitOnly ?? false),
12617
12704
  shouldRunFullValidation,
12705
+ tsc: {
12706
+ compiler: compile?.compiler,
12707
+ nativePackage: compile?.nativePackage
12708
+ },
12618
12709
  isVerbose
12619
12710
  };
12620
12711
  }
12621
- async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarations, entries, legacyTsupOptions, platform, platformEsbuild, isVerbose }) {
12712
+ async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarations, entries, legacyTsupOptions, platform, platformEsbuild, isVerbose, tsc }) {
12622
12713
  return (await Promise.all(Object.entries(entries).map(async ([srcDir, options]) => {
12623
12714
  const rootOutDir = getRootOutDir$1(options);
12624
12715
  const outDir = `${rootOutDir}/${platform}`;
@@ -12631,14 +12722,14 @@ async function compilePlatformEntries({ shouldCheckTypes, compile, emitDeclarati
12631
12722
  compile?.esbuild?.options ?? {},
12632
12723
  options,
12633
12724
  { outdir: outDir }
12634
- ], isVerbose), platform, outDir, shouldCheckTypes, () => emitDeclarations(srcDir, rootOutDir, platform, outDir), entryMode, isVerbose);
12725
+ ], isVerbose), platform, outDir, shouldCheckTypes, () => emitDeclarations(srcDir, rootOutDir, platform, outDir), entryMode, isVerbose, tsc);
12635
12726
  }))).reduce((prev, value) => prev + value, 0);
12636
12727
  }
12637
12728
  const packageCompileEsbuild = async (config, mode = {}) => {
12638
- const { compile, shouldEmit, shouldRunFolderChecks, shouldRunFullValidation, isVerbose } = resolveCompileMode(config, mode);
12639
- if (isVerbose) console.log("Compiling with esbuild and tsc");
12729
+ const { compile, shouldEmit, shouldRunFolderChecks, shouldRunFullValidation, tsc, isVerbose } = resolveCompileMode(config, mode);
12730
+ if (isVerbose) console.log(`Compiling with esbuild and ${tsc.compiler === "native" ? "the native tsc" : "tsc"}`);
12640
12731
  if (shouldRunFullValidation) {
12641
- const validateResult = validateFullPackage(cwd(), isVerbose);
12732
+ const validateResult = validateFullPackage(cwd(), isVerbose, tsc);
12642
12733
  if (validateResult !== 0) return validateResult;
12643
12734
  }
12644
12735
  if (!shouldEmit) return 0;
@@ -12651,7 +12742,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
12651
12742
  const browserEsbuild = resolvePlatformEsbuildOptions(compile?.browser);
12652
12743
  const neutralEsbuild = resolvePlatformEsbuildOptions(compile?.neutral);
12653
12744
  const legacyTsupOptions = compile?.tsup?.options;
12654
- const emitDeclarations = createDeclarationEmitter(isVerbose);
12745
+ const emitDeclarations = createDeclarationEmitter(isVerbose, tsc);
12655
12746
  const [nodeErrors, browserErrors, neutralErrors] = await Promise.all([
12656
12747
  compilePlatformEntries({
12657
12748
  shouldCheckTypes: shouldRunFolderChecks,
@@ -12661,6 +12752,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
12661
12752
  legacyTsupOptions,
12662
12753
  platform: "node",
12663
12754
  platformEsbuild: nodeEsbuild,
12755
+ tsc,
12664
12756
  isVerbose
12665
12757
  }),
12666
12758
  compilePlatformEntries({
@@ -12671,6 +12763,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
12671
12763
  legacyTsupOptions,
12672
12764
  platform: "browser",
12673
12765
  platformEsbuild: browserEsbuild,
12766
+ tsc,
12674
12767
  isVerbose
12675
12768
  }),
12676
12769
  compilePlatformEntries({
@@ -12681,6 +12774,7 @@ const packageCompileEsbuild = async (config, mode = {}) => {
12681
12774
  legacyTsupOptions,
12682
12775
  platform: "neutral",
12683
12776
  platformEsbuild: neutralEsbuild,
12777
+ tsc,
12684
12778
  isVerbose
12685
12779
  })
12686
12780
  ]);
@@ -13498,7 +13592,10 @@ const packageCompileMonolith = async (config, mode = {}) => {
13498
13592
  if (isVerbose) console.log(chalk.gray("monolith layout synced"));
13499
13593
  }
13500
13594
  if (shouldRunFullValidation) {
13501
- const validateResult = validateFullPackage(packageDir, isVerbose);
13595
+ const validateResult = validateFullPackage(packageDir, isVerbose, {
13596
+ compiler: compile.compiler,
13597
+ nativePackage: compile.nativePackage
13598
+ });
13502
13599
  if (validateResult !== 0) return validateResult;
13503
13600
  }
13504
13601
  if (!shouldEmit) return 0;
@@ -14039,7 +14136,10 @@ const packageCompileVendor = async (config, mode = {}) => {
14039
14136
  if (compile.vendorPackages?.scopes === void 0 || compile.vendorPackages.scopes.length === 0) throw new Error("vendor mode requires compile.vendorPackages.scopes");
14040
14137
  if (isVerbose) console.log(chalk.gray("Compiling with vendor mode"));
14041
14138
  if (shouldRunFullValidation) {
14042
- const validateResult = validateFullPackage(cwd(), isVerbose);
14139
+ const validateResult = validateFullPackage(cwd(), isVerbose, {
14140
+ compiler: compile.compiler,
14141
+ nativePackage: compile.nativePackage
14142
+ });
14043
14143
  if (validateResult !== 0) return validateResult;
14044
14144
  }
14045
14145
  if (!shouldEmit) return 0;
@@ -15108,45 +15208,45 @@ function cloneResolvedPublintRules(rules) {
15108
15208
  };
15109
15209
  }
15110
15210
  //#endregion
15111
- //#region ../../node_modules/.pnpm/tinyexec@1.2.4/node_modules/tinyexec/dist/main.mjs
15112
- function _(e) {
15113
- for (const t in e) {
15114
- if (!Object.prototype.hasOwnProperty.call(e, t) || !h.test(t)) continue;
15115
- const n = e[t];
15116
- if (!n) return g;
15211
+ //#region ../../node_modules/.pnpm/tinyexec@1.3.0/node_modules/tinyexec/dist/main.mjs
15212
+ function getPathFromEnv(env) {
15213
+ for (const key in env) {
15214
+ if (!Object.prototype.hasOwnProperty.call(env, key) || !isPathLikePattern.test(key)) continue;
15215
+ const value = env[key];
15216
+ if (!value) return defaultEnvPathInfo;
15117
15217
  return {
15118
- key: t,
15119
- value: n
15218
+ key,
15219
+ value
15120
15220
  };
15121
15221
  }
15122
- return g;
15222
+ return defaultEnvPathInfo;
15123
15223
  }
15124
- function v(e, t) {
15125
- const n = t.value.split(delimiter);
15126
- const r = [];
15127
- let o = e;
15128
- let c;
15224
+ function addNodeBinToPath(cwd, path) {
15225
+ const parts = path.value.split(delimiter);
15226
+ const nodeBinPaths = [];
15227
+ let currentPath = cwd;
15228
+ let lastPath;
15129
15229
  do {
15130
- r.push(resolve(o, "node_modules", ".bin"));
15131
- c = o;
15132
- o = dirname(o);
15133
- } while (o !== c);
15134
- r.push(dirname(process.execPath));
15135
- const l = r.concat(n).join(delimiter);
15230
+ nodeBinPaths.push(resolve(currentPath, "node_modules", ".bin"));
15231
+ lastPath = currentPath;
15232
+ currentPath = dirname(currentPath);
15233
+ } while (currentPath !== lastPath);
15234
+ nodeBinPaths.push(dirname(process.execPath));
15235
+ const newPath = nodeBinPaths.concat(parts).join(delimiter);
15136
15236
  return {
15137
- key: t.key,
15138
- value: l
15237
+ key: path.key,
15238
+ value: newPath
15139
15239
  };
15140
15240
  }
15141
- function y(e, t, n = true) {
15142
- const r = {
15241
+ function computeEnv(cwd, env, nodePath = true) {
15242
+ const envWithDefault = {
15143
15243
  ...process.env,
15144
- ...t
15244
+ ...env
15145
15245
  };
15146
- if (!n) return r;
15147
- const i = v(e, _(r));
15148
- r[i.key] = i.value;
15149
- return r;
15246
+ if (!nodePath) return envWithDefault;
15247
+ const envPathInfo = addNodeBinToPath(cwd, getPathFromEnv(envWithDefault));
15248
+ envWithDefault[envPathInfo.key] = envPathInfo.value;
15249
+ return envWithDefault;
15150
15250
  }
15151
15251
  /**
15152
15252
  * Normalizes the command and arguments to work cross-platform.
@@ -15154,157 +15254,168 @@ function y(e, t, n = true) {
15154
15254
  * `node_modules/.bin` commands, and escaping meta characters.
15155
15255
  * On other platforms, it just returns the command and arguments as-is.
15156
15256
  */
15157
- function D(e, t = [], n = {}) {
15158
- if (n.shell === true || !T) return {
15159
- command: e,
15160
- args: t,
15161
- options: n
15257
+ function normalizeSpawnCommand(command, args = [], options = {}) {
15258
+ if (options.shell === true || !isWindows) return {
15259
+ command,
15260
+ args,
15261
+ options
15162
15262
  };
15163
- let i = O(e, n);
15164
- let a = null;
15165
- if (i !== null) {
15166
- const e = 150;
15167
- const t = Buffer.alloc(e);
15168
- let n = null;
15263
+ let file = resolveCommand(command, options);
15264
+ let shebang = null;
15265
+ if (file !== null) {
15266
+ const size = 150;
15267
+ const buffer = Buffer.alloc(size);
15268
+ let fd = null;
15169
15269
  try {
15170
- n = openSync(i, "r");
15171
- readSync(n, t, 0, e, 0);
15270
+ fd = openSync(file, "r");
15271
+ readSync(fd, buffer, 0, size, 0);
15172
15272
  } catch {} finally {
15173
- if (n !== null) closeSync(n);
15174
- }
15175
- const o = t.toString().match(S);
15176
- if (o !== null) {
15177
- const e = o[1].trim();
15178
- const t = e.indexOf(" ");
15179
- const n = t !== -1 ? e.slice(0, t) : e;
15180
- const i = t !== -1 ? e.slice(t + 1) : "";
15181
- const s = basename(n);
15182
- a = s === "env" ? i || null : s;
15183
- }
15184
- }
15185
- if (a !== null && i !== null) {
15186
- t = [i, ...t];
15187
- e = a;
15188
- i = O(e, n);
15189
- }
15190
- if (i === null || !C.test(i)) {
15191
- const r = i !== null && w.test(i);
15192
- e = normalize(e);
15193
- e = e.replace(x, "^$1");
15194
- t = t.map((e) => {
15195
- e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
15196
- e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
15197
- e = `"${e}"`;
15198
- e = e.replace(x, "^$1");
15199
- if (r) e = e.replace(x, "^$1");
15200
- return e;
15273
+ if (fd !== null) closeSync(fd);
15274
+ }
15275
+ const match = buffer.toString().match(shebangRegExp);
15276
+ if (match !== null) {
15277
+ const line = match[1].trim();
15278
+ const separatorIndex = line.indexOf(" ");
15279
+ const path = separatorIndex !== -1 ? line.slice(0, separatorIndex) : line;
15280
+ const argument = separatorIndex !== -1 ? line.slice(separatorIndex + 1) : "";
15281
+ const binary = basename(path);
15282
+ shebang = binary === "env" ? argument || null : binary;
15283
+ }
15284
+ }
15285
+ if (shebang !== null && file !== null) {
15286
+ args = [file, ...args];
15287
+ command = shebang;
15288
+ file = resolveCommand(command, options);
15289
+ }
15290
+ if (file === null || !isWindowsExecutableRegExp.test(file)) {
15291
+ const needsDoubleEscapeMetaChars = file !== null && isNodeModulesCmdRegExp.test(file);
15292
+ command = normalize(command);
15293
+ command = command.replace(metaCharsRegExp, "^$1");
15294
+ args = args.map((arg) => {
15295
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
15296
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
15297
+ arg = `"${arg}"`;
15298
+ arg = arg.replace(metaCharsRegExp, "^$1");
15299
+ if (needsDoubleEscapeMetaChars) arg = arg.replace(metaCharsRegExp, "^$1");
15300
+ return arg;
15201
15301
  });
15202
- t = [
15302
+ args = [
15203
15303
  "/d",
15204
15304
  "/s",
15205
15305
  "/c",
15206
- `"${[e, ...t].join(" ")}"`
15306
+ `"${[command, ...args].join(" ")}"`
15207
15307
  ];
15208
- e = n.env?.comspec ?? "cmd.exe";
15209
- n = {
15210
- ...n,
15308
+ command = options.env?.comspec ?? "cmd.exe";
15309
+ options = {
15310
+ ...options,
15211
15311
  windowsVerbatimArguments: true
15212
15312
  };
15213
15313
  }
15214
15314
  return {
15215
- command: e,
15216
- args: t,
15217
- options: n
15315
+ command,
15316
+ args,
15317
+ options
15218
15318
  };
15219
15319
  }
15220
15320
  /**
15221
15321
  * Resolves the command to an absolute path if possible.
15222
15322
  * Handles things like traversing PATH and adding extensions from PATHEXT
15223
15323
  */
15224
- function O(e, t) {
15225
- const r = (t.cwd ?? cwd()).toString();
15226
- const a = t.env ?? process.env;
15227
- const o = _(a).value;
15228
- const c = e.includes("/") || e.includes("\\") ? [""] : [r, ...o.split(delimiter)];
15229
- const l = a.PATHEXT ? a.PATHEXT.split(delimiter) : E;
15230
- if (e.includes(".") && l[0] !== "") l.unshift("");
15231
- for (const t of c) {
15232
- const n = resolve(r, t.startsWith("\"") && t.endsWith("\"") && t.length > 1 ? t.slice(1, -1) : t, e);
15233
- for (const e of l) {
15234
- const t = n + e;
15324
+ function resolveCommand(command, options) {
15325
+ const cwd$3 = (options.cwd ?? cwd()).toString();
15326
+ const env = options.env ?? process.env;
15327
+ const PATH = getPathFromEnv(env).value;
15328
+ const pathEnv = command.includes("/") || command.includes("\\") ? [""] : [cwd$3, ...PATH.split(delimiter)];
15329
+ let pathExt = env.PATHEXT ? env.PATHEXT.split(delimiter) : defaultPathExt;
15330
+ if (command.includes(".") && pathExt[0] !== "") pathExt = ["", ...pathExt];
15331
+ for (const extensions of [pathExt, noPathExt]) for (const path of pathEnv) {
15332
+ const dest = resolve(cwd$3, path.startsWith("\"") && path.endsWith("\"") && path.length > 1 ? path.slice(1, -1) : path, command);
15333
+ for (const ext of extensions) {
15334
+ const destWithExt = dest + ext;
15235
15335
  try {
15236
- if (statSync(t).isFile()) return t;
15336
+ if (statSync(destWithExt).isFile()) return destWithExt;
15237
15337
  } catch {}
15238
15338
  }
15239
15339
  }
15240
15340
  return null;
15241
15341
  }
15242
- function P(e) {
15243
- const t = new AbortController();
15244
- for (const n of e) {
15245
- if (n.aborted) {
15246
- t.abort();
15247
- return n;
15342
+ function combineSignals(signals) {
15343
+ const controller = new AbortController();
15344
+ for (const signal of signals) {
15345
+ if (signal.aborted) {
15346
+ controller.abort();
15347
+ return signal;
15248
15348
  }
15249
- const e = () => {
15250
- t.abort(n.reason);
15349
+ const onAbort = () => {
15350
+ controller.abort(signal.reason);
15251
15351
  };
15252
- n.addEventListener("abort", e, { signal: t.signal });
15352
+ signal.addEventListener("abort", onAbort, { signal: controller.signal });
15253
15353
  }
15254
- return t.signal;
15354
+ return controller.signal;
15255
15355
  }
15256
- async function F(e) {
15257
- let t = "";
15356
+ async function readStream(stream) {
15357
+ let output = "";
15258
15358
  try {
15259
- for await (const n of e) t += n.toString();
15359
+ for await (const chunk of stream) output += chunk.toString();
15260
15360
  } catch {}
15261
- return t;
15361
+ return output;
15262
15362
  }
15263
- var h, g, b, x, S, C, w, T, E, k, j, N, I, R, z;
15363
+ var isPathLikePattern, defaultEnvPathInfo, combineStreams, metaCharsRegExp, shebangRegExp, isWindowsExecutableRegExp, isNodeModulesCmdRegExp, isWindows, defaultPathExt, noPathExt, NonZeroExitError, defaultOptions, defaultNodeOptions, ExecProcess, x, exec;
15264
15364
  var init_main = __esmMin((() => {
15265
- h = /^path$/i;
15266
- g = {
15365
+ isPathLikePattern = /^path$/i;
15366
+ defaultEnvPathInfo = {
15267
15367
  key: "PATH",
15268
15368
  value: ""
15269
15369
  };
15270
- b = (e) => {
15271
- let t = e.length;
15272
- const n = new PassThrough();
15273
- const r = () => {
15274
- if (--t === 0) n.end();
15370
+ combineStreams = (streams) => {
15371
+ let streamCount = streams.length;
15372
+ const combined = new PassThrough();
15373
+ const maybeEmitEnd = () => {
15374
+ if (--streamCount === 0) combined.end();
15275
15375
  };
15276
- for (const t of e) pipeline(t, n, { end: false }).then(r).catch(r);
15277
- return n;
15376
+ for (const stream of streams) pipeline(stream, combined, { end: false }).then(maybeEmitEnd).catch(maybeEmitEnd);
15377
+ return combined;
15278
15378
  };
15279
- x = /([()\][%!^"`<>&|;, *?])/g;
15280
- S = /^#!\s*(.+)/;
15281
- C = /\.(?:com|exe)$/i;
15282
- w = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i;
15283
- T = process.platform === "win32";
15284
- E = [
15379
+ metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
15380
+ shebangRegExp = /^#!\s*(.+)/;
15381
+ isWindowsExecutableRegExp = /\.(?:com|exe)$/i;
15382
+ isNodeModulesCmdRegExp = /node_modules[\\/]\.bin[\\/][^\\/]+\.cmd$/i;
15383
+ isWindows = process.platform === "win32";
15384
+ defaultPathExt = [
15285
15385
  ".EXE",
15286
15386
  ".CMD",
15287
15387
  ".BAT",
15288
15388
  ".COM"
15289
15389
  ];
15290
- k = class extends Error {
15390
+ noPathExt = [""];
15391
+ NonZeroExitError = class extends Error {
15291
15392
  result;
15292
15393
  output;
15293
- get exitCode() {
15294
- if (this.result.exitCode !== null) return this.result.exitCode;
15295
- }
15296
- constructor(e, t) {
15297
- super(`Process exited with non-zero status (${e.exitCode})`);
15298
- this.result = e;
15299
- this.output = t;
15394
+ exitCode;
15395
+ get signalCode() {
15396
+ return this.result.signalCode;
15397
+ }
15398
+ constructor(result, output, command, args) {
15399
+ let target = "The process";
15400
+ if (command) target = `The command \`${args?.length ? `${command} ${args.map((a) => /[ "'`()]/.test(a) ? JSON.stringify(a) : a).join(" ")}` : command}\``;
15401
+ const exitCode = result.exitCode ?? 1;
15402
+ super(result.signalCode !== null ? `${target} was killed by the signal ${result.signalCode}` : `${target} exited with a non-zero status (${exitCode})`);
15403
+ this.result = result;
15404
+ this.output = output;
15405
+ this.exitCode = exitCode;
15406
+ Object.defineProperty(this, "result", {
15407
+ enumerable: false,
15408
+ writable: false,
15409
+ configurable: false
15410
+ });
15300
15411
  }
15301
15412
  };
15302
- j = {
15413
+ defaultOptions = {
15303
15414
  timeout: void 0,
15304
15415
  persist: false
15305
15416
  };
15306
- N = { windowsHide: true };
15307
- I = class {
15417
+ defaultNodeOptions = { windowsHide: true };
15418
+ ExecProcess = class {
15308
15419
  _process;
15309
15420
  _aborted = false;
15310
15421
  _options;
@@ -15322,19 +15433,22 @@ var init_main = __esmMin((() => {
15322
15433
  get exitCode() {
15323
15434
  if (this._process && this._process.exitCode !== null) return this._process.exitCode;
15324
15435
  }
15325
- constructor(e, t, n) {
15436
+ get signalCode() {
15437
+ return this._process?.signalCode ?? null;
15438
+ }
15439
+ constructor(command, args, options) {
15326
15440
  this._options = {
15327
- ...j,
15328
- ...n
15441
+ ...defaultOptions,
15442
+ ...options
15329
15443
  };
15330
- this._command = e;
15331
- this._args = t ?? [];
15332
- this._processClosed = new Promise((e) => {
15333
- this._resolveClose = e;
15444
+ this._command = command;
15445
+ this._args = args ?? [];
15446
+ this._processClosed = new Promise((resolve) => {
15447
+ this._resolveClose = resolve;
15334
15448
  });
15335
15449
  }
15336
- kill(e) {
15337
- return this._process?.kill(e) === true;
15450
+ kill(signal) {
15451
+ return this._process?.kill(signal) === true;
15338
15452
  }
15339
15453
  get aborted() {
15340
15454
  return this._aborted;
@@ -15342,99 +15456,99 @@ var init_main = __esmMin((() => {
15342
15456
  get killed() {
15343
15457
  return this._process?.killed === true;
15344
15458
  }
15345
- pipe(e, t, n) {
15346
- return z(e, t, {
15347
- ...n,
15459
+ pipe(command, args, options) {
15460
+ return exec(command, args, {
15461
+ ...options,
15348
15462
  stdin: this
15349
15463
  });
15350
15464
  }
15351
15465
  async *[Symbol.asyncIterator]() {
15352
- const e = this._process;
15353
- if (!e) return;
15354
- const t = [];
15355
- if (this._streamErr) t.push(this._streamErr);
15356
- if (this._streamOut) t.push(this._streamOut);
15357
- const n = b(t);
15358
- const r = u.createInterface({ input: n });
15359
- for await (const e of r) yield e.toString();
15466
+ const proc = this._process;
15467
+ if (!proc) return;
15468
+ const streams = [];
15469
+ if (this._streamErr) streams.push(this._streamErr);
15470
+ if (this._streamOut) streams.push(this._streamOut);
15471
+ const streamCombined = combineStreams(streams);
15472
+ const rl = readline.createInterface({ input: streamCombined });
15473
+ for await (const chunk of rl) yield chunk.toString();
15360
15474
  await this._processClosed;
15361
- e.removeAllListeners();
15475
+ proc.removeAllListeners();
15362
15476
  if (this._thrownError) throw this._thrownError;
15363
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new k(this);
15477
+ if (this._options?.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, void 0, this._command, this._args);
15364
15478
  }
15365
15479
  async _waitForOutput() {
15366
- const e = this._process;
15367
- if (!e) throw new Error("No process was started");
15368
- const [t, n] = await Promise.all([this._streamOut ? F(this._streamOut) : "", this._streamErr ? F(this._streamErr) : ""]);
15480
+ const proc = this._process;
15481
+ if (!proc) throw new Error("No process was started");
15482
+ const [stdout, stderr] = await Promise.all([this._streamOut ? readStream(this._streamOut) : "", this._streamErr ? readStream(this._streamErr) : ""]);
15369
15483
  await this._processClosed;
15370
- const { stdin: r } = this._options;
15371
- if (r && typeof r !== "string") await r;
15372
- e.removeAllListeners();
15484
+ const { stdin } = this._options;
15485
+ if (stdin && typeof stdin !== "string") await stdin;
15486
+ proc.removeAllListeners();
15373
15487
  if (this._thrownError) throw this._thrownError;
15374
- const i = {
15375
- stderr: n,
15376
- stdout: t,
15488
+ const result = {
15489
+ stderr,
15490
+ stdout,
15377
15491
  exitCode: this.exitCode
15378
15492
  };
15379
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new k(this, i);
15380
- return i;
15493
+ if (this._options.throwOnError && (this.exitCode !== 0 && this.exitCode !== void 0 || this.signalCode !== null)) throw new NonZeroExitError(this, result, this._command, this._args);
15494
+ return result;
15381
15495
  }
15382
- then(e, t) {
15383
- return this._waitForOutput().then(e, t);
15496
+ then(onfulfilled, onrejected) {
15497
+ return this._waitForOutput().then(onfulfilled, onrejected);
15384
15498
  }
15385
15499
  _streamOut;
15386
15500
  _streamErr;
15387
15501
  spawn() {
15388
- const t = cwd();
15389
- const r = this._options;
15390
- const i = {
15391
- ...N,
15392
- ...r.nodeOptions
15502
+ const cwd$1 = cwd();
15503
+ const options = this._options;
15504
+ const nodeOptions = {
15505
+ ...defaultNodeOptions,
15506
+ ...options.nodeOptions
15393
15507
  };
15394
- const a = [];
15508
+ const signals = [];
15395
15509
  this._resetState();
15396
- if (r.timeout !== void 0) a.push(AbortSignal.timeout(r.timeout));
15397
- if (r.signal !== void 0) a.push(r.signal);
15398
- if (r.persist === true) i.detached = true;
15399
- if (a.length > 0) i.signal = P(a);
15400
- i.env = y(t, i.env, r.nodePath);
15401
- const o = D(this._command, this._args, i);
15402
- const s = spawn(o.command, o.args, o.options);
15403
- if (s.stderr) this._streamErr = s.stderr;
15404
- if (s.stdout) this._streamOut = s.stdout;
15405
- this._process = s;
15406
- s.once("error", this._onError);
15407
- s.once("close", this._onClose);
15408
- if (s.stdin) {
15409
- const { stdin: e } = r;
15410
- if (typeof e === "string") s.stdin.end(e);
15411
- else e?.process?.stdout?.pipe(s.stdin);
15510
+ if (options.timeout !== void 0) signals.push(AbortSignal.timeout(options.timeout));
15511
+ if (options.signal !== void 0) signals.push(options.signal);
15512
+ if (options.persist === true) nodeOptions.detached = true;
15513
+ if (signals.length > 0) nodeOptions.signal = combineSignals(signals);
15514
+ nodeOptions.env = computeEnv(cwd$1, nodeOptions.env, options.nodePath);
15515
+ const crossResult = normalizeSpawnCommand(this._command, this._args, nodeOptions);
15516
+ const handle = spawn(crossResult.command, crossResult.args, crossResult.options);
15517
+ if (handle.stderr) this._streamErr = handle.stderr;
15518
+ if (handle.stdout) this._streamOut = handle.stdout;
15519
+ this._process = handle;
15520
+ handle.once("error", this._onError);
15521
+ handle.once("close", this._onClose);
15522
+ if (handle.stdin) {
15523
+ const { stdin } = options;
15524
+ if (typeof stdin === "string") handle.stdin.end(stdin);
15525
+ else stdin?.process?.stdout?.pipe(handle.stdin);
15412
15526
  }
15413
15527
  }
15414
15528
  _resetState() {
15415
15529
  this._aborted = false;
15416
- this._processClosed = new Promise((e) => {
15417
- this._resolveClose = e;
15530
+ this._processClosed = new Promise((resolve) => {
15531
+ this._resolveClose = resolve;
15418
15532
  });
15419
15533
  this._thrownError = void 0;
15420
15534
  }
15421
- _onError = (e) => {
15422
- if (e.name === "AbortError" && (!(e.cause instanceof Error) || e.cause.name !== "TimeoutError")) {
15535
+ _onError = (err) => {
15536
+ if (err.name === "AbortError" && (!(err.cause instanceof Error) || err.cause.name !== "TimeoutError")) {
15423
15537
  this._aborted = true;
15424
15538
  return;
15425
15539
  }
15426
- this._thrownError = e;
15540
+ this._thrownError = err;
15427
15541
  };
15428
15542
  _onClose = () => {
15429
15543
  if (this._resolveClose) this._resolveClose();
15430
15544
  };
15431
15545
  };
15432
- R = (e, t, n) => {
15433
- const r = new I(e, t, n);
15434
- r.spawn();
15435
- return r;
15546
+ x = (command, args, userOptions) => {
15547
+ const proc = new ExecProcess(command, args, userOptions);
15548
+ proc.spawn();
15549
+ return proc;
15436
15550
  };
15437
- z = R;
15551
+ exec = x;
15438
15552
  }));
15439
15553
  //#endregion
15440
15554
  //#region ../../node_modules/.pnpm/@publint+pack@0.1.6/node_modules/@publint/pack/src/node/utils.js
@@ -15483,7 +15597,7 @@ async function pack(dir, opts) {
15483
15597
  case "yarn": break;
15484
15598
  default: command.push("--ignore-scripts");
15485
15599
  }
15486
- const output = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
15600
+ const output = await exec(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
15487
15601
  const tarballFile = await fs$1.readdir(packDestination).then((files) => {
15488
15602
  return files.find((file) => file.endsWith(".tgz") && output.stdout.includes(file));
15489
15603
  });
@@ -15520,7 +15634,7 @@ async function packAsJson(dir, opts) {
15520
15634
  case "yarn": break;
15521
15635
  default: command.push("--ignore-scripts");
15522
15636
  }
15523
- let { stdout } = await z(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
15637
+ let { stdout } = await exec(command[0], command.slice(1), { nodeOptions: { cwd: dir } });
15524
15638
  try {
15525
15639
  stdout = stdout.trim();
15526
15640
  if (packageManager === "pnpm") stdout = fixPnpmStdout(stdout);
@@ -17185,7 +17299,7 @@ function createTarballVfs(files) {
17185
17299
  }
17186
17300
  var init_vfs_tarball = __esmMin((() => {}));
17187
17301
  //#endregion
17188
- //#region ../../node_modules/.pnpm/package-manager-detector@1.7.0/node_modules/package-manager-detector/dist/constants.mjs
17302
+ //#region ../../node_modules/.pnpm/package-manager-detector@1.8.0/node_modules/package-manager-detector/dist/constants.mjs
17189
17303
  var AGENTS, LOCKS, INSTALL_METADATA;
17190
17304
  var init_constants = __esmMin((() => {
17191
17305
  AGENTS = [
@@ -17194,6 +17308,7 @@ var init_constants = __esmMin((() => {
17194
17308
  "yarn@berry",
17195
17309
  "pnpm",
17196
17310
  "pnpm@6",
17311
+ "pnpm-rush",
17197
17312
  "bun",
17198
17313
  "deno",
17199
17314
  "nub",
@@ -17205,6 +17320,7 @@ var init_constants = __esmMin((() => {
17205
17320
  "bun.lock": "bun",
17206
17321
  "bun.lockb": "bun",
17207
17322
  "deno.lock": "deno",
17323
+ "nub.lock": "nub",
17208
17324
  "pnpm-lock.yaml": "pnpm",
17209
17325
  "pnpm-workspace.yaml": "pnpm",
17210
17326
  "yarn.lock": "yarn",
@@ -17225,7 +17341,7 @@ var init_constants = __esmMin((() => {
17225
17341
  };
17226
17342
  }));
17227
17343
  //#endregion
17228
- //#region ../../node_modules/.pnpm/package-manager-detector@1.7.0/node_modules/package-manager-detector/dist/detect.mjs
17344
+ //#region ../../node_modules/.pnpm/package-manager-detector@1.8.0/node_modules/package-manager-detector/dist/detect.mjs
17229
17345
  var detect_exports = /* @__PURE__ */ __exportAll({
17230
17346
  detect: () => detect,
17231
17347
  getUserAgent: () => getUserAgent
@@ -17270,6 +17386,10 @@ async function detect(options = {}) {
17270
17386
  for (const directory of lookup(cwd)) {
17271
17387
  for (const strategy of strategies) switch (strategy) {
17272
17388
  case "lockfile":
17389
+ if (await pathExists(PATH.join(directory, "rush.json"), "file")) return {
17390
+ name: "pnpm",
17391
+ agent: "pnpm-rush"
17392
+ };
17273
17393
  for (const lock of Object.keys(LOCKS)) if (await pathExists(PATH.join(directory, lock), "file")) {
17274
17394
  const name = LOCKS[lock];
17275
17395
  const result = await parsePackageJson(PATH.join(directory, "package.json"), options);