vite-plus 0.2.9 → 0.3.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 (98) hide show
  1. package/LICENSE +29 -29
  2. package/README.md +6 -5
  3. package/binding/index.cjs +63 -55
  4. package/binding/index.d.cts +218 -14
  5. package/dist/{agent-DQU8uS6P.js → agent-C5jMYVfB.js} +3 -2
  6. package/dist/bin.js +101 -60
  7. package/dist/cli-parse-DHE8NrBU.js +13 -0
  8. package/dist/client/bundledDevClient.mjs +1 -1
  9. package/dist/client/client.mjs +1 -1
  10. package/dist/client/env.mjs +1 -1
  11. package/dist/client.d.ts +1 -1
  12. package/dist/command-CLJK5jGW.js +2 -0
  13. package/dist/command-CguLh2KL.js +471 -0
  14. package/dist/config/bin.js +85 -55
  15. package/dist/{constants-CG513DRa.js → constants-0IAVgpox.js} +5 -3
  16. package/dist/create/bin.d.ts +13 -5
  17. package/dist/create/bin.js +55 -232
  18. package/dist/{define-config-DyNLA_f0.cjs → define-config-DIE9de46.cjs} +2 -2
  19. package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
  20. package/dist/{define-config-CV4bQG_8.js → define-config-U3_xg7i-.js} +2 -2
  21. package/dist/define-config.cjs +1 -1
  22. package/dist/define-config.d.ts +1 -1
  23. package/dist/define-config.js +1 -1
  24. package/dist/dist-DfmT__Aw.js +619 -0
  25. package/dist/{editor-g4PosU99.js → editor-B5-lvRaU.js} +619 -88
  26. package/dist/{terminal-Bz-ps6rJ.js → help-BmKpeOP9.js} +1 -38
  27. package/dist/hooks/bin.js +9 -113
  28. package/dist/{hooks-pNCBWtFT.js → hooks-C-4gykWR.js} +5 -2
  29. package/dist/index.cjs +2 -2
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +2 -2
  32. package/dist/internal.d.ts +1 -1
  33. package/dist/internal.js +1 -1
  34. package/dist/migration/bin.js +76 -146
  35. package/dist/migration/compat/worker.js +1 -1
  36. package/dist/module-runner.d.ts +1 -1
  37. package/dist/module-runner.js +1 -1
  38. package/dist/{oxlint-plugin-config-BEZ9IUf7.js → oxlint-plugin-config-Drdl67Xp.js} +1 -1
  39. package/dist/oxlint-plugin.d.ts +2 -2
  40. package/dist/oxlint-plugin.js +1 -1
  41. package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
  42. package/dist/pack-bin.d.ts +2 -3
  43. package/dist/pack-bin.js +9 -625
  44. package/dist/pack-client.d.ts +1 -1
  45. package/dist/pack.d.ts +2 -2
  46. package/dist/pack.js +1 -1
  47. package/dist/{package-B4T8RGMG.js → package-BZz2Ij68.js} +2 -2
  48. package/dist/{prompts-CHz_98bJ.js → prompts-CtzEgFY-.js} +7 -1872
  49. package/dist/{report-BS7ULx7A.js → report-CK5TnTsr.js} +2 -0
  50. package/dist/{resolve-vite-config-Dmeyeyj-.js → resolve-vite-config-CGks1xR7.js} +3 -3
  51. package/dist/resolve-vite-config-Dnmc-lBc.js +2 -0
  52. package/dist/semver-CaDAb8vV.js +1400 -0
  53. package/dist/staged/bin.js +82 -187
  54. package/dist/sync-versions/bin.d.ts +1 -0
  55. package/dist/sync-versions/bin.js +3884 -0
  56. package/dist/sync-versions/bin.mjs +13323 -0
  57. package/dist/terminal-MKGAuy-p.js +39 -0
  58. package/dist/toolchain.js +11 -11
  59. package/dist/toolchain.json +11 -11
  60. package/dist/{tsconfig-7v_BHagU.js → tsconfig-CUggNuJR.js} +5 -4
  61. package/dist/tsconfig-VAbm4ZzJ.js +2 -0
  62. package/dist/tsgolint-path.d.ts +3 -4
  63. package/dist/types/customEvent.d.ts +1 -1
  64. package/dist/types/hmrPayload.d.ts +1 -1
  65. package/dist/types/hot.d.ts +1 -1
  66. package/dist/types/import-meta.d.ts +1 -1
  67. package/dist/types/importGlob.d.ts +1 -1
  68. package/dist/types/importMeta.d.ts +1 -1
  69. package/dist/types/metadata.d.ts +1 -1
  70. package/dist/version.d.ts +2 -3
  71. package/dist/version.js +4 -3
  72. package/dist/versions.js +6 -6
  73. package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
  74. package/docs/guide/check.md +1 -0
  75. package/docs/guide/ci.md +42 -2
  76. package/docs/guide/env.md +136 -50
  77. package/docs/guide/ide-integration.md +14 -2
  78. package/docs/guide/index.md +1 -1
  79. package/docs/guide/install.md +5 -2
  80. package/docs/guide/installer-env-vars.md +51 -5
  81. package/docs/guide/migrate-rules.md +66 -2
  82. package/docs/guide/migrate.md +5 -5
  83. package/docs/guide/test.md +8 -0
  84. package/docs/guide/upgrade.md +48 -1
  85. package/package.json +34 -37
  86. package/dist/lib-L3DWSRQp.js +0 -75
  87. package/docs/_data/team.ts +0 -131
  88. package/docs/package.json +0 -30
  89. package/docs/pnpm-lock.yaml +0 -4003
  90. package/docs/pnpm-workspace.yaml +0 -13
  91. package/docs/public/checkmark.svg +0 -1
  92. package/docs/public/cta-background.jpg +0 -0
  93. package/docs/public/favicon.svg +0 -1
  94. package/docs/public/icon.svg +0 -1
  95. package/docs/public/logo.svg +0 -1
  96. package/docs/public/og.jpg +0 -0
  97. package/docs/vite.config.ts +0 -20
  98. package/dist/{json-qlK6UH0r.js → json-cULBl7Pi.js} +107 -107
