vite-plus 1.5.0 → 1.6.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 (89) hide show
  1. package/binding/index.cjs +117 -55
  2. package/binding/index.d.cts +9 -0
  3. package/dist/{agent-DkQD3xqe.js → agent-CTG3B-ec.js} +2 -2
  4. package/dist/bin.js +36 -7
  5. package/dist/{comparison-CmVirWIW-UlEf2maz.js → comparison-CmVirWIW-Z8p6CfWL.js} +4 -1
  6. package/dist/config/bin.js +2 -2
  7. package/dist/constants-DXqV1vWL.js +77 -0
  8. package/dist/create/bin.js +30 -35
  9. package/dist/{define-config-wR57OZG_.js → define-config-CeYkQCqG.js} +1 -1
  10. package/dist/{define-config-CwtQqYC1.cjs → define-config-jt2Hyhp2.cjs} +1 -1
  11. package/dist/define-config.cjs +1 -1
  12. package/dist/define-config.js +1 -1
  13. package/dist/{editor-aOy1T15H.js → editor-C0U0Ymqk.js} +213 -83
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/lint-plugins.cjs +1 -1
  17. package/dist/migration/bin.js +9 -8
  18. package/dist/{oxlint-plugin-config-CHsI_zKo.js → oxlint-plugin-config-DvBRM_Se.js} +1 -1
  19. package/dist/oxlint-plugin.js +2 -2
  20. package/dist/pack-bin.js +1 -1
  21. package/dist/{package-DfFo6-E-.js → package-CK48ZXBV.js} +1 -1
  22. package/dist/{constants-D2P2aVKb.js → package-Cc9gI1u1.js} +2 -77
  23. package/dist/{package-overrides-Ci8GXouY.js → package-overrides-nw4zcITi.js} +1 -1
  24. package/dist/{prompts-C7DI63WP.js → prompts-JkuWOV60.js} +9 -5
  25. package/dist/{resolve-vite-config-33bzSaeT.js → resolve-vite-config-CfUvxuCo.js} +1 -1
  26. package/dist/{resolve-vite-config-Cx3cnVVI.js → resolve-vite-config-x5QVnaf4.js} +2 -2
  27. package/dist/staged/bin.js +1 -1
  28. package/dist/sync-versions/bin.js +1 -1
  29. package/dist/toolchain.js +9 -9
  30. package/dist/toolchain.json +9 -9
  31. package/dist/{tsconfig-BE3Wj9OX.js → tsconfig-CZlh956U.js} +1 -1
  32. package/dist/{tsconfig-shNmmCE_.js → tsconfig-DUR3fhIX.js} +2 -2
  33. package/dist/user-agent-CpEaSTwI.js +6 -0
  34. package/dist/version.js +3 -2
  35. package/dist/versions.js +5 -5
  36. package/dist/vpx-bin.js +2 -0
  37. package/docs/config/run.md +8 -7
  38. package/docs/guide/automatic-data-tracking.md +138 -0
  39. package/docs/guide/check.md +13 -0
  40. package/docs/guide/global-cli.md +13 -3
  41. package/docs/guide/index.md +4 -4
  42. package/docs/guide/local-cli.md +1 -1
  43. package/docs/guide/migrate-rules.md +3 -1
  44. package/docs/guide/migrate.md +4 -4
  45. package/docs/guide/package-management/add.md +84 -0
  46. package/docs/guide/package-management/approve-builds.md +48 -0
  47. package/docs/guide/package-management/audit.md +39 -0
  48. package/docs/guide/package-management/cache.md +53 -0
  49. package/docs/guide/package-management/ci.md +28 -0
  50. package/docs/guide/package-management/config.md +119 -0
  51. package/docs/guide/package-management/dedupe.md +32 -0
  52. package/docs/guide/package-management/deprecate.md +39 -0
  53. package/docs/guide/package-management/dist-tag.md +61 -0
  54. package/docs/guide/package-management/dlx.md +40 -0
  55. package/docs/guide/package-management/fund.md +32 -0
  56. package/docs/guide/package-management/global-packages.md +32 -0
  57. package/docs/guide/package-management/index.md +78 -0
  58. package/docs/guide/package-management/info.md +35 -0
  59. package/docs/guide/package-management/install.md +89 -0
  60. package/docs/guide/package-management/licenses.md +42 -0
  61. package/docs/guide/package-management/link.md +29 -0
  62. package/docs/guide/package-management/list.md +60 -0
  63. package/docs/guide/package-management/login.md +34 -0
  64. package/docs/guide/package-management/logout.md +34 -0
  65. package/docs/guide/package-management/outdated.md +60 -0
  66. package/docs/guide/package-management/owner.md +79 -0
  67. package/docs/guide/package-management/pack.md +40 -0
  68. package/docs/guide/package-management/package-manager-selection.md +60 -0
  69. package/docs/guide/package-management/patch-commit.md +27 -0
  70. package/docs/guide/package-management/patch.md +29 -0
  71. package/docs/guide/package-management/ping.md +32 -0
  72. package/docs/guide/package-management/pkg.md +88 -0
  73. package/docs/guide/package-management/prune.md +34 -0
  74. package/docs/guide/package-management/publish.md +61 -0
  75. package/docs/guide/package-management/rebuild.md +31 -0
  76. package/docs/guide/package-management/remove.md +47 -0
  77. package/docs/guide/package-management/search.md +38 -0
  78. package/docs/guide/package-management/stage.md +175 -0
  79. package/docs/guide/package-management/team.md +140 -0
  80. package/docs/guide/package-management/token.md +87 -0
  81. package/docs/guide/package-management/unlink.md +33 -0
  82. package/docs/guide/package-management/update.md +62 -0
  83. package/docs/guide/package-management/version.md +36 -0
  84. package/docs/guide/package-management/whoami.md +30 -0
  85. package/docs/guide/package-management/why.md +55 -0
  86. package/docs/guide/run.md +22 -0
  87. package/docs/guide/vpx.md +1 -1
  88. package/package.json +18 -18
  89. package/docs/guide/package-management.md +0 -269
