vite-plus 0.2.6 → 0.2.7

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 (34) hide show
  1. package/AGENTS.md +4 -0
  2. package/README.md +1 -1
  3. package/binding/index.cjs +52 -52
  4. package/dist/{agent-0gFJkIKu.js → agent-CPwWJ4qf.js} +24 -5
  5. package/dist/bin.js +7 -6
  6. package/dist/config/bin.js +2 -2
  7. package/dist/{constants-CaXMuYUG.js → constants-BsuzPowC.js} +1 -1
  8. package/dist/create/bin.js +6 -6
  9. package/dist/{define-config-hV8qyU8p.js → define-config-C2KfLHpC.js} +2 -2
  10. package/dist/{define-config-iGV0CGUk.cjs → define-config-DLh9fE95.cjs} +1 -1
  11. package/dist/define-config.cjs +1 -1
  12. package/dist/define-config.js +1 -1
  13. package/dist/{editor-D4T70tKk.js → editor-BbT1lTNc.js} +3 -3
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/migration/bin.js +7 -7
  17. package/dist/{oxlint-plugin-config-CMSCIkks.js → oxlint-plugin-config-Bxgc4cwF.js} +1 -1
  18. package/dist/oxlint-plugin.js +1 -1
  19. package/dist/pack-bin.js +2 -2
  20. package/dist/{package-CP5EUXlu.js → package-Ds3uThLb.js} +1 -1
  21. package/dist/{resolve-vite-config-BY7PB-LW.js → resolve-vite-config-BiuLZnn8.js} +1 -1
  22. package/dist/staged/bin.js +1 -1
  23. package/dist/{tsconfig-Cac-NNdT.js → tsconfig-Jia2vgMG.js} +1 -1
  24. package/dist/version.js +2 -2
  25. package/dist/versions.js +1 -1
  26. package/docs/guide/build.md +1 -1
  27. package/docs/guide/ci.md +28 -3
  28. package/docs/guide/commit-hooks.md +49 -0
  29. package/docs/guide/dev.md +4 -0
  30. package/docs/guide/migrate.md +1 -1
  31. package/docs/guide/run.md +15 -0
  32. package/docs/guide/test.md +4 -0
  33. package/docs/guide/troubleshooting.md +6 -3
  34. package/package.json +13 -13
package/AGENTS.md CHANGED
@@ -6,6 +6,10 @@ This project is using Vite+, a unified toolchain built on top of Vite, Rolldown,
6
6
 
7
7
  Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/.
8
8
 
9
+ ## Built-in Commands vs Scripts
10
+
11
+ `vp <name>` runs a built-in command. `vp run <name>` runs a `package.json` script or a `vite.config.ts` task. Scripts cannot overwrite built-ins, so `vp dev` and `vp run dev` may do different things. Check `package.json` and `vite.config.ts` first, and run `vp run <name>` when the project defines a script or task with that name.
12
+
9
13
  ## Review Checklist
10
14
 
11
15
  - [ ] Run `vp install` after pulling remote changes and before getting started.
