vite-plus 0.3.0 → 0.3.2

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 (95) hide show
  1. package/LICENSE +29 -29
  2. package/README.md +3 -3
  3. package/bin/vp +1 -1
  4. package/binding/index.cjs +60 -56
  5. package/binding/index.d.cts +137 -14
  6. package/dist/{agent-Wqx0MPk0.js → agent-C59HKB4Y.js} +3 -2
  7. package/dist/bin.js +90 -58
  8. package/dist/cli-parse-DHE8NrBU.js +13 -0
  9. package/dist/client/bundledDevClient.mjs +1 -1
  10. package/dist/client/client.mjs +1 -1
  11. package/dist/client/env.mjs +1 -1
  12. package/dist/client.d.ts +1 -1
  13. package/dist/config/bin.js +83 -55
  14. package/dist/{constants-Bn-U8o4v.js → constants-IhOditRA.js} +3 -3
  15. package/dist/create/bin.d.ts +13 -5
  16. package/dist/create/bin.js +50 -193
  17. package/dist/{define-config-GXUdVT-0.js → define-config-DAaCa0U_.js} +2 -2
  18. package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
  19. package/dist/{define-config-WiVlryJ2.cjs → define-config-DpAPETDf.cjs} +1 -1
  20. package/dist/define-config.cjs +1 -1
  21. package/dist/define-config.d.ts +1 -1
  22. package/dist/define-config.js +1 -1
  23. package/dist/dist-DfmT__Aw.js +619 -0
  24. package/dist/{editor-CC4DqODz.js → editor-QOIGtmH4.js} +205 -70
  25. package/dist/hooks/bin.js +9 -114
  26. package/dist/{hooks-DFqViZqZ.js → hooks-C-4gykWR.js} +1 -1
  27. package/dist/index.cjs +2 -2
  28. package/dist/index.d.ts +2 -2
  29. package/dist/index.js +2 -2
  30. package/dist/internal.d.ts +1 -1
  31. package/dist/internal.js +1 -1
  32. package/dist/lint-plugins-dev.d.ts +3 -0
  33. package/dist/lint-plugins-dev.js +2 -0
  34. package/dist/lint-plugins.cjs +21 -0
  35. package/dist/lint-plugins.d.ts +3 -0
  36. package/dist/lint-plugins.js +2 -0
  37. package/dist/migration/bin.js +25 -144
  38. package/dist/migration/compat/worker.js +1 -1
  39. package/dist/module-runner.d.ts +1 -1
  40. package/dist/module-runner.js +1 -1
  41. package/dist/{oxlint-plugin-config-DX5ezKbB.js → oxlint-plugin-config-BU42tr8y.js} +1 -1
  42. package/dist/oxlint-plugin.d.ts +2 -2
  43. package/dist/oxlint-plugin.js +93 -32
  44. package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
  45. package/dist/pack-bin.d.ts +2 -3
  46. package/dist/pack-bin.js +5 -622
  47. package/dist/pack-client.d.ts +1 -1
  48. package/dist/pack.d.ts +2 -2
  49. package/dist/pack.js +1 -1
  50. package/dist/{package-CBe9EWPY.js → package-BB-Jh_z3.js} +1 -1
  51. package/dist/{prompts-DF3yU-eU.js → prompts-CujFOJXu.js} +3 -1400
  52. package/dist/{report-ZNR1Mk6h.js → report-CK5TnTsr.js} +1 -0
  53. package/dist/resolve-vite-config-6Nox70uP.js +2 -0
  54. package/dist/{resolve-vite-config-ipGb39Jo.js → resolve-vite-config-CHHjsjKJ.js} +3 -3
  55. package/dist/semver-CaDAb8vV.js +1400 -0
  56. package/dist/staged/bin.js +83 -218
  57. package/dist/sync-versions/bin.d.ts +1 -0
  58. package/dist/sync-versions/bin.js +3884 -0
  59. package/dist/sync-versions/bin.mjs +13323 -0
  60. package/dist/toolchain.js +10 -10
  61. package/dist/toolchain.json +10 -10
  62. package/dist/{tsconfig-LD2QhQ0O.js → tsconfig-DCtWfQPA.js} +2 -2
  63. package/dist/{tsconfig-BVHG3DpR.js → tsconfig-MXktI3SX.js} +1 -1
  64. package/dist/tsgolint-path.d.ts +3 -4
  65. package/dist/types/customEvent.d.ts +1 -1
  66. package/dist/types/hmrPayload.d.ts +1 -1
  67. package/dist/types/hot.d.ts +1 -1
  68. package/dist/types/import-meta.d.ts +1 -1
  69. package/dist/types/importGlob.d.ts +1 -1
  70. package/dist/types/importMeta.d.ts +1 -1
  71. package/dist/types/metadata.d.ts +1 -1
  72. package/dist/version.d.ts +2 -3
  73. package/dist/version.js +2 -2
  74. package/dist/versions.js +5 -5
  75. package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
  76. package/docs/config/fmt.md +4 -2
  77. package/docs/config/lint.md +4 -2
  78. package/docs/guide/check.md +1 -0
  79. package/docs/guide/ci.md +42 -2
  80. package/docs/guide/env.md +148 -52
  81. package/docs/guide/fmt.md +3 -1
  82. package/docs/guide/ide-integration.md +14 -2
  83. package/docs/guide/index.md +1 -1
  84. package/docs/guide/install.md +4 -1
  85. package/docs/guide/installer-env-vars.md +45 -1
  86. package/docs/guide/lint.md +58 -1
  87. package/docs/guide/migrate-rules.md +95 -2
  88. package/docs/guide/migrate.md +1 -1
  89. package/docs/guide/monorepo.md +2 -0
  90. package/docs/guide/troubleshooting.md +14 -0
  91. package/package.json +27 -20
  92. package/templates/generator/README.md +14 -0
  93. package/templates/generator/bin/index.ts +54 -5
  94. package/dist/lib-L3DWSRQp.js +0 -75
  95. package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
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
@@ -73,7 +73,7 @@ export default defineConfig({
73
73
  tasks: {
74
74
  'generate:icons': {
75
75
  command: 'node scripts/generate-icons.js',
76
- envs: ['ICON_THEME'],
76
+ env: ['ICON_THEME'],
77
77
  },
78
78
  },
79
79
  },
@@ -99,7 +99,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
99
99
  - **hooks** - Manage the Git hook dispatcher
100
100
  - **staged** - Run linters on staged files
101
101
  - **install** (`i`) - Install dependencies
102
- - **env** - Manage Node.js versions
102
+ - **env** - Manage Node.js and package managers
103
103
 
104
104
  #### Develop
105
105
 
package/bin/vp CHANGED
@@ -4,4 +4,4 @@ import module from 'node:module';
4
4
  if (module.enableCompileCache) {
5
5
  module.enableCompileCache();
6
6
  }
7
- import '../dist/bin.js';
7
+ await import('../dist/bin.js');
package/binding/index.cjs CHANGED
@@ -1,9 +1,8 @@
1
- // prettier-ignore
2
1
  /* eslint-disable */
3
2
  // @ts-nocheck
4
3
  /* auto-generated by NAPI-RS */
5
4
 
6
- const { readFileSync } = require('fs')
5
+ const { readFileSync } = require('fs');
7
6
  let nativeBinding = null;
8
7
  const loadErrors = [];
9
8
 
@@ -81,12 +80,12 @@ function requireNative() {
81
80
  const bindingPackageVersion =
82
81
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
83
82
  if (
84
- bindingPackageVersion !== '0.3.0' &&
83
+ bindingPackageVersion !== '0.3.2' &&
85
84
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
86
85
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
87
86
  ) {
88
87
  throw new Error(
89
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
88
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
90
89
  );
91
90
  }
92
91
  return binding;
@@ -104,12 +103,12 @@ function requireNative() {
104
103
  const bindingPackageVersion =
105
104
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
106
105
  if (
107
- bindingPackageVersion !== '0.3.0' &&
106
+ bindingPackageVersion !== '0.3.2' &&
108
107
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
109
108
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
110
109
  ) {
111
110
  throw new Error(
112
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
111
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
113
112
  );
114
113
  }
115
114
  return binding;
@@ -139,12 +138,12 @@ function requireNative() {
139
138
  const bindingPackageVersion =
140
139
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
141
140
  if (
142
- bindingPackageVersion !== '0.3.0' &&
141
+ bindingPackageVersion !== '0.3.2' &&
143
142
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
144
143
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
145
144
  ) {
146
145
  throw new Error(
147
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
146
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
148
147
  );
149
148
  }
150
149
  return binding;
@@ -162,12 +161,12 @@ function requireNative() {
162
161
  const bindingPackageVersion =
163
162
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
164
163
  if (
165
- bindingPackageVersion !== '0.3.0' &&
164
+ bindingPackageVersion !== '0.3.2' &&
166
165
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
167
166
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
168
167
  ) {
169
168
  throw new Error(
170
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
169
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
171
170
  );
172
171
  }
173
172
  return binding;
@@ -186,12 +185,12 @@ function requireNative() {
186
185
  const bindingPackageVersion =
187
186
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
188
187
  if (
189
- bindingPackageVersion !== '0.3.0' &&
188
+ bindingPackageVersion !== '0.3.2' &&
190
189
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
191
190
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
192
191
  ) {
193
192
  throw new Error(
194
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
193
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
195
194
  );
196
195
  }
197
196
  return binding;
@@ -209,12 +208,12 @@ function requireNative() {
209
208
  const bindingPackageVersion =
210
209
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
211
210
  if (
212
- bindingPackageVersion !== '0.3.0' &&
211
+ bindingPackageVersion !== '0.3.2' &&
213
212
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
214
213
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
215
214
  ) {
216
215
  throw new Error(
217
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
216
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
218
217
  );
219
218
  }
220
219
  return binding;
@@ -235,12 +234,12 @@ function requireNative() {
235
234
  const bindingPackageVersion =
236
235
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
237
236
  if (
238
- bindingPackageVersion !== '0.3.0' &&
237
+ bindingPackageVersion !== '0.3.2' &&
239
238
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
240
239
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
241
240
  ) {
242
241
  throw new Error(
243
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
242
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
244
243
  );
245
244
  }
246
245
  return binding;
@@ -258,12 +257,12 @@ function requireNative() {
258
257
  const bindingPackageVersion =
259
258
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
260
259
  if (
261
- bindingPackageVersion !== '0.3.0' &&
260
+ bindingPackageVersion !== '0.3.2' &&
262
261
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
263
262
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
264
263
  ) {
265
264
  throw new Error(
266
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
265
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
267
266
  );
268
267
  }
269
268
  return binding;
@@ -281,12 +280,12 @@ function requireNative() {
281
280
  const bindingPackageVersion =
282
281
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
283
282
  if (
284
- bindingPackageVersion !== '0.3.0' &&
283
+ bindingPackageVersion !== '0.3.2' &&
285
284
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
286
285
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
287
286
  ) {
288
287
  throw new Error(
289
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
288
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
290
289
  );
291
290
  }
292
291
  return binding;
@@ -308,12 +307,12 @@ function requireNative() {
308
307
  const bindingPackageVersion =
309
308
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
310
309
  if (
311
- bindingPackageVersion !== '0.3.0' &&
310
+ bindingPackageVersion !== '0.3.2' &&
312
311
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
313
312
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
314
313
  ) {
315
314
  throw new Error(
316
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
315
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
317
316
  );
318
317
  }
319
318
  return binding;
@@ -331,12 +330,12 @@ function requireNative() {
331
330
  const bindingPackageVersion =
332
331
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
333
332
  if (
334
- bindingPackageVersion !== '0.3.0' &&
333
+ bindingPackageVersion !== '0.3.2' &&
335
334
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
336
335
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
337
336
  ) {
338
337
  throw new Error(
339
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
338
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
340
339
  );
341
340
  }
342
341
  return binding;
@@ -359,12 +358,12 @@ function requireNative() {
359
358
  const bindingPackageVersion =
360
359
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
361
360
  if (
362
- bindingPackageVersion !== '0.3.0' &&
361
+ bindingPackageVersion !== '0.3.2' &&
363
362
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
364
363
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
365
364
  ) {
366
365
  throw new Error(
367
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
366
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
368
367
  );
369
368
  }
370
369
  return binding;
@@ -382,12 +381,12 @@ function requireNative() {
382
381
  const bindingPackageVersion =
383
382
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
384
383
  if (
385
- bindingPackageVersion !== '0.3.0' &&
384
+ bindingPackageVersion !== '0.3.2' &&
386
385
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
387
386
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
388
387
  ) {
389
388
  throw new Error(
390
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
389
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
391
390
  );
392
391
  }
393
392
  return binding;
@@ -407,12 +406,12 @@ function requireNative() {
407
406
  const bindingPackageVersion =
408
407
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
409
408
  if (
410
- bindingPackageVersion !== '0.3.0' &&
409
+ bindingPackageVersion !== '0.3.2' &&
411
410
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
412
411
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
413
412
  ) {
414
413
  throw new Error(
415
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
414
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
416
415
  );
417
416
  }
418
417
  return binding;
@@ -430,12 +429,12 @@ function requireNative() {
430
429
  const bindingPackageVersion =
431
430
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
432
431
  if (
433
- bindingPackageVersion !== '0.3.0' &&
432
+ bindingPackageVersion !== '0.3.2' &&
434
433
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
435
434
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
436
435
  ) {
437
436
  throw new Error(
438
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
437
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
439
438
  );
440
439
  }
441
440
  return binding;
@@ -455,12 +454,12 @@ function requireNative() {
455
454
  const bindingPackageVersion =
456
455
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
457
456
  if (
458
- bindingPackageVersion !== '0.3.0' &&
457
+ bindingPackageVersion !== '0.3.2' &&
459
458
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
460
459
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
461
460
  ) {
462
461
  throw new Error(
463
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
462
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
464
463
  );
465
464
  }
466
465
  return binding;
@@ -478,12 +477,12 @@ function requireNative() {
478
477
  const bindingPackageVersion =
479
478
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
480
479
  if (
481
- bindingPackageVersion !== '0.3.0' &&
480
+ bindingPackageVersion !== '0.3.2' &&
482
481
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
483
482
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
484
483
  ) {
485
484
  throw new Error(
486
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
485
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
487
486
  );
488
487
  }
489
488
  return binding;
@@ -503,12 +502,12 @@ function requireNative() {
503
502
  const bindingPackageVersion =
504
503
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
505
504
  if (
506
- bindingPackageVersion !== '0.3.0' &&
505
+ bindingPackageVersion !== '0.3.2' &&
507
506
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
508
507
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
509
508
  ) {
510
509
  throw new Error(
511
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
510
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
512
511
  );
513
512
  }
514
513
  return binding;
@@ -526,12 +525,12 @@ function requireNative() {
526
525
  const bindingPackageVersion =
527
526
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
528
527
  if (
529
- bindingPackageVersion !== '0.3.0' &&
528
+ bindingPackageVersion !== '0.3.2' &&
530
529
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
531
530
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
532
531
  ) {
533
532
  throw new Error(
534
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
533
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
535
534
  );
536
535
  }
537
536
  return binding;
@@ -551,12 +550,12 @@ function requireNative() {
551
550
  const bindingPackageVersion =
552
551
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
553
552
  if (
554
- bindingPackageVersion !== '0.3.0' &&
553
+ bindingPackageVersion !== '0.3.2' &&
555
554
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
556
555
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
557
556
  ) {
558
557
  throw new Error(
559
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
558
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
560
559
  );
561
560
  }
562
561
  return binding;
@@ -574,12 +573,12 @@ function requireNative() {
574
573
  const bindingPackageVersion =
575
574
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
576
575
  if (
577
- bindingPackageVersion !== '0.3.0' &&
576
+ bindingPackageVersion !== '0.3.2' &&
578
577
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
579
578
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
580
579
  ) {
581
580
  throw new Error(
582
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
581
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
583
582
  );
584
583
  }
585
584
  return binding;
@@ -598,12 +597,12 @@ function requireNative() {
598
597
  const bindingPackageVersion =
599
598
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
600
599
  if (
601
- bindingPackageVersion !== '0.3.0' &&
600
+ bindingPackageVersion !== '0.3.2' &&
602
601
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
603
602
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
604
603
  ) {
605
604
  throw new Error(
606
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
605
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
607
606
  );
608
607
  }
609
608
  return binding;
@@ -621,12 +620,12 @@ function requireNative() {
621
620
  const bindingPackageVersion =
622
621
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
623
622
  if (
624
- bindingPackageVersion !== '0.3.0' &&
623
+ bindingPackageVersion !== '0.3.2' &&
625
624
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
626
625
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
627
626
  ) {
628
627
  throw new Error(
629
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
628
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
630
629
  );
631
630
  }
632
631
  return binding;
@@ -648,12 +647,12 @@ function requireNative() {
648
647
  const bindingPackageVersion =
649
648
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
650
649
  if (
651
- bindingPackageVersion !== '0.3.0' &&
650
+ bindingPackageVersion !== '0.3.2' &&
652
651
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
653
652
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
654
653
  ) {
655
654
  throw new Error(
656
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
655
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
657
656
  );
658
657
  }
659
658
  return binding;
@@ -671,12 +670,12 @@ function requireNative() {
671
670
  const bindingPackageVersion =
672
671
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
673
672
  if (
674
- bindingPackageVersion !== '0.3.0' &&
673
+ bindingPackageVersion !== '0.3.2' &&
675
674
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
676
675
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
677
676
  ) {
678
677
  throw new Error(
679
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
678
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
680
679
  );
681
680
  }
682
681
  return binding;
@@ -694,12 +693,12 @@ function requireNative() {
694
693
  const bindingPackageVersion =
695
694
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
696
695
  if (
697
- bindingPackageVersion !== '0.3.0' &&
696
+ bindingPackageVersion !== '0.3.2' &&
698
697
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
699
698
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
700
699
  ) {
701
700
  throw new Error(
702
- `Native binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
701
+ `Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
703
702
  );
704
703
  }
705
704
  return binding;
@@ -844,9 +843,9 @@ if (!nativeBinding || forceWasi) {
844
843
  ) {
845
844
  const bindingPackageVersion =
846
845
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
847
- if (bindingPackageVersion !== '0.3.0') {
846
+ if (bindingPackageVersion !== '0.3.2') {
848
847
  throw new Error(
849
- `WASI binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
848
+ `WASI binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
850
849
  );
851
850
  }
852
851
  }
@@ -969,6 +968,11 @@ module.exports.getVpDirs = nativeBinding.getVpDirs;
969
968
  module.exports.hasConfigKey = nativeBinding.hasConfigKey;
970
969
  module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
971
970
  module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
971
+ module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
972
+ module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
973
+ module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
974
+ module.exports.parseMigrateArgs = nativeBinding.parseMigrateArgs;
975
+ module.exports.parseStagedArgs = nativeBinding.parseStagedArgs;
972
976
  module.exports.rewriteEslint = nativeBinding.rewriteEslint;
973
977
  module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
974
978
  module.exports.rewritePrettier = nativeBinding.rewritePrettier;