vite-plus 0.2.5 → 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 (42) hide show
  1. package/AGENTS.md +4 -0
  2. package/README.md +1 -1
  3. package/binding/index.cjs +52 -52
  4. package/binding/index.d.cts +27 -16
  5. package/dist/{agent-CTwqJqX_.js → agent-CPwWJ4qf.js} +36 -14
  6. package/dist/bin.d.ts +1 -1
  7. package/dist/bin.js +7 -6
  8. package/dist/config/bin.d.ts +1 -1
  9. package/dist/config/bin.js +2 -2
  10. package/dist/{constants-JhDwfMS8.js → constants-BsuzPowC.js} +1 -1
  11. package/dist/create/bin.js +6 -6
  12. package/dist/{define-config-BRT5X5UW.js → define-config-C2KfLHpC.js} +2 -2
  13. package/dist/{define-config-DD3MUyPC.cjs → define-config-DLh9fE95.cjs} +1 -1
  14. package/dist/define-config.cjs +1 -1
  15. package/dist/define-config.js +1 -1
  16. package/dist/{editor-H_E_5XOt.js → editor-BbT1lTNc.js} +3 -3
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/migration/bin.d.ts +1 -1
  20. package/dist/migration/bin.js +7 -7
  21. package/dist/migration/compat/worker.d.ts +1 -1
  22. package/dist/{oxlint-plugin-config-CnUfwCp9.js → oxlint-plugin-config-Bxgc4cwF.js} +1 -1
  23. package/dist/oxlint-plugin.js +1 -1
  24. package/dist/pack-bin.js +2 -2
  25. package/dist/{package-BILvlUYF.js → package-Ds3uThLb.js} +1 -1
  26. package/dist/{resolve-vite-config-BheiDkKa.js → resolve-vite-config-BiuLZnn8.js} +1 -1
  27. package/dist/staged/bin.d.ts +1 -1
  28. package/dist/staged/bin.js +1 -1
  29. package/dist/{tsconfig-D2NvUjn3.js → tsconfig-Jia2vgMG.js} +1 -1
  30. package/dist/version.js +2 -2
  31. package/dist/versions.js +6 -6
  32. package/docs/guide/build.md +1 -1
  33. package/docs/guide/ci.md +28 -3
  34. package/docs/guide/commit-hooks.md +49 -0
  35. package/docs/guide/dev.md +4 -0
  36. package/docs/guide/github-actions-cache.md +2 -2
  37. package/docs/guide/installer-env-vars.md +2 -2
  38. package/docs/guide/migrate.md +1 -1
  39. package/docs/guide/run.md +15 -0
  40. package/docs/guide/test.md +4 -0
  41. package/docs/guide/troubleshooting.md +6 -3
  42. package/package.json +19 -19
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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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.5' &&
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.5 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;
@@ -1631,11 +1631,16 @@ export declare class BindingDevEngine {
1631
1631
  getBundleState(): Promise<BindingBundleState>;
1632
1632
  ensureLatestBuildOutput(): Promise<BindingResult<undefined>>;
1633
1633
  triggerFullBuild(): void;
1634
- invalidate(
1635
- caller: string,
1636
- firstInvalidatedBy?: string | undefined | null,
1637
- ): Promise<BindingResult<Array<BindingClientHmrUpdate>>>;
1638
- registerModules(clientId: string, modules: Array<string>): Promise<void>;
1634
+ /**
1635
+ * Client-connect signal (the clientId hello): creates the per-client session
1636
+ * with an empty ship map. Reconnects arrive as fresh clientIds.
1637
+ */
1638
+ registerClient(clientId: string): Promise<void>;
1639
+ /**
1640
+ * Delivery notification from the serving middleware: the response for
1641
+ * `filename` completed, so record its modules as shipped to that client.
1642
+ */
1643
+ notifyPayloadDelivered(filename: string): Promise<void>;
1639
1644
  removeClient(clientId: string): Promise<void>;
1640
1645
  close(): Promise<void>;
1641
1646
  /**
@@ -1645,7 +1650,7 @@ export declare class BindingDevEngine {
1645
1650
  * The module was previously stubbed with a proxy, and now we need to compile the
1646
1651
  * actual module and its dependencies.
1647
1652
  */
1648
- compileEntry(moduleId: string, clientId: string): Promise<string>;
1653
+ compileEntry(moduleId: string, clientId: string): Promise<BindingLazyChunkOutput>;
1649
1654
  }
1650
1655
 
