@voidzero-dev/vite-plus-core 0.3.1 → 0.3.3

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 (68) hide show
  1. package/LICENSE +0 -29
  2. package/dist/rolldown/cli.mjs +6 -6
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +9 -4
  6. package/dist/rolldown/experimental-index.mjs +10 -9
  7. package/dist/rolldown/experimental-runtime-types.d.ts +19 -0
  8. package/dist/rolldown/experimental-runtime.d.ts +19 -0
  9. package/dist/rolldown/experimental-runtime.mjs +42 -0
  10. package/dist/rolldown/filter-index.d.mts +1 -1
  11. package/dist/rolldown/index.d.mts +2 -2
  12. package/dist/rolldown/index.mjs +4 -4
  13. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  14. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  16. package/dist/rolldown/parse-ast-index.mjs +1 -1
  17. package/dist/rolldown/plugins-index.d.mts +3 -3
  18. package/dist/rolldown/plugins-index.mjs +2 -2
  19. package/dist/rolldown/shared/{binding-DZuNHVw4.d.mts → binding-BTa6BPQe.d.mts} +23 -36
  20. package/dist/rolldown/shared/{binding-DmImI4pj.mjs → binding-BbrDfv1x.mjs} +53 -28
  21. package/dist/rolldown/shared/{bindingify-input-options-BYClWKnj.mjs → bindingify-input-options-CbBAjvu6.mjs} +9 -8
  22. package/dist/rolldown/shared/{constructors-BM20b11r.d.mts → constructors-CmDKpWIU.d.mts} +2 -2
  23. package/dist/rolldown/shared/{constructors-mRbcbLyX.mjs → constructors-D9jwEbE4.mjs} +1 -1
  24. package/dist/rolldown/shared/{create-bundler-option-CHTBktos.mjs → create-bundler-option-wxuQPB7F.mjs} +120 -160
  25. package/dist/rolldown/shared/{define-config-DNX0WekP.d.mts → define-config-BFdLpVut.d.mts} +10 -1
  26. package/dist/rolldown/shared/{error-BP8lJHle.mjs → error-CGhV1ebk.mjs} +1 -1
  27. package/dist/rolldown/shared/{load-config-Cx5fx_8Q.mjs → load-config-DOMKIWz0.mjs} +1 -1
  28. package/dist/rolldown/shared/{normalize-string-or-regex-Dm69lpQ-.mjs → normalize-string-or-regex-zc1bUto6.mjs} +1 -1
  29. package/dist/rolldown/shared/{parse-8sr82jSR.mjs → parse-B-7jgDap.mjs} +2 -2
  30. package/dist/rolldown/shared/{resolve-tsconfig-BlNGaH3Y.mjs → resolve-tsconfig-Bf6oL9fm.mjs} +2 -2
  31. package/dist/rolldown/shared/{rolldown-CaX_Wmqc.mjs → rolldown-DZGaRc5R.mjs} +4 -4
  32. package/dist/rolldown/shared/{transform-CVse9_mH.d.mts → transform-DK_nCt9j.d.mts} +1 -1
  33. package/dist/rolldown/shared/{watch-YKfJgIxz.mjs → watch-CUKYWzxY.mjs} +4 -4
  34. package/dist/rolldown/utils-index.d.mts +3 -3
  35. package/dist/rolldown/utils-index.mjs +5 -5
  36. package/dist/tsdown/{build-JVmLFaZt-kqQJ2U7s.js → build-JVmLFaZt-BN9yuB6k.js} +13 -426
  37. package/dist/tsdown/{debug-CpC4hV25-tvH_Dsg5.js → debug-CpC4hV25-BeCITV83.js} +4 -90
  38. package/dist/tsdown/{detect-Bg-d8iUV-KfbO7neP.js → detect-Bg-d8iUV-Cr_BRLVW.js} +1 -1
  39. package/dist/tsdown/{dist-Cuw3Ngo4.js → dist-ByW_jJfv.js} +5 -5
  40. package/dist/tsdown/index-types.d.ts +52 -52
  41. package/dist/tsdown/index.js +4 -4
  42. package/dist/tsdown/internal-DTYQdXId.js +3 -0
  43. package/dist/tsdown/{main-CyNcZUzu.js → main-bgV9NlwM.js} +88 -3
  44. package/dist/tsdown/{resolver-DE0_sy8o-ZQqHQjRu.js → resolver-DE0_sy8o-UMsN-SXx.js} +2 -2
  45. package/dist/tsdown/run.js +4 -4
  46. package/dist/tsdown/{src-BWidcM5N.js → src-D5xv98Iu.js} +4 -4
  47. package/dist/tsdown/target-DgdLrXba-DaJJ11xX.js +586 -0
  48. package/dist/tsdown/{tsc-ChjRhsoQ.js → tsc-BFDF_Im9.js} +3 -3
  49. package/dist/tsdown/tsdown-css.js +5 -3
  50. package/dist/tsdown/tsdown-exe.js +4 -15
  51. package/dist/vite/client/bundledDevClient.mjs +105 -40
  52. package/dist/vite/client/client.mjs +288 -260
  53. package/dist/vite/node/chunks/build.js +19 -19
  54. package/dist/vite/node/chunks/node.js +32770 -32305
  55. package/dist/vite/node/chunks/postcss-import.js +10 -10
  56. package/dist/vite/node/cli.js +12 -8
  57. package/dist/vite/node/index.d.ts +1568 -1577
  58. package/dist/vite/node/index.js +1 -1
  59. package/dist/vite/node/module-runner.d.ts +1 -1
  60. package/dist/vite/node/module-runner.js +199 -200
  61. package/dist/vite/types/customEvent.d.ts +2 -0
  62. package/dist/vite/types/hmrPayload.d.ts +2 -0
  63. package/dist/vite/types/internal/cssPreprocessorOptions.d.ts +2 -2
  64. package/dist/vite/types/internal/devtoolsOptions.d.ts +9 -0
  65. package/package.json +23 -26
  66. package/dist/tsdown/internal-D-JfB5uT.js +0 -29
  67. package/dist/tsdown/internal-lhH-5yya.js +0 -62
  68. package/dist/tsdown/version-CQ98ZBpL-Obdnv4J7.js +0 -141