package/LICENSE CHANGED
@@ -647,35 +647,6 @@ Repository: https://github.com/isaacs/minipass
647
647
 
648
648
  ---------------------------------------
649
649
 
650
- ## mri
651
- License: MIT
652
- By: Luke Edwards
653
- Repository: https://github.com/lukeed/mri
654
-
655
- > The MIT License (MIT)
656
- >
657
- > Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
658
- >
659
- > Permission is hereby granted, free of charge, to any person obtaining a copy
660
- > of this software and associated documentation files (the "Software"), to deal
661
- > in the Software without restriction, including without limitation the rights
662
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
663
- > copies of the Software, and to permit persons to whom the Software is
664
- > furnished to do so, subject to the following conditions:
665
- >
666
- > The above copyright notice and this permission notice shall be included in
667
- > all copies or substantial portions of the Software.
668
- >
669
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
670
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
671
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
672
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
673
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
674
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
675
- > THE SOFTWARE.
676
-
677
- ---------------------------------------
678
-
679
650
  ## nanotar
680
651
  License: MIT
681
652
  Repository: https://github.com/unjs/nanotar
@@ -934,3 +905,32 @@ Repository: https://github.com/eemeli/yaml
934
905
  > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
935
906
  > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
936
907
  > THIS SOFTWARE.
908
+
909
+ ---------------------------------------
910
+
911
+ ## zod
912
+ License: MIT
913
+ By: Colin McDonnell <zod@colinhacks.com>
914
+ Repository: https://github.com/colinhacks/zod
915
+
916
+ > MIT License
917
+ >
918
+ > Copyright (c) 2025 Colin McDonnell
919
+ >
920
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
921
+ > of this software and associated documentation files (the "Software"), to deal
922
+ > in the Software without restriction, including without limitation the rights
923
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
924
+ > copies of the Software, and to permit persons to whom the Software is
925
+ > furnished to do so, subject to the following conditions:
926
+ >
927
+ > The above copyright notice and this permission notice shall be included in all
928
+ > copies or substantial portions of the Software.
929
+ >
930
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
931
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
932
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
933
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
934
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
935
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
936
+ > SOFTWARE.
package/README.md CHANGED
@@ -9,7 +9,7 @@ This package provides the project-local version of Vite+. The global `vp` comman
9
9
 