package/binding/index.cjs CHANGED
@@ -6,8 +6,13 @@ const { readFileSync } = require('fs');
6
6
  let nativeBinding = null;
7
7
  // Which artifact actually loaded. The WASI fallback chain overwrites it with
8
8
  // the flavor it resolved; the late native retry below leaves it alone because
9
- // it only runs while no WASI candidate has been loaded.
9
+ // it only runs while no WASI candidate has been loaded. The take-over check
10
+ // after the load-failure block can also set it.
10
11
  let __napiLoadedBindingTarget = 'native';
12
+ // What this loader's own `requireNative()` calls returned. The check after
13
+ // the load-failure block compares it with `nativeBinding` to tell a binding
14
+ // this loader loaded from one that code outside it put in its place.
15
+ let __napiRequiredNativeBinding = null;
11
16
  const loadErrors = [];
12
17
 
13
18
  const isMusl = () => {
@@ -93,12 +98,12 @@ function requireNative() {
93
98
  const bindingPackageVersion =
94
99
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
95
100
  if (
96
- bindingPackageVersion !== '1.5.0' &&
101
+ bindingPackageVersion !== '1.6.0' &&
97
102
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
98
103
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
99
104
  ) {
100
105
  throw new Error(
101
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
106
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
102
107
  );
103
108
  }
104
109
  return binding;
@@ -116,12 +121,12 @@ function requireNative() {
116
121
  const bindingPackageVersion =
117
122
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
118
123
  if (
119
- bindingPackageVersion !== '1.5.0' &&
124
+ bindingPackageVersion !== '1.6.0' &&
120
125
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
121
126
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
122
127
  ) {
123
128
  throw new Error(
124
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
129
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
125
130
  );
126
131
  }
127
132
  return binding;
@@ -151,12 +156,12 @@ function requireNative() {
151
156
  const bindingPackageVersion =
152
157
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
153
158
  if (
154
- bindingPackageVersion !== '1.5.0' &&
159
+ bindingPackageVersion !== '1.6.0' &&
155
160
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
156
161
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
157
162
  ) {
158
163
  throw new Error(
159
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
164
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
165
  );
161
166
  }
162
167
  return binding;
@@ -174,12 +179,12 @@ function requireNative() {
174
179
  const bindingPackageVersion =
175
180
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
176
181
  if (
177
- bindingPackageVersion !== '1.5.0' &&
182
+ bindingPackageVersion !== '1.6.0' &&
178
183
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
179
184
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
180
185
  ) {
181
186
  throw new Error(
182
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
187
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
183
188
  );
184
189
  }
185
190
  return binding;
@@ -198,12 +203,12 @@ function requireNative() {
198
203
  const bindingPackageVersion =
199
204
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
200
205
  if (
201
- bindingPackageVersion !== '1.5.0' &&
206
+ bindingPackageVersion !== '1.6.0' &&
202
207
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
203
208
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
204
209
  ) {
205
210
  throw new Error(
206
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
211
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
212
  );
208
213
  }
209
214
  return binding;
@@ -221,12 +226,12 @@ function requireNative() {
221
226
  const bindingPackageVersion =
222
227
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
223
228
  if (
224
- bindingPackageVersion !== '1.5.0' &&
229
+ bindingPackageVersion !== '1.6.0' &&
225
230
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
226
231
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
227
232
  ) {
228
233
  throw new Error(
229
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
234
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
230
235
  );
231
236
  }
232
237
  return binding;
@@ -247,12 +252,12 @@ function requireNative() {
247
252
  const bindingPackageVersion =
248
253
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
249
254
  if (
250
- bindingPackageVersion !== '1.5.0' &&
255
+ bindingPackageVersion !== '1.6.0' &&
251
256
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
252
257
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
253
258
  ) {
254
259
  throw new Error(
255
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
260
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
256
261
  );
257
262
  }
258
263
  return binding;
@@ -270,12 +275,12 @@ function requireNative() {
270
275
  const bindingPackageVersion =
271
276
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
272
277
  if (
273
- bindingPackageVersion !== '1.5.0' &&
278
+ bindingPackageVersion !== '1.6.0' &&
274
279
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
275
280
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
276
281
  ) {
277
282
  throw new Error(
278
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
283
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
279
284
  );
280
285
  }
281
286
  return binding;
@@ -293,12 +298,12 @@ function requireNative() {
293
298
  const bindingPackageVersion =
294
299
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
295
300
  if (
296
- bindingPackageVersion !== '1.5.0' &&
301
+ bindingPackageVersion !== '1.6.0' &&
297
302
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
298
303
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
299
304
  ) {
300
305
  throw new Error(
301
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
306
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
302
307
  );
303
308
  }
304
309
  return binding;
@@ -320,12 +325,12 @@ function requireNative() {
320
325
  const bindingPackageVersion =
321
326
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
322
327
  if (
323
- bindingPackageVersion !== '1.5.0' &&
328
+ bindingPackageVersion !== '1.6.0' &&
324
329
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
325
330
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
326
331
  ) {
327
332
  throw new Error(
328
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
333
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
334
  );
330
335
  }
331
336
  return binding;
@@ -343,12 +348,35 @@ function requireNative() {
343
348
  const bindingPackageVersion =
344
349
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
345
350
  if (
346
- bindingPackageVersion !== '1.5.0' &&
351
+ bindingPackageVersion !== '1.6.0' &&
347
352
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
348
353
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
349
354
  ) {
350
355
  throw new Error(
351
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
356
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
357
+ );
358
+ }
359
+ return binding;
360
+ } catch (e) {
361
+ loadErrors.push(e);
362
+ }
363
+ } else if (process.arch === 'ppc64') {
364
+ try {
365
+ return require('./vite-plus.freebsd-ppc64.node');
366
+ } catch (e) {
367
+ loadErrors.push(e);
368
+ }
369
+ try {
370
+ const binding = require('@voidzero-dev/vite-plus-freebsd-ppc64');
371
+ const bindingPackageVersion =
372
+ require('@voidzero-dev/vite-plus-freebsd-ppc64/package.json').version;
373
+ if (
374
+ bindingPackageVersion !== '1.6.0' &&
375
+ process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
376
+ process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
377
+ ) {
378
+ throw new Error(
379
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
352
380
  );
353
381
  }
354
382
  return binding;
@@ -371,12 +399,12 @@ function requireNative() {
371
399
  const bindingPackageVersion =
372
400
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
373
401
  if (
374
- bindingPackageVersion !== '1.5.0' &&
402
+ bindingPackageVersion !== '1.6.0' &&
375
403
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
376
404
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
377
405
  ) {
378
406
  throw new Error(
379
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
407
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
408
  );
381
409
  }
382
410
  return binding;
@@ -394,12 +422,12 @@ function requireNative() {
394
422
  const bindingPackageVersion =
395
423
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
396
424
  if (
397
- bindingPackageVersion !== '1.5.0' &&
425
+ bindingPackageVersion !== '1.6.0' &&
398
426
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
399
427
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
400
428
  ) {
401
429
  throw new Error(
402
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
430
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
403
431
  );
404
432
  }
405
433
  return binding;
@@ -419,12 +447,12 @@ function requireNative() {
419
447
  const bindingPackageVersion =
420
448
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
421
449
  if (
422
- bindingPackageVersion !== '1.5.0' &&
450
+ bindingPackageVersion !== '1.6.0' &&
423
451
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
424
452
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
425
453
  ) {
426
454
  throw new Error(
427
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
455
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
456
  );
429
457
  }
430
458
  return binding;
@@ -442,12 +470,12 @@ function requireNative() {
442
470
  const bindingPackageVersion =
443
471
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
444
472
  if (
445
- bindingPackageVersion !== '1.5.0' &&
473
+ bindingPackageVersion !== '1.6.0' &&
446
474
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
447
475
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
448
476
  ) {
449
477
  throw new Error(
450
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
478
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
451
479
  );
452
480
  }
453
481
  return binding;
@@ -467,12 +495,12 @@ function requireNative() {
467
495
  const bindingPackageVersion =
468
496
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
469
497
  if (
470
- bindingPackageVersion !== '1.5.0' &&
498
+ bindingPackageVersion !== '1.6.0' &&
471
499
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
472
500
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
473
501
  ) {
474
502
  throw new Error(
475
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
503
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
504
  );
477
505
  }
478
506
  return binding;
@@ -490,12 +518,12 @@ function requireNative() {
490
518
  const bindingPackageVersion =
491
519
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
492
520
  if (
493
- bindingPackageVersion !== '1.5.0' &&
521
+ bindingPackageVersion !== '1.6.0' &&
494
522
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
495
523
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
496
524
  ) {
497
525
  throw new Error(
498
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
526
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
499
527
  );
500
528
  }
501
529
  return binding;
@@ -515,12 +543,12 @@ function requireNative() {
515
543
  const bindingPackageVersion =
516
544
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
517
545
  if (
518
- bindingPackageVersion !== '1.5.0' &&
546
+ bindingPackageVersion !== '1.6.0' &&
519
547
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
520
548
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
521
549
  ) {
522
550
  throw new Error(
523
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
551
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
552
  );
525
553
  }
526
554
  return binding;
@@ -538,12 +566,12 @@ function requireNative() {
538
566
  const bindingPackageVersion =
539
567
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
540
568
  if (
541
- bindingPackageVersion !== '1.5.0' &&
569
+ bindingPackageVersion !== '1.6.0' &&
542
570
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
543
571
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
544
572
  ) {
545
573
  throw new Error(
546
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
574
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
547
575
  );
548
576
  }
549
577
  return binding;
@@ -563,12 +591,12 @@ function requireNative() {
563
591
  const bindingPackageVersion =
564
592
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
565
593
  if (
566
- bindingPackageVersion !== '1.5.0' &&
594
+ bindingPackageVersion !== '1.6.0' &&
567
595
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
568
596
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
569
597
  ) {
570
598
  throw new Error(
571
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
599
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
600
  );
573
601
  }
574
602
  return binding;
@@ -586,12 +614,12 @@ function requireNative() {
586
614
  const bindingPackageVersion =
587
615
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
588
616
  if (
589
- bindingPackageVersion !== '1.5.0' &&
617
+ bindingPackageVersion !== '1.6.0' &&
590
618
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
591
619
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
592
620
  ) {
593
621
  throw new Error(
594
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
622
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
595
623
  );
596
624
  }
597
625
  return binding;
@@ -610,12 +638,12 @@ function requireNative() {
610
638
  const bindingPackageVersion =
611
639
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
612
640
  if (
613
- bindingPackageVersion !== '1.5.0' &&
641
+ bindingPackageVersion !== '1.6.0' &&
614
642
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
615
643
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
616
644
  ) {
617
645
  throw new Error(
618
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
646
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
647
  );
620
648
  }
621
649
  return binding;
@@ -633,12 +661,12 @@ function requireNative() {
633
661
  const bindingPackageVersion =
634
662
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
635
663
  if (
636
- bindingPackageVersion !== '1.5.0' &&
664
+ bindingPackageVersion !== '1.6.0' &&
637
665
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
638
666
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
639
667
  ) {
640
668
  throw new Error(
641
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
642
670
  );
643
671
  }
644
672
  return binding;
@@ -660,12 +688,12 @@ function requireNative() {
660
688
  const bindingPackageVersion =
661
689
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
662
690
  if (
663
- bindingPackageVersion !== '1.5.0' &&
691
+ bindingPackageVersion !== '1.6.0' &&
664
692
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
665
693
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
666
694
  ) {
667
695
  throw new Error(
668
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
696
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
697
  );
670
698
  }
671
699
  return binding;
@@ -683,12 +711,12 @@ function requireNative() {
683
711
  const bindingPackageVersion =
684
712
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
685
713
  if (
686
- bindingPackageVersion !== '1.5.0' &&
714
+ bindingPackageVersion !== '1.6.0' &&
687
715
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
688
716
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
689
717
  ) {
690
718
  throw new Error(
691
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
719
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
720
  );
693
721
  }
694
722
  return binding;
@@ -706,12 +734,12 @@ function requireNative() {
706
734
  const bindingPackageVersion =
707
735
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
708
736
  if (
709
- bindingPackageVersion !== '1.5.0' &&
737
+ bindingPackageVersion !== '1.6.0' &&
710
738
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
711
739
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
712
740
  ) {
713
741
  throw new Error(
714
- `Native binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
742
+ `Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
715
743
  );
716
744
  }
717
745
  return binding;
@@ -770,6 +798,7 @@ const forceWasi =
770
798
 
771
799
  if (!forceWasi) {
772
800
  nativeBinding = requireNative();
801
+ __napiRequiredNativeBinding = nativeBinding;
773
802
  }
774
803
 
775
804
  if (!nativeBinding || forceWasi) {
@@ -857,9 +886,9 @@ if (!nativeBinding || forceWasi) {
857
886
  ) {
858
887
  const bindingPackageVersion =
859
888
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
860
- if (bindingPackageVersion !== '1.5.0') {
889
+ if (bindingPackageVersion !== '1.6.0') {
861
890
  throw new Error(
862
- `WASI binding package version mismatch, expected 1.5.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
891
+ `WASI binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
863
892
  );
864
893
  }
865
894
  }
@@ -879,6 +908,7 @@ if (!nativeBinding || forceWasi) {
879
908
  }
880
909
  if (!wasiBindingLoaded && forceWasi && !forceWasiError && !__napiWasiFlavorRequested) {
881
910
  nativeBinding = requireNative();
911
+ __napiRequiredNativeBinding = nativeBinding;
882
912
  }
883
913
  if ((forceWasiError || __napiWasiFlavorRequested) && !wasiBindingLoaded) {
884
914
  const error = new Error(
@@ -906,6 +936,37 @@ if (!nativeBinding) {
906
936
  throw new Error(`Failed to load native binding`);
907
937
  }
908
938
 
939
+ // A package can patch its own fallback in front of the load-failure check
940
+ // above, e.g. a WebContainer download through `napi-postinstall/fallback`.
941
+ // That fallback swaps `nativeBinding` for a generated WASI loader, which has
942
+ // already stamped its own flavor, while the target above still says 'native'.
943
+ // Take that flavor over, or the CommonJS stamp throws a conflict and the ESM
944
+ // export reports the wrong artifact. Three limits keep the conflict check:
945
+ // - only a binding this loader did not load itself, so a native addon whose
946
+ // `#[napi(module_exports)]` hook claims the name is still rejected;
947
+ // - only an own data property, read through its descriptor, so no addon
948
+ // getter runs here, and it must read back the same, as the stamp reads it;
949
+ // - only a flavor in `__napiWasiFlavors`, the ones this loader's own WASI
950
+ // chain can report ('wasm32-wasi' for a package without a WASI target).
951
+ // This is metadata and never fails a load: a throwing Proxy trap keeps 'native'.
952
+ if (__napiLoadedBindingTarget === 'native' && nativeBinding !== __napiRequiredNativeBinding) {
953
+ try {
954
+ const __napiBindingTargetDescriptor = Object.getOwnPropertyDescriptor(
955
+ nativeBinding,
956
+ '__napiBindingTarget',
957
+ );
958
+ if (
959
+ __napiBindingTargetDescriptor &&
960
+ __napiWasiFlavors.indexOf(__napiBindingTargetDescriptor.value) !== -1 &&
961
+ nativeBinding.__napiBindingTarget === __napiBindingTargetDescriptor.value
962
+ ) {
963
+ __napiLoadedBindingTarget = __napiBindingTargetDescriptor.value;
964
+ }
965
+ } catch {
966
+ // keep 'native'
967
+ }
968
+ }
969
+
909
970
  function __napiStampBindingTarget(exportsObject, target) {
910
971
  if (Object.prototype.hasOwnProperty.call(exportsObject, '__napiBindingTarget')) {
911
972
  if (exportsObject.__napiBindingTarget === target) {
@@ -1047,6 +1108,7 @@ module.exports.documentationUrl = nativeBinding.documentationUrl;
1047
1108
  module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
1048
1109
  module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
1049
1110
  module.exports.findMonorepoRoot = nativeBinding.findMonorepoRoot;
1111
+ module.exports.getPackageManagerOverride = nativeBinding.getPackageManagerOverride;
1050
1112
  module.exports.getVpDirs = nativeBinding.getVpDirs;
1051
1113
  module.exports.hasConfigKey = nativeBinding.hasConfigKey;
1052
1114
  module.exports.isDirectoryGitignored = nativeBinding.isDirectoryGitignored;
@@ -3787,6 +3787,9 @@ export declare function ensureBlockingStdio(): void;
3787
3787
  */
3788
3788
  export declare function findMonorepoRoot(cwd: string): string | null;
3789
3789
 
3790
+ /** Read the same `VP_PACKAGE_MANAGER` override used by `vp install`. */
3791
+ export declare function getPackageManagerOverride(): PackageManagerOverride | null;
3792
+
3790
3793
  /**
3791
3794
  * Resolved on-disk category roots from [`vp_shared::EnvConfig`].
3792
3795
  *
@@ -3919,6 +3922,12 @@ export interface MigrateArgs {
3919
3922
  */
3920
3923
  export declare function migrateTaskCacheConfig(viteConfigPath: string): TaskCacheConfigResult;
3921
3924
 
3925
+ export interface PackageManagerOverride {
3926
+ name: string;
3927
+ version: string;
3928
+ expectedHash?: string;
3929
+ }
3930
+
3922
3931
  export declare function parseConfigArgs(argv: Array<string>): ParseConfigArgsOutcome;
3923
3932
 
3924
3933
  export type ParseConfigArgsOutcome =
@@ -1,5 +1,5 @@
1
- import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-C7DI63WP.js";
2
- import { a as SETUP_VP_VERSION } from "./constants-D2P2aVKb.js";
1
+ import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-JkuWOV60.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-DXqV1vWL.js";
3
3
  import { n as rewriteDocumentationLinks } from "./documentation-cv_y0Auv.js";
4
4
  import path from "node:path";
5
5
  import { styleText } from "node:util";
package/dist/bin.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { t as documentationUrl$1 } from "./documentation-cv_y0Auv.js";
2
2
  import { t as renderCliDoc } from "./help-B03t_iQ4.js";
3
3
  import { c as warnMsg, i as log, n as errorMsg, o as printHeader, t as accent } from "./terminal-BcuPUy-j.js";
4
- import { i as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CHsI_zKo.js";
5
- import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-D2P2aVKb.js";
6
- import { o as readNearestPackageJson } from "./package-DfFo6-E-.js";
4
+ import { i as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-DvBRM_Se.js";
5
+ import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-DXqV1vWL.js";
6
+ import { o as readNearestPackageJson } from "./package-CK48ZXBV.js";
7
7
  import { t as cac } from "./dist-CdkMvIiQ.js";
8
+ import { t as setUserAgent } from "./user-agent-CpEaSTwI.js";
8
9
  import { createRequire } from "node:module";
9
10
  import path, { dirname, join, resolve } from "node:path";
10
11
  import { fileURLToPath } from "node:url";
@@ -954,6 +955,10 @@ const commandHelpDocs = {
954
955
  label: "--fix",
955
956
  description: "Auto-fix format and lint issues"
956
957
  },
958
+ {
959
+ label: "--continue-on-error",
960
+ description: "Run remaining checks even if an earlier check fails"
961
+ },
957
962
  {
958
963
  label: "--quiet",
959
964
  description: "Disable reporting on warnings, only errors are reported"
@@ -985,6 +990,7 @@ const commandHelpDocs = {
985
990
  lines: [
986
991
  " vp check",
987
992
  " vp check --fix",
993
+ " vp check --continue-on-error",
988
994
  " vp check --no-lint src/index.ts"
989
995
  ]
990
996
  }
@@ -1213,7 +1219,7 @@ const commandHelpDocs = {
1213
1219
  },
1214
1220
  {
1215
1221
  label: "-v, --verbose",
1216
- description: "Show the full detailed summary after execution"
1222
+ description: "Show the full detailed summary after execution; `-vv` also lists the inputs and outputs of each cached run"
1217
1223
  },
1218
1224
  {
1219
1225
  label: "--cache",
@@ -1235,6 +1241,14 @@ const commandHelpDocs = {
1235
1241
  label: "--parallel",
1236
1242
  description: "Run tasks without dependency ordering; concurrency is unlimited unless `--concurrency-limit` is specified"
1237
1243
  },
1244
+ {
1245
+ label: "--dry-run",
1246
+ description: "Show what the run would do and whether each command would hit the cache, without running anything"
1247
+ },
1248
+ {
1249
+ label: "--json",
1250
+ description: "Print JSON: every package and task without a task, or the run plan with `--dry-run`"
1251
+ },
1238
1252
  {
1239
1253
  label: "--last-details",
1240
1254
  description: "Display the detailed summary of the last run"
@@ -1537,7 +1551,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
1537
1551
  }
1538
1552
  if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
1539
1553
  const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
1540
- const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-BE3Wj9OX.js");
1554
+ const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-CZlh956U.js");
1541
1555
  await fixBaseUrlInTsconfig(projectPath);
1542
1556
  const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
1543
1557
  const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
@@ -1802,9 +1816,22 @@ async function vite(err, context) {
1802
1816
  * vite-plus installation using oxc_resolver and runs its dist/bin.js directly.
1803
1817
  * If no local installation is found, this global dist/bin.js is used as fallback.
1804
1818
  */
1819
+ setUserAgent();
1805
1820
  process.stdout;
1806
1821
  process.stderr;
1807
1822
  ensureBlockingStdio();
1823
+ /**
1824
+ * Loading a config through Vite imports `node:process` as ESM, and building that
1825
+ * namespace reads every `process` getter, so `process.stdin` is created and its
1826
+ * descriptor becomes non-blocking, TTY or pipe. Tasks inherit that descriptor, and a
1827
+ * blocking read there fails with EAGAIN. `ensureBlockingStdio()` leaves terminals
1828
+ * alone, so restore blocking reads through the stream handle, as `vpx` does before
1829
+ * exec.
1830
+ */
1831
+ function restoreBlockingStdin() {
1832
+ if (process.platform === "win32") return;
1833
+ process.stdin._handle?.setBlocking?.(true);
1834
+ }
1808
1835
  function getErrorMessage(err) {
1809
1836
  if (err instanceof Error) return err.message;
1810
1837
  if (typeof err === "object" && err && "message" in err && typeof err.message === "string") return err.message;
@@ -1875,8 +1902,10 @@ else try {
1875
1902
  toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
1876
1903
  vitePlusPackagePath,
1877
1904
  resolveUniversalViteConfig: async (err, cwd) => {
1878
- const { resolveUniversalViteConfig } = await import("./resolve-vite-config-33bzSaeT.js");
1879
- return resolveUniversalViteConfig(err, cwd);
1905
+ const { resolveUniversalViteConfig } = await import("./resolve-vite-config-CfUvxuCo.js");
1906
+ const config = await resolveUniversalViteConfig(err, cwd);
1907
+ restoreBlockingStdin();
1908
+ return config;
1880
1909
  },
1881
1910
  nodeVersion: process.version,
1882
1911
  explicitChdir,
@@ -114,7 +114,10 @@ function compareReversed(left, right, options = {}) {
114
114
  function isGreaterThanOrEqual(left, right, options = {}) {
115
115
  return compare(left, right, options) >= 0;
116
116
  }
117
+ function isLessThan(left, right, options = {}) {
118
+ return compare(left, right, options) < 0;
119
+ }
117
120
  function isLessThanOrEqual(left, right, options = {}) {
118
121
  return compare(left, right, options) <= 0;
119
122
  }
120
- export { isGreaterThanOrEqual as _, GREATER_LESS_THAN as a, safeRegex as b, LOOSE_PLAIN as c, XRANGE_PLAIN as d, XRANGE_PLAIN_LOOSE as f, formatComparableVersion as g, compareReversed as h, FULL_PLAIN as i, PRERELEASE as l, compareParsed as m, COERCE as n, LONE_CARET as o, compare as p, COERCE_FULL as r, LONE_TILDE as s, BUILD as t, PRERELEASE_LOOSE as u, isLessThanOrEqual as v, tryParse as x, parse as y };
123
+ export { tryParse as S, isGreaterThanOrEqual as _, GREATER_LESS_THAN as a, parse as b, LOOSE_PLAIN as c, XRANGE_PLAIN as d, XRANGE_PLAIN_LOOSE as f, formatComparableVersion as g, compareReversed as h, FULL_PLAIN as i, PRERELEASE as l, compareParsed as m, COERCE as n, LONE_CARET as o, compare as p, COERCE_FULL as r, LONE_TILDE as s, BUILD as t, PRERELEASE_LOOSE as u, isLessThan as v, safeRegex as x, isLessThanOrEqual as y };
@@ -1,7 +1,7 @@
1
- import { o as updateExistingAgentInstructions } from "../agent-DkQD3xqe.js";
1
+ import { o as updateExistingAgentInstructions } from "../agent-CTG3B-ec.js";
2
2
  import { t as unwrapCliParseOutcome } from "../cli-parse-aeUeFDlC.js";
3
3
  import { t as require_dist } from "../dist-Bs0SObNC.js";
4
- import { i as promptGitHooks, n as defaultInteractive } from "../prompts-C7DI63WP.js";
4
+ import { i as promptGitHooks, n as defaultInteractive } from "../prompts-JkuWOV60.js";
5
5
  import { i as log, n as errorMsg } from "../terminal-BcuPUy-j.js";
6
6
  import { c as isGitHooksEnvDisabled, l as isHooksUserDisabled, s as install, u as resolveHooksLocation } from "../hooks-w_e2whkQ.js";
7
7
  import path, { join, relative } from "node:path";