1651
1656
  export declare class BindingLoadPluginContext {
@@ -2355,19 +2360,18 @@ export interface BindingGeneratedCodeOptions {
2355
2360
  preset?: string;
2356
2361
  }
2357
2362
 
2358
- export interface BindingHmrBoundaryOutput {
2359
- boundary: string;
2360
- acceptedVia: string;
2361
- }
2362
-
2363
2363
  export type BindingHmrUpdate =
2364
2364
  | {
2365
2365
  type: 'Patch';
2366
2366
  code: string;
2367
2367
  filename: string;
2368
2368
  sourcemap?: string;
2369
- sourcemapFilename?: string;
2370
- hmrBoundaries: Array<BindingHmrBoundaryOutput>;
2369
+ sourcemapFilename?: string /**
2370
+ * Stable ids of the changed modules — the `changedIds` of the push envelope.
2371
+ * The client walks from these on its own graph.
2372
+ */;
2373
+ changedIds: Array<string> /** Per-client envelope sequence number. */;
2374
+ seq: number;
2371
2375
  }
2372
2376
  | { type: 'FullReload'; reason?: string }
2373
2377
  | { type: 'Noop' };
@@ -2538,6 +2542,15 @@ export interface BindingJsWatchChangeEvent {
2538
2542
  event: string;
2539
2543
  }
2540
2544
 
2545
+ /**
2546
+ * The client-facing slice of a lazy-compile result. The carried modules and
2547
+ * stamps stay server-side as the engine's pending-payload entry.
2548
+ */
2549
+ export interface BindingLazyChunkOutput {
2550
+ code: string;
2551
+ filename: string;
2552
+ }
2553
+
2541
2554
  export interface BindingLog {
2542
2555
  message: string;
2543
2556
  id?: string;
@@ -2843,8 +2856,7 @@ export declare const enum BindingPropertyWriteSideEffects {
2843
2856
 
2844
2857
  export declare const enum BindingRebuildStrategy {
2845
2858
  Always = 0,
2846
- Auto = 1,
2847
- Never = 2,
2859
+ Never = 1,
2848
2860
  }
2849
2861
 
2850
2862
  export interface BindingReplacePluginConfig {
@@ -3189,7 +3201,6 @@ export interface JsOutputChunk {
3189
3201
  map?: BindingSourcemap;
3190
3202
  sourcemapFilename?: string;
3191
3203
  preliminaryFilename: string;
3192
- preliminarySourcemapFilename?: string;
3193
3204
  }
3194
3205
 
3195
3206
  /** Error emitted from native side, it only contains kind and message, no stack trace. */
@@ -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-JhDwfMS8.js";
3
- import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CnUfwCp9.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-D2NvUjn3.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-BILvlUYF.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 : {};
@@ -6521,23 +6521,26 @@ const PNPM_MINIMUM_RELEASE_AGE_EXCLUDES = [
6521
6521
  "@oxfmt/*",
6522
6522
  ...VITEST_AGE_GATE_EXEMPT_PACKAGES
6523
6523
  ];
6524
+ function versionAtLeast(version, minVersion, tags) {
6525
+ const coerced = import_semver.default.coerce(version);
6526
+ if (coerced) return import_semver.default.gte(coerced, minVersion);
6527
+ return tags.includes(version);
6528
+ }
6524
6529
  const PNPM_WORKSPACE_SETTINGS_MIN_VERSION = "10.6.2";
6525
6530
  function pnpmSupportsWorkspaceSettings(version) {
6526
- const coerced = import_semver.default.coerce(version);
6527
- if (coerced) return import_semver.default.gte(coerced, PNPM_WORKSPACE_SETTINGS_MIN_VERSION);
6528
- return version === "latest" || version === "next";
6531
+ return versionAtLeast(version, PNPM_WORKSPACE_SETTINGS_MIN_VERSION, ["latest", "next"]);
6529
6532
  }
6530
6533
  const PNPM_CATALOG_MIN_VERSION = "9.5.0";
6531
6534
  function pnpmSupportsCatalog(version) {
6532
- const coerced = import_semver.default.coerce(version);
6533
- if (coerced) return import_semver.default.gte(coerced, PNPM_CATALOG_MIN_VERSION);
6534
- return version === "latest" || version === "next";
6535
+ return versionAtLeast(version, PNPM_CATALOG_MIN_VERSION, ["latest", "next"]);
6535
6536
  }
6536
6537
  const YARN_CATALOG_MIN_VERSION = "4.10.0";
6537
6538
  function yarnSupportsCatalog(version) {
6538
- const coerced = import_semver.default.coerce(version);
6539
- if (coerced) return import_semver.default.gte(coerced, YARN_CATALOG_MIN_VERSION);
6540
- return version === "latest" || version === "next" || version === "stable";
6539
+ return versionAtLeast(version, YARN_CATALOG_MIN_VERSION, [
6540
+ "latest",
6541
+ "next",
6542
+ "stable"
6543
+ ]);
6541
6544
  }
6542
6545
  function supportsCatalog(packageManager, version, isBunWorkspace = false) {
6543
6546
  switch (packageManager) {
@@ -8056,6 +8059,24 @@ function isProtocolPinnedSpec(spec) {
8056
8059
  }
8057
8060
  //#endregion
8058
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
+ }
8059
8080
  function removeLintStagedFromPackageJson(packageJsonPath) {
8060
8081
  editJsonFile(packageJsonPath, (pkg) => {
8061
8082
  if (pkg["lint-staged"]) {
@@ -8146,6 +8167,7 @@ function mergeViteConfigFiles(projectPath, silent = false, report, packages, wor
8146
8167
  if (oxlintJson.options.typeCheck === void 0) oxlintJson.options.typeCheck = true;
8147
8168
  } else warnMigration(BASEURL_TSCONFIG_WARNING, report);
8148
8169
  sanitizeMigratedOxlintConfig(oxlintJson, collectInstalledPackageNames(workspaceRoot ?? projectPath, packages), report);
8170
+ ensureSvelteRuneGlobals(oxlintJson);
8149
8171
  writeJsonFile(fullOxlintPath, ensureVitePlusImportRuleDefaults(oxlintJson));
8150
8172
  mergeAndRemoveJsonConfig(projectPath, viteConfig, configs.oxlintConfig, "lint", silent, report);
8151
8173
  }
package/dist/bin.d.ts CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {}
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-JhDwfMS8.js";
2
- import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CnUfwCp9.js";
3
- import { B as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-D2NvUjn3.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-BheiDkKa.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 +1 @@
1
- export { };
1
+ export {}
@@ -1,7 +1,7 @@
1
- import { f as promptGitHooks, u as defaultInteractive } from "../tsconfig-D2NvUjn3.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-CTwqJqX_.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";