vite-plus 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/AGENTS.md +4 -0
  2. package/LICENSE +1 -878
  3. package/README.md +1 -1
  4. package/bin/vpx +9 -0
  5. package/binding/index.cjs +59 -54
  6. package/binding/index.d.cts +128 -2
  7. package/dist/{agent-97KmGCyL.js → agent-D8oxxhVR.js} +5 -7
  8. package/dist/bin.js +25 -32
  9. package/dist/{cli-parse-DHE8NrBU.js → cli-parse-aeUeFDlC.js} +2 -3
  10. package/dist/command-TjS_6y9O.js +1 -0
  11. package/dist/{command-CdMBoZFD.js → command-rY79K5NI.js} +28 -30
  12. package/dist/{comparison-CmVirWIW-DUGaiYqF.js → comparison-CmVirWIW-UlEf2maz.js} +1 -2
  13. package/dist/config/bin.js +8 -10
  14. package/dist/{constants-DR55DpRm.js → constants-DRUnJ_Dz.js} +3 -5
  15. package/dist/create/bin.d.ts +4 -8
  16. package/dist/create/bin.js +46 -65
  17. package/dist/{define-config-CvE5pHqB.js → define-config-ChwJcu5e.js} +6 -9
  18. package/dist/{define-config-BxDc_9BK.cjs → define-config-Cv2P6NT2.cjs} +7 -12
  19. package/dist/{define-config-Bexdd6RZ.d.ts → define-config-rPhYIFSn.d.ts} +1 -11
  20. package/dist/define-config.cjs +1 -1
  21. package/dist/define-config.d.ts +1 -1
  22. package/dist/define-config.js +1 -1
  23. package/dist/{dist-DIpm7mot.js → dist-Bs0SObNC.js} +73 -145
  24. package/dist/{dist-Cqz8OtiO.js → dist-CdkMvIiQ.js} +11 -5
  25. package/dist/dist-zDZV5eEc.js +3 -0
  26. package/dist/{documentation-DqcZSthV.js → documentation-cv_y0Auv.js} +1 -2
  27. package/dist/{editor-CtJGQP7C.js → editor-ClL78D8u.js} +1490 -4209
  28. package/dist/{help-BmKpeOP9.js → help-B03t_iQ4.js} +1 -2
  29. package/dist/hooks/bin.js +4 -5
  30. package/dist/{hooks-DhwsWb46.js → hooks-xRcJPc-O.js} +5 -4
  31. package/dist/index.cjs +2 -3
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/{json-JP24qHUF.js → json-kl84kDyH.js} +9 -18
  35. package/dist/lint-plugins.cjs +1 -1
  36. package/dist/migration/bin.js +719 -184
  37. package/dist/migration/compat/worker.js +4 -6
  38. package/dist/{oxlint-plugin-config-BIzrO2y2.js → oxlint-plugin-config-BVpqYdcC.js} +3 -4
  39. package/dist/oxlint-plugin.d.ts +0 -2
  40. package/dist/oxlint-plugin.js +6 -7
  41. package/dist/{pack-BK38MLVZ.d.ts → pack-ARPFMefW.d.ts} +0 -2
  42. package/dist/pack-bin.d.ts +1 -3
  43. package/dist/pack-bin.js +3 -4
  44. package/dist/pack.d.ts +1 -1
  45. package/dist/{package-CQDXTm6j.js → package-DzsomcUD.js} +10 -95
  46. package/dist/{package-overrides-D1RcXSFl.js → package-overrides-Ci8GXouY.js} +5 -8
  47. package/dist/picomatch-DEUoj81q.js +1916 -0
  48. package/dist/{prompts-1xNz_ne0.js → prompts-GL1vj0wk.js} +30 -50
  49. package/dist/{protocol-D99W10Qi.js → protocol-CkNmY-Mr.js} +1 -2
  50. package/dist/{report-NhQk8VHb.js → report-DLHO30yZ.js} +2 -2
  51. package/dist/{resolve-vite-config-BVr1SUNg.js → resolve-vite-config-Dn5896A4.js} +9 -25
  52. package/dist/resolve-vite-config-QO6cC0SP.js +1 -0
  53. package/dist/{rolldown-runtime-kJ_i4yPo.js → rolldown-runtime-DegdyBIC.js} +1 -2
  54. package/dist/script-esm-hooks.d.ts +8 -0
  55. package/dist/script-esm-hooks.js +24 -0
  56. package/dist/script-hooks-9Fof5UMY.js +176 -0
  57. package/dist/script-preload.cjs +468 -0
  58. package/dist/script-register.d.ts +1 -0
  59. package/dist/script-register.js +22 -0
  60. package/dist/script-watch.d.ts +1 -0
  61. package/dist/script-watch.js +1908 -0
  62. package/dist/staged/bin.js +53 -2011
  63. package/dist/sync-versions/bin.js +26 -48
  64. package/dist/sync-versions/bin.mjs +109 -217
  65. package/dist/{terminal-MKGAuy-p.js → terminal-BcuPUy-j.js} +1 -2
  66. package/dist/toolchain.js +35 -9
  67. package/dist/toolchain.json +35 -9
  68. package/dist/{tsconfig-zWgHiQ3X.js → tsconfig-Do6MAG_f.js} +1 -1
  69. package/dist/{tsconfig-BZu7kl-x.js → tsconfig-LE_mAwe_.js} +8 -10
  70. package/dist/version.d.ts +1 -3
  71. package/dist/version.js +5 -6
  72. package/dist/versions.js +4 -4
  73. package/dist/{vitest-ecosystem-BU0AqZq-.js → vitest-ecosystem-BeEYz-qF.js} +1 -2
  74. package/dist/{vitest-v5-entry-points-DthU1e_O.js → vitest-v5-entry-points-NyJsFeux.js} +1 -2
  75. package/dist/vpx-bin.d.ts +1 -0
  76. package/dist/vpx-bin.js +232 -0
  77. package/dist/vpx-script-EXgV5QOf.js +434 -0
  78. package/docs/config/run.md +4 -0
  79. package/docs/guide/check.md +1 -0
  80. package/docs/guide/ci.md +13 -3
  81. package/docs/guide/env.md +11 -4
  82. package/docs/guide/global-cli.md +52 -0
  83. package/docs/guide/migrate-rules.md +48 -5
  84. package/docs/guide/migrate.md +5 -5
  85. package/docs/guide/package-management.md +1 -1
  86. package/docs/guide/vpx.md +170 -9
  87. package/package.json +20 -17
  88. package/dist/command-DVTILtS-.js +0 -1
  89. package/dist/dist-Dhu07wmN.js +0 -3
  90. package/dist/resolve-vite-config-7WDtXO4G.js +0 -1
