vite-plus 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/binding/index.cjs +116 -55
  2. package/dist/{agent-DkQD3xqe.js → agent-CowvWq3j.js} +2 -2
  3. package/dist/bin.js +20 -6
  4. package/dist/config/bin.js +2 -2
  5. package/dist/{constants-D2P2aVKb.js → constants-D5f7inVN.js} +1 -1
  6. package/dist/create/bin.js +7 -7
  7. package/dist/{define-config-CwtQqYC1.cjs → define-config-BGCfAiIo.cjs} +1 -1
  8. package/dist/{define-config-wR57OZG_.js → define-config-XKYhw0xH.js} +1 -1
  9. package/dist/define-config.cjs +1 -1
  10. package/dist/define-config.js +1 -1
  11. package/dist/{editor-aOy1T15H.js → editor-BVaNnIey.js} +6 -6
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/lint-plugins.cjs +1 -1
  15. package/dist/migration/bin.js +6 -6
  16. package/dist/{oxlint-plugin-config-CHsI_zKo.js → oxlint-plugin-config-5hVqz4kj.js} +1 -1
  17. package/dist/oxlint-plugin.js +2 -2
  18. package/dist/pack-bin.js +1 -1
  19. package/dist/{package-DfFo6-E-.js → package-DLUCo6L_.js} +1 -1
  20. package/dist/{prompts-C7DI63WP.js → prompts-DLpJGhfK.js} +1 -1
  21. package/dist/{resolve-vite-config-Cx3cnVVI.js → resolve-vite-config-D-JtjGRa.js} +2 -2
  22. package/dist/{resolve-vite-config-33bzSaeT.js → resolve-vite-config-D7IUZYKq.js} +1 -1
  23. package/dist/staged/bin.js +1 -1
  24. package/dist/toolchain.js +5 -5
  25. package/dist/toolchain.json +5 -5
  26. package/dist/{tsconfig-shNmmCE_.js → tsconfig-D3DiCiW6.js} +2 -2
  27. package/dist/{tsconfig-BE3Wj9OX.js → tsconfig-DLERIAbF.js} +1 -1
  28. package/dist/version.js +2 -2
  29. package/dist/versions.js +2 -2
  30. package/docs/guide/global-cli.md +1 -1
  31. package/docs/guide/index.md +4 -4
  32. package/docs/guide/local-cli.md +1 -1
  33. package/docs/guide/migrate.md +4 -4
  34. package/docs/guide/package-management/add.md +84 -0
  35. package/docs/guide/package-management/approve-builds.md +48 -0
  36. package/docs/guide/package-management/audit.md +39 -0
  37. package/docs/guide/package-management/cache.md +53 -0
  38. package/docs/guide/package-management/ci.md +28 -0
  39. package/docs/guide/package-management/config.md +119 -0
  40. package/docs/guide/package-management/dedupe.md +32 -0
  41. package/docs/guide/package-management/deprecate.md +39 -0
  42. package/docs/guide/package-management/dist-tag.md +61 -0
  43. package/docs/guide/package-management/dlx.md +40 -0
  44. package/docs/guide/package-management/fund.md +32 -0
  45. package/docs/guide/package-management/global-packages.md +32 -0
  46. package/docs/guide/package-management/index.md +78 -0
  47. package/docs/guide/package-management/info.md +35 -0
  48. package/docs/guide/package-management/install.md +89 -0
  49. package/docs/guide/package-management/licenses.md +42 -0
  50. package/docs/guide/package-management/link.md +29 -0
  51. package/docs/guide/package-management/list.md +60 -0
  52. package/docs/guide/package-management/login.md +34 -0
  53. package/docs/guide/package-management/logout.md +34 -0
  54. package/docs/guide/package-management/outdated.md +60 -0
  55. package/docs/guide/package-management/owner.md +79 -0
  56. package/docs/guide/package-management/pack.md +40 -0
  57. package/docs/guide/package-management/package-manager-selection.md +60 -0
  58. package/docs/guide/package-management/patch-commit.md +27 -0
  59. package/docs/guide/package-management/patch.md +29 -0
  60. package/docs/guide/package-management/ping.md +32 -0
  61. package/docs/guide/package-management/pkg.md +88 -0
  62. package/docs/guide/package-management/prune.md +34 -0
  63. package/docs/guide/package-management/publish.md +61 -0
  64. package/docs/guide/package-management/rebuild.md +31 -0
  65. package/docs/guide/package-management/remove.md +47 -0
  66. package/docs/guide/package-management/search.md +38 -0
  67. package/docs/guide/package-management/stage.md +175 -0
  68. package/docs/guide/package-management/team.md +140 -0
  69. package/docs/guide/package-management/token.md +87 -0
  70. package/docs/guide/package-management/unlink.md +33 -0
  71. package/docs/guide/package-management/update.md +62 -0
  72. package/docs/guide/package-management/version.md +36 -0
  73. package/docs/guide/package-management/whoami.md +30 -0
  74. package/docs/guide/package-management/why.md +55 -0
  75. package/docs/guide/vpx.md +1 -1
  76. package/package.json +12 -12
  77. 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1' &&
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.5.1 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.5.1') {
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.5.1 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) {
@@ -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-DLpJGhfK.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-D5f7inVN.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,9 +1,9 @@
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-5hVqz4kj.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-D5f7inVN.js";
6
+ import { o as readNearestPackageJson } from "./package-DLUCo6L_.js";
7
7
  import { t as cac } from "./dist-CdkMvIiQ.js";
8
8
  import { createRequire } from "node:module";
9
9
  import path, { dirname, join, resolve } from "node:path";
@@ -1537,7 +1537,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
1537
1537
  }
