vite-plus 1.3.0 → 1.5.0

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 (106) hide show
  1. package/AGENTS.md +4 -0
  2. package/LICENSE +1 -878
  3. package/README.md +1 -1
  4. package/bin/vpx +9 -0
  5. package/binding/index.cjs +59 -54
  6. package/binding/index.d.cts +159 -2
  7. package/dist/{agent-97KmGCyL.js → agent-DkQD3xqe.js} +5 -7
  8. package/dist/bin.js +35 -34
  9. package/dist/{cli-parse-DHE8NrBU.js → cli-parse-aeUeFDlC.js} +2 -3
  10. package/dist/command-TjS_6y9O.js +1 -0
  11. package/dist/{command-CdMBoZFD.js → command-rY79K5NI.js} +28 -30
  12. package/dist/{comparison-CmVirWIW-DUGaiYqF.js → comparison-CmVirWIW-UlEf2maz.js} +1 -2
  13. package/dist/config/bin.js +8 -10
  14. package/dist/{constants-DR55DpRm.js → constants-D2P2aVKb.js} +8 -6
  15. package/dist/create/bin.d.ts +4 -8
  16. package/dist/create/bin.js +151 -120
  17. package/dist/{define-config-Bexdd6RZ.d.ts → define-config-BrvHRi-G.d.ts} +31 -13
  18. package/dist/{define-config-BxDc_9BK.cjs → define-config-CwtQqYC1.cjs} +41 -14
  19. package/dist/{define-config-CvE5pHqB.js → define-config-wR57OZG_.js} +34 -12
  20. package/dist/define-config.cjs +2 -1
  21. package/dist/define-config.d.ts +2 -2
  22. package/dist/define-config.js +1 -1
  23. package/dist/{dist-DIpm7mot.js → dist-Bs0SObNC.js} +73 -145
  24. package/dist/{dist-Cqz8OtiO.js → dist-CdkMvIiQ.js} +11 -5
  25. package/dist/dist-zDZV5eEc.js +3 -0
  26. package/dist/{documentation-DqcZSthV.js → documentation-cv_y0Auv.js} +1 -2
  27. package/dist/{editor-CtJGQP7C.js → editor-aOy1T15H.js} +2735 -5072
  28. package/dist/{help-BmKpeOP9.js → help-B03t_iQ4.js} +1 -2
  29. package/dist/hooks/bin.js +4 -5
  30. package/dist/{hooks-DhwsWb46.js → hooks-w_e2whkQ.js} +45 -25
  31. package/dist/index.cjs +5 -5
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +2 -2
  34. package/dist/{json-JP24qHUF.js → json-kl84kDyH.js} +9 -18
  35. package/dist/lint-plugins.cjs +1 -1
  36. package/dist/migration/bin.js +1782 -256
  37. package/dist/migration/compat/worker.js +4 -6
  38. package/dist/{oxlint-plugin-config-BIzrO2y2.js → oxlint-plugin-config-CHsI_zKo.js} +3 -4
  39. package/dist/oxlint-plugin.d.ts +0 -2
  40. package/dist/oxlint-plugin.js +33 -9
  41. package/dist/{pack-BK38MLVZ.d.ts → pack-ARPFMefW.d.ts} +0 -2
  42. package/dist/pack-bin.d.ts +1 -3
  43. package/dist/pack-bin.js +4 -5
  44. package/dist/pack.d.ts +1 -1
  45. package/dist/{package-CQDXTm6j.js → package-DfFo6-E-.js} +10 -95
  46. package/dist/{package-overrides-D1RcXSFl.js → package-overrides-Ci8GXouY.js} +5 -8
  47. package/dist/picomatch-DEUoj81q.js +1916 -0
  48. package/dist/{prompts-1xNz_ne0.js → prompts-C7DI63WP.js} +30 -50
  49. package/dist/{protocol-D99W10Qi.js → protocol-CkNmY-Mr.js} +1 -2
  50. package/dist/register.d.ts +1 -0
  51. package/dist/register.js +12 -0
  52. package/dist/{report-NhQk8VHb.js → report-BEdpIQvC.js} +4 -2
  53. package/dist/resolve-vite-config-33bzSaeT.js +1 -0
  54. package/dist/{resolve-vite-config-BVr1SUNg.js → resolve-vite-config-Cx3cnVVI.js} +9 -25
  55. package/dist/{rolldown-runtime-kJ_i4yPo.js → rolldown-runtime-DegdyBIC.js} +1 -2
  56. package/dist/script-esm-hooks.d.ts +11 -0
  57. package/dist/script-esm-hooks.js +27 -0
  58. package/dist/script-hooks-9Fof5UMY.js +176 -0
  59. package/dist/script-preload.cjs +491 -0
  60. package/dist/script-register.d.ts +1 -0
  61. package/dist/script-register.js +27 -0
  62. package/dist/script-watch.d.ts +1 -0
  63. package/dist/script-watch.js +2002 -0
  64. package/dist/staged/bin.js +53 -2011
  65. package/dist/sync-versions/bin.js +26 -48
  66. package/dist/sync-versions/bin.mjs +109 -217
  67. package/dist/{terminal-MKGAuy-p.js → terminal-BcuPUy-j.js} +1 -2
  68. package/dist/toolchain.js +38 -12
  69. package/dist/toolchain.json +38 -12
  70. package/dist/{tsconfig-zWgHiQ3X.js → tsconfig-BE3Wj9OX.js} +1 -1
  71. package/dist/{tsconfig-BZu7kl-x.js → tsconfig-shNmmCE_.js} +8 -10
  72. package/dist/version.d.ts +1 -3
  73. package/dist/version.js +5 -6
  74. package/dist/versions.js +7 -7
  75. package/dist/{vitest-ecosystem-BU0AqZq-.js → vitest-ecosystem-BeEYz-qF.js} +1 -2
  76. package/dist/{vitest-v5-entry-points-DthU1e_O.js → vitest-v5-entry-points-NyJsFeux.js} +1 -2
  77. package/dist/vpx-bin.d.ts +1 -0
  78. package/dist/vpx-bin.js +232 -0
  79. package/dist/vpx-script-EXgV5QOf.js +434 -0
  80. package/docs/config/check.md +2 -0
  81. package/docs/config/fmt.md +1 -1
  82. package/docs/config/lint.md +1 -1
  83. package/docs/config/run.md +10 -2
  84. package/docs/config/staged.md +1 -1
  85. package/docs/guide/check.md +6 -1
  86. package/docs/guide/ci.md +13 -3
  87. package/docs/guide/create.md +1 -1
  88. package/docs/guide/env.md +11 -4
  89. package/docs/guide/global-cli.md +59 -3
  90. package/docs/guide/homebrew.md +127 -0
  91. package/docs/guide/ide-integration.md +1 -3
  92. package/docs/guide/implode.md +5 -3
  93. package/docs/guide/local-cli.md +21 -0
  94. package/docs/guide/migrate-rules.md +120 -18
  95. package/docs/guide/migrate.md +9 -9
  96. package/docs/guide/package-management.md +1 -1
  97. package/docs/guide/run.md +23 -1
  98. package/docs/guide/test.md +1 -1
  99. package/docs/guide/troubleshooting.md +1 -1
  100. package/docs/guide/upgrade.md +12 -6
  101. package/docs/guide/vitest-v5.md +2 -2
  102. package/docs/guide/vpx.md +210 -9
  103. package/package.json +43 -34
  104. package/dist/command-DVTILtS-.js +0 -1
  105. package/dist/dist-Dhu07wmN.js +0 -3
  106. package/dist/resolve-vite-config-7WDtXO4G.js +0 -1