10
10
  Vite+ is the unified entry point for local web development. It combines [Vite](https://vite.dev/), [Vitest](https://vitest.dev/), [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), [Rolldown](https://rolldown.rs/), [tsdown](https://tsdown.dev/), and [Vite Task](https://github.com/voidzero-dev/vite-task) into one zero-config toolchain that also manages runtime and package manager workflows:
11
11
 
12
- - **`vp env`:** Manage Node.js globally and per project
12
+ - **`vp env`:** Manage Node.js and package managers globally and per project
13
13
  - **`vp install`:** Install dependencies with automatic package manager detection
14
14
  - **`vp dev`:** Run Vite's fast native ESM dev server with instant HMR
15
15
  - **`vp check`:** Run formatting, linting, and type checks in one command
@@ -96,9 +96,10 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
96
96
  - **create** - Create a new project from a template
97
97
  - **migrate** - Migrate an existing project to Vite+
98
98
  - **config** - Configure hooks and agent integration
99
+ - **hooks** - Manage the Git hook dispatcher
99
100
  - **staged** - Run linters on staged files
100
101
  - **install** (`i`) - Install dependencies
101
- - **env** - Manage Node.js versions
102
+ - **env** - Manage Node.js and package managers
102
103
 
103
104
  #### Develop
104
105
 
@@ -200,7 +201,7 @@ Add package-manager overrides so that other packages use the Vite+ versions. Ali
200
201
  ```json
201
202
  "overrides": {
202
203
  "vite": "npm:@voidzero-dev/vite-plus-core@latest",
203
- "vitest": "4.1.10"
204
+ "vitest": "4.1.11"
204
205
  }
205
206
  ```
206
207
 
@@ -209,7 +210,7 @@ If you are using `pnpm`, add this to your `pnpm-workspace.yaml`:
209
210
  ```yaml
210
211
  overrides:
211
212
  vite: npm:@voidzero-dev/vite-plus-core@latest
212
- vitest: 4.1.10
213
+ vitest: 4.1.11
213
214
  ```
214
215
 
215
216
  Or, if you are using Yarn:
@@ -217,7 +218,7 @@ Or, if you are using Yarn:
217
218
  ```json
218
219
  "resolutions": {
219
220
  "vite": "npm:@voidzero-dev/vite-plus-core@latest",
220
- "vitest": "4.1.10"
221
+ "vitest": "4.1.11"
221
222
  }
222
223
  ```
223
224
 
package/binding/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  // @ts-nocheck
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
- const { readFileSync } = require('fs')
6
+ const { readFileSync } = require('fs');
7
7
  let nativeBinding = null;
8
8
  const loadErrors = [];
9
9
 
@@ -81,12 +81,12 @@ function requireNative() {
81
81
  const bindingPackageVersion =
82
82
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
83
83
  if (
84
- bindingPackageVersion !== '0.2.9' &&
84
+ bindingPackageVersion !== '0.3.1' &&
85
85
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
86
86
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
87
87
  ) {
88
88
  throw new Error(
89
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
89
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
90
90
  );
91
91
  }
92
92
  return binding;
@@ -104,12 +104,12 @@ function requireNative() {
104
104
  const bindingPackageVersion =
105
105
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
106
106
  if (
107
- bindingPackageVersion !== '0.2.9' &&
107
+ bindingPackageVersion !== '0.3.1' &&
108
108
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
109
109
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
110
110
  ) {
111
111
  throw new Error(
112
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
112
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
113
113
  );
114
114
  }
115
115
  return binding;
@@ -139,12 +139,12 @@ function requireNative() {
139
139
  const bindingPackageVersion =
140
140
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
141
141
  if (
142
- bindingPackageVersion !== '0.2.9' &&
142
+ bindingPackageVersion !== '0.3.1' &&
143
143
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
144
144
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
145
145
  ) {
146
146
  throw new Error(
147
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
147
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
148
148
  );
149
149
  }
150
150
  return binding;
@@ -162,12 +162,12 @@ function requireNative() {
162
162
  const bindingPackageVersion =
163
163
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
164
164
  if (
165
- bindingPackageVersion !== '0.2.9' &&
165
+ bindingPackageVersion !== '0.3.1' &&
166
166
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
167
167
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
168
168
  ) {
169
169
  throw new Error(
170
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
170
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
171
171
  );
172
172
  }
173
173
  return binding;
@@ -186,12 +186,12 @@ function requireNative() {
186
186
  const bindingPackageVersion =
187
187
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
188
188
  if (
189
- bindingPackageVersion !== '0.2.9' &&
189
+ bindingPackageVersion !== '0.3.1' &&
190
190
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
191
191
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
192
192
  ) {
193
193
  throw new Error(
194
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
194
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
195
195
  );
196
196
  }
197
197
  return binding;
@@ -209,12 +209,12 @@ function requireNative() {
209
209
  const bindingPackageVersion =
210
210
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
211
211
  if (
212
- bindingPackageVersion !== '0.2.9' &&
212
+ bindingPackageVersion !== '0.3.1' &&
213
213
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
214
214
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
215
215
  ) {
216
216
  throw new Error(
217
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
217
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
218
218
  );
219
219
  }
220
220
  return binding;
@@ -235,12 +235,12 @@ function requireNative() {
235
235
  const bindingPackageVersion =
236
236
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
237
237
  if (
238
- bindingPackageVersion !== '0.2.9' &&
238
+ bindingPackageVersion !== '0.3.1' &&
239
239
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
240
240
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
241
241
  ) {
242
242
  throw new Error(
243
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
243
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
244
244
  );
245
245
  }
246
246
  return binding;
@@ -258,12 +258,12 @@ function requireNative() {
258
258
  const bindingPackageVersion =
259
259
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
260
260
  if (
261
- bindingPackageVersion !== '0.2.9' &&
261
+ bindingPackageVersion !== '0.3.1' &&
262
262
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
263
263
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
264
264
  ) {
265
265
  throw new Error(
266
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
266
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
267
267
  );
268
268
  }
269
269
  return binding;
@@ -281,12 +281,12 @@ function requireNative() {
281
281
  const bindingPackageVersion =
282
282
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
283
283
  if (
284
- bindingPackageVersion !== '0.2.9' &&
284
+ bindingPackageVersion !== '0.3.1' &&
285
285
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
286
286
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
287
287
  ) {
288
288
  throw new Error(
289
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
289
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
290
290
  );
291
291
  }
292
292
  return binding;
@@ -308,12 +308,12 @@ function requireNative() {
308
308
  const bindingPackageVersion =
309
309
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
310
310
  if (
311
- bindingPackageVersion !== '0.2.9' &&
311
+ bindingPackageVersion !== '0.3.1' &&
312
312
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
313
313
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
314
314
  ) {
315
315
  throw new Error(
316
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
316
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
317
317
  );
318
318
  }
319
319
  return binding;
@@ -331,12 +331,12 @@ function requireNative() {
331
331
  const bindingPackageVersion =
332
332
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
333
333
  if (
334
- bindingPackageVersion !== '0.2.9' &&
334
+ bindingPackageVersion !== '0.3.1' &&
335
335
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
336
336
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
337
337
  ) {
338
338
  throw new Error(
339
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
339
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
340
340
  );
341
341
  }
342
342
  return binding;
@@ -359,12 +359,12 @@ function requireNative() {
359
359
  const bindingPackageVersion =
360
360
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
361
361
  if (
362
- bindingPackageVersion !== '0.2.9' &&
362
+ bindingPackageVersion !== '0.3.1' &&
363
363
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
364
364
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
365
365
  ) {
366
366
  throw new Error(
367
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
367
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
368
368
  );
369
369
  }
370
370
  return binding;
@@ -382,12 +382,12 @@ function requireNative() {
382
382
  const bindingPackageVersion =
383
383
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
384
384
  if (
385
- bindingPackageVersion !== '0.2.9' &&
385
+ bindingPackageVersion !== '0.3.1' &&
386
386
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
387
387
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
388
388
  ) {
389
389
  throw new Error(
390
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
390
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
391
391
  );
392
392
  }
393
393
  return binding;
@@ -407,12 +407,12 @@ function requireNative() {
407
407
  const bindingPackageVersion =
408
408
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
409
409
  if (
410
- bindingPackageVersion !== '0.2.9' &&
410
+ bindingPackageVersion !== '0.3.1' &&
411
411
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
412
412
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
413
413
  ) {
414
414
  throw new Error(
415
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
415
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
416
416
  );
417
417
  }
418
418
  return binding;
@@ -430,12 +430,12 @@ function requireNative() {
430
430
  const bindingPackageVersion =
431
431
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
432
432
  if (
433
- bindingPackageVersion !== '0.2.9' &&
433
+ bindingPackageVersion !== '0.3.1' &&
434
434
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
435
435
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
436
436
  ) {
437
437
  throw new Error(
438
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
438
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
439
439
  );
440
440
  }
441
441
  return binding;
@@ -455,12 +455,12 @@ function requireNative() {
455
455
  const bindingPackageVersion =
456
456
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
457
457
  if (
458
- bindingPackageVersion !== '0.2.9' &&
458
+ bindingPackageVersion !== '0.3.1' &&
459
459
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
460
460
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
461
461
  ) {
462
462
  throw new Error(
463
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
463
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
464
464
  );
465
465
  }
466
466
  return binding;
@@ -478,12 +478,12 @@ function requireNative() {
478
478
  const bindingPackageVersion =
479
479
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
480
480
  if (
481
- bindingPackageVersion !== '0.2.9' &&
481
+ bindingPackageVersion !== '0.3.1' &&
482
482
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
483
483
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
484
484
  ) {
485
485
  throw new Error(
486
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
486
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
487
487
  );
488
488
  }
489
489
  return binding;
@@ -503,12 +503,12 @@ function requireNative() {
503
503
  const bindingPackageVersion =
504
504
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
505
505
  if (
506
- bindingPackageVersion !== '0.2.9' &&
506
+ bindingPackageVersion !== '0.3.1' &&
507
507
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
508
508
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
509
509
  ) {
510
510
  throw new Error(
511
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
511
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
512
512
  );
513
513
  }
514
514
  return binding;
@@ -526,12 +526,12 @@ function requireNative() {
526
526
  const bindingPackageVersion =
527
527
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
528
528
  if (
529
- bindingPackageVersion !== '0.2.9' &&
529
+ bindingPackageVersion !== '0.3.1' &&
530
530
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
531
531
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
532
532
  ) {
533
533
  throw new Error(
534
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
534
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
535
535
  );
536
536
  }
537
537
  return binding;
@@ -551,12 +551,12 @@ function requireNative() {
551
551
  const bindingPackageVersion =
552
552
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
553
553
  if (
554
- bindingPackageVersion !== '0.2.9' &&
554
+ bindingPackageVersion !== '0.3.1' &&
555
555
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
556
556
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
557
557
  ) {
558
558
  throw new Error(
559
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
559
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
560
560
  );
561
561
  }
562
562
  return binding;
@@ -574,12 +574,12 @@ function requireNative() {
574
574
  const bindingPackageVersion =
575
575
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
576
576
  if (
577
- bindingPackageVersion !== '0.2.9' &&
577
+ bindingPackageVersion !== '0.3.1' &&
578
578
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
579
579
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
580
580
  ) {
581
581
  throw new Error(
582
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
582
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
583
583
  );
584
584
  }
585
585
  return binding;
@@ -598,12 +598,12 @@ function requireNative() {
598
598
  const bindingPackageVersion =
599
599
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
600
600
  if (
601
- bindingPackageVersion !== '0.2.9' &&
601
+ bindingPackageVersion !== '0.3.1' &&
602
602
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
603
603
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
604
604
  ) {
605
605
  throw new Error(
606
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
606
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
607
607
  );
608
608
  }
609
609
  return binding;
@@ -621,12 +621,12 @@ function requireNative() {
621
621
  const bindingPackageVersion =
622
622
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
623
623
  if (
624
- bindingPackageVersion !== '0.2.9' &&
624
+ bindingPackageVersion !== '0.3.1' &&
625
625
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
626
626
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
627
627
  ) {
628
628
  throw new Error(
629
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
629
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
630
630
  );
631
631
  }
632
632
  return binding;
@@ -648,12 +648,12 @@ function requireNative() {
648
648
  const bindingPackageVersion =
649
649
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
650
650
  if (
651
- bindingPackageVersion !== '0.2.9' &&
651
+ bindingPackageVersion !== '0.3.1' &&
652
652
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
653
653
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
654
654
  ) {
655
655
  throw new Error(
656
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
656
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
657
657
  );
658
658
  }
659
659
  return binding;
@@ -671,12 +671,12 @@ function requireNative() {
671
671
  const bindingPackageVersion =
672
672
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
673
673
  if (
674
- bindingPackageVersion !== '0.2.9' &&
674
+ bindingPackageVersion !== '0.3.1' &&
675
675
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
676
676
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
677
677
  ) {
678
678
  throw new Error(
679
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
679
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
680
680
  );
681
681
  }
682
682
  return binding;
@@ -694,12 +694,12 @@ function requireNative() {
694
694
  const bindingPackageVersion =
695
695
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
696
696
  if (
697
- bindingPackageVersion !== '0.2.9' &&
697
+ bindingPackageVersion !== '0.3.1' &&
698
698
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
699
699
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
700
700
  ) {
701
701
  throw new Error(
702
- `Native binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
702
+ `Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
703
703
  );
704
704
  }
705
705
  return binding;
@@ -844,9 +844,9 @@ if (!nativeBinding || forceWasi) {
844
844
  ) {
845
845
  const bindingPackageVersion =
846
846
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
847
- if (bindingPackageVersion !== '0.2.9') {
847
+ if (bindingPackageVersion !== '0.3.1') {
848
848
  throw new Error(
849
- `WASI binding package version mismatch, expected 0.2.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
849
+ `WASI binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
850
850
  );
851
851
  }
852
852
  }
@@ -955,17 +955,25 @@ module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
955
955
  module.exports.enhancedTransform = nativeBinding.enhancedTransform;
956
956
  module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
957
957
  module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
958
+ module.exports.getNativeMemoryStats = nativeBinding.getNativeMemoryStats;
958
959
  module.exports.initTraceSubscriber = nativeBinding.initTraceSubscriber;
959
960
  module.exports.registerPlugins = nativeBinding.registerPlugins;
961
+ module.exports.resetNativeMemoryStats = nativeBinding.resetNativeMemoryStats;
960
962
  module.exports.resolveTsconfig = nativeBinding.resolveTsconfig;
961
963
  module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
962
964
  module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
963
965
  module.exports.detectWorkspace = nativeBinding.detectWorkspace;
964
966
  module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
965
967
  module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
968
+ module.exports.getVpDirs = nativeBinding.getVpDirs;
966
969
  module.exports.hasConfigKey = nativeBinding.hasConfigKey;
967
970
  module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
968
971
  module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
972
+ module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
973
+ module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
974
+ module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
975
+ module.exports.parseMigrateArgs = nativeBinding.parseMigrateArgs;
976
+ module.exports.parseStagedArgs = nativeBinding.parseStagedArgs;
969
977
  module.exports.rewriteEslint = nativeBinding.rewriteEslint;
970
978
  module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
971
979
  module.exports.rewritePrettier = nativeBinding.rewritePrettier;