package/README.md CHANGED
@@ -15,7 +15,7 @@ Vite+ is the unified entry point for local web development. It combines [Vite](h
15
15
  - **`vp check`:** Run formatting, linting, and type checks in one command
16
16
  - **`vp test`:** Run tests through bundled Vitest
17
17
  - **`vp build`:** Build applications for production with Vite + Rolldown
18
- - **`vp run`:** Execute monorepo tasks with caching and dependency-aware scheduling
18
+ - **`vp run`:** Run `package.json` scripts and monorepo tasks with caching and dependency-aware scheduling
19
19
  - **`vp pack`:** Build libraries for npm publishing or standalone app binaries
20
20
  - **`vp create` / `vp migrate`:** Scaffold new projects and migrate existing ones
21
21
 
package/binding/index.cjs CHANGED
@@ -81,12 +81,12 @@ function requireNative() {
81
81
  const bindingPackageVersion =
82
82
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
83
83
  if (
84
- bindingPackageVersion !== '0.2.6' &&
84
+ bindingPackageVersion !== '0.2.7' &&
85
85
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
86
86
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
87
87
  ) {
88
88
  throw new Error(
89
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
89
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
90
90
  );
91
91
  }
92
92
  return binding;
@@ -104,12 +104,12 @@ function requireNative() {
104
104
  const bindingPackageVersion =
105
105
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
106
106
  if (
107
- bindingPackageVersion !== '0.2.6' &&
107
+ bindingPackageVersion !== '0.2.7' &&
108
108
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
109
109
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
110
110
  ) {
111
111
  throw new Error(
112
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
112
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
113
113
  );
114
114
  }
115
115
  return binding;
@@ -139,12 +139,12 @@ function requireNative() {
139
139
  const bindingPackageVersion =
140
140
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
141
141
  if (
142
- bindingPackageVersion !== '0.2.6' &&
142
+ bindingPackageVersion !== '0.2.7' &&
143
143
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
144
144
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
145
145
  ) {
146
146
  throw new Error(
147
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
147
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
148
148
  );
149
149
  }
150
150
  return binding;
@@ -162,12 +162,12 @@ function requireNative() {
162
162
  const bindingPackageVersion =
163
163
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
164
164
  if (
165
- bindingPackageVersion !== '0.2.6' &&
165
+ bindingPackageVersion !== '0.2.7' &&
166
166
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
167
167
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
168
168
  ) {
169
169
  throw new Error(
170
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
170
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
171
171
  );
172
172
  }
173
173
  return binding;
@@ -186,12 +186,12 @@ function requireNative() {
186
186
  const bindingPackageVersion =
187
187
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
188
188
  if (
189
- bindingPackageVersion !== '0.2.6' &&
189
+ bindingPackageVersion !== '0.2.7' &&
190
190
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
191
191
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
192
192
  ) {
193
193
  throw new Error(
194
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
194
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
195
195
  );
196
196
  }
197
197
  return binding;
@@ -209,12 +209,12 @@ function requireNative() {
209
209
  const bindingPackageVersion =
210
210
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
211
211
  if (
212
- bindingPackageVersion !== '0.2.6' &&
212
+ bindingPackageVersion !== '0.2.7' &&
213
213
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
214
214
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
215
215
  ) {
216
216
  throw new Error(
217
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
217
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
218
218
  );
219
219
  }
220
220
  return binding;
@@ -235,12 +235,12 @@ function requireNative() {
235
235
  const bindingPackageVersion =
236
236
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
237
237
  if (
238
- bindingPackageVersion !== '0.2.6' &&
238
+ bindingPackageVersion !== '0.2.7' &&
239
239
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
240
240
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
241
241
  ) {
242
242
  throw new Error(
243
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
243
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
244
244
  );
245
245
  }
246
246
  return binding;
@@ -258,12 +258,12 @@ function requireNative() {
258
258
  const bindingPackageVersion =
259
259
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
260
260
  if (
261
- bindingPackageVersion !== '0.2.6' &&
261
+ bindingPackageVersion !== '0.2.7' &&
262
262
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
263
263
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
264
264
  ) {
265
265
  throw new Error(
266
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
266
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
267
267
  );
268
268
  }
269
269
  return binding;
@@ -281,12 +281,12 @@ function requireNative() {
281
281
  const bindingPackageVersion =
282
282
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
283
283
  if (
284
- bindingPackageVersion !== '0.2.6' &&
284
+ bindingPackageVersion !== '0.2.7' &&
285
285
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
286
286
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
287
287
  ) {
288
288
  throw new Error(
289
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
289
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
290
290
  );
291
291
  }
292
292
  return binding;
@@ -308,12 +308,12 @@ function requireNative() {
308
308
  const bindingPackageVersion =
309
309
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
310
310
  if (
311
- bindingPackageVersion !== '0.2.6' &&
311
+ bindingPackageVersion !== '0.2.7' &&
312
312
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
313
313
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
314
314
  ) {
315
315
  throw new Error(
316
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
316
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
317
317
  );
318
318
  }
319
319
  return binding;
@@ -331,12 +331,12 @@ function requireNative() {
331
331
  const bindingPackageVersion =
332
332
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
333
333
  if (
334
- bindingPackageVersion !== '0.2.6' &&
334
+ bindingPackageVersion !== '0.2.7' &&
335
335
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
336
336
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
337
337
  ) {
338
338
  throw new Error(
339
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
339
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
340
340
  );
341
341
  }
342
342
  return binding;
@@ -359,12 +359,12 @@ function requireNative() {
359
359
  const bindingPackageVersion =
360
360
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
361
361
  if (
362
- bindingPackageVersion !== '0.2.6' &&
362
+ bindingPackageVersion !== '0.2.7' &&
363
363
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
364
364
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
365
365
  ) {
366
366
  throw new Error(
367
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
367
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
368
368
  );
369
369
  }
370
370
  return binding;
@@ -382,12 +382,12 @@ function requireNative() {
382
382
  const bindingPackageVersion =
383
383
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
384
384
  if (
385
- bindingPackageVersion !== '0.2.6' &&
385
+ bindingPackageVersion !== '0.2.7' &&
386
386
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
387
387
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
388
388
  ) {
389
389
  throw new Error(
390
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
390
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
391
391
  );
392
392
  }
393
393
  return binding;
@@ -407,12 +407,12 @@ function requireNative() {
407
407
  const bindingPackageVersion =
408
408
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
409
409
  if (
410
- bindingPackageVersion !== '0.2.6' &&
410
+ bindingPackageVersion !== '0.2.7' &&
411
411
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
412
412
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
413
413
  ) {
414
414
  throw new Error(
415
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
415
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
416
416
  );
417
417
  }
418
418
  return binding;
@@ -430,12 +430,12 @@ function requireNative() {
430
430
  const bindingPackageVersion =
431
431
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
432
432
  if (
433
- bindingPackageVersion !== '0.2.6' &&
433
+ bindingPackageVersion !== '0.2.7' &&
434
434
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
435
435
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
436
436
  ) {
437
437
  throw new Error(
438
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
438
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
439
439
  );
440
440
  }
441
441
  return binding;
@@ -455,12 +455,12 @@ function requireNative() {
455
455
  const bindingPackageVersion =
456
456
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
457
457
  if (
458
- bindingPackageVersion !== '0.2.6' &&
458
+ bindingPackageVersion !== '0.2.7' &&
459
459
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
460
460
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
461
461
  ) {
462
462
  throw new Error(
463
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
463
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
464
464
  );
465
465
  }
466
466
  return binding;
@@ -478,12 +478,12 @@ function requireNative() {
478
478
  const bindingPackageVersion =
479
479
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
480
480
  if (
481
- bindingPackageVersion !== '0.2.6' &&
481
+ bindingPackageVersion !== '0.2.7' &&
482
482
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
483
483
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
484
484
  ) {
485
485
  throw new Error(
486
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
486
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
487
487
  );
488
488
  }
489
489
  return binding;
@@ -503,12 +503,12 @@ function requireNative() {
503
503
  const bindingPackageVersion =
504
504
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
505
505
  if (
506
- bindingPackageVersion !== '0.2.6' &&
506
+ bindingPackageVersion !== '0.2.7' &&
507
507
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
508
508
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
509
509
  ) {
510
510
  throw new Error(
511
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
511
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
512
512
  );
513
513
  }
514
514
  return binding;
@@ -526,12 +526,12 @@ function requireNative() {
526
526
  const bindingPackageVersion =
527
527
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
528
528
  if (
529
- bindingPackageVersion !== '0.2.6' &&
529
+ bindingPackageVersion !== '0.2.7' &&
530
530
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
531
531
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
532
532
  ) {
533
533
  throw new Error(
534
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
534
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
535
535
  );
536
536
  }
537
537
  return binding;
@@ -551,12 +551,12 @@ function requireNative() {
551
551
  const bindingPackageVersion =
552
552
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
553
553
  if (
554
- bindingPackageVersion !== '0.2.6' &&
554
+ bindingPackageVersion !== '0.2.7' &&
555
555
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
556
556
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
557
557
  ) {
558
558
  throw new Error(
559
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
559
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
560
560
  );
561
561
  }
562
562
  return binding;
@@ -574,12 +574,12 @@ function requireNative() {
574
574
  const bindingPackageVersion =
575
575
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
576
576
  if (
577
- bindingPackageVersion !== '0.2.6' &&
577
+ bindingPackageVersion !== '0.2.7' &&
578
578
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
579
579
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
580
580
  ) {
581
581
  throw new Error(
582
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
582
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
583
583
  );
584
584
  }
585
585
  return binding;
@@ -598,12 +598,12 @@ function requireNative() {
598
598
  const bindingPackageVersion =
599
599
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
600
600
  if (
601
- bindingPackageVersion !== '0.2.6' &&
601
+ bindingPackageVersion !== '0.2.7' &&
602
602
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
603
603
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
604
604
  ) {
605
605
  throw new Error(
606
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
606
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
607
607
  );
608
608
  }
609
609
  return binding;
@@ -621,12 +621,12 @@ function requireNative() {
621
621
  const bindingPackageVersion =
622
622
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
623
623
  if (
624
- bindingPackageVersion !== '0.2.6' &&
624
+ bindingPackageVersion !== '0.2.7' &&
625
625
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
626
626
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
627
627
  ) {
628
628
  throw new Error(
629
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
629
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
630
630
  );
631
631
  }
632
632
  return binding;
@@ -648,12 +648,12 @@ function requireNative() {
648
648
  const bindingPackageVersion =
649
649
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
650
650
  if (
651
- bindingPackageVersion !== '0.2.6' &&
651
+ bindingPackageVersion !== '0.2.7' &&
652
652
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
653
653
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
654
654
  ) {
655
655
  throw new Error(
656
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
656
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
657
657
  );
658
658
  }
659
659
  return binding;
@@ -671,12 +671,12 @@ function requireNative() {
671
671
  const bindingPackageVersion =
672
672
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
673
673
  if (
674
- bindingPackageVersion !== '0.2.6' &&
674
+ bindingPackageVersion !== '0.2.7' &&
675
675
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
676
676
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
677
677
  ) {
678
678
  throw new Error(
679
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
679
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
680
680
  );
681
681
  }
682
682
  return binding;
@@ -694,12 +694,12 @@ function requireNative() {
694
694
  const bindingPackageVersion =
695
695
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
696
696
  if (
697
- bindingPackageVersion !== '0.2.6' &&
697
+ bindingPackageVersion !== '0.2.7' &&
698
698
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
699
699
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
700
700
  ) {
701
701
  throw new Error(
702
- `Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
702
+ `Native binding package version mismatch, expected 0.2.7 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
703
703
  );
704
704
  }
705
705
  return binding;
@@ -1,10 +1,10 @@
1
1
  import { r as __toESM } from "./rolldown-runtime-C7HZzL1F.js";
2
- import { a as VITEST_AGE_GATE_EXEMPT_PACKAGES, c as VITE_PLUS_OVERRIDE_PACKAGES, d as isForceOverrideMode, l as VITE_PLUS_VERSION, n as BASEURL_TSCONFIG_WARNING, o as VITEST_VERSION, s as VITE_PLUS_NAME } from "./constants-CaXMuYUG.js";
3
- import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CMSCIkks.js";
4
- import { B as runCommandSilently, D as require_semver, E as PackageManager, M as multiselect, P as select, R as isCancel, V as require_cross_spawn, a as hasTypesToRewriteInTsconfig, b as scalarString, c as rewriteTypesInTsconfig, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, n as findTsconfigFiles, o as hasVitestTypesInTsconfig, s as removeDeprecatedTsconfigFalseOption, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-Cac-NNdT.js";
2
+ import { a as VITEST_AGE_GATE_EXEMPT_PACKAGES, c as VITE_PLUS_OVERRIDE_PACKAGES, d as isForceOverrideMode, l as VITE_PLUS_VERSION, n as BASEURL_TSCONFIG_WARNING, o as VITEST_VERSION, s as VITE_PLUS_NAME } from "./constants-BsuzPowC.js";
3
+ import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-Bxgc4cwF.js";
4
+ import { B as runCommandSilently, D as require_semver, E as PackageManager, M as multiselect, P as select, R as isCancel, V as require_cross_spawn, a as hasTypesToRewriteInTsconfig, b as scalarString, c as rewriteTypesInTsconfig, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, n as findTsconfigFiles, o as hasVitestTypesInTsconfig, s as removeDeprecatedTsconfigFalseOption, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-Jia2vgMG.js";
5
5
  import { a as writeJsonFile, i as readJsonFile, n as editJsonFile, r as isJsonFile } from "./json-DiRs8ceZ.js";
6
6
  import { t as require_dist } from "./dist-CKz3vcoG.js";
7
- import { n as detectPackageMetadata } from "./package-CP5EUXlu.js";
7
+ import { n as detectPackageMetadata } from "./package-Ds3uThLb.js";
8
8
  import { n as addMigrationWarning, t as addManualStep } from "./report-BS7ULx7A.js";
9
9
  import path, { posix, win32 } from "node:path";
10
10
  import { hasConfigKey, mergeJsonConfig, mergeTsdownConfig, rewriteEslint, rewriteImportsInDirectory, rewriteScripts, wrapLazyPlugins } from "../binding/index.js";
@@ -1062,7 +1062,6 @@ function collectVitestEcosystemInstallDependencyNames(rootDir, packages) {
1062
1062
  }
1063
1063
  //#endregion
1064
1064
  //#region ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
1065
- var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
1066
1065
  const balanced = (a, b, str) => {
1067
1066
  const ma = a instanceof RegExp ? maybeMatch(a, str) : a;
1068
1067
  const mb = b instanceof RegExp ? maybeMatch(b, str) : b;
@@ -2557,6 +2556,7 @@ minimatch.escape = escape;
2557
2556
  minimatch.unescape = unescape;
2558
2557
  //#endregion
2559
2558
  //#region ../../node_modules/.pnpm/lru-cache@11.2.7/node_modules/lru-cache/dist/esm/index.min.js
2559
+ var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
2560
2560
  var x = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
2561
2561
  var I = /* @__PURE__ */ new Set();
2562
2562
  var R = typeof process == "object" && process ? process : {};
@@ -8059,6 +8059,24 @@ function isProtocolPinnedSpec(spec) {
8059
8059
  }
8060
8060
  //#endregion
8061
8061
  //#region src/migration/migrator/vite-config.ts
8062
+ const SVELTE_RUNE_GLOBALS = {
8063
+ $state: "readonly",
8064
+ $derived: "readonly",
8065
+ $effect: "readonly",
8066
+ $props: "readonly",
8067
+ $bindable: "readonly",
8068
+ $inspect: "readonly",
8069
+ $host: "readonly"
8070
+ };
8071
+ function ensureSvelteRuneGlobals(config) {
8072
+ for (const override of config.overrides ?? []) {
8073
+ if (!override.files.some((file) => !file.startsWith("!") && braceExpand(file).some((pattern) => pattern.includes(".svelte")))) continue;
8074
+ override.globals = {
8075
+ ...SVELTE_RUNE_GLOBALS,
8076
+ ...override.globals
8077
+ };
8078
+ }
8079
+ }
8062
8080
  function removeLintStagedFromPackageJson(packageJsonPath) {
8063
8081
  editJsonFile(packageJsonPath, (pkg) => {
8064
8082
  if (pkg["lint-staged"]) {
@@ -8149,6 +8167,7 @@ function mergeViteConfigFiles(projectPath, silent = false, report, packages, wor
8149
8167
  if (oxlintJson.options.typeCheck === void 0) oxlintJson.options.typeCheck = true;
8150
8168
  } else warnMigration(BASEURL_TSCONFIG_WARNING, report);
8151
8169
  sanitizeMigratedOxlintConfig(oxlintJson, collectInstalledPackageNames(workspaceRoot ?? projectPath, packages), report);
8170
+ ensureSvelteRuneGlobals(oxlintJson);
8152
8171
  writeJsonFile(fullOxlintPath, ensureVitePlusImportRuleDefaults(oxlintJson));
8153
8172
  mergeAndRemoveJsonConfig(projectPath, viteConfig, configs.oxlintConfig, "lint", silent, report);
8154
8173
  }
package/dist/bin.js CHANGED
@@ -1,9 +1,9 @@
1
- import { f as resolve$1, i as DEFAULT_ENVS, n as BASEURL_TSCONFIG_WARNING, p as resolveBundled, r as CONFIG_METADATA_ENV, s as VITE_PLUS_NAME } from "./constants-CaXMuYUG.js";
2
- import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CMSCIkks.js";
3
- import { B as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-Cac-NNdT.js";
1
+ import { f as resolve$1, i as DEFAULT_ENVS, n as BASEURL_TSCONFIG_WARNING, p as resolveBundled, r as CONFIG_METADATA_ENV, s as VITE_PLUS_NAME } from "./constants-BsuzPowC.js";
2
+ import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-Bxgc4cwF.js";
3
+ import { B as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-Jia2vgMG.js";
4
4
  import { n as errorMsg, r as log, s as warnMsg, t as accent } from "./terminal-uTv0ZaMr.js";
5
5
  import { t as resolveTsgolintExecutable } from "./tsgolint-path-B-yOos8p.js";
6
- import { i as resolveUniversalViteConfig } from "./resolve-vite-config-BY7PB-LW.js";
6
+ import { i as resolveUniversalViteConfig } from "./resolve-vite-config-BiuLZnn8.js";
7
7
  import path, { dirname, join } from "node:path";
8
8
  import { ensureBlockingStdio, hasConfigKey, mergeJsonConfig, run } from "../binding/index.js";
9
9
  import fs, { readFileSync } from "node:fs";
@@ -398,7 +398,8 @@ function getErrorMessage(err) {
398
398
  if (typeof err === "object" && err && "message" in err && typeof err.message === "string") return err.message;
399
399
  return String(err);
400
400
  }
401
- let args = process.argv.slice(2);
401
+ const typedArgs = process.argv.slice(2);
402
+ let args = typedArgs;
402
403
  if (args[0] === "help" && args[1]) {
403
404
  args = [
404
405
  args[1],
@@ -427,7 +428,7 @@ else try {
427
428
  test,
428
429
  doc,
429
430
  resolveUniversalViteConfig,
430
- args: process.argv.slice(2)
431
+ args: typedArgs
431
432
  });
432
433
  let finalExitCode = exitCode;
433
434
  if (exitCode === 0) try {
@@ -1,7 +1,7 @@
1
- import { f as promptGitHooks, u as defaultInteractive } from "../tsconfig-Cac-NNdT.js";
1
+ import { f as promptGitHooks, u as defaultInteractive } from "../tsconfig-Jia2vgMG.js";
2
2
  import { a as printHeader, r as log } from "../terminal-uTv0ZaMr.js";
3
3
  import { t as lib_default } from "../lib-L3DWSRQp.js";
4
- import { o as updateExistingAgentInstructions, v as ensurePreCommitHook, x as hasStagedConfigInViteConfig } from "../agent-0gFJkIKu.js";
4
+ import { o as updateExistingAgentInstructions, v as ensurePreCommitHook, x as hasStagedConfigInViteConfig } from "../agent-CPwWJ4qf.js";
5
5
  import { t as renderCliDoc } from "../help-YP84FSEz.js";
6
6
  import { join } from "node:path";
7
7
  import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  //#region package.json
3
- var version = "0.2.6";
3
+ var version = "0.2.7";
4
4
  //#endregion
5
5
  //#region src/utils/constants.ts
6
6
  const VITE_PLUS_NAME = "vite-plus";
@@ -1,13 +1,13 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-C7HZzL1F.js";
2
- import { s as VITE_PLUS_NAME } from "../constants-CaXMuYUG.js";
3
- import { A as intro, B as runCommandSilently, C as resolveApproveBuildTargets, E as PackageManager, F as spinner, I as text, L as require_picocolors, M as multiselect, O as cancel, P as select, R as isCancel, S as detectGatedBuilds, T as DependencyType, V as require_cross_spawn, d as downloadPackageManager$1, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, j as log, k as confirm, m as runViteFmt, p as resolveGitInit, u as defaultInteractive, v as editYamlFile, x as approveBuilds, y as readYamlFile, z as runCommand$1 } from "../tsconfig-Cac-NNdT.js";
2
+ import { s as VITE_PLUS_NAME } from "../constants-BsuzPowC.js";
3
+ import { A as intro, B as runCommandSilently, C as resolveApproveBuildTargets, E as PackageManager, F as spinner, I as text, L as require_picocolors, M as multiselect, O as cancel, P as select, R as isCancel, S as detectGatedBuilds, T as DependencyType, V as require_cross_spawn, d as downloadPackageManager$1, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, j as log, k as confirm, m as runViteFmt, p as resolveGitInit, u as defaultInteractive, v as editYamlFile, x as approveBuilds, y as readYamlFile, z as runCommand$1 } from "../tsconfig-Jia2vgMG.js";
4
4
  import { a as printHeader, i as muted, o as success, r as log$1, t as accent } from "../terminal-uTv0ZaMr.js";
5
5
  import { i as readJsonFile, n as editJsonFile } from "../json-DiRs8ceZ.js";
6
- import { a as resolveViteConfig, n as findWorkspaceRoot, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-BY7PB-LW.js";
6
+ import { a as resolveViteConfig, n as findWorkspaceRoot, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-BiuLZnn8.js";
7
7
  import { t as lib_default } from "../lib-L3DWSRQp.js";
8
- import { o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists } from "../package-CP5EUXlu.js";
9
- import { I as promptEslintMigration, J as templatesDir, N as detectEslintProject, S as injectCreateDefaultTemplate, a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as rewriteStandaloneProject, g as setPackageManager, l as rewriteMonorepo, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID, u as rewriteMonorepoProject, y as installGitHooks } from "../agent-0gFJkIKu.js";
10
- import { a as writeEditorConfigs, c as updatePackageJsonWithDeps, d as detectFramework, f as hasFrameworkShim, g as promptPrettierMigration, i as selectEditors, l as updateWorkspaceConfig, m as detectPrettierProject, n as detectExistingEditors, o as detectWorkspace$1, s as isBingoTemplate, u as addFrameworkShim } from "../editor-D4T70tKk.js";
8
+ import { o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists } from "../package-Ds3uThLb.js";
9
+ import { I as promptEslintMigration, J as templatesDir, N as detectEslintProject, S as injectCreateDefaultTemplate, a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as rewriteStandaloneProject, g as setPackageManager, l as rewriteMonorepo, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID, u as rewriteMonorepoProject, y as installGitHooks } from "../agent-CPwWJ4qf.js";
10
+ import { a as writeEditorConfigs, c as updatePackageJsonWithDeps, d as detectFramework, f as hasFrameworkShim, g as promptPrettierMigration, i as selectEditors, l as updateWorkspaceConfig, m as detectPrettierProject, n as detectExistingEditors, o as detectWorkspace$1, s as isBingoTemplate, u as addFrameworkShim } from "../editor-BbT1lTNc.js";
11
11
  import { t as renderCliDoc } from "../help-YP84FSEz.js";
12
12
  import path from "node:path";
13
13
  import { runCommand, upsertJsonConfig, vitePlusHeader } from "../../binding/index.js";
@@ -1,10 +1,10 @@
1
- import { o as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-CaXMuYUG.js";
1
+ import { o as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-BsuzPowC.js";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import { readFileSync } from "node:fs";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { defineConfig, defineProject } from "vitest/config";
7
- //#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/esm-shims.js
7
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_ce23af2d06b6e55ae551016827d08ee4/node_modules/tsdown/esm-shims.js
8
8
  const getFilename = () => fileURLToPath(import.meta.url);
9
9
  const getDirname = () => path.dirname(getFilename());
10
10
  const __dirname = /* @__PURE__ */ getDirname();
@@ -37,7 +37,7 @@ let node_module = require("node:module");
37
37
  let node_url = require("node:url");
38
38
  let vitest_config = require("vitest/config");
39
39
  //#region package.json
40
- var version = "0.2.6", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
40
+ var version = "0.2.7", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
41
41
  var init_constants = __esmMin((() => {
42
42
  VITE_PLUS_VERSION = process.env.VP_VERSION || version;
43
43
  VITEST_VERSION = "4.1.10";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_define_config = require("./define-config-iGV0CGUk.cjs");
2
+ const require_define_config = require("./define-config-DLh9fE95.cjs");
3
3
  require_define_config.init_define_config();
4
4
  exports.AUTO_INLINE_DEPS = require_define_config.AUTO_INLINE_DEPS;
5
5
  exports.assertCoverageProviderVersionMatch = require_define_config.assertCoverageProviderVersionMatch;
@@ -1,2 +1,2 @@
1
- import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-hV8qyU8p.js";
1
+ import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-C2KfLHpC.js";
2
2
  export { AUTO_INLINE_DEPS, assertCoverageProviderVersionMatch, checkCoverageProviderVersion, computeAutoInlineList, defineConfig, defineProject, isVitestFamilySpecifier, lazyPlugins, resolveCoverageProviderToCheck, withConfigMetadataResolution };
@@ -1,8 +1,8 @@
1
- import { B as runCommandSilently, E as PackageManager, M as multiselect, P as select, R as isCancel, j as log, k as confirm, l as cancelAndExit, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-Cac-NNdT.js";
1
+ import { B as runCommandSilently, E as PackageManager, M as multiselect, P as select, R as isCancel, j as log, k as confirm, l as cancelAndExit, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-Jia2vgMG.js";
2
2
  import { a as writeJsonFile, c as parse, i as readJsonFile, n as editJsonFile, o as applyEdits, s as modify, t as detectFormattingOptions } from "./json-DiRs8ceZ.js";
3
3
  import { t as require_dist } from "./dist-CKz3vcoG.js";
4
- import { r as getScopeFromPackageName } from "./package-CP5EUXlu.js";
5
- import { A as globSync, K as warnMigration, L as rewriteToolLintStagedConfigFiles, U as detectConfigs, V as PRETTIER_CONFIG_FILES, j as minimatch, q as displayRelative } from "./agent-0gFJkIKu.js";
4
+ import { r as getScopeFromPackageName } from "./package-Ds3uThLb.js";
5
+ import { A as globSync, K as warnMigration, L as rewriteToolLintStagedConfigFiles, U as detectConfigs, V as PRETTIER_CONFIG_FILES, j as minimatch, q as displayRelative } from "./agent-CPwWJ4qf.js";
6
6
  import path from "node:path";
7
7
  import { detectWorkspace, rewritePrettier } from "../binding/index.js";
8
8
  import fs from "node:fs";
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const require_define_config = require("./define-config-iGV0CGUk.cjs");
1
+ const require_define_config = require("./define-config-DLh9fE95.cjs");
2
2
  //#region src/index.cts
3
3
  const vite = require("@voidzero-dev/vite-plus-core");
4
4
  const { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } = require("vitest/config");
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-hV8qyU8p.js";
1
+ import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-C2KfLHpC.js";
2
2
  import { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
3
3
  export * from "@voidzero-dev/vite-plus-core";
4
4
  export { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
@@ -1,13 +1,13 @@
1
1
  import { r as __toESM } from "../rolldown-runtime-C7HZzL1F.js";
2
- import { d as isForceOverrideMode, l as VITE_PLUS_VERSION } from "../constants-CaXMuYUG.js";
3
- import { B as runCommandSilently, D as require_semver, E as PackageManager, F as spinner, N as outro, P as select, R as isCancel, _ as upgradeYarn, d as downloadPackageManager, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, m as runViteFmt, r as fixBaseUrlInTsconfig, t as confirmBaseUrlFix, u as defaultInteractive } from "../tsconfig-Cac-NNdT.js";
2
+ import { d as isForceOverrideMode, l as VITE_PLUS_VERSION } from "../constants-BsuzPowC.js";
3
+ import { B as runCommandSilently, D as require_semver, E as PackageManager, F as spinner, N as outro, P as select, R as isCancel, _ as upgradeYarn, d as downloadPackageManager, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, m as runViteFmt, r as fixBaseUrlInTsconfig, t as confirmBaseUrlFix, u as defaultInteractive } from "../tsconfig-Jia2vgMG.js";
4
4
  import { a as printHeader, i as muted, r as log$1, s as warnMsg, t as accent } from "../terminal-uTv0ZaMr.js";
5
5
  import { a as writeJsonFile, i as readJsonFile } from "../json-DiRs8ceZ.js";
6
6
  import { t as lib_default } from "../lib-L3DWSRQp.js";
7
- import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-CP5EUXlu.js";
8
- import { B as warnPackageLevelEslint, C as injectLintTypeCheckDefaults, D as ensureVitePlusBootstrap, E as detectVitePlusBootstrapPending, F as migrateEslintToOxlint, G as checkVitestVersion, M as confirmEslintMigration, N as detectEslintProject, O as configureYarnNodeModulesMode, P as detectIncompatibleEslintIntegration, R as warnIncompatibleEslintIntegration, T as collectToolchainVersionChanges, W as checkViteVersion, _ as detectLegacyGitHooksMigrationCandidate, b as preflightGitHooksSetup, d as rewriteStandaloneProject, f as detectPendingCoreMigration, h as migrateNodeVersionManagerFile, i as selectAgentTargetPaths, k as detectYarnPnpMode, l as rewriteMonorepo, m as detectNodeVersionManagerFile, n as detectAgentConflicts, p as finalizeCoreMigrationForExistingVitePlus, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, w as mergeViteConfigFiles, y as installGitHooks, z as warnLegacyEslintConfig } from "../agent-0gFJkIKu.js";
7
+ import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-Ds3uThLb.js";
8
+ import { B as warnPackageLevelEslint, C as injectLintTypeCheckDefaults, D as ensureVitePlusBootstrap, E as detectVitePlusBootstrapPending, F as migrateEslintToOxlint, G as checkVitestVersion, M as confirmEslintMigration, N as detectEslintProject, O as configureYarnNodeModulesMode, P as detectIncompatibleEslintIntegration, R as warnIncompatibleEslintIntegration, T as collectToolchainVersionChanges, W as checkViteVersion, _ as detectLegacyGitHooksMigrationCandidate, b as preflightGitHooksSetup, d as rewriteStandaloneProject, f as detectPendingCoreMigration, h as migrateNodeVersionManagerFile, i as selectAgentTargetPaths, k as detectYarnPnpMode, l as rewriteMonorepo, m as detectNodeVersionManagerFile, n as detectAgentConflicts, p as finalizeCoreMigrationForExistingVitePlus, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, w as mergeViteConfigFiles, y as installGitHooks, z as warnLegacyEslintConfig } from "../agent-CPwWJ4qf.js";
9
9
  import { n as addMigrationWarning, r as createMigrationReport } from "../report-BS7ULx7A.js";
10
- import { _ as warnPackageLevelPrettier, a as writeEditorConfigs, d as detectFramework, f as hasFrameworkShim, h as migratePrettierToOxfmt, m as detectPrettierProject, o as detectWorkspace, p as confirmPrettierMigration, r as selectEditor, t as detectEditorConflicts, u as addFrameworkShim } from "../editor-D4T70tKk.js";
10
+ import { _ as warnPackageLevelPrettier, a as writeEditorConfigs, d as detectFramework, f as hasFrameworkShim, h as migratePrettierToOxfmt, m as detectPrettierProject, o as detectWorkspace, p as confirmPrettierMigration, r as selectEditor, t as detectEditorConflicts, u as addFrameworkShim } from "../editor-BbT1lTNc.js";
11
11
  import { t as renderCliDoc } from "../help-YP84FSEz.js";
12
12
  import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../protocol-D99W10Qi.js";
13
13
  import path from "node:path";
@@ -560,8 +560,8 @@ const helpMessage = renderCliDoc({
560
560
  "",
561
561
  " Command mapping:",
562
562
  " - `vp run <script>` is the equivalent of `pnpm run <script>`",
563
- " - `vp test` runs the built-in test command, while `vp run test` runs the",
564
- " `test` script from `package.json`",
563
+ " - `vp dev` and `vp test` always run the built-ins; `vp run dev` and",
564
+ " `vp run test` run the `dev` and `test` scripts from `package.json`",
565
565
  " - `vp install`, `vp add`, and `vp remove` delegate through the package",
566
566
  " manager declared by `packageManager`",
567
567
  " - `vp dev`, `vp build`, `vp preview`, `vp lint`, `vp fmt`, `vp check`,",
@@ -1,4 +1,4 @@
1
- import { s as VITE_PLUS_NAME } from "./constants-CaXMuYUG.js";
1
+ import { s as VITE_PLUS_NAME } from "./constants-BsuzPowC.js";
2
2
  //#region src/oxlint-plugin-config.ts
3
3
  const VITE_PLUS_OXLINT_PLUGIN_NAME = VITE_PLUS_NAME;
4
4
  const VITE_PLUS_OXLINT_PLUGIN_SPECIFIER = `${VITE_PLUS_NAME}/oxlint-plugin`;
@@ -1,4 +1,4 @@
1
- import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-CMSCIkks.js";
1
+ import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-Bxgc4cwF.js";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs";
4
4
  import { definePlugin, defineRule } from "@oxlint/plugins";
package/dist/pack-bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as resolveViteConfig } from "./resolve-vite-config-BY7PB-LW.js";
2
+ import { a as resolveViteConfig } from "./resolve-vite-config-BiuLZnn8.js";
3
3
  import module from "node:module";
4
4
  import { buildWithConfigs, enableDebug, globalLogger, resolveUserConfig } from "@voidzero-dev/vite-plus-core/pack";
5
5
  //#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
@@ -680,7 +680,7 @@ const DEFAULT_ENV_PREFIXES = ["VITE_PACK_", "TSDOWN_"];
680
680
  cli.command("[...files]", "Bundle files", {
681
681
  ignoreOptionDefaultValue: true,
682
682
  allowUnknownOptions: true
683
- }).option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: DEFAULT_ENV_PREFIXES }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
683
+ }).option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: DEFAULT_ENV_PREFIXES }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("--concurrency <count>", "Maximum number of Rolldown builds to run in parallel").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
684
684
  if (input.length > 0) flags.entry = input;
685
685
  if (flags.envPrefix === void 0) flags.envPrefix = DEFAULT_ENV_PREFIXES;
686
686
  async function runBuild() {
@@ -1,4 +1,4 @@
1
- import "./constants-CaXMuYUG.js";
1
+ import "./constants-BsuzPowC.js";
2
2
  import { i as readJsonFile } from "./json-DiRs8ceZ.js";
3
3
  import { createRequire } from "node:module";
4
4
  import path from "node:path";
@@ -1,4 +1,4 @@
1
- import { u as withConfigMetadataResolution } from "./define-config-hV8qyU8p.js";
1
+ import { u as withConfigMetadataResolution } from "./define-config-C2KfLHpC.js";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs";
4
4
  //#region src/resolve-vite-config.ts
@@ -1,6 +1,6 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-C7HZzL1F.js";
2
2
  import { a as printHeader, n as errorMsg, r as log } from "../terminal-uTv0ZaMr.js";
3
- import { a as resolveViteConfig } from "../resolve-vite-config-BY7PB-LW.js";
3
+ import { a as resolveViteConfig } from "../resolve-vite-config-BiuLZnn8.js";
4
4
  import { t as lib_default } from "../lib-L3DWSRQp.js";
5
5
  import { t as renderCliDoc } from "../help-YP84FSEz.js";
6
6
  import { createRequire } from "node:module";
@@ -1,5 +1,5 @@
1
1
  import { n as __require, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-C7HZzL1F.js";
2
- import { l as VITE_PLUS_VERSION, t as BASEURL_TSCONFIG_FIX_PACKAGE, u as createBaseUrlTsconfigFixArgs } from "./constants-CaXMuYUG.js";
2
+ import { l as VITE_PLUS_VERSION, t as BASEURL_TSCONFIG_FIX_PACKAGE, u as createBaseUrlTsconfigFixArgs } from "./constants-BsuzPowC.js";
3
3
  import { t as accent } from "./terminal-uTv0ZaMr.js";
4
4
  import { a as writeJsonFile, c as parse, i as readJsonFile, o as applyEdits, s as modify } from "./json-DiRs8ceZ.js";
5
5
  import { t as require_dist } from "./dist-CKz3vcoG.js";
package/dist/version.js CHANGED
@@ -1,6 +1,6 @@
1
- import { m as version } from "./constants-CaXMuYUG.js";
1
+ import { m as version } from "./constants-BsuzPowC.js";
2
2
  import { a as printHeader, r as log, t as accent } from "./terminal-uTv0ZaMr.js";
3
- import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-CP5EUXlu.js";
3
+ import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-Ds3uThLb.js";
4
4
  import { t as renderCliDoc } from "./help-YP84FSEz.js";
5
5
  import path from "node:path";
6
6
  import fs from "node:fs";
package/dist/versions.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export const versions = {
2
2
  "vite": "8.1.5",
3
3
  "rolldown": "1.2.0",
4
- "tsdown": "0.22.13",
4
+ "tsdown": "0.22.14",
5
5
  "oxlint": "1.75.0",
6
6
  "oxfmt": "0.60.0",
7
7
  "oxlint-tsgolint": "7.0.2001",
@@ -7,7 +7,7 @@
7
7
  `vp build` runs the standard Vite production build through Vite+. Since it is directly based on Vite, the build pipeline and configuration model are the same as Vite. For more information about how Vite production builds work, see the [Vite guide](https://vite.dev/guide/build). Note that Vite+ uses Vite 8 and [Rolldown](https://rolldown.rs/) for builds.
8
8
 
9
9
  ::: info
10
- `vp build` always runs the built-in Vite production build. If your project also has a `build` script in `package.json`, run `vp run build` when you want to run that script instead.
10
+ `vp build` always runs the built-in Vite production build. If your project also has a `build` script in `package.json`, run `vp run build` when you want to run that script instead. See [Built-in Commands vs Scripts](/guide/run#built-in-commands-vs-scripts).
11
11
  :::
12
12
 
13
13
  ## Usage
package/docs/guide/ci.md CHANGED
@@ -4,12 +4,12 @@ You can use `voidzero-dev/setup-vp` to use Vite+ in CI environments.
4
4
 
5
5
  ## Overview
6
6
 
7
- For GitHub Actions, the recommended setup is [`voidzero-dev/setup-vp`](https://github.com/voidzero-dev/setup-vp). It installs Vite+, sets up the required Node.js version and package manager, and can cache package installs automatically.
8
-
9
- That means you usually do not need separate `setup-node`, package-manager setup, and manual dependency-cache steps in your workflow.
7
+ [`voidzero-dev/setup-vp`](https://github.com/voidzero-dev/setup-vp) provides integrations for GitHub Actions and GitLab CI/CD. Both install Vite+ and can install project dependencies. The GitHub Action can also set up Node.js and cache package manager data automatically, while the GitLab CI/CD template uses the Node.js runtime and cache configuration provided by the job.
10
8
 
11
9
  ## GitHub Actions
12
10
 
11
+ The GitHub Action sets up Vite+, the required Node.js version, and the package manager. This means you usually do not need separate `setup-node`, package-manager setup, or manual dependency caching steps in your workflow.
12
+
13
13
  ```yaml [.github/workflows/ci.yml]
14
14
  - uses: voidzero-dev/setup-vp@v1
15
15
  with:
@@ -27,6 +27,31 @@ With `cache: true`, `setup-vp` handles dependency caching for you automatically.
27
27
  `setup-vp` caches package-manager data. To reuse Vite Task results across CI runs, add a separate [GitHub Actions cache for Vite Task](/guide/github-actions-cache).
28
28
  :::
29
29
 
30
+ ## GitLab CI/CD
31
+
32
+ Use the reusable `setup-vp` remote template in your GitLab CI/CD configuration:
33
+
34
+ ```yaml [.gitlab-ci.yml]
35
+ include:
36
+ - remote: 'https://raw.githubusercontent.com/voidzero-dev/setup-vp/v1/gitlab/setup-vp.yml'
37
+
38
+ test:
39
+ extends: .setup-vp
40
+ image: node:24
41
+ script:
42
+ - vp check
43
+ - vp test
44
+ - vp build
45
+ ```
46
+
47
+ The GitLab CI/CD integration differs from the GitHub Action in a few ways:
48
+
49
+ - The template does not install Node.js. Use a Node.js image, as shown above, or otherwise provide Node.js in the job.
50
+ - Configure dependency caching with the job's GitLab [`cache`](https://docs.gitlab.com/ci/yaml/#cache) keyword.
51
+ - Use a Unix-like runner environment with Bash and either `curl` or `wget`.
52
+
53
+ For advanced configuration and the complete input reference, see the [`setup-vp` GitLab CI/CD documentation](https://github.com/voidzero-dev/setup-vp#gitlab-cicd).
54
+
30
55
  ## Simplifying Existing Workflows
31
56
 
32
57
  If you are migrating an existing GitHub Actions workflow, you can often replace large blocks of Node, package-manager, and cache setup with a single `setup-vp` step.
@@ -58,3 +58,52 @@ export default defineConfig({
58
58
  ```
59
59
 
60
60
  This is the default Vite+ approach and should replace separate `lint-staged` configuration in most projects. Because `vp staged` reads from `vite.config.ts`, your staged-file checks stay in the same place as your lint, format, test, build, and task-runner config.
61
+
62
+ ## Disabling Hooks in Specific Environments
63
+
64
+ The installed hooks check the environment on every run, so you can disable them per machine or per process without uninstalling anything. This is useful when commits happen outside development, for example through a flat file CMS or other processes.
65
+
66
+ ### Environment variable
67
+
68
+ Set `VITE_GIT_HOOKS=0` in the environment of the process that runs `git commit`, and every Vite+ hook exits immediately without running:
69
+
70
+ ```bash
71
+ VITE_GIT_HOOKS=0 git commit -m "content update"
72
+ ```
73
+
74
+ `HUSKY=0` is honored the same way for ecosystem tooling compatibility. Setting `VITE_GIT_HOOKS=0` in an environment also keeps `vp config` from reinstalling hooks there when a lifecycle script such as `prepare` runs.
75
+
76
+ ### Init script
77
+
78
+ Before checking the environment variable, each hook sources an init script if one exists:
79
+
80
+ 1. `$XDG_CONFIG_HOME/vite-plus/hooks-init.sh` (defaults to `~/.config/vite-plus/hooks-init.sh`)
81
+ 2. `$XDG_CONFIG_HOME/husky/init.sh` as a fallback
82
+
83
+ To disable hooks for a whole machine, create the init script and export the variable there:
84
+
85
+ ```sh [~/.config/vite-plus/hooks-init.sh]
86
+ export VITE_GIT_HOOKS=0
87
+ ```
88
+
89
+ Because the hook itself reads this file, it works even when the committing process does not inherit your shell environment, for example if a daemon or web server is making commits.
90
+
91
+ ## Removing commit hooks
92
+
93
+ To fully remove Vite+ commit hooks, undo each thing `vp config` set up:
94
+
95
+ 1. Unset the Git hooks path that points at the Vite+ dispatcher:
96
+
97
+ ```bash
98
+ git config --unset core.hooksPath
99
+ ```
100
+
101
+ 2. Remove the hooks directory (use your `--hooks-dir` value if you changed it):
102
+
103
+ ```bash
104
+ rm -rf .vite-hooks
105
+ ```
106
+
107
+ 3. Remove `vp config` from the `prepare` script in `package.json`. Otherwise the next install re-runs `vp config` and reinstalls the hooks.
108
+
109
+ 4. Remove the `staged` block from `vite.config.ts` if it exists
package/docs/guide/dev.md CHANGED
@@ -6,6 +6,10 @@
6
6
 
7
7
  `vp dev` runs the standard Vite development server through Vite+, so you keep the normal Vite dev experience while using the same CLI entry point as the rest of the toolchain. For more information about using and configuring the dev server, see the [Vite guide](https://vite.dev/guide/).
8
8
 
9
+ ::: info
10
+ `vp dev` always runs the built-in Vite dev server. If your project also has a `dev` script in `package.json`, run `vp run dev` when you want to run that script instead. See [Built-in Commands vs Scripts](/guide/run#built-in-commands-vs-scripts).
11
+ :::
12
+
9
13
  ## Usage
10
14
 
11
15
  ```bash
@@ -86,7 +86,7 @@ After the migration:
86
86
  Command mapping to keep in mind:
87
87
 
88
88
  - `vp run <script>` is the equivalent of `pnpm run <script>`
89
- - `vp test` runs the built-in test command, while `vp run test` runs the `test` script from `package.json`
89
+ - `vp dev` and `vp test` always run the built-ins; `vp run dev` and `vp run test` run the `dev` and `test` scripts from `package.json`
90
90
  - `vp install`, `vp add`, and `vp remove` delegate through the package manager declared by `packageManager`
91
91
  - `vp dev`, `vp build`, `vp preview`, `vp lint`, `vp fmt`, `vp check`, and `vp pack` replace the corresponding standalone tools
92
92
  - Prefer `vp check` for validation loops
package/docs/guide/run.md CHANGED
@@ -38,6 +38,21 @@ Select a task (↑/↓, Enter to run, Esc to clear):
38
38
  test: jest
39
39
  ```
40
40
 
41
+ ## Built-in Commands vs Scripts
42
+
43
+ `vp dev` is a built-in command. `vp run dev` is your `dev` script. Built-in commands cannot be overwritten, so adding a `dev` script does not change what `vp dev` does:
44
+
45
+ | Command | What it runs |
46
+ | -------------------------- | ------------------------------------------------------------------------- |
47
+ | `vp dev` | The built-in Vite dev server |
48
+ | `vp run dev` / `vpr dev` | The `dev` script in `package.json`, or a `dev` task in `vite.config.ts` |
49
+ | `vp test` | The built-in Vitest command |
50
+ | `vp run test` / `vpr test` | The `test` script in `package.json`, or a `test` task in `vite.config.ts` |
51
+
52
+ `build`, `preview`, `lint`, `fmt`, `check`, and `pack` work the same way.
53
+
54
+ If the project defines that script or task, run it with `vp run <name>`. For example, with a `"dev": "astro dev"` script, `vp run dev` starts Astro, while `vp dev` ignores the script and starts Vite.
55
+
41
56
  ## Caching
42
57
 
43
58
  `package.json` scripts are not cached by default. Use `--cache` to enable caching:
@@ -6,6 +6,10 @@
6
6
 
7
7
  `vp test` is built on [Vitest](https://vitest.dev/), so you get a Vite-native test runner that reuses your Vite config and plugins, supports Jest-style expectations, snapshots, and coverage, and handles modern ESM, TypeScript, and JSX projects cleanly.
8
8
 
9
+ ::: info
10
+ `vp test` always runs the built-in Vitest command. If your project also has a `test` script in `package.json`, run `vp run test` when you want to run that script instead. See [Built-in Commands vs Scripts](/guide/run#built-in-commands-vs-scripts).
11
+ :::
12
+
9
13
  ## Usage
10
14
 
11
15
  ```bash
@@ -31,15 +31,18 @@ If VS Code has multiple folders open, the shared Oxc language server may pick a
31
31
 
32
32
  - Confirm the extension is using the intended workspace.
33
33
 
34
- ## `vp build` does not run my build script
34
+ ## `vp dev` or `vp build` does not run my script
35
35
 
36
- Unlike package managers, built-in commands cannot be overwritten. If you are trying to run a `package.json` script use `vp run build` instead.
36
+ Unlike package managers, built-in commands cannot be overwritten. If you are trying to run a `package.json` script use `vp run <script>` instead.
37
37
 
38
38
  For example:
39
39
 
40
+ - `vp dev` always starts the built-in Vite dev server
40
41
  - `vp build` always runs the built-in Vite build
41
42
  - `vp test` always runs the built-in Vitest command
42
- - `vp run build` and `vp run test` run `package.json` scripts instead
43
+ - `vp run dev`, `vp run build`, and `vp run test` run the matching `package.json` scripts instead
44
+
45
+ See [Built-in Commands vs Scripts](/guide/run#built-in-commands-vs-scripts) for when to prefer each path.
43
46
 
44
47
  ::: info
45
48
  You can also run custom tasks defined in `vite.config.ts` and migrate away from `package.json` scripts entirely.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plus",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -367,7 +367,7 @@
367
367
  "oxlint": "=1.75.0",
368
368
  "oxlint-tsgolint": "=7.0.2001",
369
369
  "vitest": "4.1.10",
370
- "@voidzero-dev/vite-plus-core": "0.2.6"
370
+ "@voidzero-dev/vite-plus-core": "0.2.7"
371
371
  },
372
372
  "devDependencies": {
373
373
  "@napi-rs/cli": "^3.7.3",
@@ -392,13 +392,13 @@
392
392
  "picocolors": "^1.1.1",
393
393
  "rolldown-plugin-dts": "^0.27.0",
394
394
  "semver": "^7.8.0",
395
- "tsdown": "^0.22.13",
395
+ "tsdown": "^0.22.14",
396
396
  "validate-npm-package-name": "^7.0.2",
397
397
  "yaml": "^2.8.1",
398
398
  "zod": "^3.25.76",
399
399
  "@voidzero-dev/vite-plus-prompts": "0.0.0",
400
- "vite": "npm:@voidzero-dev/vite-plus-core@0.2.6",
401
- "@voidzero-dev/vite-plus-tools": "0.0.0"
400
+ "@voidzero-dev/vite-plus-tools": "0.0.0",
401
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.7"
402
402
  },
403
403
  "peerDependencies": {
404
404
  "@vitest/browser-playwright": "4.1.10",
@@ -430,14 +430,14 @@
430
430
  "node": "^20.19.0 || ^22.18.0 || >=24.11.0"
431
431
  },
432
432
  "optionalDependencies": {
433
- "@voidzero-dev/vite-plus-darwin-arm64": "0.2.6",
434
- "@voidzero-dev/vite-plus-darwin-x64": "0.2.6",
435
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.6",
436
- "@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.6",
437
- "@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.6",
438
- "@voidzero-dev/vite-plus-linux-x64-musl": "0.2.6",
439
- "@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.6",
440
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.6"
433
+ "@voidzero-dev/vite-plus-darwin-arm64": "0.2.7",
434
+ "@voidzero-dev/vite-plus-darwin-x64": "0.2.7",
435
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.7",
436
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.7",
437
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.7",
438
+ "@voidzero-dev/vite-plus-linux-x64-musl": "0.2.7",
439
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.7",
440
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.7"
441
441
  },
442
442
  "scripts": {
443
443
  "build": "oxnode -C dev ./build.ts",