vite-plus 1.1.0 → 1.3.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 (83) hide show
  1. package/LICENSE +58 -1
  2. package/binding/index.cjs +54 -54
  3. package/binding/index.d.cts +7 -0
  4. package/dist/{agent-eISuMXJb.js → agent-97KmGCyL.js} +4 -4
  5. package/dist/bin.js +12 -12
  6. package/dist/{command-CguLh2KL.js → command-CdMBoZFD.js} +13 -13
  7. package/dist/command-DVTILtS-.js +1 -0
  8. package/dist/comparison-CmVirWIW-DUGaiYqF.js +121 -0
  9. package/dist/config/bin.js +4 -4
  10. package/dist/{constants-CCQkpaxK.js → constants-DR55DpRm.js} +3 -3
  11. package/dist/create/bin.d.ts +2 -1
  12. package/dist/create/bin.js +112 -29
  13. package/dist/{define-config-CeW9DETl.d.ts → define-config-Bexdd6RZ.d.ts} +1 -1
  14. package/dist/{define-config-CREUiMmM.cjs → define-config-BxDc_9BK.cjs} +89 -3
  15. package/dist/{define-config-Ro6PS4dP.js → define-config-CvE5pHqB.js} +111 -6
  16. package/dist/define-config.cjs +1 -1
  17. package/dist/define-config.d.ts +1 -1
  18. package/dist/define-config.js +1 -2
  19. package/dist/{dist-DfmT__Aw.js → dist-Cqz8OtiO.js} +24 -21
  20. package/dist/{dist-BsAzy8OW.js → dist-DIpm7mot.js} +6 -7
  21. package/dist/dist-Dhu07wmN.js +3 -0
  22. package/dist/{editor-B8tkz7nL.js → editor-CtJGQP7C.js} +34 -27
  23. package/dist/fmt.js +1 -2
  24. package/dist/hooks/bin.js +1 -1
  25. package/dist/{hooks-C-4gykWR.js → hooks-DhwsWb46.js} +34 -22
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/lint-plugins-dev.js +1 -2
  30. package/dist/lint-plugins.cjs +1 -1
  31. package/dist/lint-plugins.js +1 -2
  32. package/dist/migration/bin.js +18 -16
  33. package/dist/{oxlint-plugin-config-CbG58Kzr.js → oxlint-plugin-config-BIzrO2y2.js} +1 -1
  34. package/dist/oxlint-plugin.js +2 -2
  35. package/dist/pack-bin.js +2 -2
  36. package/dist/{package-BS84eWrW.js → package-CQDXTm6j.js} +1 -1
  37. package/dist/{package-overrides-CpoQngt3.js → package-overrides-D1RcXSFl.js} +1 -1
  38. package/dist/{prompts-ByOzbMBG.js → prompts-1xNz_ne0.js} +103 -208
  39. package/dist/resolve-vite-config-7WDtXO4G.js +1 -0
  40. package/dist/{resolve-vite-config-Be237LWp.js → resolve-vite-config-BVr1SUNg.js} +2 -2
  41. package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-kJ_i4yPo.js} +1 -1
  42. package/dist/staged/bin.js +33 -5
  43. package/dist/sync-versions/bin.js +4760 -3369
  44. package/dist/sync-versions/bin.mjs +4899 -3505
  45. package/dist/test/browser/providers/playwright.d.ts +7 -2
  46. package/dist/test/browser-playwright.d.ts +7 -2
  47. package/dist/toolchain.js +12 -12
  48. package/dist/toolchain.json +12 -12
  49. package/dist/{tsconfig-DzZ-nrx2.js → tsconfig-BZu7kl-x.js} +3 -3
  50. package/dist/tsconfig-zWgHiQ3X.js +1 -0
  51. package/dist/version.js +2 -2
  52. package/dist/versions.js +7 -7
  53. package/docs/config/run.md +9 -5
  54. package/docs/config/staged.md +1 -1
  55. package/docs/guide/automatic-data-tracking.md +7 -6
  56. package/docs/guide/cache.md +3 -3
  57. package/docs/guide/check.md +7 -7
  58. package/docs/guide/commit-hooks.md +3 -1
  59. package/docs/guide/create.md +48 -4
  60. package/docs/guide/env.md +25 -11
  61. package/docs/guide/github-actions-cache.md +1 -1
  62. package/docs/guide/global-cli.md +36 -10
  63. package/docs/guide/ide-integration.md +1 -1
  64. package/docs/guide/index.md +8 -8
  65. package/docs/guide/local-cli.md +24 -8
  66. package/docs/guide/migrate-rules.md +3 -3
  67. package/docs/guide/migrate.md +9 -9
  68. package/docs/guide/{install.md → package-management.md} +42 -4
  69. package/docs/guide/run.md +10 -8
  70. package/docs/guide/test.md +3 -1
  71. package/docs/guide/troubleshooting.md +7 -5
  72. package/docs/guide/upgrade-project.md +1 -5
  73. package/docs/guide/upgrade.md +6 -0
  74. package/docs/guide/vitest-v5.md +2 -2
  75. package/docs/guide/vpx.md +3 -3
  76. package/package.json +32 -31
  77. package/templates/generator/bin/index.ts +0 -0
  78. package/templates/generator/package.json +2 -2
  79. package/templates/generator/src/template.ts +1 -0
  80. package/dist/command-CLJK5jGW.js +0 -2
  81. package/dist/dist-DUsqQuw8.js +0 -6774
  82. package/dist/resolve-vite-config-CofpYgnY.js +0 -2
  83. package/dist/tsconfig-3ONY2k2K.js +0 -2