@@ -1,13 +1,13 @@
1
- import { i as log, n as errorMsg } from "../terminal-MKGAuy-p.js";
2
- import { i as promptGitHooks, n as defaultInteractive } from "../prompts-1xNz_ne0.js";
3
- import { o as updateExistingAgentInstructions } from "../agent-97KmGCyL.js";
4
- import { t as require_dist } from "../dist-DIpm7mot.js";
5
- import { a as install, c as resolveHooksLocation, o as isGitHooksEnvDisabled, s as isHooksUserDisabled } from "../hooks-DhwsWb46.js";
6
- import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
1
+ import { o as updateExistingAgentInstructions } from "../agent-DkQD3xqe.js";
2
+ import { t as unwrapCliParseOutcome } from "../cli-parse-aeUeFDlC.js";
3
+ import { t as require_dist } from "../dist-Bs0SObNC.js";
4
+ import { i as promptGitHooks, n as defaultInteractive } from "../prompts-C7DI63WP.js";
5
+ import { i as log, n as errorMsg } from "../terminal-BcuPUy-j.js";
6
+ import { c as isGitHooksEnvDisabled, l as isHooksUserDisabled, s as install, u as resolveHooksLocation } from "../hooks-w_e2whkQ.js";
7
7
  import path, { join, relative } from "node:path";
8
8
  import { parseConfigArgs } from "../../binding/index.js";
9
9
  import fs, { existsSync } from "node:fs";
10
- //#region src/utils/legacy-vitest-alias.ts
10
+ // src/utils/legacy-vitest-alias.ts
11
11
  var import_dist = require_dist();