@@ -1,8 +1,7 @@
1
1
  import { i as __toESM, n as __exportAll$1, t as __commonJSMin } from "./rolldown-runtime-B4iAMlE-.js";
2
- import { _ as resolveRegex, a as createSuppressWarnings, b as toArray, c as globalLogger, d as debounce, f as importWithError, g as resolveComma, h as pkgExists, i as createLogger, l as prettyFormat, m as noop, n as version, o as generateColor, p as matchPattern, r as LogLevels, s as getNameLabel, u as createConcurrencyExecutor, v as slash, y as styleText$1 } from "./debug-CpC4hV25-tvH_Dsg5.js";
3
- import { n as x, r as createDebug, t as exec } from "./main-CyNcZUzu.js";
4
- import { i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./internal-D-JfB5uT.js";
5
- import { a as GREATER_LESS_THAN, c as LOOSE_PLAIN, d as compareParsed, f as formatComparableVersion, g as tryParse, h as safeRegex, i as FULL_PLAIN, l as XRANGE_PLAIN, m as parse$2, n as normalize$2, o as LONE_CARET, p as isGreaterOrEqual, r as BUILD, s as LONE_TILDE, t as coerce, u as XRANGE_PLAIN_LOOSE } from "./version-CQ98ZBpL-Obdnv4J7.js";
2
+ import { c as importWithError, d as pkgExists, f as resolveComma, g as toArray, h as styleText$1, l as matchPattern, m as slash, n as x, o as createConcurrencyExecutor, p as resolveRegex, r as createDebug, s as debounce, t as exec, u as noop } from "./main-bgV9NlwM.js";
3
+ import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-CpC4hV25-BeCITV83.js";
4
+ import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, a as resolveTarget, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, l as parseRange, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as satisfies, v as RE_NODE_MODULES$1 } from "./target-DgdLrXba-DaJJ11xX.js";
6
5
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
7
6
  import process$1 from "node:process";
8
7
  import { formatWithOptions, inspect, isDeepStrictEqual, parseEnv, promisify } from "node:util";
@@ -11,7 +10,7 @@ import path, { dirname, isAbsolute, join, parse, resolve } from "node:path";
11
10
  import { fileURLToPath, pathToFileURL } from "node:url";
12
11
  import X, { existsSync, readFileSync, writeFileSync } from "node:fs";
13
12
  import { VERSION, build, watch } from "@voidzero-dev/vite-plus-core/rolldown";
14
- import { access, chmod, cp, mkdir, mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
13
+ import { chmod, mkdtemp, readFile, readdir, writeFile } from "node:fs/promises";
15
14
  import { and, id, importerId, include } from "@voidzero-dev/vite-plus-core/rolldown/filter";
16
15
  import * as nativeFs from "fs";
17
16
  import Ue, { readdir as readdir$1, readdirSync, realpath, realpathSync, stat as stat$1, statSync as statSync$1 } from "fs";
@@ -25,54 +24,6 @@ import { AsyncLocalStorage } from "node:async_hooks";
25
24
  import { Buffer } from "node:buffer";
26
25
  import { brotliCompress, gzip } from "node:zlib";
27
26
  import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
28
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/format-DLxyxnif.mjs
29
- function fsExists(path) {
30
- return access(path).then(() => true, () => false);
31
- }
32
- function fsStat(path) {
33
- return stat(path).catch(() => null);
34
- }
35
- function fsRemove(path) {
36
- return rm(path, {
37
- force: true,
38
- recursive: true
39
- }).catch(() => {});
40
- }
41
- function fsCopy(from, to) {
42
- return cp(from, to, {
43
- recursive: true,
44
- force: true
45
- });
46
- }
47
- function lowestCommonAncestor(...filepaths) {
48
- if (filepaths.length === 0) return "";
49
- if (filepaths.length === 1) return path.dirname(filepaths[0]);
50
- filepaths = filepaths.map(path.normalize);
51
- const [first, ...rest] = filepaths;
52
- let ancestor = first.split(path.sep);
53
- for (const filepath of rest) {
54
- const directories = filepath.split(path.sep, ancestor.length);
55
- let index = 0;
56
- for (const directory of directories) if (directory === ancestor[index]) index += 1;
57
- else {
58
- ancestor = ancestor.slice(0, index);
59
- break;
60
- }
61
- ancestor = ancestor.slice(0, index);
62
- }
63
- return ancestor.length <= 1 && ancestor[0] === "" ? path.sep + ancestor[0] : ancestor.join(path.sep);
64
- }
65
- function stripExtname(filePath) {
66
- const ext = path.extname(filePath);
67
- if (!ext.length) return filePath;
68
- return filePath.slice(0, -ext.length);
69
- }
70
- function formatBytes(bytes) {
71
- if (bytes === Infinity) return void 0;
72
- if (bytes > 1e6) return `${(bytes / 1e6).toFixed(2)} MB`;
73
- return `${(bytes / 1e3).toFixed(2)} kB`;
74
- }
75
- //#endregion
76
27
  //#region ../../node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
77
28
  const A = (r) => r !== null && typeof r == "object";
78
29
  const a = (r, t) => Object.assign(/* @__PURE__ */ new Error(`[${r}]: ${t}`), { code: r });
@@ -1133,7 +1084,7 @@ i((e, n) => {
1133
1084
  return m.substitutions.map((f) => E(f.replace("*", v)));
1134
1085
  }, "resolvePathAlias");
1135
1086
  //#endregion
1136
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/deps-DCK8g4G9.mjs
1087
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_298964156353ef75a02894ab80b3a2e6/node_modules/tsdown/dist/deps-DCK8g4G9.mjs
1137
1088
  const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
1138
1089
  const shimsInject = {
1139
1090
  __dirname: [shimFile, "__dirname"],
@@ -1161,7 +1112,7 @@ function getShims(config) {
1161
1112
  };
1162
1113
  return { inject: shimsInject };
1163
1114
  }
1164
- const debug$9 = createDebug("tsdown:deps");
1115
+ const debug$7 = createDebug("tsdown:deps");
1165
1116
  /**
1166
1117
  * Matches specifiers that follow npm package naming conventions,
1167
1118
  * e.g. `pkg`, `pkg/subpath`, `@scope/pkg/subpath`.
@@ -1214,12 +1165,12 @@ function DepsPlugin({ pkg, deps: { neverBundle, alwaysBundle: jsAlwaysBundle, on
1214
1165
  });
1215
1166
  let shouldExternal = await externalStrategy(id, importer, resolve);
1216
1167
  if (Array.isArray(shouldExternal)) {
1217
- debug$9("custom resolved id for %o -> %o", id, shouldExternal[1]);
1168
+ debug$7("custom resolved id for %o -> %o", id, shouldExternal[1]);
1218
1169
  id = shouldExternal[1];
1219
1170
  shouldExternal = shouldExternal[0];
1220
1171
  }
1221
1172
  const moduleSideEffects = isBuiltin(id) ? false : void 0;
1222
- debug$9("shouldExternal: %o = %o", id, shouldExternal);
1173
+ debug$7("shouldExternal: %o = %o", id, shouldExternal);
1223
1174
  if (shouldExternal === true || shouldExternal === "absolute") return {
1224
1175
  id,
1225
1176
  external: shouldExternal,
@@ -1261,7 +1212,7 @@ function DepsPlugin({ pkg, deps: { neverBundle, alwaysBundle: jsAlwaysBundle, on
1261
1212
  if (module) importers.set(parsed.name, /* @__PURE__ */ new Set([...module.importers, ...importers.get(parsed.name) || []]));
