vite-plus 1.0.0-rc.0 → 1.0.0-rc.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 (54) hide show
  1. package/README.md +3 -1
  2. package/binding/index.cjs +55 -54
  3. package/binding/index.d.cts +27 -4
  4. package/dist/{agent-Dinpyd-k.js → agent-DIwEez_1.js} +2 -2
  5. package/dist/bin.js +32 -22
  6. package/dist/config/bin.js +3 -3
  7. package/dist/{constants-CiKwrA0v.js → constants-BAsBfS1J.js} +1 -1
  8. package/dist/create/bin.js +7 -7
  9. package/dist/{define-config-jhuYJ7Tb.js → define-config-Bz6dc3fm.js} +8 -2
  10. package/dist/{define-config-CBccpane.cjs → define-config-CAeeMTvb.cjs} +7 -1
  11. package/dist/{define-config-B9usMnEa.d.ts → define-config-Cf_5GHmY.d.ts} +20 -15
  12. package/dist/define-config.cjs +1 -1
  13. package/dist/define-config.d.ts +1 -1
  14. package/dist/define-config.js +1 -1
  15. package/dist/dist-BWiANxFS.js +8052 -0
  16. package/dist/{dist-BDYZP12R.js → dist-BsAzy8OW.js} +109 -105
  17. package/dist/{editor-DMBczTdj.js → editor-DWgrWTbN.js} +47 -13
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/lint-plugins.cjs +1 -1
  22. package/dist/migration/bin.js +13 -11
  23. package/dist/migration/compat/worker.js +1 -1
  24. package/dist/{oxlint-plugin-config-BgsDA6ua.js → oxlint-plugin-config-B-P1a_0g.js} +1 -1
  25. package/dist/oxlint-plugin.js +2 -2
  26. package/dist/pack-bin.js +1 -1
  27. package/dist/{package-B85H2Nw0.js → package-BrupPpWA.js} +1 -1
  28. package/dist/{prompts-CQobX7uP.js → prompts-BW7_fDGJ.js} +2 -3
  29. package/dist/{report-CK5TnTsr.js → report-NhQk8VHb.js} +1 -0
  30. package/dist/{resolve-vite-config-I8fmpR7I.js → resolve-vite-config-D3XIVT6s.js} +1 -1
  31. package/dist/{resolve-vite-config-BUFUmi8h.js → resolve-vite-config-DcsMQaYy.js} +2 -2
  32. package/dist/staged/bin.js +2 -2
  33. package/dist/sync-versions/bin.js +1 -2
  34. package/dist/toolchain.js +8 -8
  35. package/dist/toolchain.json +8 -8
  36. package/dist/{tsconfig-C1VeTG9k.js → tsconfig-DESFDzWP.js} +1 -1
  37. package/dist/{tsconfig-Buo0RSzz.js → tsconfig-piorpNV7.js} +2 -2
  38. package/dist/version.js +2 -2
  39. package/dist/versions.js +3 -3
  40. package/docs/config/fmt.md +3 -1
  41. package/docs/config/lint.md +3 -1
  42. package/docs/config/run.md +61 -25
  43. package/docs/guide/automatic-data-tracking.md +20 -15
  44. package/docs/guide/cache.md +12 -8
  45. package/docs/guide/fmt.md +4 -2
  46. package/docs/guide/lint.md +4 -2
  47. package/docs/guide/migrate-rules.md +42 -0
  48. package/docs/guide/migrate.md +4 -4
  49. package/docs/guide/monorepo.md +4 -2
  50. package/docs/guide/run.md +3 -1
  51. package/docs/guide/troubleshooting.md +1 -1
  52. package/package.json +12 -12
  53. package/dist/dist-Dqv1-Clg.js +0 -3
  54. package/dist/semver-CaDAb8vV.js +0 -1400