package/LICENSE CHANGED
@@ -74,6 +74,34 @@ Repository: https://github.com/nkzw-tech/safe-word-list
74
74
 
75
75
  ---------------------------------------
76
76
 
77
+ ## @voidzero-dev/vite-task-client
78
+ License: MIT
79
+ Repository: https://github.com/voidzero-dev/vite-task
80
+
81
+ > MIT License
82
+ >
83
+ > Copyright (c) 2026-present, VoidZero Inc.
84
+ >
85
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
86
+ > of this software and associated documentation files (the "Software"), to deal
87
+ > in the Software without restriction, including without limitation the rights
88
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
89
+ > copies of the Software, and to permit persons to whom the Software is
90
+ > furnished to do so, subject to the following conditions:
91
+ >
92
+ > The above copyright notice and this permission notice shall be included in all
93
+ > copies or substantial portions of the Software.
94
+ >
95
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
96
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
97
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
98
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
99
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
100
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
101
+ > SOFTWARE.
102
+
103
+ ---------------------------------------
104
+
77
105
  ## balanced-match
78
106
  License: MIT
79
107
  By: Julian Gruber
@@ -134,7 +162,7 @@ Repository: https://github.com/juliangruber/brace-expansion
134
162
 
135
163
  ## cac
136
164
  License: MIT
137
- By: egoist <0x142857@gmail.com>
165
+ By: egoist <0x142857@gmail.com>, Kevin Deng <sxzz@sxzz.moe>
138
166
  Repository: https://github.com/cacjs/cac
139
167
 
140
168
  > The MIT License (MIT)
@@ -670,6 +698,35 @@ Repository: https://github.com/kevva/shebang-command
670
698
 
671
699
  ---------------------------------------
672
700
 
701
+ ## sisteransi
702
+ License: MIT
703
+ By: Terkel Gjervig
704
+ Repository: https://github.com/terkelg/sisteransi
705
+
706
+ > MIT License
707
+ >
708
+ > Copyright (c) 2018 Terkel Gjervig Nielsen
709
+ >
710
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
711
+ > of this software and associated documentation files (the "Software"), to deal
712
+ > in the Software without restriction, including without limitation the rights
713
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
714
+ > copies of the Software, and to permit persons to whom the Software is
715
+ > furnished to do so, subject to the following conditions:
716
+ >
717
+ > The above copyright notice and this permission notice shall be included in all
718
+ > copies or substantial portions of the Software.
719
+ >
720
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
721
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
722
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
723
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
724
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
725
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
726
+ > SOFTWARE.
727
+
728
+ ---------------------------------------
729
+
673
730
  ## string-argv
674
731
  License: MIT