1262
1213
  }
1263
1214
  }
1264
- debug$9("found deps in bundle: %o", deps);
1215
+ debug$7("found deps in bundle: %o", deps);
1265
1216
  if (onlyBundle) errors.push(...Array.from(deps).filter((dep) => !matchPattern(dep, onlyBundle)).map((dep) => `${styleText$1.yellow(dep)} is located in ${styleText$1.blue(`node_modules`)} but is not included in ${styleText$1.blue(`deps.onlyBundle`)} option.\nTo fix this, either add it to ${styleText$1.blue(`deps.onlyBundle`)}, declare it as a production or peer dependency in your package.json, or externalize it manually.\nImported by\n${[...importers.get(dep) || []].map((s) => `- ${styleText$1.underline(s)}`).join("\n")}`));
1266
1217
  if (errors.length) this.error(errors.join("\n\n"));
1267
1218
  if (onlyBundle) {
@@ -1394,370 +1345,6 @@ function getProductionDeps(pkg) {
1394
1345
  ]);
1395
1346
  }
1396
1347
  //#endregion
1397
- //#region ../../node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/set-CC5YeoYX.js
1398
- const STRICT_COMPARATOR = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*(${FULL_PLAIN})$|^$`);
1399
- const LOOSE_COMPARATOR$1 = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*(${LOOSE_PLAIN})$|^$`);
1400
- function parseComparator(comparator, options = {}) {
1401
- if (typeof comparator !== "string") return comparator;
1402
- const normalized = comparator.trim().replaceAll(/\s+/g, " ");
1403
- const match = normalized.match(options.loose ? LOOSE_COMPARATOR$1 : STRICT_COMPARATOR);
1404
- if (!match) throw new TypeError(`Invalid comparator: ${normalized}`);
1405
- const operator = match[1] === "=" ? "" : match[1] || "";
1406
- const version = match[2] ? parse$2(match[2], options) : null;
1407
- return {
1408
- operator,
1409
- options,
1410
- value: version ? `${operator}${formatComparableVersion(version)}` : "",
1411
- version
1412
- };
1413
- }
1414
- function testParsedComparator(comparator, version) {
1415
- if (!comparator.version) return true;
1416
- const comparison = compareParsed(version, comparator.version);
1417
- switch (comparator.operator) {
1418
- case "": return comparison === 0;
1419
- case ">": return comparison > 0;
1420
- case ">=": return comparison >= 0;
1421
- case "<": return comparison < 0;
1422
- case "<=": return comparison <= 0;
1423
- }
1424
- }
1425
- function comparatorAllowsPrerelease(comparator, version) {
1426
- const allowed = comparator.version;
1427
- return allowed !== null && !!allowed.prerelease?.length && allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch;
1428
- }
1429
- function testComparatorSet(set, version, options) {
1430
- if (set.some((comparator) => !testParsedComparator(comparator, version))) return false;
1431
- return !version.prerelease?.length || !!options.includePrerelease || set.some((comparator) => comparatorAllowsPrerelease(comparator, version));
1432
- }
1433
- //#endregion
1434
- //#region ../../node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/range-DvX-Y6iv.js
1435
- const BUILD_STRIP = new RegExp(BUILD, "g");
1436
- const BUILD_SAFE = safeRegex(BUILD);
1437
- const STRICT_HYPHEN = safeRegex(String.raw`^\s*(${XRANGE_PLAIN})\s+-\s+(${XRANGE_PLAIN})\s*$`);
1438
- const LOOSE_HYPHEN = safeRegex(String.raw`^\s*(${XRANGE_PLAIN_LOOSE})\s+-\s+(${XRANGE_PLAIN_LOOSE})\s*$`);
1439
- const COMPARATOR_TRIM = safeRegex(String.raw`(\s*)${GREATER_LESS_THAN}\s*(${LOOSE_PLAIN}|${XRANGE_PLAIN})`, "g");
1440
- const TILDE_TRIM = safeRegex(String.raw`(\s*)${LONE_TILDE}\s+`, "g");
1441
- const CARET_TRIM = safeRegex(String.raw`(\s*)${LONE_CARET}\s+`, "g");
1442
- const STRICT_TILDE = safeRegex(`^${LONE_TILDE}${XRANGE_PLAIN}$`);
1443
- const LOOSE_TILDE = safeRegex(`^${LONE_TILDE}${XRANGE_PLAIN_LOOSE}$`);
1444
- const STRICT_CARET = safeRegex(`^${LONE_CARET}${XRANGE_PLAIN}$`);
1445
- const LOOSE_CARET = safeRegex(`^${LONE_CARET}${XRANGE_PLAIN_LOOSE}$`);
1446
- const STRICT_XRANGE = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*${XRANGE_PLAIN}$`);
1447
- const LOOSE_XRANGE = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*${XRANGE_PLAIN_LOOSE}$`);
1448
- const STAR = safeRegex(String.raw`(<|>)?=?\s*\*`);
1449
- const GTE_ZERO = /^\s*>=\s*0\.0\.0\s*$/;
1450
- const GTE_ZERO_PRERELEASE = /^\s*>=\s*0\.0\.0-0\s*$/;
1451
- const LOOSE_COMPARATOR = safeRegex(String.raw`^${GREATER_LESS_THAN}\s*(${LOOSE_PLAIN})$|^$`);
1452
- function isWildcard(value) {
1453
- return !value || String(value).toLowerCase() === "x" || String(value) === "*";
1454
- }
1455
- function hasInvalidWildcardOrder(major, minor, patch) {
1456
- return isWildcard(major) && !isWildcard(minor) || isWildcard(minor) && Boolean(patch) && !isWildcard(patch);
1457
- }
1458
- function replaceTilde(comparator, options) {
1459
- const expression = options.loose ? LOOSE_TILDE : STRICT_TILDE;
1460
- const lowerPrerelease = options.includePrerelease ? "-0" : "";
1461
- return comparator.replace(expression, (_match, major, minor, patch, prerelease) => {
1462
- if (isWildcard(major)) return "";
1463
- if (isWildcard(minor)) return `>=${major}.0.0${lowerPrerelease} <${Number(major) + 1}.0.0-0`;
1464
- if (isWildcard(patch)) return `>=${major}.${minor}.0${lowerPrerelease} <${major}.${Number(minor) + 1}.0-0`;
1465
- return prerelease ? `>=${major}.${minor}.${patch}-${prerelease} <${major}.${Number(minor) + 1}.0-0` : `>=${major}.${minor}.${patch} <${major}.${Number(minor) + 1}.0-0`;
1466
- });
1467
- }
1468
- function replaceTildes(comparator, options) {
1469
- return comparator.trim().split(/\s+/).map((part) => replaceTilde(part, options)).join(" ");
1470
- }
1471
- function replaceCaret(comparator, options) {
1472
- const expression = options.loose ? LOOSE_CARET : STRICT_CARET;
1473
- const lowerPrerelease = options.includePrerelease ? "-0" : "";
1474
- return comparator.replace(expression, (_match, major, minor, patch, prerelease) => {
1475
- if (isWildcard(major)) return "";
1476
- if (isWildcard(minor)) return `>=${major}.0.0${lowerPrerelease} <${Number(major) + 1}.0.0-0`;
1477
- if (isWildcard(patch)) return major === "0" ? `>=${major}.${minor}.0${lowerPrerelease} <${major}.${Number(minor) + 1}.0-0` : `>=${major}.${minor}.0${lowerPrerelease} <${Number(major) + 1}.0.0-0`;
1478
- if (prerelease) return major === "0" ? minor === "0" ? `>=${major}.${minor}.${patch}-${prerelease} <${major}.${minor}.${Number(patch) + 1}-0` : `>=${major}.${minor}.${patch}-${prerelease} <${major}.${Number(minor) + 1}.0-0` : `>=${major}.${minor}.${patch}-${prerelease} <${Number(major) + 1}.0.0-0`;
1479
- return major === "0" ? minor === "0" ? `>=${major}.${minor}.${patch} <${major}.${minor}.${Number(patch) + 1}-0` : `>=${major}.${minor}.${patch} <${major}.${Number(minor) + 1}.0-0` : `>=${major}.${minor}.${patch} <${Number(major) + 1}.0.0-0`;
1480
- });
1481
- }
1482
- function replaceCarets(comparator, options) {
1483
- return comparator.trim().split(/\s+/).map((part) => replaceCaret(part, options)).join(" ");
1484
- }
1485
- function replaceXRange(comparator, options) {
1486
- const expression = options.loose ? LOOSE_XRANGE : STRICT_XRANGE;
1487
- return comparator.trim().replace(expression, (match, rawOperator, rawMajor, rawMinor, rawPatch) => {
1488
- let operator = rawOperator;
1489
- let major = rawMajor;
1490
- let minor = rawMinor;
1491
- let patch = rawPatch;
1492
- if (hasInvalidWildcardOrder(String(major), minor === void 0 ? void 0 : String(minor), patch === void 0 ? void 0 : String(patch))) return comparator;
1493
- const wildcardMajor = isWildcard(major);
1494
- const wildcardMinor = wildcardMajor || isWildcard(minor);
1495
- const wildcardPatch = wildcardMinor || isWildcard(patch);
1496
- if (operator === "=" && wildcardPatch) operator = "";
1497
- if (wildcardMajor) return operator === ">" || operator === "<" ? "<0.0.0-0" : "*";
1498
- let prerelease = options.includePrerelease ? "-0" : "";
1499
- if (operator && wildcardPatch) {
1500
- if (wildcardMinor) minor = 0;
1501
- patch = 0;
1502
- if (operator === ">") {
1503
- operator = ">=";
1504
- if (wildcardMinor) {
1505
- major = Number(major) + 1;
1506
- minor = 0;
1507
- } else minor = Number(minor) + 1;
1508
- } else if (operator === "<=") {
1509
- operator = "<";
1510
- if (wildcardMinor) major = Number(major) + 1;
1511
- else minor = Number(minor) + 1;
1512
- }
1513
- if (operator === "<") prerelease = "-0";
1514
- return `${operator}${major}.${minor}.${patch}${prerelease}`;
1515
- }
1516
- if (wildcardMinor) return `>=${major}.0.0${prerelease} <${Number(major) + 1}.0.0-0`;
1517
- if (wildcardPatch) return `>=${major}.${minor}.0${prerelease} <${major}.${Number(minor) + 1}.0-0`;
1518
- return match;
1519
- });
1520
- }
1521
- function replaceXRanges(comparator, options) {
1522
- return comparator.split(/\s+/).map((part) => replaceXRange(part, options)).join(" ");
1523
- }
1524
- function replaceHyphenRange(range, options) {
1525
- const expression = options.loose ? LOOSE_HYPHEN : STRICT_HYPHEN;
1526
- return range.replace(expression, (_match, rawFrom, fromMajor, fromMinor, fromPatch, fromPrerelease, _fromBuild, rawTo, toMajor, toMinor, toPatch, toPrerelease) => {
1527
- let from = rawFrom;
1528
- let to = rawTo;
1529
- if (isWildcard(fromMajor)) from = "";
1530
- else if (isWildcard(fromMinor)) from = `>=${fromMajor}.0.0${options.includePrerelease ? "-0" : ""}`;
1531
- else if (isWildcard(fromPatch)) from = `>=${fromMajor}.${fromMinor}.0${options.includePrerelease ? "-0" : ""}`;
1532
- else if (fromPrerelease) from = `>=${from}`;
1533
- else from = `>=${from}${options.includePrerelease ? "-0" : ""}`;
1534
- if (isWildcard(toMajor)) to = "";
1535
- else if (isWildcard(toMinor)) to = `<${Number(toMajor) + 1}.0.0-0`;
1536
- else if (isWildcard(toPatch)) to = `<${toMajor}.${Number(toMinor) + 1}.0-0`;
1537
- else if (toPrerelease) to = `<=${toMajor}.${toMinor}.${toPatch}-${toPrerelease}`;
1538
- else if (options.includePrerelease) to = `<${toMajor}.${toMinor}.${Number(toPatch) + 1}-0`;
1539
- else to = `<=${to}`;
1540
- return `${from} ${to}`.trim();
1541
- });
1542
- }
1543
- function expandComparator(comparator, options) {
1544
- return replaceXRanges(replaceTildes(replaceCarets(comparator.replace(BUILD_SAFE, ""), options), options), options).trim().replace(STAR, "");
1545
- }
1546
- function parseSimpleRange(input, options) {
1547
- let parts = replaceHyphenRange(input.replace(BUILD_STRIP, ""), options).replace(COMPARATOR_TRIM, "$1$2$3").replace(TILDE_TRIM, "$1~").replace(CARET_TRIM, "$1^").split(" ").map((part) => expandComparator(part, options)).join(" ").split(/\s+/).map((part) => part.trim().replace(options.includePrerelease ? GTE_ZERO_PRERELEASE : GTE_ZERO, ""));
1548
- if (options.loose) parts = parts.filter((part) => LOOSE_COMPARATOR.test(part));
1549
- const unique = /* @__PURE__ */ new Map();
1550
- for (const comparator of parts.map((part) => parseComparator(part, options))) {
1551
- if (comparator.value === "<0.0.0-0") return [comparator];
1552
- unique.set(comparator.value, comparator);
1553
- }
1554
- if (unique.size > 1) unique.delete("");
1555
- return [...unique.values()];
1556
- }
1557
- function parseRange(range, options = {}) {
1558
- if (typeof range !== "string") return range;
1559
- const parsedOptions = { ...options };
1560
- const normalizedRange = range.trim().replaceAll(/\s+/g, " ");
1561
- let sets = normalizedRange.split("||").map((part) => parseSimpleRange(part.trim(), parsedOptions)).filter((set) => set.length);
1562
- if (!sets.length) throw new TypeError(`Range contains no valid comparator sets: ${normalizedRange}`);
1563
- if (sets.length > 1) {
1564
- const first = sets[0];
1565
- sets = sets.filter((set) => set[0]?.value !== "<0.0.0-0");
1566
- if (!sets.length) sets = [first];
1567
- else if (sets.length > 1) {
1568
- const any = sets.find((set) => set.length === 1 && set[0]?.value === "");
1569
- if (any) sets = [any];
1570
- }
1571
- }
1572
- return {
1573
- options: parsedOptions,
1574
- sets
1575
- };
1576
- }
1577
- function tryParseRange(range, options = {}) {
1578
- try {
1579
- return parseRange(range, options);
1580
- } catch {
1581
- return null;
1582
- }
1583
- }
1584
- function testParsedRange(range, version) {
1585
- return range.sets.some((set) => testComparatorSet(set, version, range.options));
1586
- }
1587
- function testRangeVersion(range, version) {
1588
- const parsed = tryParse(version, range.options);
1589
- return parsed ? testParsedRange(range, parsed) : false;
1590
- }
1591
- function satisfies(version, range, options = {}) {
1592
- const parsed = tryParseRange(range, options);
1593
- return parsed ? testRangeVersion(parsed, version) : false;
1594
- }
1595
- function nextVersionAfter(version) {
1596
- const { prerelease } = version;
1597
- return prerelease?.length ? {
1598
- major: version.major,
1599
- minor: version.minor,
1600
- patch: version.patch,
1601
- prerelease: [...prerelease, 0]
1602
- } : {
1603
- major: version.major,
1604
- minor: version.minor,
1605
- patch: version.patch + 1
1606
- };
1607
- }
1608
- function findMinimumForRange(range, options = {}) {
1609
- const parsedRange = parseRange(range, options);
1610
- const zero = {
1611
- major: 0,
1612
- minor: 0,
1613
- patch: 0
1614
- };
1615
- if (testParsedRange(parsedRange, zero)) return zero;
1616
- const zeroPrerelease = {
1617
- ...zero,
1618
- prerelease: [0]
1619
- };
1620
- if (testParsedRange(parsedRange, zeroPrerelease)) return zeroPrerelease;
1621
- let minimum = null;
1622
- for (const set of parsedRange.sets) {
1623
- let setMinimum = null;
1624
- for (const comparator of set) {
1625
- if (!comparator.version) continue;
1626
- const candidate = comparator.operator === ">" ? nextVersionAfter(comparator.version) : comparator.operator === "" || comparator.operator === ">=" ? structuredClone(comparator.version) : null;
1627
- if (candidate && (!setMinimum || compareParsed(candidate, setMinimum) > 0)) setMinimum = candidate;
1628
- }
1629
- if (setMinimum && (!minimum || compareParsed(minimum, setMinimum) > 0)) minimum = setMinimum;
1630
- }
1631
- return minimum && testParsedRange(parsedRange, minimum) ? minimum : null;
1632
- }
1633
- //#endregion
1634
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/target-DgdLrXba.mjs
1635
- const NODE_SEA_MIN_VERSION = "25.7.0";
1636
- const NODE_SEA_MIN_VERSION_PARSED = {
1637
- major: 25,
1638
- minor: 7,
1639
- patch: 0
1640
- };
1641
- const debug$7 = createDebug("tsdown:exe");
1642
- function validateSea({ dts, entry, logger, nameLabel }) {
1643
- if (process$1.versions.bun || process$1.versions.deno) throw new Error("The `exe` option is not supported in Bun and Deno environments.");
1644
- if (!isGreaterOrEqual(process$1.version, NODE_SEA_MIN_VERSION_PARSED)) throw new Error(`Node.js version ${process$1.version} does not support \`exe\` option. Please upgrade to Node.js ${NODE_SEA_MIN_VERSION} or later.`);
1645
- if (Object.keys(entry).length > 1) throw new Error(`The \`exe\` feature currently only supports single entry points. Found entries:\n${JSON.stringify(entry, void 0, 2)}`);
1646
- if (dts) logger.warn(nameLabel, `Generating .d.ts files with \`exe\` option is not recommended since they won't be included in the executable. Consider separating your library and executable targets if you need type declarations.`);
1647
- logger.info(nameLabel, "`exe` option is experimental and may change in future releases.");
1648
- }
1649
- async function buildExe(config, chunks) {
1650
- if (!config.exe) return;
1651
- const filteredChunks = chunks.filter((chunk) => !RE_DTS.test(chunk.fileName));
1652
- if (filteredChunks.length > 1) throw new Error(`The 'exe' feature currently only supports single-chunk outputs. Found ${filteredChunks.length} chunks.\nChunks:\n${filteredChunks.map((c) => `- ${c.fileName}`).join("\n")}`);
1653
- const chunk = filteredChunks[0];
1654
- debug$7("Building executable with SEA for chunk:", chunk.fileName);
1655
- const bundledFile = path.join(config.outDir, chunk.fileName);
1656
- const { targets } = config.exe;
1657
- if (targets?.length) {
1658
- if (config.exe.seaConfig?.executable) config.logger.warn(config.nameLabel, "`seaConfig.executable` is ignored when `targets` is specified.");
1659
- const { resolveNodeBinary, getTargetSuffix } = await import("./tsdown-exe.js");
1660
- for (const target of targets) {
1661
- const nodeBinaryPath = await resolveNodeBinary(target, config.exe, config.logger);
1662
- const suffix = getTargetSuffix(target);
1663
- await buildSingleExe(config, bundledFile, resolveOutputFileName(config.exe, chunk, bundledFile, target, suffix), nodeBinaryPath, target);
1664
- }
1665
- } else await buildSingleExe(config, bundledFile, resolveOutputFileName(config.exe, chunk, bundledFile));
1666
- }
1667
- function resolveOutputFileName(exe, chunk, bundledFile, target, suffix) {
1668
- let baseName;
1669
- if (exe.fileName) baseName = typeof exe.fileName === "function" ? exe.fileName(chunk) : exe.fileName;
1670
- else baseName = path.basename(bundledFile, path.extname(bundledFile));
1671
- if (suffix) baseName += suffix;
1672
- if (target?.platform ? target.platform === "win" : process$1.platform === "win32") baseName += ".exe";
1673
- return baseName;
1674
- }
1675
- async function buildSingleExe(config, bundledFile, outputFile, executable, target) {
1676
- const exe = config.exe;
1677
- const exeOutDir = path.resolve(config.cwd, exe.outDir || "build");
1678
- await mkdir(exeOutDir, { recursive: true });
1679
- const outputPath = path.join(exeOutDir, outputFile);
1680
- debug$7("Building SEA executable: %s -> %s", bundledFile, outputPath);
1681
- const t = performance.now();
1682
- const tempDir = await mkdtemp(path.join(tmpdir(), "tsdown-sea-"));
1683
- try {
1684
- const seaConfig = {
1685
- disableExperimentalSEAWarning: true,
1686
- ...exe.seaConfig,
1687
- main: bundledFile,
1688
- output: outputPath,
1689
- mainFormat: config.format === "es" ? "module" : "commonjs"
1690
- };
1691
- if (executable) seaConfig.executable = executable;
1692
- const seaConfigPath = path.join(tempDir, "sea-config.json");
1693
- await writeFile(seaConfigPath, JSON.stringify(seaConfig));
1694
- debug$7("Wrote sea-config.json: %O -> %s", seaConfig, seaConfigPath);
1695
- debug$7("Running: %s --build-sea %s", process$1.execPath, seaConfigPath);
1696
- await x(process$1.execPath, ["--build-sea", seaConfigPath], {
1697
- nodeOptions: { stdio: [
1698
- "ignore",
1699
- "ignore",
1700
- "inherit"
1701
- ] },
1702
- throwOnError: true,
1703
- nodePath: false
1704
- });
1705
- } finally {
1706
- if (debug$7.enabled) debug$7("Preserving temp directory for debugging: %s", tempDir);
1707
- else await fsRemove(tempDir);
1708
- }
1709
- if ((target?.platform || process$1.platform) === "darwin") try {
1710
- await x("codesign", [
1711
- "--sign",
1712
- "-",
1713
- outputPath
1714
- ], {
1715
- nodeOptions: { stdio: "inherit" },
1716
- throwOnError: true,
1717
- nodePath: false
1718
- });
1719
- } catch {
1720
- config.logger.warn(config.nameLabel, `Failed to code-sign the executable. ${process$1.platform === "darwin" ? `You can sign it manually using:\n codesign --sign - "${outputPath}"` : `Automatic code signing is not supported on ${process$1.platform}.`}`);
1721
- }
1722
- const stat = await fsStat(outputPath);
1723
- if (stat) {
1724
- const sizeText = formatBytes(stat.size);
1725
- config.logger.info(config.nameLabel, styleText$1.bold(path.relative(config.cwd, outputPath)), ` ${styleText$1.dim(sizeText)}`);
1726
- }
1727
- config.logger.success(config.nameLabel, `Built executable: ${styleText$1.red(path.relative(config.cwd, outputPath))}`, styleText$1.dim(`(${Math.round(performance.now() - t)}ms)`));
1728
- }
1729
- const BASELINE_WIDELY_AVAILABLE_TARGET = [
1730
- "chrome111",
1731
- "edge111",
1732
- "firefox114",
1733
- "safari16.4",
1734
- "ios16.4"
1735
- ];
1736
- function expandBaselineTarget(targets) {
1737
- return targets.flatMap((t) => t === "baseline-widely-available" ? BASELINE_WIDELY_AVAILABLE_TARGET : t);
1738
- }
1739
- function resolveTarget(logger, target, color, pkg, nameLabel) {
1740
- if (target === false) return;
1741
- if (target == null) {
1742
- const pkgTarget = resolvePackageTarget(pkg);
1743
- if (pkgTarget) target = pkgTarget;
1744
- else return;
1745
- }
1746
- if (typeof target === "number") throw new TypeError(`Invalid target: ${target}`);
1747
- const targets = expandBaselineTarget(resolveComma(toArray(target)));
1748
- if (targets.length) logger.info(nameLabel, `target${targets.length > 1 ? "s" : ""}: ${color(targets.join(", "))}`);
1749
- return targets;
1750
- }
1751
- function resolvePackageTarget(pkg) {
1752
- const nodeVersion = pkg?.engines?.node;
1753
- if (!nodeVersion) return;
1754
- const nodeMinVersion = findMinimumForRange(nodeVersion);
1755
- if (!nodeMinVersion) return;
1756
- const normalized = normalize$2(nodeMinVersion);
1757
- if (normalized === "0.0.0") return;
1758
- return `node${normalized}`;
1759
- }
1760
- //#endregion
1761
1348
  //#region ../../node_modules/.pnpm/defu@6.1.7/node_modules/defu/dist/defu.mjs
