vite-plus 0.2.4 → 0.2.6

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 (45) hide show
  1. package/README.md +1 -1
  2. package/binding/index.cjs +53 -52
  3. package/binding/index.d.cts +43 -41
  4. package/dist/{agent-eMtwgY-u.js → agent-0gFJkIKu.js} +34 -109
  5. package/dist/bin.d.ts +1 -1
  6. package/dist/bin.js +8 -5
  7. package/dist/config/bin.d.ts +1 -1
  8. package/dist/config/bin.js +2 -2
  9. package/dist/{constants-DdXYYBsz.js → constants-CaXMuYUG.js} +1 -1
  10. package/dist/create/bin.js +73 -22
  11. package/dist/{define-config-BuMs_LKa.d.ts → define-config-eLQH9us2.d.ts} +2 -3
  12. package/dist/{define-config-Dn5coJS5.js → define-config-hV8qyU8p.js} +2 -2
  13. package/dist/{define-config-DUsBrwKn.cjs → define-config-iGV0CGUk.cjs} +1 -1
  14. package/dist/define-config.cjs +1 -1
  15. package/dist/define-config.d.ts +1 -1
  16. package/dist/define-config.js +1 -1
  17. package/dist/{editor-DL4u-ujK.js → editor-D4T70tKk.js} +95 -4
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/migration/bin.d.ts +1 -1
  22. package/dist/migration/bin.js +5 -5
  23. package/dist/migration/compat/worker.d.ts +1 -1
  24. package/dist/{oxlint-plugin-config-BiYDWQLd.js → oxlint-plugin-config-CMSCIkks.js} +1 -1
  25. package/dist/oxlint-plugin.js +1 -1
  26. package/dist/{pack-Ciiho0Tq.d.ts → pack-PvUg_xpv.d.ts} +0 -1
  27. package/dist/pack-bin.js +1 -1
  28. package/dist/pack.d.ts +1 -1
  29. package/dist/{package-D2xMMmTQ.js → package-CP5EUXlu.js} +1 -1
  30. package/dist/{resolve-vite-config-5SuNAKdv.js → resolve-vite-config-BY7PB-LW.js} +1 -1
  31. package/dist/staged/bin.d.ts +1 -1
  32. package/dist/staged/bin.js +47 -17
  33. package/dist/{tsconfig-CtdiYBV_.js → tsconfig-Cac-NNdT.js} +86 -78
  34. package/dist/version.js +2 -2
  35. package/dist/versions.js +6 -6
  36. package/docs/config/run.md +3 -6
  37. package/docs/guide/docker.md +46 -2
  38. package/docs/guide/env.md +12 -0
  39. package/docs/guide/github-actions-cache.md +2 -2
  40. package/docs/guide/index.md +2 -0
  41. package/docs/guide/installer-env-vars.md +195 -0
  42. package/package.json +20 -23
  43. package/templates/monorepo/_gitignore +5 -0
  44. package/templates/monorepo/_yarnrc.yml +1 -1
  45. package/templates/monorepo/pnpm-workspace.yaml +1 -1