675
732
  By: Anthony McCormick, Michael Ferris
package/binding/index.cjs CHANGED
@@ -93,12 +93,12 @@ function requireNative() {
93
93
  const bindingPackageVersion =
94
94
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
95
95
  if (
96
- bindingPackageVersion !== '1.1.0' &&
96
+ bindingPackageVersion !== '1.3.0' &&
97
97
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
98
98
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
99
99
  ) {
100
100
  throw new Error(
101
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
101
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
102
102
  );
103
103
  }
104
104
  return binding;
@@ -116,12 +116,12 @@ function requireNative() {
116
116
  const bindingPackageVersion =
117
117
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
118
118
  if (
119
- bindingPackageVersion !== '1.1.0' &&
119
+ bindingPackageVersion !== '1.3.0' &&
120
120
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
121
121
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
122
122
  ) {
123
123
  throw new Error(
124
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
124
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
125
125
  );
126
126
  }
127
127
  return binding;
@@ -151,12 +151,12 @@ function requireNative() {
151
151
  const bindingPackageVersion =
152
152
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
153
153
  if (
154
- bindingPackageVersion !== '1.1.0' &&
154
+ bindingPackageVersion !== '1.3.0' &&
155
155
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
156
156
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
157
157
  ) {
158
158
  throw new Error(
159
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
159
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
160
  );
161
161
  }
162
162
  return binding;
@@ -174,12 +174,12 @@ function requireNative() {
174
174
  const bindingPackageVersion =
175
175
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
176
176
  if (
177
- bindingPackageVersion !== '1.1.0' &&
177
+ bindingPackageVersion !== '1.3.0' &&
178
178
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
179
179
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
180
180
  ) {
181
181
  throw new Error(
182
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
182
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
183
183
  );
184
184
  }
185
185
  return binding;
@@ -198,12 +198,12 @@ function requireNative() {
198
198
  const bindingPackageVersion =
199
199
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
200
200
  if (
201
- bindingPackageVersion !== '1.1.0' &&
201
+ bindingPackageVersion !== '1.3.0' &&
202
202
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
203
203
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
204
204
  ) {
205
205
  throw new Error(
206
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
207
  );
208
208
  }
209
209
  return binding;
@@ -221,12 +221,12 @@ function requireNative() {
221
221
  const bindingPackageVersion =
222
222
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
223
223
  if (
224
- bindingPackageVersion !== '1.1.0' &&
224
+ bindingPackageVersion !== '1.3.0' &&
225
225
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
226
226
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
227
227
  ) {
228
228
  throw new Error(
229
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
229
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
230
230
  );
231
231
  }
232
232
  return binding;
@@ -247,12 +247,12 @@ function requireNative() {
247
247
  const bindingPackageVersion =
248
248
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
249
249
  if (
250
- bindingPackageVersion !== '1.1.0' &&
250
+ bindingPackageVersion !== '1.3.0' &&
251
251
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
252
252
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
253
253
  ) {
254
254
  throw new Error(
255
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
255
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
256
256
  );
257
257
  }
258
258
  return binding;
@@ -270,12 +270,12 @@ function requireNative() {
270
270
  const bindingPackageVersion =
271
271
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
272
272
  if (
273
- bindingPackageVersion !== '1.1.0' &&
273
+ bindingPackageVersion !== '1.3.0' &&
274
274
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
275
275
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
276
276
  ) {
277
277
  throw new Error(
278
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
278
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
279
279
  );
280
280
  }
281
281
  return binding;
@@ -293,12 +293,12 @@ function requireNative() {
293
293
  const bindingPackageVersion =
294
294
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
295
295
  if (
296
- bindingPackageVersion !== '1.1.0' &&
296
+ bindingPackageVersion !== '1.3.0' &&
297
297
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
298
298
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
299
299
  ) {
300
300
  throw new Error(
301
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
301
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
302
302
  );
303
303
  }
304
304
  return binding;
@@ -320,12 +320,12 @@ function requireNative() {
320
320
  const bindingPackageVersion =
321
321
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
322
322
  if (
323
- bindingPackageVersion !== '1.1.0' &&
323
+ bindingPackageVersion !== '1.3.0' &&
324
324
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
325
325
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
326
326
  ) {
327
327
  throw new Error(
328
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
328
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
329
  );
330
330
  }
331
331
  return binding;
@@ -343,12 +343,12 @@ function requireNative() {
343
343
  const bindingPackageVersion =
344
344
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
345
345
  if (
346
- bindingPackageVersion !== '1.1.0' &&
346
+ bindingPackageVersion !== '1.3.0' &&
347
347
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
348
348
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
349
349
  ) {
350
350
  throw new Error(
351
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
351
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
352
352
  );
353
353
  }
354
354
  return binding;
@@ -371,12 +371,12 @@ function requireNative() {
371
371
  const bindingPackageVersion =
372
372
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
373
373
  if (
374
- bindingPackageVersion !== '1.1.0' &&
374
+ bindingPackageVersion !== '1.3.0' &&
375
375
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
376
376
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
377
377
  ) {
378
378
  throw new Error(
379
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
379
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
380
  );
381
381
  }
382
382
  return binding;
@@ -394,12 +394,12 @@ function requireNative() {
394
394
  const bindingPackageVersion =
395
395
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
396
396
  if (
397
- bindingPackageVersion !== '1.1.0' &&
397
+ bindingPackageVersion !== '1.3.0' &&
398
398
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
399
399
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
400
400
  ) {
401
401
  throw new Error(
402
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
402
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
403
403
  );
404
404
  }
405
405
  return binding;
@@ -419,12 +419,12 @@ function requireNative() {
419
419
  const bindingPackageVersion =
420
420
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
421
421
  if (
422
- bindingPackageVersion !== '1.1.0' &&
422
+ bindingPackageVersion !== '1.3.0' &&
423
423
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
424
424
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
425
425
  ) {
426
426
  throw new Error(
427
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
427
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
428
  );
429
429
  }
430
430
  return binding;
@@ -442,12 +442,12 @@ function requireNative() {
442
442
  const bindingPackageVersion =
443
443
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
444
444
  if (
445
- bindingPackageVersion !== '1.1.0' &&
445
+ bindingPackageVersion !== '1.3.0' &&
446
446
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
447
447
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
448
448
  ) {
449
449
  throw new Error(
450
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
450
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
451
451
  );
452
452
  }
453
453
  return binding;
@@ -467,12 +467,12 @@ function requireNative() {
467
467
  const bindingPackageVersion =
468
468
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
469
469
  if (
470
- bindingPackageVersion !== '1.1.0' &&
470
+ bindingPackageVersion !== '1.3.0' &&
471
471
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
472
472
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
473
473
  ) {
474
474
  throw new Error(
475
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
475
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
476
  );
477
477
  }
478
478
  return binding;
@@ -490,12 +490,12 @@ function requireNative() {
490
490
  const bindingPackageVersion =
491
491
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
492
492
  if (
493
- bindingPackageVersion !== '1.1.0' &&
493
+ bindingPackageVersion !== '1.3.0' &&
494
494
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
495
495
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
496
496
  ) {
497
497
  throw new Error(
498
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
498
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
499
499
  );
500
500
  }
501
501
  return binding;
@@ -515,12 +515,12 @@ function requireNative() {
515
515
  const bindingPackageVersion =
516
516
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
517
517
  if (
518
- bindingPackageVersion !== '1.1.0' &&
518
+ bindingPackageVersion !== '1.3.0' &&
519
519
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
520
520
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
521
521
  ) {
522
522
  throw new Error(
523
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
523
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
524
  );
525
525
  }
526
526
  return binding;
@@ -538,12 +538,12 @@ function requireNative() {
538
538
  const bindingPackageVersion =
539
539
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
540
540
  if (
541
- bindingPackageVersion !== '1.1.0' &&
541
+ bindingPackageVersion !== '1.3.0' &&
542
542
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
543
543
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
544
544
  ) {
545
545
  throw new Error(
546
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
546
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
547
547
  );
548
548
  }
549
549
  return binding;
@@ -563,12 +563,12 @@ function requireNative() {
563
563
  const bindingPackageVersion =
564
564
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
565
565
  if (
566
- bindingPackageVersion !== '1.1.0' &&
566
+ bindingPackageVersion !== '1.3.0' &&
567
567
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
568
568
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
569
569
  ) {
570
570
  throw new Error(
571
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
571
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
572
  );
573
573
  }
574
574
  return binding;
@@ -586,12 +586,12 @@ function requireNative() {
586
586
  const bindingPackageVersion =
587
587
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
588
588
  if (
589
- bindingPackageVersion !== '1.1.0' &&
589
+ bindingPackageVersion !== '1.3.0' &&
590
590
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
591
591
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
592
592
  ) {
593
593
  throw new Error(
594
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
594
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
595
595
  );
596
596
  }
597
597
  return binding;
@@ -610,12 +610,12 @@ function requireNative() {
610
610
  const bindingPackageVersion =
611
611
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
612
612
  if (
613
- bindingPackageVersion !== '1.1.0' &&
613
+ bindingPackageVersion !== '1.3.0' &&
614
614
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
615
615
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
616
616
  ) {
617
617
  throw new Error(
618
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
618
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
619
  );
620
620
  }
621
621
  return binding;
@@ -633,12 +633,12 @@ function requireNative() {
633
633
  const bindingPackageVersion =
634
634
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
635
635
  if (
636
- bindingPackageVersion !== '1.1.0' &&
636
+ bindingPackageVersion !== '1.3.0' &&
637
637
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
638
638
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
639
639
  ) {
640
640
  throw new Error(
641
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
641
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
642
642
  );
643
643
  }
644
644
  return binding;
@@ -660,12 +660,12 @@ function requireNative() {
660
660
  const bindingPackageVersion =
661
661
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
662
662
  if (
663
- bindingPackageVersion !== '1.1.0' &&
663
+ bindingPackageVersion !== '1.3.0' &&
664
664
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
665
665
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
666
666
  ) {
667
667
  throw new Error(
668
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
668
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
669
  );
670
670
  }
671
671
  return binding;
@@ -683,12 +683,12 @@ function requireNative() {
683
683
  const bindingPackageVersion =
684
684
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
685
685
  if (
686
- bindingPackageVersion !== '1.1.0' &&
686
+ bindingPackageVersion !== '1.3.0' &&
687
687
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
688
688
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
689
689
  ) {
690
690
  throw new Error(
691
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
691
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
692
  );
693
693
  }
694
694
  return binding;
@@ -706,12 +706,12 @@ function requireNative() {
706
706
  const bindingPackageVersion =
707
707
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
708
708
  if (
709
- bindingPackageVersion !== '1.1.0' &&
709
+ bindingPackageVersion !== '1.3.0' &&
710
710
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
711
711
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
712
712
  ) {
713
713
  throw new Error(
714
- `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
714
+ `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
715
715
  );
716
716
  }
717
717
  return binding;
@@ -857,9 +857,9 @@ if (!nativeBinding || forceWasi) {
857
857
  ) {
858
858
  const bindingPackageVersion =
859
859
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
860
- if (bindingPackageVersion !== '1.1.0') {
860
+ if (bindingPackageVersion !== '1.3.0') {
861
861
  throw new Error(
862
- `WASI binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
862
+ `WASI binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
863
863
  );
864
864
  }
865
865
  }
@@ -1897,6 +1897,7 @@ export declare class BindingNormalizedOptions {
1897
1897
  get assetFilenames(): string | undefined;
1898
1898
  get dir(): string | null;
1899
1899
  get file(): string | null;
1900
+ get charset(): 'ascii' | 'utf8';
1900
1901
  get format(): 'es' | 'cjs' | 'iife' | 'umd';
1901
1902
  get exports(): 'default' | 'named' | 'none' | 'auto';
1902
1903
  get esModule(): boolean | 'if-default-prop';
@@ -2182,6 +2183,7 @@ export interface BindingChecksOptions {
2182
2183
  largeBarrelModules?: boolean;
2183
2184
  sourcemapBroken?: boolean;
2184
2185
  namespaceConflict?: boolean;
2186
+ shimmedExport?: boolean;
2185
2187
  }
2186
2188
 
2187
2189
  export interface BindingChunkImportMap {
@@ -2458,6 +2460,7 @@ export interface BindingExperimentalDevModeOptions {
2458
2460
  /** @deprecated Common runtime injection will be disabled by default in the future. */
2459
2461
  skipCommonRuntimeInjection?: boolean;
2460
2462
  lazy?: boolean;
2463
+ hotUpdate?: boolean;
2461
2464
  }
2462
2465
 
2463
2466
  export interface BindingExperimentalOptions {
@@ -2742,6 +2745,7 @@ export interface BindingLog {
2742
2745
  id?: string;
2743
2746
  code?: string;
2744
2747
  exporter?: string;
2748
+ binding?: string;
2745
2749
  plugin?: string;
2746
2750
  /** Location information (line, column, file) */
2747
2751
  loc?: BindingLogLocation;
@@ -2848,6 +2852,7 @@ export interface BindingOutputOptions {
2848
2852
  postFooter?: string | ((chunk: BindingRenderedChunk) => MaybePromise<VoidNullable<string>>);
2849
2853
  dir?: string;
2850
2854
  file?: string;
2855
+ charset?: 'ascii' | 'utf8';
2851
2856
  esModule?: boolean | 'if-default-prop';
2852
2857
  exports?: 'default' | 'named' | 'none' | 'auto';
2853
2858
  extend?: boolean;
@@ -3644,6 +3649,7 @@ export declare function documentationUrl(path: string): string;
3644
3649
  * - `name`: The name of the package manager
3645
3650
  * - `version`: The version of the package manager
3646
3651
  * - `expected_hash`: The expected hash of the package manager
3652
+ * - `cwd`: An absolute directory used to load workspace npm configuration
3647
3653
  *
3648
3654
  * ## Returns
3649
3655
  *
@@ -3676,6 +3682,7 @@ export interface DownloadPackageManagerOptions {
3676
3682
  name: string;
3677
3683
  version: string;
3678
3684
  expectedHash?: string;
3685
+ cwd?: string;
3679
3686
  }
3680
3687
 
3681
3688
  export interface DownloadPackageManagerResult {
@@ -1,6 +1,6 @@
1
1
  import { n as rewriteDocumentationLinks } from "./documentation-DqcZSthV.js";
2
- import { a as SETUP_VP_VERSION } from "./constants-CCQkpaxK.js";
3
- import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-ByOzbMBG.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-DR55DpRm.js";
3
+ import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-1xNz_ne0.js";
4
4
  import path from "node:path";
5
5
  import { styleText } from "node:util";
6
6
  import fs from "node:fs";
@@ -27,7 +27,7 @@ const AGENTS = [
27
27
  id: "agents",
28
28
  label: "AGENTS.md",
29
29
  targetPath: "AGENTS.md",
30
- hint: "Codex, Amp, OpenCode, and similar agents",
30
+ hint: "Claude Code, Codex, Amp, OpenCode, and similar agents",
31
31
  aliases: [
32
32
  "agents.md",
33
33
  "chatgpt",
@@ -127,7 +127,7 @@ async function selectAgentTargets({ interactive, agent, onCancel }) {
127
127
  if (interactive && !agent) {
128
128
  const selectedAgentIds = await multiselect({
129
129
  message: "Which coding agent instruction files should Vite+ create?",
130
- options: AGENTS.map((option) => ({
130
+ options: AGENTS.filter((option) => option.id !== "claude").map((option) => ({
131
131
  label: option.label,
132
132
  value: option.id,
133
133
  hint: option.hint
package/dist/bin.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { t as documentationUrl$1 } from "./documentation-DqcZSthV.js";
2
2
  import { t as renderCliDoc } from "./help-BmKpeOP9.js";
3
3
  import { c as warnMsg, i as log, n as errorMsg, o as printHeader, t as accent } from "./terminal-MKGAuy-p.js";
4
- import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-CCQkpaxK.js";
5
- import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CbG58Kzr.js";
6
- import { o as readNearestPackageJson } from "./package-BS84eWrW.js";
7
- import { t as cac } from "./dist-DfmT__Aw.js";
4
+ import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-DR55DpRm.js";
5
+ import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-BIzrO2y2.js";
6
+ import { o as readNearestPackageJson } from "./package-CQDXTm6j.js";
7
+ import { t as cac } from "./dist-Cqz8OtiO.js";
8
8
  import { createRequire } from "node:module";
9
9
  import path, { dirname, join, resolve } from "node:path";
10
10
  import { fileURLToPath } from "node:url";
@@ -506,7 +506,7 @@ const commandHelpDocs = {
506
506
  },
507
507
  {
508
508
  label: "--cache",
509
- description: "Enable cache. Use '--help --cache' for more info."
509
+ description: "Store the results of test runs to run failed and longer test files first (default: true)"
510
510
  },
511
511
  {
512
512
  label: "--maxConcurrency <number>",
@@ -514,7 +514,7 @@ const commandHelpDocs = {
514
514
  },
515
515
  {
516
516
  label: "--fsModuleCache",
517
- description: "Cache transformed modules on the file system and reuse them between reruns (default: false)"
517
+ description: "Cache transformed modules on the file system and reuse them between reruns (default: true)"
518
518
  },
519
519
  {
520
520
  label: "--fsModuleCachePath <path>",
@@ -1099,7 +1099,7 @@ const commandHelpDocs = {
1099
1099
  },
1100
1100
  {
1101
1101
  label: "--env-prefix <prefix>",
1102
- description: "Prefix for env variables to inject into the bundle (default: TSDOWN_)"
1102
+ description: "Prefix for env variables to inject into the bundle (default: VITE_PACK_, TSDOWN_)"
1103
1103
  },
1104
1104
  {
1105
1105
  label: "--on-success <command>",
@@ -1468,7 +1468,7 @@ export default defineConfig({});
1468
1468
  return viteConfigPath;
1469
1469
  }
1470
1470
  async function vpFmt(cwd, filePath) {
1471
- const { runCommandSilently } = await import("./command-CLJK5jGW.js");
1471
+ const { runCommandSilently } = await import("./command-DVTILtS-.js");
1472
1472
  const { binPath, envs } = await fmt();
1473
1473
  const result = await runCommandSilently({
1474
1474
  command: binPath,
@@ -1527,7 +1527,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
1527
1527
  }
1528
1528
  if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
1529
1529
  const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
1530
- const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-3ONY2k2K.js");
1530
+ const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-zWgHiQ3X.js");
1531
1531
  await fixBaseUrlInTsconfig(projectPath);
1532
1532
  const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
1533
1533
  const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
@@ -1777,8 +1777,8 @@ function resolveViteRoot({ cwd, args }) {
1777
1777
  /** Resolve the bundled CLI for dev, build, and preview from the selected project root. */
1778
1778
  async function vite(err, context) {
1779
1779
  if (err) throw err;
1780
- const vitePackagePath = dirname(resolveCore("", resolveViteRoot(context)));
1781
- const binPath = join(vitePackagePath, "cli.js");
1780
+ const viteDistDir = dirname(dirname(resolveCore("", resolveViteRoot(context))));
1781
+ const binPath = join(viteDistDir, "bin", "vite.js");
1782
1782
  if (!existsSync(binPath)) throw new Error(`Could not find the bundled Vite CLI at ${binPath}. Run \`vp install\`.`);
1783
1783
  const envs = { ...DEFAULT_ENVS };
1784
1784
  if (process.env.DEBUG_DISABLE_SOURCE_MAP) envs.DEBUG_DISABLE_SOURCE_MAP = process.env.DEBUG_DISABLE_SOURCE_MAP;
@@ -1873,7 +1873,7 @@ else try {
1873
1873
  toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
1874
1874
  vitePlusPackagePath,
1875
1875
  resolveUniversalViteConfig: async (err, cwd) => {
1876
- const { resolveUniversalViteConfig } = await import("./resolve-vite-config-CofpYgnY.js");
1876
+ const { resolveUniversalViteConfig } = await import("./resolve-vite-config-7WDtXO4G.js");
1877
1877
  return resolveUniversalViteConfig(err, cwd);
1878
1878
  },
1879
1879
  nodeVersion: process.version,