12
12
  const LEGACY_VITEST_ALIAS = "npm:@voidzero-dev/vite-plus-test";
13
13
  function containsLegacyVitestAlias(value, visited = /* @__PURE__ */ new Set()) {
@@ -72,8 +72,7 @@ function findLegacyVitestAliasConfig(startDir) {
72
72
  currentDir = parentDir;
73
73
  }
74
74
  }
75
- //#endregion
76
- //#region src/config/bin.ts
75
+ // src/config/bin.ts
77
76
  async function main() {
78
77
  const args = unwrapCliParseOutcome(parseConfigArgs(process.argv.slice(3)));
79
78
  const dir = args.hooksDir;
@@ -117,5 +116,4 @@ async function main() {
117
116
  if (!skipAgent) updateExistingAgentInstructions(root);
118
117
  }
119
118
  main();
120
- //#endregion
121
119
  export {};
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
- //#region package.json
3
- var version = "1.3.0";
2
+ // package.json
3
+ var version = "1.5.0";
4
4
  var exports = {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -45,6 +45,10 @@ var exports = {
45
45
  "types": "./dist/oxlint-plugin.d.ts"
46
46
  },
47
47
  "./package.json": "./package.json",
48
+ "./register": {
49
+ "types": "./dist/register.d.ts",
50
+ "default": "./dist/register.js"
51
+ },
48
52
  "./pack": {
49
53
  "types": "./dist/pack.d.ts",
50
54
  "import": "./dist/pack.js"
@@ -277,8 +281,7 @@ var exports = {
277
281
  }
278
282
  };
279
283
  var engines = { "node": "^22.18.0 || ^24.11.0 || >=26.0.0" };
280
- //#endregion
281
- //#region src/utils/constants.ts
284
+ // src/utils/constants.ts
282
285
  const VITE_PLUS_NAME = "vite-plus";
283
286
  const VITE_PLUS_VERSION = process.env.VP_VERSION || version;
284
287
  const VITE_CONFIG_FILES = [
@@ -289,7 +292,7 @@ const VITE_CONFIG_FILES = [
289
292
  "vite.config.mts",
290
293
  "vite.config.cts"
291
294
  ];
292
- const VITEST_VERSION = "5.0.5";
295
+ const VITEST_VERSION = "5.1.0";
293
296
  const SETUP_VP_VERSION = "v1.21.2";
294
297
  const TSDOWN_MIGRATION_SKILL_URL = "https://github.com/rolldown/tsdown/blob/main/skills/tsdown-migrate/SKILL.md";
295
298
  const VITE_PLUS_OVERRIDE_PACKAGES = process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : {
@@ -352,5 +355,4 @@ const DEFAULT_ENVS = {
352
355
  NODE_PACKAGE_MANAGER: "vite-plus"
353
356
  };
354
357
  const CONFIG_METADATA_ENV = "VP_RESOLVING_CONFIG_METADATA";
355
- //#endregion
356
358
  export { engines as _, SETUP_VP_VERSION as a, VITEST_VERSION as c, VITE_PLUS_OVERRIDE_PACKAGES as d, VITE_PLUS_VERSION as f, resolveBundled as g, resolve as h, DEFAULT_ENVS as i, VITE_CONFIG_FILES as l, isForceOverrideMode as m, BASEURL_TSCONFIG_WARNING as n, TSDOWN_MIGRATION_SKILL_URL as o, createBaseUrlTsconfigFixArgs as p, CONFIG_METADATA_ENV as r, VITEST_AGE_GATE_EXEMPT_PACKAGES as s, BASEURL_TSCONFIG_FIX_PACKAGE as t, VITE_PLUS_NAME as u, exports as v, version as y };
@@ -1,14 +1,11 @@
1
1
  import "../../binding/index.js";
2
- //#region src/types/package.d.ts
3
2
  declare const PackageManager: {
4
- readonly pnpm: "pnpm";
5
- readonly npm: "npm";
6
- readonly yarn: "yarn";
7
- readonly bun: "bun";
3
+ readonly pnpm: 'pnpm';
4
+ readonly npm: 'npm';
5
+ readonly yarn: 'yarn';
6
+ readonly bun: 'bun';
8
7
  };
9
8
  type PackageManager = (typeof PackageManager)[keyof typeof PackageManager];
10
- //#endregion
11
- //#region src/create/bin.d.ts
12
9
  export interface Options {
13
10
  directory?: string;
14
11
  interactive: boolean;
@@ -25,5 +22,4 @@ export interface Options {
25
22
  */
26
23
  approveBuilds?: boolean;
27
24
  }
28
- //#endregion
29
25
  export {};