vite-plus 1.5.1 → 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.
- package/binding/index.cjs +57 -56
- package/binding/index.d.cts +9 -0
- package/dist/{agent-CowvWq3j.js → agent-CTG3B-ec.js} +2 -2
- package/dist/bin.js +21 -6
- package/dist/{comparison-CmVirWIW-UlEf2maz.js → comparison-CmVirWIW-Z8p6CfWL.js} +4 -1
- package/dist/config/bin.js +2 -2
- package/dist/constants-DXqV1vWL.js +77 -0
- package/dist/create/bin.js +29 -34
- package/dist/{define-config-XKYhw0xH.js → define-config-CeYkQCqG.js} +1 -1
- package/dist/{define-config-BGCfAiIo.cjs → define-config-jt2Hyhp2.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-BVaNnIey.js → editor-C0U0Ymqk.js} +213 -83
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +9 -8
- package/dist/{oxlint-plugin-config-5hVqz4kj.js → oxlint-plugin-config-DvBRM_Se.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +1 -1
- package/dist/{package-DLUCo6L_.js → package-CK48ZXBV.js} +1 -1
- package/dist/{constants-D5f7inVN.js → package-Cc9gI1u1.js} +2 -77
- package/dist/{package-overrides-Ci8GXouY.js → package-overrides-nw4zcITi.js} +1 -1
- package/dist/{prompts-DLpJGhfK.js → prompts-JkuWOV60.js} +9 -5
- package/dist/{resolve-vite-config-D7IUZYKq.js → resolve-vite-config-CfUvxuCo.js} +1 -1
- package/dist/{resolve-vite-config-D-JtjGRa.js → resolve-vite-config-x5QVnaf4.js} +2 -2
- package/dist/staged/bin.js +1 -1
- package/dist/sync-versions/bin.js +1 -1
- package/dist/toolchain.js +7 -7
- package/dist/toolchain.json +7 -7
- package/dist/{tsconfig-DLERIAbF.js → tsconfig-CZlh956U.js} +1 -1
- package/dist/{tsconfig-D3DiCiW6.js → tsconfig-DUR3fhIX.js} +2 -2
- package/dist/user-agent-CpEaSTwI.js +6 -0
- package/dist/version.js +3 -2
- package/dist/versions.js +3 -3
- package/dist/vpx-bin.js +2 -0
- package/docs/config/run.md +8 -7
- package/docs/guide/automatic-data-tracking.md +138 -0
- package/docs/guide/check.md +13 -0
- package/docs/guide/global-cli.md +12 -2
- package/docs/guide/migrate-rules.md +3 -1
- package/docs/guide/migrate.md +4 -4
- package/docs/guide/run.md +22 -0
- package/package.json +17 -17
package/binding/index.cjs
CHANGED
|
@@ -98,12 +98,12 @@ function requireNative() {
|
|
|
98
98
|
const bindingPackageVersion =
|
|
99
99
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
100
100
|
if (
|
|
101
|
-
bindingPackageVersion !== '1.
|
|
101
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
102
102
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
103
103
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
104
104
|
) {
|
|
105
105
|
throw new Error(
|
|
106
|
-
`Native binding package version mismatch, expected 1.
|
|
106
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
return binding;
|
|
@@ -121,12 +121,12 @@ function requireNative() {
|
|
|
121
121
|
const bindingPackageVersion =
|
|
122
122
|
require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
|
|
123
123
|
if (
|
|
124
|
-
bindingPackageVersion !== '1.
|
|
124
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
125
125
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
126
126
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
127
127
|
) {
|
|
128
128
|
throw new Error(
|
|
129
|
-
`Native binding package version mismatch, expected 1.
|
|
129
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
132
|
return binding;
|
|
@@ -156,12 +156,12 @@ function requireNative() {
|
|
|
156
156
|
const bindingPackageVersion =
|
|
157
157
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
158
158
|
if (
|
|
159
|
-
bindingPackageVersion !== '1.
|
|
159
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
160
160
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
161
161
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
162
162
|
) {
|
|
163
163
|
throw new Error(
|
|
164
|
-
`Native binding package version mismatch, expected 1.
|
|
164
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
165
165
|
);
|
|
166
166
|
}
|
|
167
167
|
return binding;
|
|
@@ -179,12 +179,12 @@ function requireNative() {
|
|
|
179
179
|
const bindingPackageVersion =
|
|
180
180
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
181
181
|
if (
|
|
182
|
-
bindingPackageVersion !== '1.
|
|
182
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
183
183
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
184
184
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
185
185
|
) {
|
|
186
186
|
throw new Error(
|
|
187
|
-
`Native binding package version mismatch, expected 1.
|
|
187
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
return binding;
|
|
@@ -203,12 +203,12 @@ function requireNative() {
|
|
|
203
203
|
const bindingPackageVersion =
|
|
204
204
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
205
205
|
if (
|
|
206
|
-
bindingPackageVersion !== '1.
|
|
206
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
207
207
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
208
208
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
209
209
|
) {
|
|
210
210
|
throw new Error(
|
|
211
|
-
`Native binding package version mismatch, expected 1.
|
|
211
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
214
|
return binding;
|
|
@@ -226,12 +226,12 @@ function requireNative() {
|
|
|
226
226
|
const bindingPackageVersion =
|
|
227
227
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
228
228
|
if (
|
|
229
|
-
bindingPackageVersion !== '1.
|
|
229
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
230
230
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
231
231
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
232
232
|
) {
|
|
233
233
|
throw new Error(
|
|
234
|
-
`Native binding package version mismatch, expected 1.
|
|
234
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
return binding;
|
|
@@ -252,12 +252,12 @@ function requireNative() {
|
|
|
252
252
|
const bindingPackageVersion =
|
|
253
253
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
254
254
|
if (
|
|
255
|
-
bindingPackageVersion !== '1.
|
|
255
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
256
256
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
257
257
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
258
258
|
) {
|
|
259
259
|
throw new Error(
|
|
260
|
-
`Native binding package version mismatch, expected 1.
|
|
260
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
261
261
|
);
|
|
262
262
|
}
|
|
263
263
|
return binding;
|
|
@@ -275,12 +275,12 @@ function requireNative() {
|
|
|
275
275
|
const bindingPackageVersion =
|
|
276
276
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
277
277
|
if (
|
|
278
|
-
bindingPackageVersion !== '1.
|
|
278
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
279
279
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
280
280
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
281
281
|
) {
|
|
282
282
|
throw new Error(
|
|
283
|
-
`Native binding package version mismatch, expected 1.
|
|
283
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
return binding;
|
|
@@ -298,12 +298,12 @@ function requireNative() {
|
|
|
298
298
|
const bindingPackageVersion =
|
|
299
299
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
300
300
|
if (
|
|
301
|
-
bindingPackageVersion !== '1.
|
|
301
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
302
302
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
303
303
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
304
304
|
) {
|
|
305
305
|
throw new Error(
|
|
306
|
-
`Native binding package version mismatch, expected 1.
|
|
306
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
307
307
|
);
|
|
308
308
|
}
|
|
309
309
|
return binding;
|
|
@@ -325,12 +325,12 @@ function requireNative() {
|
|
|
325
325
|
const bindingPackageVersion =
|
|
326
326
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
327
327
|
if (
|
|
328
|
-
bindingPackageVersion !== '1.
|
|
328
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
329
329
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
330
330
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
331
331
|
) {
|
|
332
332
|
throw new Error(
|
|
333
|
-
`Native binding package version mismatch, expected 1.
|
|
333
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
334
334
|
);
|
|
335
335
|
}
|
|
336
336
|
return binding;
|
|
@@ -348,12 +348,12 @@ function requireNative() {
|
|
|
348
348
|
const bindingPackageVersion =
|
|
349
349
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
350
350
|
if (
|
|
351
|
-
bindingPackageVersion !== '1.
|
|
351
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
352
352
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
353
353
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
354
354
|
) {
|
|
355
355
|
throw new Error(
|
|
356
|
-
`Native binding package version mismatch, expected 1.
|
|
356
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
357
357
|
);
|
|
358
358
|
}
|
|
359
359
|
return binding;
|
|
@@ -371,12 +371,12 @@ function requireNative() {
|
|
|
371
371
|
const bindingPackageVersion =
|
|
372
372
|
require('@voidzero-dev/vite-plus-freebsd-ppc64/package.json').version;
|
|
373
373
|
if (
|
|
374
|
-
bindingPackageVersion !== '1.
|
|
374
|
+
bindingPackageVersion !== '1.6.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.
|
|
379
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
380
380
|
);
|
|
381
381
|
}
|
|
382
382
|
return binding;
|
|
@@ -399,12 +399,12 @@ function requireNative() {
|
|
|
399
399
|
const bindingPackageVersion =
|
|
400
400
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
401
401
|
if (
|
|
402
|
-
bindingPackageVersion !== '1.
|
|
402
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
403
403
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
404
404
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
405
405
|
) {
|
|
406
406
|
throw new Error(
|
|
407
|
-
`Native binding package version mismatch, expected 1.
|
|
407
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
410
|
return binding;
|
|
@@ -422,12 +422,12 @@ function requireNative() {
|
|
|
422
422
|
const bindingPackageVersion =
|
|
423
423
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
424
424
|
if (
|
|
425
|
-
bindingPackageVersion !== '1.
|
|
425
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
426
426
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
427
427
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
428
428
|
) {
|
|
429
429
|
throw new Error(
|
|
430
|
-
`Native binding package version mismatch, expected 1.
|
|
430
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
431
431
|
);
|
|
432
432
|
}
|
|
433
433
|
return binding;
|
|
@@ -447,12 +447,12 @@ function requireNative() {
|
|
|
447
447
|
const bindingPackageVersion =
|
|
448
448
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
449
449
|
if (
|
|
450
|
-
bindingPackageVersion !== '1.
|
|
450
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
451
451
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
452
452
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
453
453
|
) {
|
|
454
454
|
throw new Error(
|
|
455
|
-
`Native binding package version mismatch, expected 1.
|
|
455
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
456
456
|
);
|
|
457
457
|
}
|
|
458
458
|
return binding;
|
|
@@ -470,12 +470,12 @@ function requireNative() {
|
|
|
470
470
|
const bindingPackageVersion =
|
|
471
471
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
472
472
|
if (
|
|
473
|
-
bindingPackageVersion !== '1.
|
|
473
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
474
474
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
475
475
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
476
476
|
) {
|
|
477
477
|
throw new Error(
|
|
478
|
-
`Native binding package version mismatch, expected 1.
|
|
478
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
479
479
|
);
|
|
480
480
|
}
|
|
481
481
|
return binding;
|
|
@@ -495,12 +495,12 @@ function requireNative() {
|
|
|
495
495
|
const bindingPackageVersion =
|
|
496
496
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
497
497
|
if (
|
|
498
|
-
bindingPackageVersion !== '1.
|
|
498
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
499
499
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
500
500
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
501
501
|
) {
|
|
502
502
|
throw new Error(
|
|
503
|
-
`Native binding package version mismatch, expected 1.
|
|
503
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
504
504
|
);
|
|
505
505
|
}
|
|
506
506
|
return binding;
|
|
@@ -518,12 +518,12 @@ function requireNative() {
|
|
|
518
518
|
const bindingPackageVersion =
|
|
519
519
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
520
520
|
if (
|
|
521
|
-
bindingPackageVersion !== '1.
|
|
521
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
522
522
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
523
523
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
524
524
|
) {
|
|
525
525
|
throw new Error(
|
|
526
|
-
`Native binding package version mismatch, expected 1.
|
|
526
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
527
527
|
);
|
|
528
528
|
}
|
|
529
529
|
return binding;
|
|
@@ -543,12 +543,12 @@ function requireNative() {
|
|
|
543
543
|
const bindingPackageVersion =
|
|
544
544
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
545
545
|
if (
|
|
546
|
-
bindingPackageVersion !== '1.
|
|
546
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
547
547
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
548
548
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
549
549
|
) {
|
|
550
550
|
throw new Error(
|
|
551
|
-
`Native binding package version mismatch, expected 1.
|
|
551
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
552
552
|
);
|
|
553
553
|
}
|
|
554
554
|
return binding;
|
|
@@ -566,12 +566,12 @@ function requireNative() {
|
|
|
566
566
|
const bindingPackageVersion =
|
|
567
567
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
568
568
|
if (
|
|
569
|
-
bindingPackageVersion !== '1.
|
|
569
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
570
570
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
571
571
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
572
572
|
) {
|
|
573
573
|
throw new Error(
|
|
574
|
-
`Native binding package version mismatch, expected 1.
|
|
574
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
return binding;
|
|
@@ -591,12 +591,12 @@ function requireNative() {
|
|
|
591
591
|
const bindingPackageVersion =
|
|
592
592
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
593
593
|
if (
|
|
594
|
-
bindingPackageVersion !== '1.
|
|
594
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
595
595
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
596
596
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
597
597
|
) {
|
|
598
598
|
throw new Error(
|
|
599
|
-
`Native binding package version mismatch, expected 1.
|
|
599
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
600
600
|
);
|
|
601
601
|
}
|
|
602
602
|
return binding;
|
|
@@ -614,12 +614,12 @@ function requireNative() {
|
|
|
614
614
|
const bindingPackageVersion =
|
|
615
615
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
616
616
|
if (
|
|
617
|
-
bindingPackageVersion !== '1.
|
|
617
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
618
618
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
619
619
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
620
620
|
) {
|
|
621
621
|
throw new Error(
|
|
622
|
-
`Native binding package version mismatch, expected 1.
|
|
622
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
625
|
return binding;
|
|
@@ -638,12 +638,12 @@ function requireNative() {
|
|
|
638
638
|
const bindingPackageVersion =
|
|
639
639
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
640
640
|
if (
|
|
641
|
-
bindingPackageVersion !== '1.
|
|
641
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
642
642
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
643
643
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
644
644
|
) {
|
|
645
645
|
throw new Error(
|
|
646
|
-
`Native binding package version mismatch, expected 1.
|
|
646
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
647
647
|
);
|
|
648
648
|
}
|
|
649
649
|
return binding;
|
|
@@ -661,12 +661,12 @@ function requireNative() {
|
|
|
661
661
|
const bindingPackageVersion =
|
|
662
662
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
663
663
|
if (
|
|
664
|
-
bindingPackageVersion !== '1.
|
|
664
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
665
665
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
666
666
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
667
667
|
) {
|
|
668
668
|
throw new Error(
|
|
669
|
-
`Native binding package version mismatch, expected 1.
|
|
669
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
670
670
|
);
|
|
671
671
|
}
|
|
672
672
|
return binding;
|
|
@@ -688,12 +688,12 @@ function requireNative() {
|
|
|
688
688
|
const bindingPackageVersion =
|
|
689
689
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
690
690
|
if (
|
|
691
|
-
bindingPackageVersion !== '1.
|
|
691
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
692
692
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
693
693
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
694
694
|
) {
|
|
695
695
|
throw new Error(
|
|
696
|
-
`Native binding package version mismatch, expected 1.
|
|
696
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
697
697
|
);
|
|
698
698
|
}
|
|
699
699
|
return binding;
|
|
@@ -711,12 +711,12 @@ function requireNative() {
|
|
|
711
711
|
const bindingPackageVersion =
|
|
712
712
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
713
713
|
if (
|
|
714
|
-
bindingPackageVersion !== '1.
|
|
714
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
715
715
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
716
716
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
717
717
|
) {
|
|
718
718
|
throw new Error(
|
|
719
|
-
`Native binding package version mismatch, expected 1.
|
|
719
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
720
720
|
);
|
|
721
721
|
}
|
|
722
722
|
return binding;
|
|
@@ -734,12 +734,12 @@ function requireNative() {
|
|
|
734
734
|
const bindingPackageVersion =
|
|
735
735
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
736
736
|
if (
|
|
737
|
-
bindingPackageVersion !== '1.
|
|
737
|
+
bindingPackageVersion !== '1.6.0' &&
|
|
738
738
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
739
739
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
740
740
|
) {
|
|
741
741
|
throw new Error(
|
|
742
|
-
`Native binding package version mismatch, expected 1.
|
|
742
|
+
`Native binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
745
|
return binding;
|
|
@@ -886,9 +886,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
886
886
|
) {
|
|
887
887
|
const bindingPackageVersion =
|
|
888
888
|
require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
|
|
889
|
-
if (bindingPackageVersion !== '1.
|
|
889
|
+
if (bindingPackageVersion !== '1.6.0') {
|
|
890
890
|
throw new Error(
|
|
891
|
-
`WASI binding package version mismatch, expected 1.
|
|
891
|
+
`WASI binding package version mismatch, expected 1.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
892
892
|
);
|
|
893
893
|
}
|
|
894
894
|
}
|
|
@@ -1108,6 +1108,7 @@ module.exports.documentationUrl = nativeBinding.documentationUrl;
|
|
|
1108
1108
|
module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
|
|
1109
1109
|
module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
|
|
1110
1110
|
module.exports.findMonorepoRoot = nativeBinding.findMonorepoRoot;
|
|
1111
|
+
module.exports.getPackageManagerOverride = nativeBinding.getPackageManagerOverride;
|
|
1111
1112
|
module.exports.getVpDirs = nativeBinding.getVpDirs;
|
|
1112
1113
|
module.exports.hasConfigKey = nativeBinding.hasConfigKey;
|
|
1113
1114
|
module.exports.isDirectoryGitignored = nativeBinding.isDirectoryGitignored;
|
package/binding/index.d.cts
CHANGED
|
@@ -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-
|
|
2
|
-
import { a as SETUP_VP_VERSION } from "./constants-
|
|
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-
|
|
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-
|
|
6
|
-
import { o as readNearestPackageJson } from "./package-
|
|
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-
|
|
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,6 +1816,7 @@ 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();
|
|
@@ -1887,7 +1902,7 @@ else try {
|
|
|
1887
1902
|
toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
|
|
1888
1903
|
vitePlusPackagePath,
|
|
1889
1904
|
resolveUniversalViteConfig: async (err, cwd) => {
|
|
1890
|
-
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-
|
|
1905
|
+
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-CfUvxuCo.js");
|
|
1891
1906
|
const config = await resolveUniversalViteConfig(err, cwd);
|
|
1892
1907
|
restoreBlockingStdin();
|
|
1893
1908
|
return config;
|
|
@@ -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,
|
|
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 };
|
package/dist/config/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as updateExistingAgentInstructions } from "../agent-
|
|
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-
|
|
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";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { r as version } from "./package-Cc9gI1u1.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
// src/utils/constants.ts
|
|
4
|
+
const VITE_PLUS_NAME = "vite-plus";
|
|
5
|
+
const VITE_PLUS_VERSION = process.env.VP_VERSION || version;
|
|
6
|
+
const VITE_CONFIG_FILES = [
|
|
7
|
+
"vite.config.js",
|
|
8
|
+
"vite.config.mjs",
|
|
9
|
+
"vite.config.ts",
|
|
10
|
+
"vite.config.cjs",
|
|
11
|
+
"vite.config.mts",
|
|
12
|
+
"vite.config.cts"
|
|
13
|
+
];
|
|
14
|
+
const VITEST_VERSION = "5.1.0";
|
|
15
|
+
const SETUP_VP_VERSION = "v1.21.2";
|
|
16
|
+
const TSDOWN_MIGRATION_SKILL_URL = "https://github.com/rolldown/tsdown/blob/main/skills/tsdown-migrate/SKILL.md";
|
|
17
|
+
const VITE_PLUS_OVERRIDE_PACKAGES = process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : {
|
|
18
|
+
vite: `npm:@voidzero-dev/vite-plus-core@${VITE_PLUS_VERSION}`,
|
|
19
|
+
vitest: VITEST_VERSION
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Package-name patterns the migrator exempts from a package manager's
|
|
23
|
+
* "minimum release age" gate (pnpm `minimumReleaseAgeExclude` / Yarn
|
|
24
|
+
* `npmPreapprovedPackages`).
|
|
25
|
+
*
|
|
26
|
+
* Vite+ pins `vitest` to an exact, sometimes freshly published version, and the
|
|
27
|
+
* in-tree `@vitest/*` siblings install transitively at that same version, so an
|
|
28
|
+
* age gate would otherwise quarantine the Vite+-managed family and break
|
|
29
|
+
* `vp install`. The `@vitest/*` glob also covers the optional `@vitest/browser-*`
|
|
30
|
+
* peers the migrator pins for browser projects. This does NOT pin or manage any
|
|
31
|
+
* package — it only lets the chosen versions through the user's gate, including
|
|
32
|
+
* the `@vitest/coverage-*` version the coverage guard asks the user to align to
|
|
33
|
+
* the bundled vitest.
|
|
34
|
+
*/
|
|
35
|
+
const VITEST_AGE_GATE_EXEMPT_PACKAGES = ["vitest", "@vitest/*"];
|
|
36
|
+
/**
|
|
37
|
+
* When VP_FORCE_MIGRATE is set, force full dependency rewriting
|
|
38
|
+
* even for projects already using vite-plus. Used by ecosystem CI to
|
|
39
|
+
* override dependencies with locally built tgz packages.
|
|
40
|
+
*/
|
|
41
|
+
function isForceOverrideMode() {
|
|
42
|
+
return process.env.VP_FORCE_MIGRATE === "1";
|
|
43
|
+
}
|
|
44
|
+
const require = createRequire(import.meta.url);
|
|
45
|
+
function resolve(path) {
|
|
46
|
+
return require.resolve(path, { paths: [process.cwd(), import.meta.dirname] });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Like {@link resolve}, but prefers the copy shipped with the CLI
|
|
50
|
+
* (`import.meta.dirname`) over the project's (`process.cwd()`).
|
|
51
|
+
*
|
|
52
|
+
* Use this for runtime modules that MUST match what `vite-plus/test*`
|
|
53
|
+
* imports resolve to — chiefly the Vitest runner binary. The `vite-plus/test`
|
|
54
|
+
* shims `export * from 'vitest'`, which Node resolves to vite-plus's own
|
|
55
|
+
* bundled (pinned) Vitest. If `vp test` instead spawned a project-local
|
|
56
|
+
* Vitest (a different physical copy/version), the runner and the imported
|
|
57
|
+
* `vi`/`expect`/runner internals would come from two distinct Vitest
|
|
58
|
+
* modules — a classic source of Vitest internal-state and mock-hoisting
|
|
59
|
+
* mismatches. `process.cwd()` stays as a fallback for layouts where the
|
|
60
|
+
* bundled copy is somehow unreachable, so this is never worse than {@link resolve}.
|
|
61
|
+
*/
|
|
62
|
+
function resolveBundled(path) {
|
|
63
|
+
return require.resolve(path, { paths: [import.meta.dirname, process.cwd()] });
|
|
64
|
+
}
|
|
65
|
+
const BASEURL_TSCONFIG_WARNING = "Skipped typeAware/typeCheck: a tsconfig file contains baseUrl which is not yet supported by the oxlint type checker.\n Run `vp dlx @andrewbranch/ts5to6 --fixBaseUrl <tsconfig path>` to remove baseUrl from your tsconfig.";
|
|
66
|
+
const BASEURL_TSCONFIG_FIX_PACKAGE = "@andrewbranch/ts5to6";
|
|
67
|
+
const BASEURL_TSCONFIG_FIX_FLAG = "--fixBaseUrl";
|
|
68
|
+
function createBaseUrlTsconfigFixArgs(target = ".") {
|
|
69
|
+
return [BASEURL_TSCONFIG_FIX_FLAG, target];
|
|
70
|
+
}
|
|
71
|
+
const DEFAULT_ENVS = {
|
|
72
|
+
JS_RUNTIME_VERSION: process.versions.node,
|
|
73
|
+
JS_RUNTIME_NAME: process.release.name,
|
|
74
|
+
NODE_PACKAGE_MANAGER: "vite-plus"
|
|
75
|
+
};
|
|
76
|
+
const CONFIG_METADATA_ENV = "VP_RESOLVING_CONFIG_METADATA";
|
|
77
|
+
export { SETUP_VP_VERSION as a, VITEST_VERSION as c, VITE_PLUS_OVERRIDE_PACKAGES as d, VITE_PLUS_VERSION as f, resolveBundled as g, resolve as h, DEFAULT_ENVS as i, VITE_CONFIG_FILES as l, isForceOverrideMode as m, BASEURL_TSCONFIG_WARNING as n, TSDOWN_MIGRATION_SKILL_URL as o, createBaseUrlTsconfigFixArgs as p, CONFIG_METADATA_ENV as r, VITEST_AGE_GATE_EXEMPT_PACKAGES as s, BASEURL_TSCONFIG_FIX_PACKAGE as t, VITE_PLUS_NAME as u };
|