1762
1349
  function isPlainObject(value) {
1763
1350
  if (value === null || typeof value !== "object") return false;
@@ -5634,7 +5221,7 @@ function filterConfig(filter, configCwd, name) {
5634
5221
  return toArray(filter).some((value) => name && name === value || cwd === value);
5635
5222
  }
5636
5223
  //#endregion
5637
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/watch-UrMX4y5g.mjs
5224
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_298964156353ef75a02894ab80b3a2e6/node_modules/tsdown/dist/watch-UrMX4y5g.mjs
5638
5225
  async function copy(options) {
5639
5226
  if (!options.copy) return;
5640
5227
  const resolved = await resolveCopyEntries(options);
@@ -6015,7 +5602,7 @@ var Hookable = class {
6015
5602
  }
6016
5603
  };
6017
5604
  //#endregion
6018
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/build-JVmLFaZt.mjs
5605
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_298964156353ef75a02894ab80b3a2e6/node_modules/tsdown/dist/build-JVmLFaZt.mjs
6019
5606
  var build_JVmLFaZt_exports = /* @__PURE__ */ __exportAll$1({
6020
5607
  n: () => buildWithConfigs,
6021
5608
  r: () => build_exports,
@@ -6321,7 +5908,7 @@ async function bundleDone(bundleByPkg, bundle) {
6321
5908
  async function packTarball(packageJsonPath) {
6322
5909
  const pkgDir = path.dirname(packageJsonPath);
6323
5910
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
6324
- const { detect } = await import("./detect-Bg-d8iUV-KfbO7neP.js");
5911
+ const { detect } = await import("./detect-Bg-d8iUV-Cr_BRLVW.js");
6325
5912
  try {
6326
5913
  const detected = await detect({ cwd: pkgDir });
6327
5914
  debug$1("Detected package manager: %o", detected);
@@ -6462,7 +6049,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
6462
6049
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
6463
6050
  if (config.pkg || config.deps.neverBundle === true || config.deps.dts.neverBundle === true) plugins.push(DepsPlugin(config, bundle));
6464
6051
  if (dts) {
6465
- const { dts: dtsPlugin } = await import("./dist-Cuw3Ngo4.js");
6052
+ const { dts: dtsPlugin } = await import("./dist-ByW_jJfv.js");
6466
6053
  const options = {
6467
6054
  tsconfig,
6468
6055
  logger,
@@ -1,93 +1,7 @@
1
- import { a as namespaces, i as enable, r as createDebug } from "./main-CyNcZUzu.js";
2
- import { createRequire } from "node:module";
1
+ import { a as namespaces, f as resolveComma, g as toArray, h as styleText$1, i as enable, r as createDebug, u as noop } from "./main-bgV9NlwM.js";
3
2
  import process from "node:process";
4
- import { styleText } from "node:util";
5
3
  import readline from "node:readline";
6
- const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
7
- function toArray(val, defaultValue) {
8
- if (Array.isArray(val)) return val;
9
- else if (val == null) {
10
- if (defaultValue) return [defaultValue];
11
- return [];
12
- } else return [val];
13
- }
14
- function resolveComma(arr) {
15
- return arr.flatMap((format) => format.split(","));
16
- }
17
- function resolveRegex(str) {
18
- if (typeof str === "string" && str.length > 2 && str[0] === "/" && str.at(-1) === "/") return new RegExp(str.slice(1, -1));
19
- return str;
20
- }
21
- function slash(string) {
22
- return string.replaceAll("\\", "/");
23
- }
24
- const noop = (v) => v;
25
- function matchPattern(id, patterns) {
26
- return patterns.some((pattern) => {
27
- if (pattern instanceof RegExp) {
28
- pattern.lastIndex = 0;
29
- return pattern.test(id);
30
- }
31
- return id === pattern || picomatch(pattern)(id);
32
- });
33
- }
34
- function pkgExists(moduleName) {
35
- try {
36
- import.meta.resolve(moduleName);
37
- return true;
38
- } catch {}
39
- return false;
40
- }
41
- async function importWithError(moduleName) {
42
- try {
43
- return await import(moduleName);
44
- } catch (error) {
45
- throw new Error(`Failed to import module "${moduleName}". Please ensure it is installed.`, { cause: error });
46
- }
47
- }
48
- function createConcurrencyExecutor(concurrency) {
49
- if (concurrency == null) return (task) => task();
50
- if (!Number.isInteger(concurrency) || concurrency < 1) throw new TypeError("`--concurrency` must be a positive integer");
51
- const queue = [];
52
- let active = 0;
53
- return async (task) => {
54
- if (active >= concurrency) await new Promise((resolve) => queue.push(resolve));
55
- else active++;
56
- try {
57
- return await task();
58
- } finally {
59
- const next = queue.shift();
60
- if (next) next();
61
- else active--;
62
- }
63
- };
64
- }
65
- function debounce(fn, delay) {
66
- let timer;
67
- const debounced = (...args) => {
68
- clearTimeout(timer);
69
- timer = setTimeout(() => fn(...args), delay);
70
- };
71
- debounced.cancel = () => clearTimeout(timer);
72
- return debounced;
73
- }
74
- let supportRGB = !!process.stdout.hasColors?.(2 ** 24);
75
- if (supportRGB) try {
76
- styleText("#000", "");
77
- } catch {
78
- supportRGB = false;
79
- }
80
- const factory = (...formats) => new Proxy(styleText.bind(void 0, formats), { get: (_, format) => {
81
- if (format[0] === "#") {
82
- const [color, fallback] = format.split(",", 2);
83
- if (!supportRGB) return fallback ? factory(...formats, fallback) : factory(...formats);
84
- return factory(...formats, color);
85
- }
86
- return factory(...formats, format);
87
- } });
88
- const styleText$1 = factory();
89
- //#endregion
90
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/logger-D9XFzQl9.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_298964156353ef75a02894ab80b3a2e6/node_modules/tsdown/dist/logger-D9XFzQl9.mjs
91
5
  const LogLevels = {
92
6
  silent: 0,
93
7
  error: 1,
@@ -230,7 +144,7 @@ function hue2rgb(p, q, t) {
230
144
  return p;
231
145
  }
232
146
  //#endregion
233
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/debug-CpC4hV25.mjs
147
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_298964156353ef75a02894ab80b3a2e6/node_modules/tsdown/dist/debug-CpC4hV25.mjs
234
148
  var version = "0.23.0";
235
149
  const debugLog = createDebug("tsdown:debug");
236
150
  function enableDebug(debug) {
@@ -244,4 +158,4 @@ function enableDebug(debug) {
244
158
  debugLog("Debugging enabled", namespace);
245
159
  }
246
160
  //#endregion
247
- export { resolveRegex as _, createSuppressWarnings as a, toArray as b, globalLogger as c, debounce as d, importWithError as f, resolveComma as g, pkgExists as h, createLogger as i, prettyFormat as l, noop as m, version as n, generateColor as o, matchPattern as p, LogLevels as r, getNameLabel as s, enableDebug as t, createConcurrencyExecutor as u, slash as v, styleText$1 as y };
161
+ export { createSuppressWarnings as a, globalLogger as c, createLogger as i, prettyFormat as l, version as n, generateColor as o, LogLevels as r, getNameLabel as s, enableDebug as t };
@@ -1,7 +1,7 @@
1
1
  import process from "node:process";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
- //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_b65333c86244131b40077d6429604210/node_modules/tsdown/dist/detect-Bg-d8iUV.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.23.0_@tsdown+exe@0.23.0_@type_298964156353ef75a02894ab80b3a2e6/node_modules/tsdown/dist/detect-Bg-d8iUV.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",