package/README.md CHANGED
@@ -73,7 +73,9 @@ export default defineConfig({
73
73
  tasks: {
74
74
  'generate:icons': {
75
75
  command: 'node scripts/generate-icons.js',
76
- env: ['ICON_THEME'],
76
+ cache: {
77
+ env: ['ICON_THEME'],
78
+ },
77
79
  },
78
80
  },
79
81
  },
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.0.0-rc.0' &&
96
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
101
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
119
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
124
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
154
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
159
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
177
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
182
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
201
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
224
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
229
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
250
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
255
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
273
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
278
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
296
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
301
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
323
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
328
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
346
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
351
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
374
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
379
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
397
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
402
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
422
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
427
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
445
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
450
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
470
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
475
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
493
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
498
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
518
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
523
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
541
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
546
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
566
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
571
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
589
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
594
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
613
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
618
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
636
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
641
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
663
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
668
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
686
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
691
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0' &&
709
+ bindingPackageVersion !== '1.0.0-rc.1' &&
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.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
714
+ `Native binding package version mismatch, expected 1.0.0-rc.1 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.0.0-rc.0') {
860
+ if (bindingPackageVersion !== '1.0.0-rc.1') {
861
861
  throw new Error(
862
- `WASI binding package version mismatch, expected 1.0.0-rc.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
862
+ `WASI binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
863
863
  );
864
864
  }
865
865
  }
@@ -1052,6 +1052,7 @@ module.exports.hasConfigKey = nativeBinding.hasConfigKey;
1052
1052
  module.exports.isDirectoryGitignored = nativeBinding.isDirectoryGitignored;
1053
1053
  module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
1054
1054
  module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
1055
+ module.exports.migrateTaskCacheConfig = nativeBinding.migrateTaskCacheConfig;
1055
1056
  module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
1056
1057
  module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
1057
1058
  module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
@@ -1712,8 +1712,9 @@ export declare class BindingDevEngine {
1712
1712
  */
1713
1713
  registerClient(clientId: string): Promise<void>;
1714
1714
  /**
1715
- * Delivery notification from the serving middleware: the response for
1716
- * `filename` completed, so record its modules as shipped to that client.
1715
+ * Delivery notification for the payload `filename`: the client reported that it
1716
+ * ran the payload, so record its modules as shipped to that client. See
1717
+ * `DevEngine::notify_payload_delivered`.
1717
1718
  */
1718
1719
  notifyPayloadDelivered(filename: string): Promise<void>;
1719
1720
  removeClient(clientId: string): Promise<void>;
@@ -2146,6 +2147,8 @@ export interface BindingChecksOptions {
2146
2147
  configurationFieldConflict?: boolean;
2147
2148
  preferBuiltinFeature?: boolean;
2148
2149
  couldNotCleanDirectory?: boolean;
2150
+ bundlerTimings?: boolean;
2151
+ /** Deprecated alias for `bundlerTimings`. Rolldown uses `bundlerTimings` if both options have values. */
2149
2152
  pluginTimings?: boolean;
2150
2153
  duplicateShebang?: boolean;
2151
2154
  unsupportedTsconfigOption?: boolean;
@@ -2829,9 +2832,13 @@ export interface BindingOutputOptions {
2829
2832
  | boolean
2830
2833
  | string
2831
2834
  | RegExp
2832
- | ((source: string, sourcemapPath: string) => boolean);
2835
+ | ((sources: Array<string>, sourcemapPath: string) => Uint8Array);
2833
2836
  sourcemapDebugIds?: boolean;
2834
- sourcemapPathTransform?: (source: string, sourcemapPath: string) => string;
2837
+ /**
2838
+ * Batched like `sourcemapIgnoreList` above. One call rewrites every source of a sourcemap,
2839
+ * and the returned array matches the source array by index.
2840
+ */
2841
+ sourcemapPathTransform?: (sources: Array<string>, sourcemapPath: string) => Array<string>;
2835
2842
  sourcemapExcludeSources?: boolean;
2836
2843
  strict?: boolean | 'auto';
2837
2844
  minify?: boolean | 'dce-only' | MinifyOptions;
@@ -3763,6 +3770,12 @@ export interface MigrateArgs {
3763
3770
  full?: boolean;
3764
3771
  }
3765
3772
 
3773
+ /**
3774
+ * Move `env`, `untrackedEnv`, `input`, and `output` from the top level of
3775
+ * each static `run.tasks` entry into its `cache` object.
3776
+ */
3777
+ export declare function migrateTaskCacheConfig(viteConfigPath: string): TaskCacheConfigResult;
3778
+
3766
3779
  export declare function parseConfigArgs(argv: Array<string>): ParseConfigArgsOutcome;
3767
3780
 
3768
3781
  export type ParseConfigArgsOutcome =
@@ -4007,6 +4020,16 @@ export interface StagedArgs {
4007
4020
  verbose?: boolean;
4008
4021
  }
4009
4022
 
4023
+ /** Result of moving task cache settings under `cache` */
4024
+ export interface TaskCacheConfigResult {
4025
+ /** The updated vite config content */
4026
+ content: string;
4027
+ /** Whether any changes were made */
4028
+ updated: boolean;
4029
+ /** Tasks that set cache settings outside `cache` but could not be updated */
4030
+ manualTasks: Array<string>;
4031
+ }
4032
+
4010
4033
  /**
4011
4034
  * Set the value of a top-level config key in a vite config file (upsert)
4012
4035
  *
@@ -1,6 +1,6 @@
1
1
  import { n as rewriteDocumentationLinks } from "./documentation-DqcZSthV.js";
2
- import { a as SETUP_VP_VERSION } from "./constants-CiKwrA0v.js";
3
- import { C as multiselect, S as log, T as select, k as isCancel } from "./prompts-CQobX7uP.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-BAsBfS1J.js";
3
+ import { C as multiselect, S as log, T as select, k as isCancel } from "./prompts-BW7_fDGJ.js";
4
4
  import path from "node:path";
5
5
  import { styleText } from "node:util";
6
6
  import fs from "node:fs";
package/dist/bin.js CHANGED
@@ -1,9 +1,9 @@
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-CiKwrA0v.js";
5
- import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-BgsDA6ua.js";
6
- import { a as readNearestPackageJson } from "./package-B85H2Nw0.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-BAsBfS1J.js";
5
+ import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-B-P1a_0g.js";
6
+ import { a as readNearestPackageJson } from "./package-BrupPpWA.js";
7
7
  import { t as cac } from "./dist-DfmT__Aw.js";
8
8
  import { createRequire } from "node:module";
9
9
  import path, { dirname, join, resolve } from "node:path";
@@ -342,7 +342,7 @@ const commandHelpDocs = {
342
342
  },
343
343
  {
344
344
  label: "--api [port]",
345
- description: "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204. Use '--help --api' for more info."
345
+ description: "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 63315 in browser mode. Use '--help --api' for more info."
346
346
  },
347
347
  {
348
348
  label: "--silent [value]",
@@ -366,7 +366,7 @@ const commandHelpDocs = {
366
366
  },
367
367
  {
368
368
  label: "--mode <name>",
369
- description: "Override Vite mode (default: test or benchmark)"
369
+ description: "Override Vite mode (default: test)"
370
370
  },
371
371
  {
372
372
  label: "--isolate",
@@ -376,6 +376,10 @@ const commandHelpDocs = {
376
376
  label: "--globals",
377
377
  description: "Inject apis globally"
378
378
  },
379
+ {
380
+ label: "--injectCjsGlobals",
381
+ description: "Inject CommonJS variables (module, exports, require, __filename, __dirname) into every test module. To disable, use --no-inject-cjs-globals (default: true)"
382
+ },
379
383
  {
380
384
  label: "--dom",
381
385
  description: "Mock browser API with happy-dom"
@@ -464,6 +468,10 @@ const commandHelpDocs = {
464
468
  label: "--retry <times>",
465
469
  description: "Retry the test specific number of times if it fails (default: 0). Use '--help --retry' for more info."
466
470
  },
471
+ {
472
+ label: "--repeats <number>",
473
+ description: "Repeat every test a specific number of times regardless of the result (default: 0)"
474
+ },
467
475
  {
468
476
  label: "--diff <path>",
469
477
  description: "DiffOptions object or a path to a module which exports DiffOptions object. Use '--help --diff' for more info."
@@ -485,8 +493,8 @@ const commandHelpDocs = {
485
493
  description: "Enable typechecking alongside tests (default: false). Use '--help --typecheck' for more info."
486
494
  },
487
495
  {
488
- label: "--project <name>",
489
- description: "The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: --project=1 --project=2. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern."
496
+ label: "-p, --project <name>",
497
+ description: "The name of the project to run if you are using Vitest workspace feature. This can be repeated for multiple projects: --project=1 --project=2. You can also filter projects using wildcards like --project=packages*, and exclude projects with --project=!pattern. A project runs if it matches no negated pattern and, when regular patterns are also given, matches at least one of them."
490
498
  },
491
499
  {
492
500
  label: "--slowTestThreshold <threshold>",
@@ -504,6 +512,14 @@ const commandHelpDocs = {
504
512
  label: "--maxConcurrency <number>",
505
513
  description: "Maximum number of concurrent tests and suites during test file execution (default: 5)"
506
514
  },
515
+ {
516
+ label: "--fsModuleCache",
517
+ description: "Cache transformed modules on the file system and reuse them between reruns (default: false)"
518
+ },
519
+ {
520
+ label: "--fsModuleCachePath <path>",
521
+ description: "Directory where the fsModuleCache is stored (default: node_modules/.vitest-cache)"
522
+ },
507
523
  {
508
524
  label: "--expect",
509
525
  description: "Configuration options for expect() matches. Use '--help --expect' for more info."
@@ -518,7 +534,7 @@ const commandHelpDocs = {
518
534
  },
519
535
  {
520
536
  label: "--attachmentsDir <dir>",
521
- description: "The directory where attachments from context.annotate are stored in (default: .vitest-attachments)"
537
+ description: "The directory where attachments from context.annotate are stored in (default: .vitest/attachments)"
522
538
  },
523
539
  {
524
540
  label: "--run",
@@ -546,7 +562,7 @@ const commandHelpDocs = {
546
562
  },
547
563
  {
548
564
  label: "--clearCache",
549
- description: "Delete all Vitest caches, including experimental.fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run."
565
+ description: "Delete all Vitest caches, including the fsModuleCache, without running any tests. This will reduce the performance in the subsequent test run."
550
566
  },
551
567
  {
552
568
  label: "--tagsFilter <expression>",
@@ -556,6 +572,10 @@ const commandHelpDocs = {
556
572
  label: "--strictTags",
557
573
  description: "Should Vitest throw an error if test has a tag that is not defined in the config. (default: true)"
558
574
  },
575
+ {
576
+ label: "--sharedViteServer",
577
+ description: "Let inline projects that don't modify the Vite config reuse the Vite server of the config that declares them. (default: true)"
578
+ },
559
579
  {
560
580
  label: "--experimental <features>",
561
581
  description: "Experimental features.. Use '--help --experimental' for more info."
@@ -566,16 +586,6 @@ const commandHelpDocs = {
566
586
  }
567
587
  ]
568
588
  },
569
- {
570
- title: "Bench Options",
571
- rows: [{
572
- label: "--compare <filename>",
573
- description: "Benchmark output file to compare against"
574
- }, {
575
- label: "--outputJson <filename>",
576
- description: "Benchmark output file"
577
- }]
578
- },
579
589
  {
580
590
  title: "List Options",
581
591
  rows: [
@@ -589,7 +599,7 @@ const commandHelpDocs = {
589
599
  },
590
600
  {
591
601
  label: "--staticParse",
592
- description: "Parse files statically instead of running them to collect tests (default: false)"
602
+ description: "Parse files statically instead of running them to collect tests (default: true)"
593
603
  },
594
604
  {
595
605
  label: "--staticParseConcurrency <limit>",
@@ -1517,7 +1527,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
1517
1527
  }
1518
1528
  if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
1519
1529
  const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
1520
- const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-C1VeTG9k.js");
1530
+ const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-DESFDzWP.js");
1521
1531
  await fixBaseUrlInTsconfig(projectPath);
1522
1532
  const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
1523
1533
  const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
@@ -1847,7 +1857,7 @@ else if (command === "hooks") await import("./hooks/bin.js");
1847
1857
  else if (command === "--version" || command === "-V") await import("./version.js");
1848
1858
  else if (command === "staged") await import("./staged/bin.js");
1849
1859
  else try {
1850
- const { resolveUniversalViteConfig } = await import("./resolve-vite-config-I8fmpR7I.js");
1860
+ const { resolveUniversalViteConfig } = await import("./resolve-vite-config-D3XIVT6s.js");
1851
1861
  const initInspection = inspectInitCommand(command, args.slice(1));
1852
1862
  if (initInspection.handled && initInspection.configKey && initInspection.hasExistingConfigKey && initInspection.existingViteConfigPath) {
1853
1863
  log(`Skipped initialization: '${accent(initInspection.configKey)}' already exists in '${accent(path.basename(initInspection.existingViteConfigPath))}'.`);
@@ -1,7 +1,7 @@
1
1
  import { i as log, n as errorMsg } from "../terminal-MKGAuy-p.js";
2
- import { i as promptGitHooks, n as defaultInteractive } from "../prompts-CQobX7uP.js";
3
- import { o as updateExistingAgentInstructions } from "../agent-Dinpyd-k.js";
4
- import { t as require_dist } from "../dist-BDYZP12R.js";
2
+ import { i as promptGitHooks, n as defaultInteractive } from "../prompts-BW7_fDGJ.js";
3
+ import { t as require_dist } from "../dist-BWiANxFS.js";
4
+ import { o as updateExistingAgentInstructions } from "../agent-DIwEez_1.js";
5
5
  import { a as install, c as resolveHooksLocation, o as isGitHooksEnvDisabled, s as isHooksUserDisabled } from "../hooks-C-4gykWR.js";
6
6
  import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
7
7
  import path, { join, relative } from "node:path";