vite-plus 0.2.5 → 0.2.6
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 +52 -52
- package/binding/index.d.cts +27 -16
- package/dist/{agent-CTwqJqX_.js → agent-0gFJkIKu.js} +16 -13
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +4 -4
- package/dist/config/bin.d.ts +1 -1
- package/dist/config/bin.js +2 -2
- package/dist/{constants-JhDwfMS8.js → constants-CaXMuYUG.js} +1 -1
- package/dist/create/bin.js +6 -6
- package/dist/{define-config-BRT5X5UW.js → define-config-hV8qyU8p.js} +2 -2
- package/dist/{define-config-DD3MUyPC.cjs → define-config-iGV0CGUk.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-H_E_5XOt.js → editor-D4T70tKk.js} +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/migration/bin.d.ts +1 -1
- package/dist/migration/bin.js +5 -5
- package/dist/migration/compat/worker.d.ts +1 -1
- package/dist/{oxlint-plugin-config-CnUfwCp9.js → oxlint-plugin-config-CMSCIkks.js} +1 -1
- package/dist/oxlint-plugin.js +1 -1
- package/dist/pack-bin.js +1 -1
- package/dist/{package-BILvlUYF.js → package-CP5EUXlu.js} +1 -1
- package/dist/{resolve-vite-config-BheiDkKa.js → resolve-vite-config-BY7PB-LW.js} +1 -1
- package/dist/staged/bin.d.ts +1 -1
- package/dist/staged/bin.js +1 -1
- package/dist/{tsconfig-D2NvUjn3.js → tsconfig-Cac-NNdT.js} +1 -1
- package/dist/version.js +2 -2
- package/dist/versions.js +6 -6
- package/docs/guide/github-actions-cache.md +2 -2
- package/docs/guide/installer-env-vars.md +2 -2
- package/package.json +20 -20
package/binding/index.cjs
CHANGED
|
@@ -81,12 +81,12 @@ function requireNative() {
|
|
|
81
81
|
const bindingPackageVersion =
|
|
82
82
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
83
83
|
if (
|
|
84
|
-
bindingPackageVersion !== '0.2.
|
|
84
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
85
85
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
86
86
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
87
87
|
) {
|
|
88
88
|
throw new Error(
|
|
89
|
-
`Native binding package version mismatch, expected 0.2.
|
|
89
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
return binding;
|
|
@@ -104,12 +104,12 @@ function requireNative() {
|
|
|
104
104
|
const bindingPackageVersion =
|
|
105
105
|
require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
|
|
106
106
|
if (
|
|
107
|
-
bindingPackageVersion !== '0.2.
|
|
107
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
108
108
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
109
109
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
110
110
|
) {
|
|
111
111
|
throw new Error(
|
|
112
|
-
`Native binding package version mismatch, expected 0.2.
|
|
112
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
return binding;
|
|
@@ -139,12 +139,12 @@ function requireNative() {
|
|
|
139
139
|
const bindingPackageVersion =
|
|
140
140
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
141
141
|
if (
|
|
142
|
-
bindingPackageVersion !== '0.2.
|
|
142
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
143
143
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
144
144
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
145
145
|
) {
|
|
146
146
|
throw new Error(
|
|
147
|
-
`Native binding package version mismatch, expected 0.2.
|
|
147
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
return binding;
|
|
@@ -162,12 +162,12 @@ function requireNative() {
|
|
|
162
162
|
const bindingPackageVersion =
|
|
163
163
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
164
164
|
if (
|
|
165
|
-
bindingPackageVersion !== '0.2.
|
|
165
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
166
166
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
167
167
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
168
168
|
) {
|
|
169
169
|
throw new Error(
|
|
170
|
-
`Native binding package version mismatch, expected 0.2.
|
|
170
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
return binding;
|
|
@@ -186,12 +186,12 @@ function requireNative() {
|
|
|
186
186
|
const bindingPackageVersion =
|
|
187
187
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
188
188
|
if (
|
|
189
|
-
bindingPackageVersion !== '0.2.
|
|
189
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
190
190
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
191
191
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
192
192
|
) {
|
|
193
193
|
throw new Error(
|
|
194
|
-
`Native binding package version mismatch, expected 0.2.
|
|
194
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
return binding;
|
|
@@ -209,12 +209,12 @@ function requireNative() {
|
|
|
209
209
|
const bindingPackageVersion =
|
|
210
210
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
211
211
|
if (
|
|
212
|
-
bindingPackageVersion !== '0.2.
|
|
212
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
213
213
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
214
214
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
215
215
|
) {
|
|
216
216
|
throw new Error(
|
|
217
|
-
`Native binding package version mismatch, expected 0.2.
|
|
217
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
return binding;
|
|
@@ -235,12 +235,12 @@ function requireNative() {
|
|
|
235
235
|
const bindingPackageVersion =
|
|
236
236
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
237
237
|
if (
|
|
238
|
-
bindingPackageVersion !== '0.2.
|
|
238
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
239
239
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
240
240
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
241
241
|
) {
|
|
242
242
|
throw new Error(
|
|
243
|
-
`Native binding package version mismatch, expected 0.2.
|
|
243
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
246
|
return binding;
|
|
@@ -258,12 +258,12 @@ function requireNative() {
|
|
|
258
258
|
const bindingPackageVersion =
|
|
259
259
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
260
260
|
if (
|
|
261
|
-
bindingPackageVersion !== '0.2.
|
|
261
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
262
262
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
263
263
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
264
264
|
) {
|
|
265
265
|
throw new Error(
|
|
266
|
-
`Native binding package version mismatch, expected 0.2.
|
|
266
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
return binding;
|
|
@@ -281,12 +281,12 @@ function requireNative() {
|
|
|
281
281
|
const bindingPackageVersion =
|
|
282
282
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
283
283
|
if (
|
|
284
|
-
bindingPackageVersion !== '0.2.
|
|
284
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
285
285
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
286
286
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
287
287
|
) {
|
|
288
288
|
throw new Error(
|
|
289
|
-
`Native binding package version mismatch, expected 0.2.
|
|
289
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
292
|
return binding;
|
|
@@ -308,12 +308,12 @@ function requireNative() {
|
|
|
308
308
|
const bindingPackageVersion =
|
|
309
309
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
310
310
|
if (
|
|
311
|
-
bindingPackageVersion !== '0.2.
|
|
311
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
312
312
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
313
313
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
314
314
|
) {
|
|
315
315
|
throw new Error(
|
|
316
|
-
`Native binding package version mismatch, expected 0.2.
|
|
316
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
319
|
return binding;
|
|
@@ -331,12 +331,12 @@ function requireNative() {
|
|
|
331
331
|
const bindingPackageVersion =
|
|
332
332
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
333
333
|
if (
|
|
334
|
-
bindingPackageVersion !== '0.2.
|
|
334
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
335
335
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
336
336
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
337
337
|
) {
|
|
338
338
|
throw new Error(
|
|
339
|
-
`Native binding package version mismatch, expected 0.2.
|
|
339
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
return binding;
|
|
@@ -359,12 +359,12 @@ function requireNative() {
|
|
|
359
359
|
const bindingPackageVersion =
|
|
360
360
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
361
361
|
if (
|
|
362
|
-
bindingPackageVersion !== '0.2.
|
|
362
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
363
363
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
364
364
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
365
365
|
) {
|
|
366
366
|
throw new Error(
|
|
367
|
-
`Native binding package version mismatch, expected 0.2.
|
|
367
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
370
|
return binding;
|
|
@@ -382,12 +382,12 @@ function requireNative() {
|
|
|
382
382
|
const bindingPackageVersion =
|
|
383
383
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
384
384
|
if (
|
|
385
|
-
bindingPackageVersion !== '0.2.
|
|
385
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
386
386
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
387
387
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
388
388
|
) {
|
|
389
389
|
throw new Error(
|
|
390
|
-
`Native binding package version mismatch, expected 0.2.
|
|
390
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
393
|
return binding;
|
|
@@ -407,12 +407,12 @@ function requireNative() {
|
|
|
407
407
|
const bindingPackageVersion =
|
|
408
408
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
409
409
|
if (
|
|
410
|
-
bindingPackageVersion !== '0.2.
|
|
410
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
411
411
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
412
412
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
413
413
|
) {
|
|
414
414
|
throw new Error(
|
|
415
|
-
`Native binding package version mismatch, expected 0.2.
|
|
415
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
return binding;
|
|
@@ -430,12 +430,12 @@ function requireNative() {
|
|
|
430
430
|
const bindingPackageVersion =
|
|
431
431
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
432
432
|
if (
|
|
433
|
-
bindingPackageVersion !== '0.2.
|
|
433
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
434
434
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
435
435
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
436
436
|
) {
|
|
437
437
|
throw new Error(
|
|
438
|
-
`Native binding package version mismatch, expected 0.2.
|
|
438
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
441
|
return binding;
|
|
@@ -455,12 +455,12 @@ function requireNative() {
|
|
|
455
455
|
const bindingPackageVersion =
|
|
456
456
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
457
457
|
if (
|
|
458
|
-
bindingPackageVersion !== '0.2.
|
|
458
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
459
459
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
460
460
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
461
461
|
) {
|
|
462
462
|
throw new Error(
|
|
463
|
-
`Native binding package version mismatch, expected 0.2.
|
|
463
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
return binding;
|
|
@@ -478,12 +478,12 @@ function requireNative() {
|
|
|
478
478
|
const bindingPackageVersion =
|
|
479
479
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
480
480
|
if (
|
|
481
|
-
bindingPackageVersion !== '0.2.
|
|
481
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
482
482
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
483
483
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
484
484
|
) {
|
|
485
485
|
throw new Error(
|
|
486
|
-
`Native binding package version mismatch, expected 0.2.
|
|
486
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
return binding;
|
|
@@ -503,12 +503,12 @@ function requireNative() {
|
|
|
503
503
|
const bindingPackageVersion =
|
|
504
504
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
505
505
|
if (
|
|
506
|
-
bindingPackageVersion !== '0.2.
|
|
506
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
507
507
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
508
508
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
509
509
|
) {
|
|
510
510
|
throw new Error(
|
|
511
|
-
`Native binding package version mismatch, expected 0.2.
|
|
511
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
514
|
return binding;
|
|
@@ -526,12 +526,12 @@ function requireNative() {
|
|
|
526
526
|
const bindingPackageVersion =
|
|
527
527
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
528
528
|
if (
|
|
529
|
-
bindingPackageVersion !== '0.2.
|
|
529
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
530
530
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
531
531
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
532
532
|
) {
|
|
533
533
|
throw new Error(
|
|
534
|
-
`Native binding package version mismatch, expected 0.2.
|
|
534
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
return binding;
|
|
@@ -551,12 +551,12 @@ function requireNative() {
|
|
|
551
551
|
const bindingPackageVersion =
|
|
552
552
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
553
553
|
if (
|
|
554
|
-
bindingPackageVersion !== '0.2.
|
|
554
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
555
555
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
556
556
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
557
557
|
) {
|
|
558
558
|
throw new Error(
|
|
559
|
-
`Native binding package version mismatch, expected 0.2.
|
|
559
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
562
|
return binding;
|
|
@@ -574,12 +574,12 @@ function requireNative() {
|
|
|
574
574
|
const bindingPackageVersion =
|
|
575
575
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
576
576
|
if (
|
|
577
|
-
bindingPackageVersion !== '0.2.
|
|
577
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
578
578
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
579
579
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
580
580
|
) {
|
|
581
581
|
throw new Error(
|
|
582
|
-
`Native binding package version mismatch, expected 0.2.
|
|
582
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
return binding;
|
|
@@ -598,12 +598,12 @@ function requireNative() {
|
|
|
598
598
|
const bindingPackageVersion =
|
|
599
599
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
600
600
|
if (
|
|
601
|
-
bindingPackageVersion !== '0.2.
|
|
601
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
602
602
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
603
603
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
604
604
|
) {
|
|
605
605
|
throw new Error(
|
|
606
|
-
`Native binding package version mismatch, expected 0.2.
|
|
606
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
609
|
return binding;
|
|
@@ -621,12 +621,12 @@ function requireNative() {
|
|
|
621
621
|
const bindingPackageVersion =
|
|
622
622
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
623
623
|
if (
|
|
624
|
-
bindingPackageVersion !== '0.2.
|
|
624
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
625
625
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
626
626
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
627
627
|
) {
|
|
628
628
|
throw new Error(
|
|
629
|
-
`Native binding package version mismatch, expected 0.2.
|
|
629
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
632
|
return binding;
|
|
@@ -648,12 +648,12 @@ function requireNative() {
|
|
|
648
648
|
const bindingPackageVersion =
|
|
649
649
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
650
650
|
if (
|
|
651
|
-
bindingPackageVersion !== '0.2.
|
|
651
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
652
652
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
653
653
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
654
654
|
) {
|
|
655
655
|
throw new Error(
|
|
656
|
-
`Native binding package version mismatch, expected 0.2.
|
|
656
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
659
|
return binding;
|
|
@@ -671,12 +671,12 @@ function requireNative() {
|
|
|
671
671
|
const bindingPackageVersion =
|
|
672
672
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
673
673
|
if (
|
|
674
|
-
bindingPackageVersion !== '0.2.
|
|
674
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
675
675
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
676
676
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
677
677
|
) {
|
|
678
678
|
throw new Error(
|
|
679
|
-
`Native binding package version mismatch, expected 0.2.
|
|
679
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
680
680
|
);
|
|
681
681
|
}
|
|
682
682
|
return binding;
|
|
@@ -694,12 +694,12 @@ function requireNative() {
|
|
|
694
694
|
const bindingPackageVersion =
|
|
695
695
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
696
696
|
if (
|
|
697
|
-
bindingPackageVersion !== '0.2.
|
|
697
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
698
698
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
699
699
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
700
700
|
) {
|
|
701
701
|
throw new Error(
|
|
702
|
-
`Native binding package version mismatch, expected 0.2.
|
|
702
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
705
|
return binding;
|
package/binding/index.d.cts
CHANGED
|
@@ -1631,11 +1631,16 @@ export declare class BindingDevEngine {
|
|
|
1631
1631
|
getBundleState(): Promise<BindingBundleState>;
|
|
1632
1632
|
ensureLatestBuildOutput(): Promise<BindingResult<undefined>>;
|
|
1633
1633
|
triggerFullBuild(): void;
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1634
|
+
/**
|
|
1635
|
+
* Client-connect signal (the clientId hello): creates the per-client session
|
|
1636
|
+
* with an empty ship map. Reconnects arrive as fresh clientIds.
|
|
1637
|
+
*/
|
|
1638
|
+
registerClient(clientId: string): Promise<void>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Delivery notification from the serving middleware: the response for
|
|
1641
|
+
* `filename` completed, so record its modules as shipped to that client.
|
|
1642
|
+
*/
|
|
1643
|
+
notifyPayloadDelivered(filename: string): Promise<void>;
|
|
1639
1644
|
removeClient(clientId: string): Promise<void>;
|
|
1640
1645
|
close(): Promise<void>;
|
|
1641
1646
|
/**
|
|
@@ -1645,7 +1650,7 @@ export declare class BindingDevEngine {
|
|
|
1645
1650
|
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
1646
1651
|
* actual module and its dependencies.
|
|
1647
1652
|
*/
|
|
1648
|
-
compileEntry(moduleId: string, clientId: string): Promise<
|
|
1653
|
+
compileEntry(moduleId: string, clientId: string): Promise<BindingLazyChunkOutput>;
|
|
1649
1654
|
}
|
|
1650
1655
|
|
|
1651
1656
|
export declare class BindingLoadPluginContext {
|
|
@@ -2355,19 +2360,18 @@ export interface BindingGeneratedCodeOptions {
|
|
|
2355
2360
|
preset?: string;
|
|
2356
2361
|
}
|
|
2357
2362
|
|
|
2358
|
-
export interface BindingHmrBoundaryOutput {
|
|
2359
|
-
boundary: string;
|
|
2360
|
-
acceptedVia: string;
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
2363
|
export type BindingHmrUpdate =
|
|
2364
2364
|
| {
|
|
2365
2365
|
type: 'Patch';
|
|
2366
2366
|
code: string;
|
|
2367
2367
|
filename: string;
|
|
2368
2368
|
sourcemap?: string;
|
|
2369
|
-
sourcemapFilename?: string
|
|
2370
|
-
|
|
2369
|
+
sourcemapFilename?: string /**
|
|
2370
|
+
* Stable ids of the changed modules — the `changedIds` of the push envelope.
|
|
2371
|
+
* The client walks from these on its own graph.
|
|
2372
|
+
*/;
|
|
2373
|
+
changedIds: Array<string> /** Per-client envelope sequence number. */;
|
|
2374
|
+
seq: number;
|
|
2371
2375
|
}
|
|
2372
2376
|
| { type: 'FullReload'; reason?: string }
|
|
2373
2377
|
| { type: 'Noop' };
|
|
@@ -2538,6 +2542,15 @@ export interface BindingJsWatchChangeEvent {
|
|
|
2538
2542
|
event: string;
|
|
2539
2543
|
}
|
|
2540
2544
|
|
|
2545
|
+
/**
|
|
2546
|
+
* The client-facing slice of a lazy-compile result. The carried modules and
|
|
2547
|
+
* stamps stay server-side as the engine's pending-payload entry.
|
|
2548
|
+
*/
|
|
2549
|
+
export interface BindingLazyChunkOutput {
|
|
2550
|
+
code: string;
|
|
2551
|
+
filename: string;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2541
2554
|
export interface BindingLog {
|
|
2542
2555
|
message: string;
|
|
2543
2556
|
id?: string;
|
|
@@ -2843,8 +2856,7 @@ export declare const enum BindingPropertyWriteSideEffects {
|
|
|
2843
2856
|
|
|
2844
2857
|
export declare const enum BindingRebuildStrategy {
|
|
2845
2858
|
Always = 0,
|
|
2846
|
-
|
|
2847
|
-
Never = 2,
|
|
2859
|
+
Never = 1,
|
|
2848
2860
|
}
|
|
2849
2861
|
|
|
2850
2862
|
export interface BindingReplacePluginConfig {
|
|
@@ -3189,7 +3201,6 @@ export interface JsOutputChunk {
|
|
|
3189
3201
|
map?: BindingSourcemap;
|
|
3190
3202
|
sourcemapFilename?: string;
|
|
3191
3203
|
preliminaryFilename: string;
|
|
3192
|
-
preliminarySourcemapFilename?: string;
|
|
3193
3204
|
}
|
|
3194
3205
|
|
|
3195
3206
|
/** Error emitted from native side, it only contains kind and message, no stack trace. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-C7HZzL1F.js";
|
|
2
|
-
import { a as VITEST_AGE_GATE_EXEMPT_PACKAGES, c as VITE_PLUS_OVERRIDE_PACKAGES, d as isForceOverrideMode, l as VITE_PLUS_VERSION, n as BASEURL_TSCONFIG_WARNING, o as VITEST_VERSION, s as VITE_PLUS_NAME } from "./constants-
|
|
3
|
-
import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-
|
|
4
|
-
import { B as runCommandSilently, D as require_semver, E as PackageManager, M as multiselect, P as select, R as isCancel, V as require_cross_spawn, a as hasTypesToRewriteInTsconfig, b as scalarString, c as rewriteTypesInTsconfig, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, n as findTsconfigFiles, o as hasVitestTypesInTsconfig, s as removeDeprecatedTsconfigFalseOption, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-
|
|
2
|
+
import { a as VITEST_AGE_GATE_EXEMPT_PACKAGES, c as VITE_PLUS_OVERRIDE_PACKAGES, d as isForceOverrideMode, l as VITE_PLUS_VERSION, n as BASEURL_TSCONFIG_WARNING, o as VITEST_VERSION, s as VITE_PLUS_NAME } from "./constants-CaXMuYUG.js";
|
|
3
|
+
import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CMSCIkks.js";
|
|
4
|
+
import { B as runCommandSilently, D as require_semver, E as PackageManager, M as multiselect, P as select, R as isCancel, V as require_cross_spawn, a as hasTypesToRewriteInTsconfig, b as scalarString, c as rewriteTypesInTsconfig, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, n as findTsconfigFiles, o as hasVitestTypesInTsconfig, s as removeDeprecatedTsconfigFalseOption, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-Cac-NNdT.js";
|
|
5
5
|
import { a as writeJsonFile, i as readJsonFile, n as editJsonFile, r as isJsonFile } from "./json-DiRs8ceZ.js";
|
|
6
6
|
import { t as require_dist } from "./dist-CKz3vcoG.js";
|
|
7
|
-
import { n as detectPackageMetadata } from "./package-
|
|
7
|
+
import { n as detectPackageMetadata } from "./package-CP5EUXlu.js";
|
|
8
8
|
import { n as addMigrationWarning, t as addManualStep } from "./report-BS7ULx7A.js";
|
|
9
9
|
import path, { posix, win32 } from "node:path";
|
|
10
10
|
import { hasConfigKey, mergeJsonConfig, mergeTsdownConfig, rewriteEslint, rewriteImportsInDirectory, rewriteScripts, wrapLazyPlugins } from "../binding/index.js";
|
|
@@ -6521,23 +6521,26 @@ const PNPM_MINIMUM_RELEASE_AGE_EXCLUDES = [
|
|
|
6521
6521
|
"@oxfmt/*",
|
|
6522
6522
|
...VITEST_AGE_GATE_EXEMPT_PACKAGES
|
|
6523
6523
|
];
|
|
6524
|
+
function versionAtLeast(version, minVersion, tags) {
|
|
6525
|
+
const coerced = import_semver.default.coerce(version);
|
|
6526
|
+
if (coerced) return import_semver.default.gte(coerced, minVersion);
|
|
6527
|
+
return tags.includes(version);
|
|
6528
|
+
}
|
|
6524
6529
|
const PNPM_WORKSPACE_SETTINGS_MIN_VERSION = "10.6.2";
|
|
6525
6530
|
function pnpmSupportsWorkspaceSettings(version) {
|
|
6526
|
-
|
|
6527
|
-
if (coerced) return import_semver.default.gte(coerced, PNPM_WORKSPACE_SETTINGS_MIN_VERSION);
|
|
6528
|
-
return version === "latest" || version === "next";
|
|
6531
|
+
return versionAtLeast(version, PNPM_WORKSPACE_SETTINGS_MIN_VERSION, ["latest", "next"]);
|
|
6529
6532
|
}
|
|
6530
6533
|
const PNPM_CATALOG_MIN_VERSION = "9.5.0";
|
|
6531
6534
|
function pnpmSupportsCatalog(version) {
|
|
6532
|
-
|
|
6533
|
-
if (coerced) return import_semver.default.gte(coerced, PNPM_CATALOG_MIN_VERSION);
|
|
6534
|
-
return version === "latest" || version === "next";
|
|
6535
|
+
return versionAtLeast(version, PNPM_CATALOG_MIN_VERSION, ["latest", "next"]);
|
|
6535
6536
|
}
|
|
6536
6537
|
const YARN_CATALOG_MIN_VERSION = "4.10.0";
|
|
6537
6538
|
function yarnSupportsCatalog(version) {
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6539
|
+
return versionAtLeast(version, YARN_CATALOG_MIN_VERSION, [
|
|
6540
|
+
"latest",
|
|
6541
|
+
"next",
|
|
6542
|
+
"stable"
|
|
6543
|
+
]);
|
|
6541
6544
|
}
|
|
6542
6545
|
function supportsCatalog(packageManager, version, isBunWorkspace = false) {
|
|
6543
6546
|
switch (packageManager) {
|
package/dist/bin.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/dist/bin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { f as resolve$1, i as DEFAULT_ENVS, n as BASEURL_TSCONFIG_WARNING, p as resolveBundled, r as CONFIG_METADATA_ENV, s as VITE_PLUS_NAME } from "./constants-
|
|
2
|
-
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-
|
|
3
|
-
import { B as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-
|
|
1
|
+
import { f as resolve$1, i as DEFAULT_ENVS, n as BASEURL_TSCONFIG_WARNING, p as resolveBundled, r as CONFIG_METADATA_ENV, s as VITE_PLUS_NAME } from "./constants-CaXMuYUG.js";
|
|
2
|
+
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-CMSCIkks.js";
|
|
3
|
+
import { B as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-Cac-NNdT.js";
|
|
4
4
|
import { n as errorMsg, r as log, s as warnMsg, t as accent } from "./terminal-uTv0ZaMr.js";
|
|
5
5
|
import { t as resolveTsgolintExecutable } from "./tsgolint-path-B-yOos8p.js";
|
|
6
|
-
import { i as resolveUniversalViteConfig } from "./resolve-vite-config-
|
|
6
|
+
import { i as resolveUniversalViteConfig } from "./resolve-vite-config-BY7PB-LW.js";
|
|
7
7
|
import path, { dirname, join } from "node:path";
|
|
8
8
|
import { ensureBlockingStdio, hasConfigKey, mergeJsonConfig, run } from "../binding/index.js";
|
|
9
9
|
import fs, { readFileSync } from "node:fs";
|
package/dist/config/bin.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/dist/config/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as promptGitHooks, u as defaultInteractive } from "../tsconfig-
|
|
1
|
+
import { f as promptGitHooks, u as defaultInteractive } from "../tsconfig-Cac-NNdT.js";
|
|
2
2
|
import { a as printHeader, r as log } from "../terminal-uTv0ZaMr.js";
|
|
3
3
|
import { t as lib_default } from "../lib-L3DWSRQp.js";
|
|
4
|
-
import { o as updateExistingAgentInstructions, v as ensurePreCommitHook, x as hasStagedConfigInViteConfig } from "../agent-
|
|
4
|
+
import { o as updateExistingAgentInstructions, v as ensurePreCommitHook, x as hasStagedConfigInViteConfig } from "../agent-0gFJkIKu.js";
|
|
5
5
|
import { t as renderCliDoc } from "../help-YP84FSEz.js";
|
|
6
6
|
import { join } from "node:path";
|
|
7
7
|
import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
package/dist/create/bin.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-C7HZzL1F.js";
|
|
2
|
-
import { s as VITE_PLUS_NAME } from "../constants-
|
|
3
|
-
import { A as intro, B as runCommandSilently, C as resolveApproveBuildTargets, E as PackageManager, F as spinner, I as text, L as require_picocolors, M as multiselect, O as cancel, P as select, R as isCancel, S as detectGatedBuilds, T as DependencyType, V as require_cross_spawn, d as downloadPackageManager$1, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, j as log, k as confirm, m as runViteFmt, p as resolveGitInit, u as defaultInteractive, v as editYamlFile, x as approveBuilds, y as readYamlFile, z as runCommand$1 } from "../tsconfig-
|
|
2
|
+
import { s as VITE_PLUS_NAME } from "../constants-CaXMuYUG.js";
|
|
3
|
+
import { A as intro, B as runCommandSilently, C as resolveApproveBuildTargets, E as PackageManager, F as spinner, I as text, L as require_picocolors, M as multiselect, O as cancel, P as select, R as isCancel, S as detectGatedBuilds, T as DependencyType, V as require_cross_spawn, d as downloadPackageManager$1, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, j as log, k as confirm, m as runViteFmt, p as resolveGitInit, u as defaultInteractive, v as editYamlFile, x as approveBuilds, y as readYamlFile, z as runCommand$1 } from "../tsconfig-Cac-NNdT.js";
|
|
4
4
|
import { a as printHeader, i as muted, o as success, r as log$1, t as accent } from "../terminal-uTv0ZaMr.js";
|
|
5
5
|
import { i as readJsonFile, n as editJsonFile } from "../json-DiRs8ceZ.js";
|
|
6
|
-
import { a as resolveViteConfig, n as findWorkspaceRoot, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-
|
|
6
|
+
import { a as resolveViteConfig, n as findWorkspaceRoot, r as hasViteConfig, t as findViteConfig } from "../resolve-vite-config-BY7PB-LW.js";
|
|
7
7
|
import { t as lib_default } from "../lib-L3DWSRQp.js";
|
|
8
|
-
import { o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists } from "../package-
|
|
9
|
-
import { I as promptEslintMigration, J as templatesDir, N as detectEslintProject, S as injectCreateDefaultTemplate, a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as rewriteStandaloneProject, g as setPackageManager, l as rewriteMonorepo, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID, u as rewriteMonorepoProject, y as installGitHooks } from "../agent-
|
|
10
|
-
import { a as writeEditorConfigs, c as updatePackageJsonWithDeps, d as detectFramework, f as hasFrameworkShim, g as promptPrettierMigration, i as selectEditors, l as updateWorkspaceConfig, m as detectPrettierProject, n as detectExistingEditors, o as detectWorkspace$1, s as isBingoTemplate, u as addFrameworkShim } from "../editor-
|
|
8
|
+
import { o as fetchNpmResource, s as getNpmRegistry, t as checkNpmPackageExists } from "../package-CP5EUXlu.js";
|
|
9
|
+
import { I as promptEslintMigration, J as templatesDir, N as detectEslintProject, S as injectCreateDefaultTemplate, a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as rewriteStandaloneProject, g as setPackageManager, l as rewriteMonorepo, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID, u as rewriteMonorepoProject, y as installGitHooks } from "../agent-0gFJkIKu.js";
|
|
10
|
+
import { a as writeEditorConfigs, c as updatePackageJsonWithDeps, d as detectFramework, f as hasFrameworkShim, g as promptPrettierMigration, i as selectEditors, l as updateWorkspaceConfig, m as detectPrettierProject, n as detectExistingEditors, o as detectWorkspace$1, s as isBingoTemplate, u as addFrameworkShim } from "../editor-D4T70tKk.js";
|
|
11
11
|
import { t as renderCliDoc } from "../help-YP84FSEz.js";
|
|
12
12
|
import path from "node:path";
|
|
13
13
|
import { runCommand, upsertJsonConfig, vitePlusHeader } from "../../binding/index.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { o as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-
|
|
1
|
+
import { o as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-CaXMuYUG.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import { defineConfig, defineProject } from "vitest/config";
|
|
7
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
7
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.13_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.13_@tsdown+exe@0.22.13_@t_f26a610f558bef85f3db2230cc877c56/node_modules/tsdown/esm-shims.js
|
|
8
8
|
const getFilename = () => fileURLToPath(import.meta.url);
|
|
9
9
|
const getDirname = () => path.dirname(getFilename());
|
|
10
10
|
const __dirname = /* @__PURE__ */ getDirname();
|
|
@@ -37,7 +37,7 @@ let node_module = require("node:module");
|
|
|
37
37
|
let node_url = require("node:url");
|
|
38
38
|
let vitest_config = require("vitest/config");
|
|
39
39
|
//#region package.json
|
|
40
|
-
var version = "0.2.
|
|
40
|
+
var version = "0.2.6", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
|
|
41
41
|
var init_constants = __esmMin((() => {
|
|
42
42
|
VITE_PLUS_VERSION = process.env.VP_VERSION || version;
|
|
43
43
|
VITEST_VERSION = "4.1.10";
|
package/dist/define-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_define_config = require("./define-config-
|
|
2
|
+
const require_define_config = require("./define-config-iGV0CGUk.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;
|
package/dist/define-config.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-
|
|
1
|
+
import { a as defineConfig, c as lazyPlugins, i as computeAutoInlineList, l as resolveCoverageProviderToCheck, n as assertCoverageProviderVersionMatch, o as defineProject, r as checkCoverageProviderVersion, s as isVitestFamilySpecifier, t as AUTO_INLINE_DEPS, u as withConfigMetadataResolution } from "./define-config-hV8qyU8p.js";
|
|
2
2
|
export { AUTO_INLINE_DEPS, assertCoverageProviderVersionMatch, checkCoverageProviderVersion, computeAutoInlineList, defineConfig, defineProject, isVitestFamilySpecifier, lazyPlugins, resolveCoverageProviderToCheck, withConfigMetadataResolution };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as runCommandSilently, E as PackageManager, M as multiselect, P as select, R as isCancel, j as log, k as confirm, l as cancelAndExit, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-
|
|
1
|
+
import { B as runCommandSilently, E as PackageManager, M as multiselect, P as select, R as isCancel, j as log, k as confirm, l as cancelAndExit, v as editYamlFile, w as getSpinner, y as readYamlFile } from "./tsconfig-Cac-NNdT.js";
|
|
2
2
|
import { a as writeJsonFile, c as parse, i as readJsonFile, n as editJsonFile, o as applyEdits, s as modify, t as detectFormattingOptions } from "./json-DiRs8ceZ.js";
|
|
3
3
|
import { t as require_dist } from "./dist-CKz3vcoG.js";
|
|
4
|
-
import { r as getScopeFromPackageName } from "./package-
|
|
5
|
-
import { A as globSync, K as warnMigration, L as rewriteToolLintStagedConfigFiles, U as detectConfigs, V as PRETTIER_CONFIG_FILES, j as minimatch, q as displayRelative } from "./agent-
|
|
4
|
+
import { r as getScopeFromPackageName } from "./package-CP5EUXlu.js";
|
|
5
|
+
import { A as globSync, K as warnMigration, L as rewriteToolLintStagedConfigFiles, U as detectConfigs, V as PRETTIER_CONFIG_FILES, j as minimatch, q as displayRelative } from "./agent-0gFJkIKu.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { detectWorkspace, rewritePrettier } from "../binding/index.js";
|
|
8
8
|
import fs from "node:fs";
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_define_config = require("./define-config-
|
|
1
|
+
const require_define_config = require("./define-config-iGV0CGUk.cjs");
|
|
2
2
|
//#region src/index.cts
|
|
3
3
|
const vite = require("@voidzero-dev/vite-plus-core");
|
|
4
4
|
const { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } = require("vitest/config");
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-
|
|
1
|
+
import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-hV8qyU8p.js";
|
|
2
2
|
import { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
|
|
3
3
|
export * from "@voidzero-dev/vite-plus-core";
|
|
4
4
|
export { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
|
package/dist/migration/bin.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/dist/migration/bin.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as __toESM } from "../rolldown-runtime-C7HZzL1F.js";
|
|
2
|
-
import { d as isForceOverrideMode, l as VITE_PLUS_VERSION } from "../constants-
|
|
3
|
-
import { B as runCommandSilently, D as require_semver, E as PackageManager, F as spinner, N as outro, P as select, R as isCancel, _ as upgradeYarn, d as downloadPackageManager, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, m as runViteFmt, r as fixBaseUrlInTsconfig, t as confirmBaseUrlFix, u as defaultInteractive } from "../tsconfig-
|
|
2
|
+
import { d as isForceOverrideMode, l as VITE_PLUS_VERSION } from "../constants-CaXMuYUG.js";
|
|
3
|
+
import { B as runCommandSilently, D as require_semver, E as PackageManager, F as spinner, N as outro, P as select, R as isCancel, _ as upgradeYarn, d as downloadPackageManager, f as promptGitHooks, g as selectPackageManager, h as runViteInstall, i as hasBaseUrlInTsconfig, j as log, k as confirm, l as cancelAndExit, m as runViteFmt, r as fixBaseUrlInTsconfig, t as confirmBaseUrlFix, u as defaultInteractive } from "../tsconfig-Cac-NNdT.js";
|
|
4
4
|
import { a as printHeader, i as muted, r as log$1, s as warnMsg, t as accent } from "../terminal-uTv0ZaMr.js";
|
|
5
5
|
import { a as writeJsonFile, i as readJsonFile } from "../json-DiRs8ceZ.js";
|
|
6
6
|
import { t as lib_default } from "../lib-L3DWSRQp.js";
|
|
7
|
-
import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-
|
|
8
|
-
import { B as warnPackageLevelEslint, C as injectLintTypeCheckDefaults, D as ensureVitePlusBootstrap, E as detectVitePlusBootstrapPending, F as migrateEslintToOxlint, G as checkVitestVersion, M as confirmEslintMigration, N as detectEslintProject, O as configureYarnNodeModulesMode, P as detectIncompatibleEslintIntegration, R as warnIncompatibleEslintIntegration, T as collectToolchainVersionChanges, W as checkViteVersion, _ as detectLegacyGitHooksMigrationCandidate, b as preflightGitHooksSetup, d as rewriteStandaloneProject, f as detectPendingCoreMigration, h as migrateNodeVersionManagerFile, i as selectAgentTargetPaths, k as detectYarnPnpMode, l as rewriteMonorepo, m as detectNodeVersionManagerFile, n as detectAgentConflicts, p as finalizeCoreMigrationForExistingVitePlus, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, w as mergeViteConfigFiles, y as installGitHooks, z as warnLegacyEslintConfig } from "../agent-
|
|
7
|
+
import { a as readNearestPackageJson, i as hasVitePlusDependency } from "../package-CP5EUXlu.js";
|
|
8
|
+
import { B as warnPackageLevelEslint, C as injectLintTypeCheckDefaults, D as ensureVitePlusBootstrap, E as detectVitePlusBootstrapPending, F as migrateEslintToOxlint, G as checkVitestVersion, M as confirmEslintMigration, N as detectEslintProject, O as configureYarnNodeModulesMode, P as detectIncompatibleEslintIntegration, R as warnIncompatibleEslintIntegration, T as collectToolchainVersionChanges, W as checkViteVersion, _ as detectLegacyGitHooksMigrationCandidate, b as preflightGitHooksSetup, d as rewriteStandaloneProject, f as detectPendingCoreMigration, h as migrateNodeVersionManagerFile, i as selectAgentTargetPaths, k as detectYarnPnpMode, l as rewriteMonorepo, m as detectNodeVersionManagerFile, n as detectAgentConflicts, p as finalizeCoreMigrationForExistingVitePlus, q as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, w as mergeViteConfigFiles, y as installGitHooks, z as warnLegacyEslintConfig } from "../agent-0gFJkIKu.js";
|
|
9
9
|
import { n as addMigrationWarning, r as createMigrationReport } from "../report-BS7ULx7A.js";
|
|
10
|
-
import { _ as warnPackageLevelPrettier, a as writeEditorConfigs, d as detectFramework, f as hasFrameworkShim, h as migratePrettierToOxfmt, m as detectPrettierProject, o as detectWorkspace, p as confirmPrettierMigration, r as selectEditor, t as detectEditorConflicts, u as addFrameworkShim } from "../editor-
|
|
10
|
+
import { _ as warnPackageLevelPrettier, a as writeEditorConfigs, d as detectFramework, f as hasFrameworkShim, h as migratePrettierToOxfmt, m as detectPrettierProject, o as detectWorkspace, p as confirmPrettierMigration, r as selectEditor, t as detectEditorConflicts, u as addFrameworkShim } from "../editor-D4T70tKk.js";
|
|
11
11
|
import { t as renderCliDoc } from "../help-YP84FSEz.js";
|
|
12
12
|
import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../protocol-D99W10Qi.js";
|
|
13
13
|
import path from "node:path";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as VITE_PLUS_NAME } from "./constants-
|
|
1
|
+
import { s as VITE_PLUS_NAME } from "./constants-CaXMuYUG.js";
|
|
2
2
|
//#region src/oxlint-plugin-config.ts
|
|
3
3
|
const VITE_PLUS_OXLINT_PLUGIN_NAME = VITE_PLUS_NAME;
|
|
4
4
|
const VITE_PLUS_OXLINT_PLUGIN_SPECIFIER = `${VITE_PLUS_NAME}/oxlint-plugin`;
|
package/dist/oxlint-plugin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-
|
|
1
|
+
import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-CMSCIkks.js";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import { definePlugin, defineRule } from "@oxlint/plugins";
|
package/dist/pack-bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as resolveViteConfig } from "./resolve-vite-config-
|
|
2
|
+
import { a as resolveViteConfig } from "./resolve-vite-config-BY7PB-LW.js";
|
|
3
3
|
import module from "node:module";
|
|
4
4
|
import { buildWithConfigs, enableDebug, globalLogger, resolveUserConfig } from "@voidzero-dev/vite-plus-core/pack";
|
|
5
5
|
//#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
|
package/dist/staged/bin.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {}
|
package/dist/staged/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-C7HZzL1F.js";
|
|
2
2
|
import { a as printHeader, n as errorMsg, r as log } from "../terminal-uTv0ZaMr.js";
|
|
3
|
-
import { a as resolveViteConfig } from "../resolve-vite-config-
|
|
3
|
+
import { a as resolveViteConfig } from "../resolve-vite-config-BY7PB-LW.js";
|
|
4
4
|
import { t as lib_default } from "../lib-L3DWSRQp.js";
|
|
5
5
|
import { t as renderCliDoc } from "../help-YP84FSEz.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __require, r as __toESM, t as __commonJSMin } from "./rolldown-runtime-C7HZzL1F.js";
|
|
2
|
-
import { l as VITE_PLUS_VERSION, t as BASEURL_TSCONFIG_FIX_PACKAGE, u as createBaseUrlTsconfigFixArgs } from "./constants-
|
|
2
|
+
import { l as VITE_PLUS_VERSION, t as BASEURL_TSCONFIG_FIX_PACKAGE, u as createBaseUrlTsconfigFixArgs } from "./constants-CaXMuYUG.js";
|
|
3
3
|
import { t as accent } from "./terminal-uTv0ZaMr.js";
|
|
4
4
|
import { a as writeJsonFile, c as parse, i as readJsonFile, o as applyEdits, s as modify } from "./json-DiRs8ceZ.js";
|
|
5
5
|
import { t as require_dist } from "./dist-CKz3vcoG.js";
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { m as version } from "./constants-
|
|
1
|
+
import { m as version } from "./constants-CaXMuYUG.js";
|
|
2
2
|
import { a as printHeader, r as log, t as accent } from "./terminal-uTv0ZaMr.js";
|
|
3
|
-
import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-
|
|
3
|
+
import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-CP5EUXlu.js";
|
|
4
4
|
import { t as renderCliDoc } from "./help-YP84FSEz.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs";
|
package/dist/versions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const versions = {
|
|
2
|
-
"vite": "8.1.
|
|
3
|
-
"rolldown": "1.
|
|
4
|
-
"tsdown": "0.22.
|
|
5
|
-
"oxlint": "1.
|
|
6
|
-
"oxfmt": "0.
|
|
7
|
-
"oxlint-tsgolint": "0.
|
|
2
|
+
"vite": "8.1.5",
|
|
3
|
+
"rolldown": "1.2.0",
|
|
4
|
+
"tsdown": "0.22.13",
|
|
5
|
+
"oxlint": "1.75.0",
|
|
6
|
+
"oxfmt": "0.60.0",
|
|
7
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
8
8
|
"vitest": "4.1.10"
|
|
9
9
|
};
|
|
@@ -48,7 +48,7 @@ export default defineConfig({
|
|
|
48
48
|
});
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
This guide assumes each task already hits locally. If a task misses, fix its tracking config in `vite.config.ts` before adding the GitHub Actions cache steps. See [Automatic Data Tracking](/guide/automatic-data-tracking) and [`run.tasks`](/config/run#tasks).
|
|
51
|
+
This guide assumes each task already hits locally. If a task misses, fix its tracking config in `vite.config.ts` before adding the GitHub Actions cache steps. See [Automatic Data Tracking](/guide/automatic-data-tracking) and [`run.tasks`](/config/run#run-tasks).
|
|
52
52
|
|
|
53
53
|
Run each task twice:
|
|
54
54
|
|
|
@@ -129,7 +129,7 @@ If GitHub restores a cache but Vite Task prints a cache miss, the workflow resto
|
|
|
129
129
|
|
|
130
130
|
## Keep Task Tracking Stable
|
|
131
131
|
|
|
132
|
-
If GitHub restores a cache but `vp run` prints a cache miss, fix the task fingerprint before changing the Actions cache key. See [Automatic Data Tracking](/guide/automatic-data-tracking) and [`run.tasks`](/config/run#tasks).
|
|
132
|
+
If GitHub restores a cache but `vp run` prints a cache miss, fix the task fingerprint before changing the Actions cache key. See [Automatic Data Tracking](/guide/automatic-data-tracking) and [`run.tasks`](/config/run#run-tasks).
|
|
133
133
|
|
|
134
134
|
## Choose A Cache Key
|
|
135
135
|
|
|
@@ -81,7 +81,7 @@ These variables configure the installed Vite+ CLI. `VP_HOME` (above) also applie
|
|
|
81
81
|
|
|
82
82
|
- **Purpose**: Node.js distribution mirror URL
|
|
83
83
|
- **Default**: `https://nodejs.org/dist`
|
|
84
|
-
- **Details**: [Custom Node.js Mirror](/guide/env#custom-
|
|
84
|
+
- **Details**: [Custom Node.js Mirror](/guide/env#custom-node-js-mirror)
|
|
85
85
|
|
|
86
86
|
### `VP_NODE_VERSION`
|
|
87
87
|
|
|
@@ -98,7 +98,7 @@ These variables configure the installed Vite+ CLI. `VP_HOME` (above) also applie
|
|
|
98
98
|
- **Purpose**: Skip PGP signature verification of Node.js downloads
|
|
99
99
|
- **Values**: Any non-empty value
|
|
100
100
|
- **Default**: None (verification enabled)
|
|
101
|
-
- **Details**: [Node.js Signature Verification](/guide/env#
|
|
101
|
+
- **Details**: [Node.js Signature Verification](/guide/env#node-js-signature-verification)
|
|
102
102
|
|
|
103
103
|
### `VP_SHELL`
|
|
104
104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plus",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
354
|
"dependencies": {
|
|
355
|
-
"@oxc-project/types": "=0.
|
|
355
|
+
"@oxc-project/types": "=0.141.0",
|
|
356
356
|
"@oxlint/plugins": "=1.73.0",
|
|
357
357
|
"@vitest/browser": "4.1.10",
|
|
358
358
|
"@vitest/browser-preview": "4.1.10",
|
|
@@ -363,14 +363,14 @@
|
|
|
363
363
|
"@vitest/snapshot": "4.1.10",
|
|
364
364
|
"@vitest/spy": "4.1.10",
|
|
365
365
|
"@vitest/utils": "4.1.10",
|
|
366
|
-
"oxfmt": "=0.
|
|
367
|
-
"oxlint": "=1.
|
|
368
|
-
"oxlint-tsgolint": "=0.
|
|
366
|
+
"oxfmt": "=0.60.0",
|
|
367
|
+
"oxlint": "=1.75.0",
|
|
368
|
+
"oxlint-tsgolint": "=7.0.2001",
|
|
369
369
|
"vitest": "4.1.10",
|
|
370
|
-
"@voidzero-dev/vite-plus-core": "0.2.
|
|
370
|
+
"@voidzero-dev/vite-plus-core": "0.2.6"
|
|
371
371
|
},
|
|
372
372
|
"devDependencies": {
|
|
373
|
-
"@napi-rs/cli": "^3.7.
|
|
373
|
+
"@napi-rs/cli": "^3.7.3",
|
|
374
374
|
"@nkzw/safe-word-list": "^3.1.0",
|
|
375
375
|
"@oxc-node/core": "^0.1.0",
|
|
376
376
|
"@types/cross-spawn": "^6.0.6",
|
|
@@ -390,15 +390,15 @@
|
|
|
390
390
|
"mri": "^1.2.0",
|
|
391
391
|
"nanotar": "^0.3.0",
|
|
392
392
|
"picocolors": "^1.1.1",
|
|
393
|
-
"rolldown-plugin-dts": "^0.
|
|
393
|
+
"rolldown-plugin-dts": "^0.27.0",
|
|
394
394
|
"semver": "^7.8.0",
|
|
395
|
-
"tsdown": "^0.22.
|
|
395
|
+
"tsdown": "^0.22.13",
|
|
396
396
|
"validate-npm-package-name": "^7.0.2",
|
|
397
397
|
"yaml": "^2.8.1",
|
|
398
398
|
"zod": "^3.25.76",
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"@voidzero-dev/vite-plus-
|
|
399
|
+
"@voidzero-dev/vite-plus-prompts": "0.0.0",
|
|
400
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.6",
|
|
401
|
+
"@voidzero-dev/vite-plus-tools": "0.0.0"
|
|
402
402
|
},
|
|
403
403
|
"peerDependencies": {
|
|
404
404
|
"@vitest/browser-playwright": "4.1.10",
|
|
@@ -430,14 +430,14 @@
|
|
|
430
430
|
"node": "^20.19.0 || ^22.18.0 || >=24.11.0"
|
|
431
431
|
},
|
|
432
432
|
"optionalDependencies": {
|
|
433
|
-
"@voidzero-dev/vite-plus-darwin-arm64": "0.2.
|
|
434
|
-
"@voidzero-dev/vite-plus-darwin-x64": "0.2.
|
|
435
|
-
"@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.
|
|
436
|
-
"@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.
|
|
437
|
-
"@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.
|
|
438
|
-
"@voidzero-dev/vite-plus-linux-x64-musl": "0.2.
|
|
439
|
-
"@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.
|
|
440
|
-
"@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.
|
|
433
|
+
"@voidzero-dev/vite-plus-darwin-arm64": "0.2.6",
|
|
434
|
+
"@voidzero-dev/vite-plus-darwin-x64": "0.2.6",
|
|
435
|
+
"@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.6",
|
|
436
|
+
"@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.6",
|
|
437
|
+
"@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.6",
|
|
438
|
+
"@voidzero-dev/vite-plus-linux-x64-musl": "0.2.6",
|
|
439
|
+
"@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.6",
|
|
440
|
+
"@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.6"
|
|
441
441
|
},
|
|
442
442
|
"scripts": {
|
|
443
443
|
"build": "oxnode -C dev ./build.ts",
|