package/README.md CHANGED
@@ -115,7 +115,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
115
115
 
116
116
  - **run** - Run monorepo tasks
117
117
  - **exec** - Execute a command from local `node_modules/.bin`
118
- - **node** - Run a Node.js script with the resolved Vite+ environment
118
+ - **node** - Run a Node.js script with the resolved Vite+ environment; use `vpx <file>` for TypeScript
119
119
  - **dlx** - Execute a package binary without installing it as a dependency
120
120
  - **cache** - Manage the task cache
121
121
 
package/bin/vpx ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ import module from 'node:module';
4
+ if (module.enableCompileCache) {
5
+ module.enableCompileCache();
6
+ }
7
+ // Script files run with the loader in this package; package binaries run from
8
+ // node_modules/.bin or with this package's `vp dlx`. See src/vpx-bin.ts.
9
+ await import('../dist/vpx-bin.js');
package/binding/index.cjs CHANGED
@@ -93,12 +93,12 @@ function requireNative() {
93
93
  const bindingPackageVersion =
94
94
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
95
95
  if (
96
- bindingPackageVersion !== '1.3.0' &&
96
+ bindingPackageVersion !== '1.4.0' &&
97
97
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
98
98
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
99
99
  ) {
100
100
  throw new Error(
101
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
101
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
102
102
  );
103
103
  }
104
104
  return binding;
@@ -116,12 +116,12 @@ function requireNative() {
116
116
  const bindingPackageVersion =
117
117
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
118
118
  if (
119
- bindingPackageVersion !== '1.3.0' &&
119
+ bindingPackageVersion !== '1.4.0' &&
120
120
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
121
121
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
122
122
  ) {
123
123
  throw new Error(
124
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
124
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
125
125
  );
126
126
  }
127
127
  return binding;
@@ -151,12 +151,12 @@ function requireNative() {
151
151
  const bindingPackageVersion =
152
152
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
153
153
  if (
154
- bindingPackageVersion !== '1.3.0' &&
154
+ bindingPackageVersion !== '1.4.0' &&
155
155
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
156
156
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
157
157
  ) {
158
158
  throw new Error(
159
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
159
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
160
  );
161
161
  }
162
162
  return binding;
@@ -174,12 +174,12 @@ function requireNative() {
174
174
  const bindingPackageVersion =
175
175
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
176
176
  if (
177
- bindingPackageVersion !== '1.3.0' &&
177
+ bindingPackageVersion !== '1.4.0' &&
178
178
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
179
179
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
180
180
  ) {
181
181
  throw new Error(
182
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
182
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
183
183
  );
184
184
  }
185
185
  return binding;
@@ -198,12 +198,12 @@ function requireNative() {
198
198
  const bindingPackageVersion =
199
199
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
200
200
  if (
201
- bindingPackageVersion !== '1.3.0' &&
201
+ bindingPackageVersion !== '1.4.0' &&
202
202
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
203
203
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
204
204
  ) {
205
205
  throw new Error(
206
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
207
  );
208
208
  }
209
209
  return binding;
@@ -221,12 +221,12 @@ function requireNative() {
221
221
  const bindingPackageVersion =
222
222
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
223
223
  if (
224
- bindingPackageVersion !== '1.3.0' &&
224
+ bindingPackageVersion !== '1.4.0' &&
225
225
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
226
226
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
227
227
  ) {
228
228
  throw new Error(
229
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
229
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
230
230
  );
231
231
  }
232
232
  return binding;
@@ -247,12 +247,12 @@ function requireNative() {
247
247
  const bindingPackageVersion =
248
248
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
249
249
  if (
250
- bindingPackageVersion !== '1.3.0' &&
250
+ bindingPackageVersion !== '1.4.0' &&
251
251
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
252
252
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
253
253
  ) {
254
254
  throw new Error(
255
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
255
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
256
256
  );
257
257
  }
258
258
  return binding;
@@ -270,12 +270,12 @@ function requireNative() {
270
270
  const bindingPackageVersion =
271
271
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
272
272
  if (
273
- bindingPackageVersion !== '1.3.0' &&
273
+ bindingPackageVersion !== '1.4.0' &&
274
274
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
275
275
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
276
276
  ) {
277
277
  throw new Error(
278
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
278
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
279
279
  );
280
280
  }
281
281
  return binding;
@@ -293,12 +293,12 @@ function requireNative() {
293
293
  const bindingPackageVersion =
294
294
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
295
295
  if (
296
- bindingPackageVersion !== '1.3.0' &&
296
+ bindingPackageVersion !== '1.4.0' &&
297
297
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
298
298
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
299
299
  ) {
300
300
  throw new Error(
301
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
301
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
302
302
  );
303
303
  }
304
304
  return binding;
@@ -320,12 +320,12 @@ function requireNative() {
320
320
  const bindingPackageVersion =
321
321
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
322
322
  if (
323
- bindingPackageVersion !== '1.3.0' &&
323
+ bindingPackageVersion !== '1.4.0' &&
324
324
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
325
325
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
326
326
  ) {
327
327
  throw new Error(
328
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
328
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
329
  );
330
330
  }
331
331
  return binding;
@@ -343,12 +343,12 @@ function requireNative() {
343
343
  const bindingPackageVersion =
344
344
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
345
345
  if (
346
- bindingPackageVersion !== '1.3.0' &&
346
+ bindingPackageVersion !== '1.4.0' &&
347
347
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
348
348
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
349
349
  ) {
350
350
  throw new Error(
351
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
351
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
352
352
  );
353
353
  }
354
354
  return binding;
@@ -371,12 +371,12 @@ function requireNative() {
371
371
  const bindingPackageVersion =
372
372
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
373
373
  if (
374
- bindingPackageVersion !== '1.3.0' &&
374
+ bindingPackageVersion !== '1.4.0' &&
375
375
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
376
376
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
377
377
  ) {
378
378
  throw new Error(
379
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
379
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
380
  );
381
381
  }
382
382
  return binding;
@@ -394,12 +394,12 @@ function requireNative() {
394
394
  const bindingPackageVersion =
395
395
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
396
396
  if (
397
- bindingPackageVersion !== '1.3.0' &&
397
+ bindingPackageVersion !== '1.4.0' &&
398
398
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
399
399
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
400
400
  ) {
401
401
  throw new Error(
402
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
402
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
403
403
  );
404
404
  }
405
405
  return binding;
@@ -419,12 +419,12 @@ function requireNative() {
419
419
  const bindingPackageVersion =
420
420
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
421
421
  if (
422
- bindingPackageVersion !== '1.3.0' &&
422
+ bindingPackageVersion !== '1.4.0' &&
423
423
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
424
424
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
425
425
  ) {
426
426
  throw new Error(
427
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
427
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
428
  );
429
429
  }
430
430
  return binding;
@@ -442,12 +442,12 @@ function requireNative() {
442
442
  const bindingPackageVersion =
443
443
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
444
444
  if (
445
- bindingPackageVersion !== '1.3.0' &&
445
+ bindingPackageVersion !== '1.4.0' &&
446
446
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
447
447
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
448
448
  ) {
449
449
  throw new Error(
450
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
450
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
451
451
  );
452
452
  }
453
453
  return binding;
@@ -467,12 +467,12 @@ function requireNative() {
467
467
  const bindingPackageVersion =
468
468
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
469
469
  if (
470
- bindingPackageVersion !== '1.3.0' &&
470
+ bindingPackageVersion !== '1.4.0' &&
471
471
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
472
472
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
473
473
  ) {
474
474
  throw new Error(
475
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
475
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
476
  );
477
477
  }
478
478
  return binding;
@@ -490,12 +490,12 @@ function requireNative() {
490
490
  const bindingPackageVersion =
491
491
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
492
492
  if (
493
- bindingPackageVersion !== '1.3.0' &&
493
+ bindingPackageVersion !== '1.4.0' &&
494
494
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
495
495
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
496
496
  ) {
497
497
  throw new Error(
498
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
498
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
499
499
  );
500
500
  }
501
501
  return binding;
@@ -515,12 +515,12 @@ function requireNative() {
515
515
  const bindingPackageVersion =
516
516
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
517
517
  if (
518
- bindingPackageVersion !== '1.3.0' &&
518
+ bindingPackageVersion !== '1.4.0' &&
519
519
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
520
520
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
521
521
  ) {
522
522
  throw new Error(
523
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
523
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
524
  );
525
525
  }
526
526
  return binding;
@@ -538,12 +538,12 @@ function requireNative() {
538
538
  const bindingPackageVersion =
539
539
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
540
540
  if (
541
- bindingPackageVersion !== '1.3.0' &&
541
+ bindingPackageVersion !== '1.4.0' &&
542
542
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
543
543
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
544
544
  ) {
545
545
  throw new Error(
546
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
546
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
547
547
  );
548
548
  }
549
549
  return binding;
@@ -563,12 +563,12 @@ function requireNative() {
563
563
  const bindingPackageVersion =
564
564
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
565
565
  if (
566
- bindingPackageVersion !== '1.3.0' &&
566
+ bindingPackageVersion !== '1.4.0' &&
567
567
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
568
568
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
569
569
  ) {
570
570
  throw new Error(
571
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
571
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
572
  );
573
573
  }
574
574
  return binding;
@@ -586,12 +586,12 @@ function requireNative() {
586
586
  const bindingPackageVersion =
587
587
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
588
588
  if (
589
- bindingPackageVersion !== '1.3.0' &&
589
+ bindingPackageVersion !== '1.4.0' &&
590
590
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
591
591
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
592
592
  ) {
593
593
  throw new Error(
594
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
594
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
595
595
  );
596
596
  }
597
597
  return binding;
@@ -610,12 +610,12 @@ function requireNative() {
610
610
  const bindingPackageVersion =
611
611
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
612
612
  if (
613
- bindingPackageVersion !== '1.3.0' &&
613
+ bindingPackageVersion !== '1.4.0' &&
614
614
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
615
615
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
616
616
  ) {
617
617
  throw new Error(
618
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
618
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
619
  );
620
620
  }
621
621
  return binding;
@@ -633,12 +633,12 @@ function requireNative() {
633
633
  const bindingPackageVersion =
634
634
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
635
635
  if (
636
- bindingPackageVersion !== '1.3.0' &&
636
+ bindingPackageVersion !== '1.4.0' &&
637
637
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
638
638
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
639
639
  ) {
640
640
  throw new Error(
641
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
641
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
642
642
  );
643
643
  }
644
644
  return binding;
@@ -660,12 +660,12 @@ function requireNative() {
660
660
  const bindingPackageVersion =
661
661
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
662
662
  if (
663
- bindingPackageVersion !== '1.3.0' &&
663
+ bindingPackageVersion !== '1.4.0' &&
664
664
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
665
665
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
666
666
  ) {
667
667
  throw new Error(
668
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
668
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
669
  );
670
670
  }
671
671
  return binding;
@@ -683,12 +683,12 @@ function requireNative() {
683
683
  const bindingPackageVersion =
684
684
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
685
685
  if (
686
- bindingPackageVersion !== '1.3.0' &&
686
+ bindingPackageVersion !== '1.4.0' &&
687
687
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
688
688
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
689
689
  ) {
690
690
  throw new Error(
691
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
691
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
692
  );
693
693
  }
694
694
  return binding;
@@ -706,12 +706,12 @@ function requireNative() {
706
706
  const bindingPackageVersion =
707
707
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
708
708
  if (
709
- bindingPackageVersion !== '1.3.0' &&
709
+ bindingPackageVersion !== '1.4.0' &&
710
710
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
711
711
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
712
712
  ) {
713
713
  throw new Error(
714
- `Native binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
714
+ `Native binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
715
715
  );
716
716
  }
717
717
  return binding;
@@ -857,9 +857,9 @@ if (!nativeBinding || forceWasi) {
857
857
  ) {
858
858
  const bindingPackageVersion =
859
859
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
860
- if (bindingPackageVersion !== '1.3.0') {
860
+ if (bindingPackageVersion !== '1.4.0') {
861
861
  throw new Error(
862
- `WASI binding package version mismatch, expected 1.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
862
+ `WASI binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
863
863
  );
864
864
  }
865
865
  }
@@ -1046,6 +1046,7 @@ module.exports.detectWorkspace = nativeBinding.detectWorkspace;
1046
1046
  module.exports.documentationUrl = nativeBinding.documentationUrl;
1047
1047
  module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
1048
1048
  module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
1049
+ module.exports.findMonorepoRoot = nativeBinding.findMonorepoRoot;
1049
1050
  module.exports.getVpDirs = nativeBinding.getVpDirs;
1050
1051
  module.exports.hasConfigKey = nativeBinding.hasConfigKey;
1051
1052
  module.exports.isDirectoryGitignored = nativeBinding.isDirectoryGitignored;
@@ -1055,9 +1056,12 @@ module.exports.migrateTaskCacheConfig = nativeBinding.migrateTaskCacheConfig;
1055
1056
  module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
1056
1057
  module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
1057
1058
  module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
1059
+ module.exports.parseLiteralCommands = nativeBinding.parseLiteralCommands;
1058
1060
  module.exports.parseMigrateArgs = nativeBinding.parseMigrateArgs;
1059
1061
  module.exports.parseStagedArgs = nativeBinding.parseStagedArgs;
1060
1062
  module.exports.removeConfigKey = nativeBinding.removeConfigKey;
1063
+ module.exports.resolveNpmAuthorization = nativeBinding.resolveNpmAuthorization;
1064
+ module.exports.resolveNpmRegistry = nativeBinding.resolveNpmRegistry;
1061
1065
  module.exports.rewriteEslint = nativeBinding.rewriteEslint;
1062
1066
  module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
1063
1067
  module.exports.rewritePrettier = nativeBinding.rewritePrettier;
@@ -1068,3 +1072,4 @@ module.exports.shouldPrintVitePlusHeader = nativeBinding.shouldPrintVitePlusHead
1068
1072
  module.exports.upsertJsonConfig = nativeBinding.upsertJsonConfig;
1069
1073
  module.exports.vitePlusHeader = nativeBinding.vitePlusHeader;
1070
1074
  module.exports.wrapLazyPlugins = nativeBinding.wrapLazyPlugins;
1075
+ module.exports.oxcNode = nativeBinding.oxcNode;
@@ -1278,8 +1278,8 @@ export interface ModuleRunnerTransformResult {
1278
1278
  * This will be set if {@link TransformOptions#sourcemap} is `true`.
1279
1279
  */
1280
1280
  map?: SourceMap;
1281
- deps: Array<string>;
1282
- dynamicDeps: Array<string>;
1281
+ deps: string[];
1282
+ dynamicDeps: string[];
1283
1283
  /**
1284
1284
  * Parse and transformation errors.
1285
1285
  *
@@ -1669,6 +1669,64 @@ export interface TypeScriptOptions {
1669
1669
  rewriteImportExtensions?: 'rewrite' | 'remove' | boolean;
1670
1670
  }
1671
1671
 
1672
+ export interface LoadContext {
1673
+ /** Export conditions of the relevant `package.json` */
1674
+ conditions?: Array<string>;
1675
+ /**
1676
+ * The format optionally supplied by the `resolve` hook chain. Node.js passes it as
1677
+ * `undefined`, not `null`, when the chain reported none — a `.node` or `.wasm` file
1678
+ * resolved without its flag, any extension Node.js does not know — and a required
1679
+ * field would reject the whole context with "Missing field `format`" instead of
1680
+ * letting Node.js raise its own `ERR_UNKNOWN_FILE_EXTENSION`.
1681
+ */
1682
+ format?: string | null;
1683
+ /** An object whose key-value pairs represent the assertions for the module to import */
1684
+ importAttributes: Record<string, string>;
1685
+ }
1686
+
1687
+ export interface LoadFnOutput {
1688
+ format: string;
1689
+ source?: string | Uint8Array | Buffer | null;
1690
+ responseURL?: string;
1691
+ }
1692
+
1693
+ /** The code `transformModuleRunner` hands to `@oxc-node/core/importer`. */
1694
+ export interface ModuleRunnerOutput {
1695
+ code: string;
1696
+ /** The source map as a JSON string */
1697
+ map?: string;
1698
+ /**
1699
+ * The file is an ES module. Its imports, exports and `import.meta` are calls into
1700
+ * the runner (`__vite_ssr_import__` and friends); a CommonJS file keeps `require`,
1701
+ * `module` and `exports`, and only its `import()` calls into the runner.
1702
+ */
1703
+ esm: boolean;
1704
+ /**
1705
+ * The ES module awaits at its top level, so `require()` of it is
1706
+ * `ERR_REQUIRE_ASYNC_MODULE`.
1707
+ */
1708
+ topLevelAwait: boolean;
1709
+ }
1710
+
1711
+ export interface OxcResolveOptions {
1712
+ getCurrentDirectory?: () => string;
1713
+ }
1714
+
1715
+ export interface ResolveContext {
1716
+ /** Export conditions of the relevant `package.json` */
1717
+ conditions: Array<string>;
1718
+ /** An object whose key-value pairs represent the assertions for the module to import */
1719
+ importAttributes: Record<string, string>;
1720
+ parentURL?: string;
1721
+ }
1722
+
1723
+ export interface ResolveFnOutput {
1724
+ format?: string | null;
1725
+ shortCircuit?: boolean;
1726
+ url: string;
1727
+ importAttributes?: Record<string, string> | null;
1728
+ }
1729
+
1672
1730
  export declare class BindingBundleEndEventData {
1673
1731
  output: string;
1674
1732
  duration: number;
@@ -3316,6 +3374,7 @@ export interface BindingViteResolvePluginConfig {
3316
3374
  tsconfig?: string;
3317
3375
  environmentConsumer: string;
3318
3376
  environmentName: string;
3377
+ convertExternalRequire?: boolean;
3319
3378
  builtins: Array<BindingStringOrRegex>;
3320
3379
  external: true | string[];
3321
3380
  noExternal: true | Array<string | RegExp>;
@@ -3341,6 +3400,8 @@ export interface BindingViteResolvePluginConfig {
3341
3400
 
3342
3401
  export interface BindingViteResolvePluginResolveOptions {
3343
3402
  isBuild: boolean;
3403
+ /** Defaults to `isBuild`. */
3404
+ isBundled?: boolean;
3344
3405
  isProduction: boolean;
3345
3406
  asSrc: boolean;
3346
3407
  preferRelative: boolean;
@@ -3696,6 +3757,13 @@ export interface DownloadPackageManagerResult {
3696
3757
  /** Re-enable blocking stdio after Node.js has initialized its lazy standard streams. */
3697
3758
  export declare function ensureBlockingStdio(): void;
3698
3759
 
3760
+ /**
3761
+ * Find the monorepo root containing `cwd` with the same rules as `vp run` and `vp install`.
3762
+ *
3763
+ * Returns `null` when `cwd` is not inside a pnpm or `package.json` workspace.
3764
+ */
3765
+ export declare function findMonorepoRoot(cwd: string): string | null;
3766
+
3699
3767
  /**
3700
3768
  * Resolved on-disk category roots from [`vp_shared::EnvConfig`].
3701
3769
  *
@@ -3734,6 +3802,13 @@ export interface JsCommandResolvedResult {
3734
3802
  envs: Record<string, string>;
3735
3803
  }
3736
3804
 
3805
+ /** A literal argument with its original JavaScript UTF-16 source range. */
3806
+ export interface LiteralCommandToken {
3807
+ value: string;
3808
+ start: number;
3809
+ end: number;
3810
+ }
3811
+
3737
3812
  /**
3738
3813
  * Merge JSON configuration file into vite config file
3739
3814
  *
@@ -3842,6 +3917,16 @@ export type ParseHooksArgsOutcome =
3842
3917
  | { status: 'exit'; code: number }
3843
3918
  | { status: 'error'; error: CliParseError };
3844
3919
 
3920
+ /**
3921
+ * Read simple literal commands, optionally separated by `&&`, `||`, or `;`.
3922
+ * Returns null for unsupported syntax. Assignments and wrappers stay in argv;
3923
+ * callers must decide whether a command is safe to rewrite.
3924
+ */
3925
+ export declare function parseLiteralCommands(
3926
+ source: string,
3927
+ allowLists: boolean,
3928
+ ): Array<Array<LiteralCommandToken>> | null;
3929
+
3845
3930
  export declare function parseMigrateArgs(argv: Array<string>): ParseMigrateArgsOutcome;
3846
3931
 
3847
3932
  export type ParseMigrateArgsOutcome =
@@ -3872,6 +3957,12 @@ export declare function removeConfigKey(
3872
3957
  configKey: string,
3873
3958
  ): MergeJsonConfigResult;
3874
3959
 
3960
+ /** Resolve the `Authorization` header value npm would send to `url` from the npm config at `cwd`. */
3961
+ export declare function resolveNpmAuthorization(cwd: string, url: string): string | null;
3962
+
3963
+ /** Resolve the npm registry for packages in `scope` (without `@`) from the npm config at `cwd`. */
3964
+ export declare function resolveNpmRegistry(cwd: string, scope?: string | undefined | null): string;
3965
+
3875
3966
  /**
3876
3967
  * Rewrite ESLint scripts: rename `eslint` → `vp lint` and strip ESLint-only flags.
3877
3968
  *
@@ -4132,3 +4223,38 @@ export interface VpDirsJs {
4132
4223
  * `vite-plus` when needed.
4133
4224
  */
4134
4225
  export declare function wrapLazyPlugins(viteConfigPath: string): MergeJsonConfigResult;
4226
+
4227
+ export declare namespace oxcNode {
4228
+ export class OxcTransformer {
4229
+ constructor(cwd?: string | undefined | null, helperModuleName?: string | undefined | null);
4230
+ transform(path: string, source: string | Uint8Array): oxcNode.TransformOutput;
4231
+ }
4232
+ export function createResolve(
4233
+ specifier: string,
4234
+ context: ResolveContext,
4235
+ nextResolve: (
4236
+ arg0: string,
4237
+ arg1?: ResolveContext | undefined | null,
4238
+ ) => ResolveFnOutput | Promise<ResolveFnOutput>,
4239
+ ): ResolveFnOutput | Promise<ResolveFnOutput>;
4240
+ export function enableWatchReport(): void;
4241
+ export function load(
4242
+ url: string,
4243
+ context: LoadContext,
4244
+ nextLoad: (
4245
+ arg0: string,
4246
+ arg1?: LoadContext | undefined | null,
4247
+ ) => LoadFnOutput | Promise<LoadFnOutput>,
4248
+ helperModuleName?: string | undefined | null,
4249
+ ): LoadFnOutput | Promise<LoadFnOutput>;
4250
+ export function setTransformDeps(mode?: string | undefined | null): void;
4251
+ export function setTsconfigPath(path?: string | undefined | null): void;
4252
+ export function takeWatchDependencies(): Array<string>;
4253
+ /** A file transformed for the CommonJS loader. */
4254
+ export interface TransformOutput {
4255
+ source: string;
4256
+ /** The source map as a JSON string. */
4257
+ sourceMap?: string;
4258
+ }
4259
+ export function transformsDep(path: string): boolean;
4260
+ }
@@ -1,11 +1,11 @@
1
- import { n as rewriteDocumentationLinks } from "./documentation-DqcZSthV.js";
2
- import { a as SETUP_VP_VERSION } from "./constants-DR55DpRm.js";
3
- import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-1xNz_ne0.js";
1
+ import { n as rewriteDocumentationLinks } from "./documentation-cv_y0Auv.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-DRUnJ_Dz.js";
3
+ import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-GL1vj0wk.js";
4
4
  import path from "node:path";
5
5
  import { styleText } from "node:util";
6
6
  import fs from "node:fs";
7
7
  import fsPromises from "node:fs/promises";
8
- //#region src/utils/path.ts
8
+ // src/utils/path.ts
9
9
  function findPkgRoot() {
10
10
  let dir = import.meta.dirname;
11
11
  while (dir !== path.dirname(dir)) {
@@ -20,8 +20,7 @@ const rulesDir = path.join(pkgRoot, "rules");
20
20
  function displayRelative(to, from = process.cwd()) {
21
21
  return path.relative(from, to).replaceAll("\\", "/");
22
22
  }
23
- //#endregion
24
- //#region src/utils/agent.ts
23
+ // src/utils/agent.ts
25
24
  const AGENTS = [
26
25
  {
27
26
  id: "agents",
@@ -414,5 +413,4 @@ function getMarkedRange(content, startMarker, endMarker) {
414
413
  end: endMarkerIndex + endMarker.length
415
414
  };
416
415
  }
417
- //#endregion
418
416
  export { selectAgentTargets as a, writeCopilotSetupWorkflow as c, templatesDir as d, selectAgentTargetPaths as i, displayRelative as l, detectAgentConflicts as n, updateExistingAgentInstructions as o, detectExistingAgentTargetPaths as r, writeAgentInstructions as s, COPILOT_AGENT_ID as t, rulesDir as u };