1538
1538
  if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
1539
1539
  const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
1540
- const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-BE3Wj9OX.js");
1540
+ const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-DLERIAbF.js");
1541
1541
  await fixBaseUrlInTsconfig(projectPath);
1542
1542
  const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
1543
1543
  const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
@@ -1805,6 +1805,18 @@ async function vite(err, context) {
1805
1805
  process.stdout;
1806
1806
  process.stderr;
1807
1807
  ensureBlockingStdio();
1808
+ /**
1809
+ * Loading a config through Vite imports `node:process` as ESM, and building that
1810
+ * namespace reads every `process` getter, so `process.stdin` is created and its
1811
+ * descriptor becomes non-blocking, TTY or pipe. Tasks inherit that descriptor, and a
1812
+ * blocking read there fails with EAGAIN. `ensureBlockingStdio()` leaves terminals
1813
+ * alone, so restore blocking reads through the stream handle, as `vpx` does before
1814
+ * exec.
1815
+ */
1816
+ function restoreBlockingStdin() {
1817
+ if (process.platform === "win32") return;
1818
+ process.stdin._handle?.setBlocking?.(true);
1819
+ }
1808
1820
  function getErrorMessage(err) {
1809
1821
  if (err instanceof Error) return err.message;
1810
1822
  if (typeof err === "object" && err && "message" in err && typeof err.message === "string") return err.message;
@@ -1875,8 +1887,10 @@ else try {
1875
1887
  toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
1876
1888
  vitePlusPackagePath,
1877
1889
  resolveUniversalViteConfig: async (err, cwd) => {
1878
- const { resolveUniversalViteConfig } = await import("./resolve-vite-config-33bzSaeT.js");
1879
- return resolveUniversalViteConfig(err, cwd);
1890
+ const { resolveUniversalViteConfig } = await import("./resolve-vite-config-D7IUZYKq.js");
1891
+ const config = await resolveUniversalViteConfig(err, cwd);
1892
+ restoreBlockingStdin();
1893
+ return config;
1880
1894
  },
1881
1895
  nodeVersion: process.version,
1882
1896
  explicitChdir,
@@ -1,7 +1,7 @@
1
- import { o as updateExistingAgentInstructions } from "../agent-DkQD3xqe.js";
1
+ import { o as updateExistingAgentInstructions } from "../agent-CowvWq3j.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-DLpJGhfK.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";
@@ -1,6 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  // package.json
3
- var version = "1.5.0";
3
+ var version = "1.5.1";
4
4
  var exports = {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -1,16 +1,16 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-DegdyBIC.js";
2
- import { A as text, E as multiselect, M as isCancel, O as select, S as normalize$1, T as log, a as resolveGitInit, c as selectPackageManager, d as readYamlFile, h as resolveApproveBuildTargets, i as promptGitHooks, j as require_picocolors, k as spinner, m as detectGatedBuilds, n as defaultInteractive, o as runViteFmt, p as approveBuilds, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, u as editYamlFile, v as DependencyType, w as intro, y as PackageManager } from "../prompts-C7DI63WP.js";
3
- import { $ as promptTsupMigration, B as isBingoTemplate, G as initGitRepository, H as updateWorkspaceConfig, I as createCatalogDependencyResolver, J as detectFramework, L as supportsCatalog, R as detectWorkspace$1, V as updatePackageJsonWithDeps, W as findGitRoot, Y as hasFrameworkShim, Z as detectTsupProject, a as selectEditors, c as rewriteMonorepoProject, h as setPackageManager, it as promptPrettierMigration, l as rewriteStandaloneProject, n as detectExistingEditors, nt as detectPrettierProject, o as writeEditorConfigs, q as addFrameworkShim, s as rewriteMonorepo, st as detectEslintProject, ut as promptEslintMigration, v as installGitHooks, w as injectCreateDefaultTemplate, x as shouldSkipStagedMigrationForHooks, z as discoverWorkspacePackages } from "../editor-aOy1T15H.js";
4
- import { a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as templatesDir, l as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID } from "../agent-DkQD3xqe.js";
2
+ import { A as text, E as multiselect, M as isCancel, O as select, S as normalize$1, T as log, a as resolveGitInit, c as selectPackageManager, d as readYamlFile, h as resolveApproveBuildTargets, i as promptGitHooks, j as require_picocolors, k as spinner, m as detectGatedBuilds, n as defaultInteractive, o as runViteFmt, p as approveBuilds, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, u as editYamlFile, v as DependencyType, w as intro, y as PackageManager } from "../prompts-DLpJGhfK.js";
3
+ import { $ as promptTsupMigration, B as isBingoTemplate, G as initGitRepository, H as updateWorkspaceConfig, I as createCatalogDependencyResolver, J as detectFramework, L as supportsCatalog, R as detectWorkspace$1, V as updatePackageJsonWithDeps, W as findGitRoot, Y as hasFrameworkShim, Z as detectTsupProject, a as selectEditors, c as rewriteMonorepoProject, h as setPackageManager, it as promptPrettierMigration, l as rewriteStandaloneProject, n as detectExistingEditors, nt as detectPrettierProject, o as writeEditorConfigs, q as addFrameworkShim, s as rewriteMonorepo, st as detectEslintProject, ut as promptEslintMigration, v as installGitHooks, w as injectCreateDefaultTemplate, x as shouldSkipStagedMigrationForHooks, z as discoverWorkspacePackages } from "../editor-BVaNnIey.js";
4
+ import { a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as templatesDir, l as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID } from "../agent-CowvWq3j.js";
5
5
  import { t as unwrapCliParseOutcome } from "../cli-parse-aeUeFDlC.js";
6
6
  import { t as documentationUrl$1 } from "../documentation-cv_y0Auv.js";
7
7
  import { t as renderCliDoc } from "../help-B03t_iQ4.js";
8
8
  import { i as readJsonFile, n as editJsonFile } from "../json-kl84kDyH.js";
9
9
  import { a as muted, i as log$1, o as printHeader, r as formatDuration, s as success, t as accent } from "../terminal-BcuPUy-j.js";
10
- import { c as getNpmRegistry, r as getScopeFromPackageName, s as fetchNpmResource, t as checkNpmPackageExists } from "../package-DfFo6-E-.js";
11
- import { a as resolveViteConfig, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-Cx3cnVVI.js";
10
+ import { c as getNpmRegistry, r as getScopeFromPackageName, s as fetchNpmResource, t as checkNpmPackageExists } from "../package-DLUCo6L_.js";
11
+ import { a as resolveViteConfig, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-D-JtjGRa.js";
12
12
  import { t as require_dist } from "../dist-Bs0SObNC.js";
13
- import { d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, u as VITE_PLUS_NAME } from "../constants-D2P2aVKb.js";
13
+ import { d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, u as VITE_PLUS_NAME } from "../constants-D5f7inVN.js";
14
14
  import { i as runCommandSilently, r as runCommand$1 } from "../command-rY79K5NI.js";
15
15
  import path from "node:path";
16
16
  import { findMonorepoRoot, getVpDirs, parseCreateArgs, removeConfigKey, runCommand, upsertJsonConfig, vitePlusHeader } from "../../binding/index.js";
@@ -4615,7 +4615,7 @@ function autoFixRemoteTemplateCommand(templateInfo, workspaceInfo) {
4615
4615
  } else if (packageName === "sv") {
4616
4616
  if (templateInfo.args[0] !== "create") templateInfo.args.unshift("create");
4617
4617
  templateInfo.args.push("--no-install");
4618
- }
4618
+ } else if (packageName === "create-react-router") templateInfo.args.push("--no-git-init");
4619
4619
  if (workspaceInfo.isMonorepo) {
4620
4620
  if (packageName === "create-nuxt") templateInfo.args.push("--no-gitInit");
4621
4621
  else if (packageName === "@tanstack/cli") templateInfo.args.push("--no-git");
@@ -75,7 +75,7 @@ function ignoreOutput(path) {
75
75
  var addon;
76
76
  var init_src = __esmMin((() => {}));
77
77
  // package.json
78
- var version = "1.5.0", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
78
+ var version = "1.5.1", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
79
79
  var init_constants = __esmMin((() => {
80
80
  VITE_PLUS_VERSION = process.env.VP_VERSION || version;
81
81
  VITEST_VERSION = "5.1.0";
@@ -1,4 +1,4 @@
1
- import { c as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-D2P2aVKb.js";
1
+ import { c as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-D5f7inVN.js";
2
2
  import { t as VITEST_RESOLVER_PACKAGES } from "./vitest-ecosystem-BeEYz-qF.js";
3
3
  import { createRequire } from "node:module";
4
4
  import path, { dirname, join, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_define_config = require("./define-config-CwtQqYC1.cjs");
2
+ const require_define_config = require("./define-config-BGCfAiIo.cjs");
3
3
  require_define_config.init_define_config();
4
4
  exports.AUTO_INLINE_DEPS = require_define_config.AUTO_INLINE_DEPS;
5
5
  exports.assertCoverageProviderVersionMatch = require_define_config.assertCoverageProviderVersionMatch;
@@ -1 +1 @@
1
- export { t as AUTO_INLINE_DEPS, n as assertCoverageProviderVersionMatch, r as checkCoverageProviderVersion, i as computeAutoInlineList, a as defineConfig, o as defineProject, s as isVitestFamilySpecifier, c as lazyPlugins, l as resolveConfigFromFile, u as resolveCoverageProviderToCheck, d as withConfigMetadataResolution } from "./define-config-wR57OZG_.js";
1
+ export { t as AUTO_INLINE_DEPS, n as assertCoverageProviderVersionMatch, r as checkCoverageProviderVersion, i as computeAutoInlineList, a as defineConfig, o as defineProject, s as isVitestFamilySpecifier, c as lazyPlugins, l as resolveConfigFromFile, u as resolveCoverageProviderToCheck, d as withConfigMetadataResolution } from "./define-config-XKYhw0xH.js";