@@ -1,5 +1,5 @@
1
1
  import { n as __require, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-C7HZzL1F.js";
2
- import { l as VITE_PLUS_VERSION, t as BASEURL_TSCONFIG_FIX_PACKAGE, u as createBaseUrlTsconfigFixArgs } from "./constants-DdXYYBsz.js";
2
+ import { l as VITE_PLUS_VERSION, t as BASEURL_TSCONFIG_FIX_PACKAGE, u as createBaseUrlTsconfigFixArgs } from "./constants-CaXMuYUG.js";
3
3
  import { t as accent } from "./terminal-uTv0ZaMr.js";
4
4
  import { a as writeJsonFile, c as parse, i as readJsonFile, o as applyEdits, s as modify } from "./json-DiRs8ceZ.js";
5
5
  import { t as require_dist } from "./dist-CKz3vcoG.js";
@@ -11,6 +11,7 @@ import process$1, { stdin, stdout } from "node:process";
11
11
  import * as l from "node:readline";
12
12
  import l__default from "node:readline";
13
13
  import { ReadStream } from "node:tty";
14
+ import { randomBytes } from "node:crypto";
14
15
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
15
16
  var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16
17
  module.exports = isexe;
@@ -751,7 +752,7 @@ function wrapAnsi$1(string, columns, options) {
751
752
  return String(string).normalize().split(CRLF_OR_LF$1).map((line) => exec$1(line, columns, options)).join("\n");
752
753
  }
753
754
  //#endregion
754
- //#region ../../node_modules/.pnpm/@clack+core@1.4.2/node_modules/@clack/core/dist/index.mjs
755
+ //#region ../../node_modules/.pnpm/@clack+core@1.4.3/node_modules/@clack/core/dist/index.mjs
755
756
  var import_src = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
756
757
  const ESC = "\x1B";
757
758
  const CSI = `${ESC}[`;
@@ -807,7 +808,7 @@ var import_src = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
807
808
  function findCursor(s, o, l) {
808
809
  if (!l.some((r) => !r.disabled)) return s;
809
810
  const t = s + o, n = Math.max(l.length - 1, 0), e = t < 0 ? n : t > n ? 0 : t;
810
- return l[e].disabled ? findCursor(e, o < 0 ? -1 : 1, l) : e;
811
+ return l[e]?.disabled ? findCursor(e, o < 0 ? -1 : 1, l) : e;
811
812
  }
812
813
  const settings = {
813
814
  actions: /* @__PURE__ */ new Set([
@@ -912,7 +913,8 @@ function block({ input: e = stdin, output: r = stdout, overwrite: o = true, hide
912
913
  e.off("keypress", n), t && r.write(import_src.cursor.show), e instanceof ReadStream && e.isTTY && !R && e.setRawMode(false), s.terminal = false, s.close();
913
914
  };
914
915
  }
915
- const getColumns = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, getRows = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
916
+ const getColumns = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80;
917
+ const getRows = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
916
918
  function wrapTextWithPrefix(e, r, o, t = o, s = o, n) {
917
919
  return wrapAnsi$1(r, getColumns(e ?? stdout) - o.length, {
918
920
  hard: true,
@@ -1121,11 +1123,11 @@ var r = class extends V {
1121
1123
  });
1122
1124
  }
1123
1125
  };
1124
- let a$1 = class a extends V {
1126
+ var a = class extends V {
1125
1127
  options;
1126
1128
  cursor = 0;
1127
1129
  get _value() {
1128
- return this.options[this.cursor].value;
1130
+ return this.options[this.cursor]?.value;
1129
1131
  }
1130
1132
  get _enabledOptions() {
1131
1133
  return this.options.filter((e) => e.disabled !== true);
@@ -1148,7 +1150,7 @@ let a$1 = class a extends V {
1148
1150
  constructor(e) {
1149
1151
  super(e, false), this.options = e.options, this.value = [...e.initialValues ?? []];
1150
1152
  const i = Math.max(this.options.findIndex(({ value: t }) => t === e.cursorAt), 0);
1151
- this.cursor = this.options[i].disabled ? findCursor(i, 1, this.options) : i, this.on("key", (t, l) => {
1153
+ this.cursor = this.options[i]?.disabled ? findCursor(i, 1, this.options) : i, this.on("key", (t, l) => {
1152
1154
  l.name === "a" && this.toggleAll(), l.name === "i" && this.toggleInvert();
1153
1155
  }), this.on("cursor", (t) => {
1154
1156
  switch (t) {
@@ -1167,19 +1169,20 @@ let a$1 = class a extends V {
1167
1169
  });
1168
1170
  }
1169
1171
  };
1170
- var a = class extends V {
1172
+ let n$1 = class n extends V {
1171
1173
  options;
1172
1174
  cursor = 0;
1173
1175
  get _selectedValue() {
1174
1176
  return this.options[this.cursor];
1175
1177
  }
1176
1178
  changeValue() {
1177
- this.value = this._selectedValue.value;
1179
+ const e = this._selectedValue;
1180
+ this.value = e === void 0 ? void 0 : e.value;
1178
1181
  }
1179
- constructor(t) {
1180
- super(t, false), this.options = t.options;
1181
- const i = this.options.findIndex(({ value: s }) => s === t.initialValue), e = i === -1 ? 0 : i;
1182
- this.cursor = this.options[e].disabled ? findCursor(e, 1, this.options) : e, this.changeValue(), this.on("cursor", (s) => {
1182
+ constructor(e) {
1183
+ super(e, false), this.options = e.options;
1184
+ const o = this.options.findIndex(({ value: s }) => s === e.initialValue), t = o === -1 ? 0 : o;
1185
+ this.cursor = this.options[t]?.disabled ? findCursor(t, 1, this.options) : t, this.changeValue(), this.on("cursor", (s) => {
1183
1186
  switch (s) {
1184
1187
  case "left":
1185
1188
  case "up":
@@ -1199,8 +1202,8 @@ var n = class extends V {
1199
1202
  if (this.state === "submit") return this.userInput;
1200
1203
  const t = this.userInput;
1201
1204
  if (this.cursor >= t.length) return `${this.userInput}\u2588`;
1202
- const e = t.slice(0, this.cursor), [s, ...r] = t.slice(this.cursor);
1203
- return `${e}${styleText("inverse", s)}${r.join("")}`;
1205
+ const r = t.slice(0, this.cursor), s = t.slice(this.cursor, this.cursor + 1), e = t.slice(this.cursor + 1);
1206
+ return `${r}${styleText("inverse", s)}${e}`;
1204
1207
  }
1205
1208
  get cursor() {
1206
1209
  return this._cursor;
@@ -1209,8 +1212,8 @@ var n = class extends V {
1209
1212
  super({
1210
1213
  ...t,
1211
1214
  initialUserInput: t.initialUserInput ?? t.initialValue
1212
- }), this.on("userInput", (e) => {
1213
- this._setValue(e);
1215
+ }), this.on("userInput", (r) => {
1216
+ this._setValue(r);
1214
1217
  }), this.on("finalize", () => {
1215
1218
  this.value || (this.value = t.defaultValue), this.value === void 0 && (this.value = "");
1216
1219
  });
@@ -1219,7 +1222,9 @@ var n = class extends V {
1219
1222
  //#endregion
1220
1223
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
1221
1224
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1222
- let p = process || {}, argv = p.argv || [], env = p.env || {};
1225
+ let p = process || {};
1226
+ let argv = p.argv || [];
1227
+ let env = p.env || {};
1223
1228
  let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
1224
1229
  let formatter = (open, close, replace = open) => (input) => {
1225
1230
  let string = "" + input, index = string.indexOf(close, open.length);
@@ -1678,20 +1683,21 @@ const limitOptions = (params) => {
1678
1683
  };
1679
1684
  /**
1680
1685
  * Render-milestone markers for the PTY snapshot suite
1681
- * (crates/vite_cli_snapshots): invisible OSC 8 hyperlinks the runner
1686
+ * (crates/vite_cli_snapshots): invisible window-title updates the runner
1682
1687
  * synchronizes on via `expect-milestone` interactions. Emission is gated on
1683
1688
  * `VP_EMIT_MILESTONES=1`, which only the runner sets; real terminals and
1684
- * piped output never see these bytes.
1689
+ * piped output never see these markers as content (they only update the
1690
+ * window title, which the runner's PTY captures).
1685
1691
  *
1686
1692
  * Protocol (shared with vite-task's `pty_terminal_test_client` crate):
1687
- * `OSC 8 ; ; https://milestone.invalid/<hex(name)> ST <ZWSP> OSC 8 ; ; ST`.
1688
- * The zero-width anchor keeps the hyperlink observable through Windows
1689
- * ConPTY, which can drop zero-length hyperlinks.
1693
+ * `OSC 2 ; pty-terminal-test:<32-hex-id>:<base64url(name)> ST`. The runner
1694
+ * decodes the title with `decode_milestone_title`, ignoring ordinary title
1695
+ * updates. A fresh random id per emission keeps repeated milestones with the
1696
+ * same name observable as distinct title changes through Windows ConPTY.
1690
1697
  */
1691
- const MILESTONE_URI_PREFIX = "https://milestone.invalid/";
1692
- const OSC8_OPEN = "\x1B]8;;";
1698
+ const MILESTONE_TITLE_MARKER = "pty-terminal-test:";
1699
+ const OSC2_OPEN = "\x1B]2;";
1693
1700
  const ST = "\x1B\\";
1694
- const ZERO_WIDTH_ANCHOR = "​";
1695
1701
  const MILESTONES_ENABLED = process.env.VP_EMIT_MILESTONES === "1";
1696
1702
  /**
1697
1703
  * Returns the encoded milestone byte sequence for `name`, or an empty string
@@ -1700,8 +1706,9 @@ const MILESTONES_ENABLED = process.env.VP_EMIT_MILESTONES === "1";
1700
1706
  */
1701
1707
  function milestone(name) {
1702
1708
  if (!MILESTONES_ENABLED) return "";
1703
- const hex = Buffer.from(name, "utf8").toString("hex");
1704
- return `${OSC8_OPEN}${MILESTONE_URI_PREFIX}${hex}${ST}${ZERO_WIDTH_ANCHOR}${OSC8_OPEN}${ST}`;
1709
+ const id = randomBytes(16).toString("hex");
1710
+ const encodedName = Buffer.from(name, "utf8").toString("base64url");
1711
+ return `${OSC2_OPEN}${MILESTONE_TITLE_MARKER}${id}:${encodedName}${ST}`;
1705
1712
  }
1706
1713
  /**
1707
1714
  * Milestone for a prompt render, following the runner naming convention
@@ -1825,7 +1832,7 @@ const multiselect = (opts) => {
1825
1832
  };
1826
1833
  const required = opts.required ?? true;
1827
1834
  const hint = " " + import_picocolors.default.reset(import_picocolors.default.dim(`Press ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" space ")))} to select, ${import_picocolors.default.gray(import_picocolors.default.bgWhite(import_picocolors.default.inverse(" enter ")))} to submit`));
1828
- return new a$1({
1835
+ return new a({
1829
1836
  options: opts.options,
1830
1837
  signal: opts.signal,
1831
1838
  input: opts.input,
@@ -2077,7 +2084,7 @@ const select = (opts) => {
2077
2084
  default: return withMarker(import_picocolors.default.dim(" "), label, (text) => text, hint);
2078
2085
  }
2079
2086
  };
2080
- return new a({
2087
+ return new n$1({
2081
2088
  options: opts.options,
2082
2089
  signal: opts.signal,
2083
2090
  input: opts.input,
@@ -2158,7 +2165,7 @@ const text = (opts) => {
2158
2165
  }).prompt();
2159
2166
  };
2160
2167
  //#endregion
2161
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/constants.js
2168
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
2162
2169
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2163
2170
  const SEMVER_SPEC_VERSION = "2.0.0";
2164
2171
  const MAX_LENGTH = 256;
@@ -2183,12 +2190,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2183
2190
  };
2184
2191
  }));
2185
2192
  //#endregion
2186
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/debug.js
2193
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
2187
2194
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2188
2195
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
2189
2196
  }));
2190
2197
  //#endregion
2191
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/re.js
2198
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
2192
2199
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2193
2200
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
2194
2201
  const debug = require_debug();
@@ -2267,7 +2274,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2267
2274
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
2268
2275
  }));
2269
2276
  //#endregion
2270
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/parse-options.js
2277
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
2271
2278
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2272
2279
  const looseOption = Object.freeze({ loose: true });
2273
2280
  const emptyOpts = Object.freeze({});
@@ -2279,7 +2286,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2279
2286
  module.exports = parseOptions;
2280
2287
  }));
2281
2288
  //#endregion
2282
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/identifiers.js
2289
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
2283
2290
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2284
2291
  const numeric = /^[0-9]+$/;
2285
2292
  const compareIdentifiers = (a, b) => {
@@ -2299,7 +2306,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2299
2306
  };
2300
2307
  }));
2301
2308
  //#endregion
2302
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/semver.js
2309
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
2303
2310
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2304
2311
  const debug = require_debug();
2305
2312
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -2484,7 +2491,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2484
2491
  };
2485
2492
  }));
2486
2493
  //#endregion
2487
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/parse.js
2494
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
2488
2495
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2489
2496
  const SemVer = require_semver$1();
2490
2497
  const parse = (version, options, throwErrors = false) => {
@@ -2499,7 +2506,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2499
2506
  module.exports = parse;
2500
2507
  }));
2501
2508
  //#endregion
2502
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/valid.js
2509
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js
2503
2510
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2504
2511
  const parse = require_parse();
2505
2512
  const valid = (version, options) => {
@@ -2509,7 +2516,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2509
2516
  module.exports = valid;
2510
2517
  }));
2511
2518
  //#endregion
2512
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/clean.js
2519
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js
2513
2520
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2514
2521
  const parse = require_parse();
2515
2522
  const clean = (version, options) => {
@@ -2519,7 +2526,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2519
2526
  module.exports = clean;
2520
2527
  }));
2521
2528
  //#endregion
2522
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/inc.js
2529
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js
2523
2530
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2524
2531
  const SemVer = require_semver$1();
2525
2532
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -2537,7 +2544,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2537
2544
  module.exports = inc;
2538
2545
  }));
2539
2546
  //#endregion
2540
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/diff.js
2547
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js
2541
2548
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2542
2549
  const parse = require_parse();
2543
2550
  const diff = (version1, version2) => {
@@ -2565,28 +2572,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2565
2572
  module.exports = diff;
2566
2573
  }));
2567
2574
  //#endregion
2568
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/major.js
2575
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js
2569
2576
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2570
2577
  const SemVer = require_semver$1();
2571
2578
  const major = (a, loose) => new SemVer(a, loose).major;
2572
2579
  module.exports = major;
2573
2580
  }));
2574
2581
  //#endregion
2575
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/minor.js
2582
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js
2576
2583
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2577
2584
  const SemVer = require_semver$1();
2578
2585
  const minor = (a, loose) => new SemVer(a, loose).minor;
2579
2586
  module.exports = minor;
2580
2587
  }));
2581
2588
  //#endregion
2582
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/patch.js
2589
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js
2583
2590
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2584
2591
  const SemVer = require_semver$1();
2585
2592
  const patch = (a, loose) => new SemVer(a, loose).patch;
2586
2593
  module.exports = patch;
2587
2594
  }));
2588
2595
  //#endregion
2589
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/prerelease.js
2596
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js
2590
2597
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2591
2598
  const parse = require_parse();
2592
2599
  const prerelease = (version, options) => {
@@ -2596,28 +2603,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2596
2603
  module.exports = prerelease;
2597
2604
  }));
2598
2605
  //#endregion
2599
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare.js
2606
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
2600
2607
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2601
2608
  const SemVer = require_semver$1();
2602
2609
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
2603
2610
  module.exports = compare;
2604
2611
  }));
2605
2612
  //#endregion
2606
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rcompare.js
2613
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js
2607
2614
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2608
2615
  const compare = require_compare();
2609
2616
  const rcompare = (a, b, loose) => compare(b, a, loose);
2610
2617
  module.exports = rcompare;
2611
2618
  }));
2612
2619
  //#endregion
2613
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-loose.js
2620
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js
2614
2621
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2615
2622
  const compare = require_compare();
2616
2623
  const compareLoose = (a, b) => compare(a, b, true);
2617
2624
  module.exports = compareLoose;
2618
2625
  }));
2619
2626
  //#endregion
2620
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/compare-build.js
2627
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js
2621
2628
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2622
2629
  const SemVer = require_semver$1();
2623
2630
  const compareBuild = (a, b, loose) => {
@@ -2628,63 +2635,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
2628
2635
  module.exports = compareBuild;
2629
2636
  }));
2630
2637
  //#endregion
2631
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/sort.js
2638
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js
2632
2639
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2633
2640
  const compareBuild = require_compare_build();
2634
2641
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
2635
2642
  module.exports = sort;
2636
2643
  }));
2637
2644
  //#endregion
2638
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/rsort.js
2645
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js
2639
2646
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2640
2647
  const compareBuild = require_compare_build();
2641
2648
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
2642
2649
  module.exports = rsort;
2643
2650
  }));
2644
2651
  //#endregion
2645
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gt.js
2652
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
2646
2653
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2647
2654
  const compare = require_compare();
2648
2655
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
2649
2656
  module.exports = gt;
2650
2657
  }));
2651
2658
  //#endregion
2652
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lt.js
2659
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
2653
2660
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2654
2661
  const compare = require_compare();
2655
2662
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
2656
2663
  module.exports = lt;
2657
2664
  }));
2658
2665
  //#endregion
2659
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/eq.js
2666
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
2660
2667
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2661
2668
  const compare = require_compare();
2662
2669
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
2663
2670
  module.exports = eq;
2664
2671
  }));
2665
2672
  //#endregion
2666
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/neq.js
2673
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
2667
2674
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2668
2675
  const compare = require_compare();
2669
2676
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
2670
2677
  module.exports = neq;
2671
2678
  }));
2672
2679
  //#endregion
2673
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/gte.js
2680
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
2674
2681
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2675
2682
  const compare = require_compare();
2676
2683
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
2677
2684
  module.exports = gte;
2678
2685
  }));
2679
2686
  //#endregion
2680
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/lte.js
2687
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
2681
2688
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2682
2689
  const compare = require_compare();
2683
2690
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
2684
2691
  module.exports = lte;
2685
2692
  }));
2686
2693
  //#endregion
2687
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/cmp.js
2694
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
2688
2695
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2689
2696
  const eq = require_eq();
2690
2697
  const neq = require_neq();
@@ -2716,7 +2723,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2716
2723
  module.exports = cmp;
2717
2724
  }));
2718
2725
  //#endregion
2719
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/coerce.js
2726
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
2720
2727
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2721
2728
  const SemVer = require_semver$1();
2722
2729
  const parse = require_parse();
@@ -2748,7 +2755,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2748
2755
  module.exports = coerce;
2749
2756
  }));
2750
2757
  //#endregion
2751
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/truncate.js
2758
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js
2752
2759
  var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2753
2760
  const parse = require_parse();
2754
2761
  const constants = require_constants();
@@ -2782,7 +2789,7 @@ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2782
2789
  module.exports = truncate;
2783
2790
  }));
2784
2791
  //#endregion
2785
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/internal/lrucache.js
2792
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
2786
2793
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2787
2794
  var LRUCache = class {
2788
2795
  constructor() {
@@ -2815,7 +2822,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2815
2822
  module.exports = LRUCache;
2816
2823
  }));
2817
2824
  //#endregion
2818
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/range.js
2825
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
2819
2826
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2820
2827
  const SPACE_CHARACTERS = /\s+/g;
2821
2828
  module.exports = class Range {
@@ -2965,12 +2972,13 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2965
2972
  };
2966
2973
  const replaceTilde = (comp, options) => {
2967
2974
  const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
2975
+ const z = options.includePrerelease ? "-0" : "";
2968
2976
  return comp.replace(r, (_, M, m, p, pr) => {
2969
2977
  debug("tilde", comp, _, M, m, p, pr);
2970
2978
  let ret;
2971
2979
  if (isX(M)) ret = "";
2972
- else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
2973
- else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
2980
+ else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
2981
+ else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
2974
2982
  else if (pr) {
2975
2983
  debug("replaceTilde pr", pr);
2976
2984
  ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
@@ -3091,7 +3099,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3091
3099
  };
3092
3100
  }));
3093
3101
  //#endregion
3094
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/classes/comparator.js
3102
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
3095
3103
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3096
3104
  const ANY = Symbol("SemVer ANY");
3097
3105
  module.exports = class Comparator {
@@ -3161,7 +3169,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3161
3169
  const Range = require_range();
3162
3170
  }));
3163
3171
  //#endregion
3164
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/functions/satisfies.js
3172
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
3165
3173
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3166
3174
  const Range = require_range();
3167
3175
  const satisfies = (version, range, options) => {
@@ -3175,14 +3183,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3175
3183
  module.exports = satisfies;
3176
3184
  }));
3177
3185
  //#endregion
3178
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/to-comparators.js
3186
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js
3179
3187
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3180
3188
  const Range = require_range();
3181
3189
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
3182
3190
  module.exports = toComparators;
3183
3191
  }));
3184
3192
  //#endregion
3185
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/max-satisfying.js
3193
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js
3186
3194
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3187
3195
  const SemVer = require_semver$1();
3188
3196
  const Range = require_range();
@@ -3208,7 +3216,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3208
3216
  module.exports = maxSatisfying;
3209
3217
  }));
3210
3218
  //#endregion
3211
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-satisfying.js
3219
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js
3212
3220
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3213
3221
  const SemVer = require_semver$1();
3214
3222
  const Range = require_range();
@@ -3234,7 +3242,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
3234
3242
  module.exports = minSatisfying;
3235
3243
  }));
3236
3244
  //#endregion
3237
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/min-version.js
3245
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
3238
3246
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3239
3247
  const SemVer = require_semver$1();
3240
3248
  const Range = require_range();
@@ -3274,7 +3282,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3274
3282
  module.exports = minVersion;
3275
3283
  }));
3276
3284
  //#endregion
3277
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/valid.js
3285
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js
3278
3286
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3279
3287
  const Range = require_range();
3280
3288
  const validRange = (range, options) => {
@@ -3287,7 +3295,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3287
3295
  module.exports = validRange;
3288
3296
  }));
3289
3297
  //#endregion
3290
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/outside.js
3298
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js
3291
3299
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3292
3300
  const SemVer = require_semver$1();
3293
3301
  const Comparator = require_comparator();
@@ -3340,21 +3348,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3340
3348
  module.exports = outside;
3341
3349
  }));
3342
3350
  //#endregion
3343
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/gtr.js
3351
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js
3344
3352
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3345
3353
  const outside = require_outside();
3346
3354
  const gtr = (version, range, options) => outside(version, range, ">", options);
3347
3355
  module.exports = gtr;
3348
3356
  }));
3349
3357
  //#endregion
3350
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/ltr.js
3358
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js
3351
3359
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3352
3360
  const outside = require_outside();
3353
3361
  const ltr = (version, range, options) => outside(version, range, "<", options);
3354
3362
  module.exports = ltr;
3355
3363
  }));
3356
3364
  //#endregion
3357
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/intersects.js
3365
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js
3358
3366
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3359
3367
  const Range = require_range();
3360
3368
  const intersects = (r1, r2, options) => {
@@ -3365,7 +3373,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3365
3373
  module.exports = intersects;
3366
3374
  }));
3367
3375
  //#endregion
3368
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/simplify.js
3376
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js
3369
3377
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3370
3378
  const satisfies = require_satisfies();
3371
3379
  const compare = require_compare();
@@ -3395,7 +3403,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3395
3403
  };
3396
3404
  }));
3397
3405
  //#endregion
3398
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/ranges/subset.js
3406
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js
3399
3407
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3400
3408
  const Range = require_range();
3401
3409
  const Comparator = require_comparator();
@@ -3490,7 +3498,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3490
3498
  module.exports = subset;
3491
3499
  }));
3492
3500
  //#endregion
3493
- //#region ../../node_modules/.pnpm/semver@7.8.4/node_modules/semver/index.js
3501
+ //#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js
3494
3502
  var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3495
3503
  const internalRe = require_re();
3496
3504
  const constants = require_constants();
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
- import { m as version } from "./constants-DdXYYBsz.js";
1
+ import { m as version } from "./constants-CaXMuYUG.js";
2
2
  import { a as printHeader, r as log, t as accent } from "./terminal-uTv0ZaMr.js";
3
- import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-D2xMMmTQ.js";
3
+ import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-CP5EUXlu.js";
4
4
  import { t as renderCliDoc } from "./help-YP84FSEz.js";
5
5
  import path from "node:path";
6
6
  import fs from "node:fs";
package/dist/versions.js CHANGED
@@ -1,9 +1,9 @@
1
1
  export const versions = {
2
- "vite": "8.1.3",
3
- "rolldown": "1.1.4",
4
- "tsdown": "0.22.3",
5
- "oxlint": "1.72.0",
6
- "oxfmt": "0.57.0",
7
- "oxlint-tsgolint": "0.24.0",
2
+ "vite": "8.1.5",
3
+ "rolldown": "1.2.0",
4
+ "tsdown": "0.22.13",
5
+ "oxlint": "1.75.0",
6
+ "oxfmt": "0.60.0",
7
+ "oxlint-tsgolint": "7.0.2001",
8
8
  "vitest": "4.1.10"
9
9
  };
@@ -2,18 +2,15 @@
2
2
 
3
3
  You can configure Vite Task under the `run` field in `vite.config.ts`. Check out [`vp run`](/guide/run) to learn more about running scripts and tasks with Vite+.
4
4
 
5
+ <!-- prettier-ignore -->
5
6
  ```ts [vite.config.ts]
6
7
  import { defineConfig } from 'vite-plus';
7
8
 
8
9
  export default defineConfig({
9
10
  run: {
10
11
  enablePrePostScripts: true,
11
- cache: {
12
- /* ... */
13
- },
14
- tasks: {
15
- /* ... */
16
- },
12
+ cache: {/* ... */},
13
+ tasks: {/* ... */},
17
14
  },
18
15
  });
19
16
  ```