vite-plus 0.1.23 → 0.1.24
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/dist/{agent-aSGY0osq.js → agent-Nuk-9l77.js} +29 -20
- package/dist/bin.js +8 -4
- package/dist/config/bin.js +2 -2
- package/dist/create/bin.d.ts +1 -1
- package/dist/create/bin.js +73 -37
- package/dist/migration/bin.js +13 -12
- package/dist/staged/bin.js +147 -414
- package/dist/{tsconfig-DlUVXT3J.js → tsconfig-DFb5BKyT.js} +43 -35
- package/dist/version.js +1 -1
- package/dist/versions.js +3 -3
- package/dist/{workspace-DElv730L.js → workspace-NL-m9wgM.js} +11 -11
- package/docs/_data/team.ts +3 -3
- package/docs/guide/index.md +4 -0
- package/docs/guide/install.md +17 -0
- package/docs/guide/migrate.md +1 -1
- package/docs/guide/troubleshooting.md +1 -27
- package/docs/guide/upgrade.md +12 -1
- package/package.json +14 -14
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.1.
|
|
84
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
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.1.
|
|
89
|
+
`Native binding package version mismatch, expected 0.1.24 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.1.
|
|
107
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
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.1.
|
|
112
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
return binding;
|
|
@@ -135,12 +135,12 @@ function requireNative() {
|
|
|
135
135
|
const bindingPackageVersion =
|
|
136
136
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
137
137
|
if (
|
|
138
|
-
bindingPackageVersion !== '0.1.
|
|
138
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
139
139
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
140
140
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
141
141
|
) {
|
|
142
142
|
throw new Error(
|
|
143
|
-
`Native binding package version mismatch, expected 0.1.
|
|
143
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
return binding;
|
|
@@ -158,12 +158,12 @@ function requireNative() {
|
|
|
158
158
|
const bindingPackageVersion =
|
|
159
159
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
160
160
|
if (
|
|
161
|
-
bindingPackageVersion !== '0.1.
|
|
161
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
162
162
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
163
163
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
164
164
|
) {
|
|
165
165
|
throw new Error(
|
|
166
|
-
`Native binding package version mismatch, expected 0.1.
|
|
166
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
167
167
|
);
|
|
168
168
|
}
|
|
169
169
|
return binding;
|
|
@@ -182,12 +182,12 @@ function requireNative() {
|
|
|
182
182
|
const bindingPackageVersion =
|
|
183
183
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
184
184
|
if (
|
|
185
|
-
bindingPackageVersion !== '0.1.
|
|
185
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
186
186
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
187
187
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
188
188
|
) {
|
|
189
189
|
throw new Error(
|
|
190
|
-
`Native binding package version mismatch, expected 0.1.
|
|
190
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
193
|
return binding;
|
|
@@ -205,12 +205,12 @@ function requireNative() {
|
|
|
205
205
|
const bindingPackageVersion =
|
|
206
206
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
207
207
|
if (
|
|
208
|
-
bindingPackageVersion !== '0.1.
|
|
208
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
209
209
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
210
210
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
211
211
|
) {
|
|
212
212
|
throw new Error(
|
|
213
|
-
`Native binding package version mismatch, expected 0.1.
|
|
213
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
214
214
|
);
|
|
215
215
|
}
|
|
216
216
|
return binding;
|
|
@@ -231,12 +231,12 @@ function requireNative() {
|
|
|
231
231
|
const bindingPackageVersion =
|
|
232
232
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
233
233
|
if (
|
|
234
|
-
bindingPackageVersion !== '0.1.
|
|
234
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
235
235
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
236
236
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
237
237
|
) {
|
|
238
238
|
throw new Error(
|
|
239
|
-
`Native binding package version mismatch, expected 0.1.
|
|
239
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
return binding;
|
|
@@ -254,12 +254,12 @@ function requireNative() {
|
|
|
254
254
|
const bindingPackageVersion =
|
|
255
255
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
256
256
|
if (
|
|
257
|
-
bindingPackageVersion !== '0.1.
|
|
257
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
258
258
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
259
259
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
260
260
|
) {
|
|
261
261
|
throw new Error(
|
|
262
|
-
`Native binding package version mismatch, expected 0.1.
|
|
262
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
265
|
return binding;
|
|
@@ -277,12 +277,12 @@ function requireNative() {
|
|
|
277
277
|
const bindingPackageVersion =
|
|
278
278
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
279
279
|
if (
|
|
280
|
-
bindingPackageVersion !== '0.1.
|
|
280
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
281
281
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
282
282
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
283
283
|
) {
|
|
284
284
|
throw new Error(
|
|
285
|
-
`Native binding package version mismatch, expected 0.1.
|
|
285
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
return binding;
|
|
@@ -304,12 +304,12 @@ function requireNative() {
|
|
|
304
304
|
const bindingPackageVersion =
|
|
305
305
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
306
306
|
if (
|
|
307
|
-
bindingPackageVersion !== '0.1.
|
|
307
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
308
308
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
309
309
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
310
310
|
) {
|
|
311
311
|
throw new Error(
|
|
312
|
-
`Native binding package version mismatch, expected 0.1.
|
|
312
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
313
313
|
);
|
|
314
314
|
}
|
|
315
315
|
return binding;
|
|
@@ -327,12 +327,12 @@ function requireNative() {
|
|
|
327
327
|
const bindingPackageVersion =
|
|
328
328
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
329
329
|
if (
|
|
330
|
-
bindingPackageVersion !== '0.1.
|
|
330
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
331
331
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
332
332
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
333
333
|
) {
|
|
334
334
|
throw new Error(
|
|
335
|
-
`Native binding package version mismatch, expected 0.1.
|
|
335
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
338
|
return binding;
|
|
@@ -355,12 +355,12 @@ function requireNative() {
|
|
|
355
355
|
const bindingPackageVersion =
|
|
356
356
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
357
357
|
if (
|
|
358
|
-
bindingPackageVersion !== '0.1.
|
|
358
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
359
359
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
360
360
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
361
361
|
) {
|
|
362
362
|
throw new Error(
|
|
363
|
-
`Native binding package version mismatch, expected 0.1.
|
|
363
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
return binding;
|
|
@@ -378,12 +378,12 @@ function requireNative() {
|
|
|
378
378
|
const bindingPackageVersion =
|
|
379
379
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
380
380
|
if (
|
|
381
|
-
bindingPackageVersion !== '0.1.
|
|
381
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
382
382
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
383
383
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
384
384
|
) {
|
|
385
385
|
throw new Error(
|
|
386
|
-
`Native binding package version mismatch, expected 0.1.
|
|
386
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
return binding;
|
|
@@ -403,12 +403,12 @@ function requireNative() {
|
|
|
403
403
|
const bindingPackageVersion =
|
|
404
404
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
405
405
|
if (
|
|
406
|
-
bindingPackageVersion !== '0.1.
|
|
406
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
407
407
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
408
408
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
409
409
|
) {
|
|
410
410
|
throw new Error(
|
|
411
|
-
`Native binding package version mismatch, expected 0.1.
|
|
411
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
return binding;
|
|
@@ -426,12 +426,12 @@ function requireNative() {
|
|
|
426
426
|
const bindingPackageVersion =
|
|
427
427
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
428
428
|
if (
|
|
429
|
-
bindingPackageVersion !== '0.1.
|
|
429
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
430
430
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
431
431
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
432
432
|
) {
|
|
433
433
|
throw new Error(
|
|
434
|
-
`Native binding package version mismatch, expected 0.1.
|
|
434
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
435
435
|
);
|
|
436
436
|
}
|
|
437
437
|
return binding;
|
|
@@ -451,12 +451,12 @@ function requireNative() {
|
|
|
451
451
|
const bindingPackageVersion =
|
|
452
452
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
453
453
|
if (
|
|
454
|
-
bindingPackageVersion !== '0.1.
|
|
454
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
455
455
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
456
456
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
457
457
|
) {
|
|
458
458
|
throw new Error(
|
|
459
|
-
`Native binding package version mismatch, expected 0.1.
|
|
459
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
460
460
|
);
|
|
461
461
|
}
|
|
462
462
|
return binding;
|
|
@@ -474,12 +474,12 @@ function requireNative() {
|
|
|
474
474
|
const bindingPackageVersion =
|
|
475
475
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
476
476
|
if (
|
|
477
|
-
bindingPackageVersion !== '0.1.
|
|
477
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
478
478
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
479
479
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
480
480
|
) {
|
|
481
481
|
throw new Error(
|
|
482
|
-
`Native binding package version mismatch, expected 0.1.
|
|
482
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
483
483
|
);
|
|
484
484
|
}
|
|
485
485
|
return binding;
|
|
@@ -499,12 +499,12 @@ function requireNative() {
|
|
|
499
499
|
const bindingPackageVersion =
|
|
500
500
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
501
501
|
if (
|
|
502
|
-
bindingPackageVersion !== '0.1.
|
|
502
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
503
503
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
504
504
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
505
505
|
) {
|
|
506
506
|
throw new Error(
|
|
507
|
-
`Native binding package version mismatch, expected 0.1.
|
|
507
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
return binding;
|
|
@@ -522,12 +522,12 @@ function requireNative() {
|
|
|
522
522
|
const bindingPackageVersion =
|
|
523
523
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
524
524
|
if (
|
|
525
|
-
bindingPackageVersion !== '0.1.
|
|
525
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
526
526
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
527
527
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
528
528
|
) {
|
|
529
529
|
throw new Error(
|
|
530
|
-
`Native binding package version mismatch, expected 0.1.
|
|
530
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
533
|
return binding;
|
|
@@ -547,12 +547,12 @@ function requireNative() {
|
|
|
547
547
|
const bindingPackageVersion =
|
|
548
548
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
549
549
|
if (
|
|
550
|
-
bindingPackageVersion !== '0.1.
|
|
550
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
551
551
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
552
552
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
553
553
|
) {
|
|
554
554
|
throw new Error(
|
|
555
|
-
`Native binding package version mismatch, expected 0.1.
|
|
555
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
556
556
|
);
|
|
557
557
|
}
|
|
558
558
|
return binding;
|
|
@@ -570,12 +570,12 @@ function requireNative() {
|
|
|
570
570
|
const bindingPackageVersion =
|
|
571
571
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
572
572
|
if (
|
|
573
|
-
bindingPackageVersion !== '0.1.
|
|
573
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
574
574
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
575
575
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
576
576
|
) {
|
|
577
577
|
throw new Error(
|
|
578
|
-
`Native binding package version mismatch, expected 0.1.
|
|
578
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
579
579
|
);
|
|
580
580
|
}
|
|
581
581
|
return binding;
|
|
@@ -594,12 +594,12 @@ function requireNative() {
|
|
|
594
594
|
const bindingPackageVersion =
|
|
595
595
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
596
596
|
if (
|
|
597
|
-
bindingPackageVersion !== '0.1.
|
|
597
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
598
598
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
599
599
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
600
600
|
) {
|
|
601
601
|
throw new Error(
|
|
602
|
-
`Native binding package version mismatch, expected 0.1.
|
|
602
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
603
603
|
);
|
|
604
604
|
}
|
|
605
605
|
return binding;
|
|
@@ -617,12 +617,12 @@ function requireNative() {
|
|
|
617
617
|
const bindingPackageVersion =
|
|
618
618
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
619
619
|
if (
|
|
620
|
-
bindingPackageVersion !== '0.1.
|
|
620
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
621
621
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
622
622
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
623
623
|
) {
|
|
624
624
|
throw new Error(
|
|
625
|
-
`Native binding package version mismatch, expected 0.1.
|
|
625
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
626
626
|
);
|
|
627
627
|
}
|
|
628
628
|
return binding;
|
|
@@ -644,12 +644,12 @@ function requireNative() {
|
|
|
644
644
|
const bindingPackageVersion =
|
|
645
645
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
646
646
|
if (
|
|
647
|
-
bindingPackageVersion !== '0.1.
|
|
647
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
648
648
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
649
649
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
650
650
|
) {
|
|
651
651
|
throw new Error(
|
|
652
|
-
`Native binding package version mismatch, expected 0.1.
|
|
652
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
653
653
|
);
|
|
654
654
|
}
|
|
655
655
|
return binding;
|
|
@@ -667,12 +667,12 @@ function requireNative() {
|
|
|
667
667
|
const bindingPackageVersion =
|
|
668
668
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
669
669
|
if (
|
|
670
|
-
bindingPackageVersion !== '0.1.
|
|
670
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
671
671
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
672
672
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
673
673
|
) {
|
|
674
674
|
throw new Error(
|
|
675
|
-
`Native binding package version mismatch, expected 0.1.
|
|
675
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
676
676
|
);
|
|
677
677
|
}
|
|
678
678
|
return binding;
|
|
@@ -690,12 +690,12 @@ function requireNative() {
|
|
|
690
690
|
const bindingPackageVersion =
|
|
691
691
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
692
692
|
if (
|
|
693
|
-
bindingPackageVersion !== '0.1.
|
|
693
|
+
bindingPackageVersion !== '0.1.24' &&
|
|
694
694
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
695
695
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
696
696
|
) {
|
|
697
697
|
throw new Error(
|
|
698
|
-
`Native binding package version mismatch, expected 0.1.
|
|
698
|
+
`Native binding package version mismatch, expected 0.1.24 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
699
699
|
);
|
|
700
700
|
}
|
|
701
701
|
return binding;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __toESM } from "./chunk-DnnnRqeS.js";
|
|
2
2
|
import { a as VITE_PLUS_OVERRIDE_PACKAGES, c as isForceOverrideMode, i as VITE_PLUS_NAME, n as BASEURL_TSCONFIG_WARNING, o as VITE_PLUS_VERSION } from "./constants-DCBWlNrn.js";
|
|
3
3
|
import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-B89iKTKN.js";
|
|
4
|
-
import { A as
|
|
4
|
+
import { A as R, C as log, E as select, M as runCommandSilently, N as require_cross_spawn, a as removeDeprecatedTsconfigFalseOption, i as hasBaseUrlInTsconfig, n as findTsconfigFiles, o as rewriteTypesInTsconfig, s as cancelAndExit, u as getSpinner, v as PackageManager, w as multiselect, x as confirm, y as require_semver } from "./tsconfig-DFb5BKyT.js";
|
|
5
5
|
import { t as require_dist } from "./dist-BgQuvbtq.js";
|
|
6
6
|
import { c as editJsonFile, l as isJsonFile, n as detectPackageMetadata, u as readJsonFile } from "./package-PmBUZ-ve.js";
|
|
7
7
|
import { n as addMigrationWarning, t as addManualStep } from "./report-DgSBQUdz.js";
|
|
@@ -989,17 +989,15 @@ function createCatalogDependencyResolver(projectPath, packageManager) {
|
|
|
989
989
|
if (!fs.existsSync(packageJsonPath)) return;
|
|
990
990
|
const pkg = readJsonFile(packageJsonPath);
|
|
991
991
|
const workspacesObj = pkg.workspaces && !Array.isArray(pkg.workspaces) ? pkg.workspaces : void 0;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
return workspacesObj?.catalog?.[dependencyName] ?? pkg.catalog?.[dependencyName];
|
|
996
|
-
};
|
|
992
|
+
const fromWorkspaces = createCatalogDependencyResolverFromCatalogs(workspacesObj?.catalog, workspacesObj?.catalogs);
|
|
993
|
+
const fromPkg = createCatalogDependencyResolverFromCatalogs(pkg.catalog, pkg.catalogs);
|
|
994
|
+
return (catalogSpec, dependencyName) => fromWorkspaces(catalogSpec, dependencyName) ?? fromPkg(catalogSpec, dependencyName);
|
|
997
995
|
}
|
|
998
996
|
}
|
|
999
997
|
function createCatalogDependencyResolverFromCatalogs(catalog, catalogs) {
|
|
1000
998
|
return (catalogSpec, dependencyName) => {
|
|
1001
999
|
const catalogName = catalogSpec.slice(8);
|
|
1002
|
-
if (catalogName) return catalogs?.[catalogName]?.[dependencyName];
|
|
1000
|
+
if (catalogName && catalogName !== "default") return catalogs?.[catalogName]?.[dependencyName];
|
|
1003
1001
|
return catalog?.[dependencyName];
|
|
1004
1002
|
};
|
|
1005
1003
|
}
|
|
@@ -1618,15 +1616,23 @@ function rewriteAllImports(projectPath, silent = false, report) {
|
|
|
1618
1616
|
/**
|
|
1619
1617
|
* Check if the project has an unsupported husky version (<9.0.0).
|
|
1620
1618
|
* Uses `semver.coerce` to handle ranges like `^8.0.0` → `8.0.0`.
|
|
1621
|
-
* When the specifier is
|
|
1622
|
-
* the
|
|
1619
|
+
* When the specifier is a catalog reference (e.g. `"catalog:"`), resolves
|
|
1620
|
+
* it from the active package manager's catalog first — a `catalog:` spec is
|
|
1621
|
+
* only meaningful to the manager that owns the workspace, so we never read a
|
|
1622
|
+
* leftover/foreign catalog file. When it is still not coercible (e.g.
|
|
1623
|
+
* `"latest"`), falls back to the installed version in node_modules via
|
|
1624
|
+
* `detectPackageMetadata`.
|
|
1623
1625
|
* Returns a reason string if hooks migration should be skipped, or null
|
|
1624
1626
|
* if husky is absent or compatible.
|
|
1625
1627
|
*/
|
|
1626
|
-
function checkUnsupportedHuskyVersion(projectPath, deps, prodDeps) {
|
|
1628
|
+
function checkUnsupportedHuskyVersion(projectPath, deps, prodDeps, packageManager) {
|
|
1627
1629
|
const huskyVersion = deps?.husky ?? prodDeps?.husky;
|
|
1628
1630
|
if (!huskyVersion) return null;
|
|
1629
1631
|
let coerced = import_semver.default.coerce(huskyVersion);
|
|
1632
|
+
if (coerced == null && packageManager != null && huskyVersion.startsWith("catalog:")) {
|
|
1633
|
+
const resolved = createCatalogDependencyResolver(projectPath, packageManager)?.(huskyVersion, "husky");
|
|
1634
|
+
if (resolved) coerced = import_semver.default.coerce(resolved);
|
|
1635
|
+
}
|
|
1630
1636
|
if (coerced == null) {
|
|
1631
1637
|
const installed = detectPackageMetadata(projectPath, "husky");
|
|
1632
1638
|
if (installed) coerced = import_semver.default.coerce(installed.version);
|
|
@@ -1674,8 +1680,8 @@ function collapseHuskyInstall(script) {
|
|
|
1674
1680
|
* High-level helper: detect old hooks dir, set up git hooks, and rewrite
|
|
1675
1681
|
* the prepare script. Returns true if hooks were successfully installed.
|
|
1676
1682
|
*/
|
|
1677
|
-
function installGitHooks(projectPath, silent = false, report) {
|
|
1678
|
-
if (setupGitHooks(projectPath, getOldHooksDir(projectPath), silent, report)) {
|
|
1683
|
+
function installGitHooks(projectPath, silent = false, report, packageManager) {
|
|
1684
|
+
if (setupGitHooks(projectPath, getOldHooksDir(projectPath), silent, report, packageManager)) {
|
|
1679
1685
|
rewritePrepareScript(projectPath);
|
|
1680
1686
|
return true;
|
|
1681
1687
|
}
|
|
@@ -1701,8 +1707,11 @@ function getOldHooksDir(rootDir) {
|
|
|
1701
1707
|
*
|
|
1702
1708
|
* These checks are deterministic and read-only — they do not modify
|
|
1703
1709
|
* the project in any way, making them safe to call before migration.
|
|
1710
|
+
*
|
|
1711
|
+
* `packageManager` is the project's detected manager; it scopes `catalog:`
|
|
1712
|
+
* resolution to that manager's catalog so a foreign catalog file is ignored.
|
|
1704
1713
|
*/
|
|
1705
|
-
function preflightGitHooksSetup(projectPath) {
|
|
1714
|
+
function preflightGitHooksSetup(projectPath, packageManager) {
|
|
1706
1715
|
const gitRoot = findGitRoot(projectPath);
|
|
1707
1716
|
if (gitRoot && path.resolve(projectPath) !== path.resolve(gitRoot)) return "Subdirectory project detected — skipping git hooks setup. Configure hooks at the repository root.";
|
|
1708
1717
|
const packageJsonPath = path.join(projectPath, "package.json");
|
|
@@ -1711,7 +1720,7 @@ function preflightGitHooksSetup(projectPath) {
|
|
|
1711
1720
|
const deps = pkgContent.devDependencies;
|
|
1712
1721
|
const prodDeps = pkgContent.dependencies;
|
|
1713
1722
|
for (const tool of OTHER_HOOK_TOOLS) if (deps?.[tool] || prodDeps?.[tool] || pkgContent[tool]) return `Detected ${tool} — skipping git hooks setup. Please configure git hooks manually.`;
|
|
1714
|
-
const huskyReason = checkUnsupportedHuskyVersion(projectPath, deps, prodDeps);
|
|
1723
|
+
const huskyReason = checkUnsupportedHuskyVersion(projectPath, deps, prodDeps, packageManager);
|
|
1715
1724
|
if (huskyReason) return huskyReason;
|
|
1716
1725
|
if (hasUnsupportedLintStagedConfig(projectPath)) return "Unsupported lint-staged config format — skipping git hooks setup. Please configure git hooks manually.";
|
|
1717
1726
|
return null;
|
|
@@ -1721,8 +1730,8 @@ function preflightGitHooksSetup(projectPath) {
|
|
|
1721
1730
|
* Skips if another hook tool is detected (warns user).
|
|
1722
1731
|
* Returns true if hooks were successfully set up, false if skipped.
|
|
1723
1732
|
*/
|
|
1724
|
-
function setupGitHooks(projectPath, oldHooksDir, silent = false, report) {
|
|
1725
|
-
const reason = preflightGitHooksSetup(projectPath);
|
|
1733
|
+
function setupGitHooks(projectPath, oldHooksDir, silent = false, report, packageManager) {
|
|
1734
|
+
const reason = preflightGitHooksSetup(projectPath, packageManager);
|
|
1726
1735
|
if (reason) {
|
|
1727
1736
|
warnMigration(reason, report);
|
|
1728
1737
|
return false;
|
|
@@ -2023,7 +2032,7 @@ async function confirmEslintMigration(interactive) {
|
|
|
2023
2032
|
message: "Migrate ESLint rules to Oxlint using @oxlint/migrate?\n " + styleText("gray", "Oxlint is Vite+'s built-in linter — significantly faster than ESLint with compatible rule support. @oxlint/migrate converts your existing rules automatically."),
|
|
2024
2033
|
initialValue: true
|
|
2025
2034
|
});
|
|
2026
|
-
if (
|
|
2035
|
+
if (R(confirmed)) cancelAndExit();
|
|
2027
2036
|
return confirmed;
|
|
2028
2037
|
}
|
|
2029
2038
|
return true;
|
|
@@ -2057,7 +2066,7 @@ async function confirmPrettierMigration(interactive) {
|
|
|
2057
2066
|
message: "Migrate Prettier to Oxfmt?\n " + styleText("gray", "Oxfmt is Vite+'s built-in formatter that replaces Prettier with faster performance. Your configuration will be converted automatically."),
|
|
2058
2067
|
initialValue: true
|
|
2059
2068
|
});
|
|
2060
|
-
if (
|
|
2069
|
+
if (R(confirmed)) cancelAndExit();
|
|
2061
2070
|
return confirmed;
|
|
2062
2071
|
}
|
|
2063
2072
|
log.info("Prettier configuration detected. Auto-migrating to Oxfmt...");
|
|
@@ -2189,7 +2198,7 @@ async function selectAgentTargets({ interactive, agent, onCancel }) {
|
|
|
2189
2198
|
initialValues: [AGENT_DEFAULT_ID],
|
|
2190
2199
|
required: false
|
|
2191
2200
|
});
|
|
2192
|
-
if (
|
|
2201
|
+
if (R(selectedAgentIds)) {
|
|
2193
2202
|
onCancel();
|
|
2194
2203
|
return {
|
|
2195
2204
|
targetPaths: void 0,
|
|
@@ -2376,7 +2385,7 @@ async function writeAgentInstructions({ projectRoot, targetPath, targetPaths, in
|
|
|
2376
2385
|
}],
|
|
2377
2386
|
initialValue: "skip"
|
|
2378
2387
|
});
|
|
2379
|
-
conflictAction =
|
|
2388
|
+
conflictAction = R(action) || action === "skip" ? "skip" : "append";
|
|
2380
2389
|
} else conflictAction = "skip";
|
|
2381
2390
|
if (conflictAction === "append") await appendAgentContent(destinationPath, targetPathToWrite, existingContent, incomingContent, silent);
|
|
2382
2391
|
else {
|
package/dist/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as VITE_PLUS_NAME, l as resolve$1, n as BASEURL_TSCONFIG_WARNING, r as DEFAULT_ENVS } from "./constants-DCBWlNrn.js";
|
|
2
2
|
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-B89iKTKN.js";
|
|
3
|
-
import { M as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-
|
|
3
|
+
import { M as runCommandSilently, i as hasBaseUrlInTsconfig, r as fixBaseUrlInTsconfig } from "./tsconfig-DFb5BKyT.js";
|
|
4
4
|
import { n as errorMsg, r as log, s as warnMsg, t as accent } from "./terminal-uTv0ZaMr.js";
|
|
5
5
|
import { r as resolveUniversalViteConfig } from "./resolve-vite-config-TTvhycU1.js";
|
|
6
6
|
import path, { dirname, join } from "node:path";
|
|
@@ -51,6 +51,9 @@ const INIT_COMMAND_SPECS = {
|
|
|
51
51
|
defaultConfigFiles: [".oxfmtrc.json", ".oxfmtrc.jsonc"]
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
+
function normalizeInitCommand(command) {
|
|
55
|
+
return command === "format" ? "fmt" : command;
|
|
56
|
+
}
|
|
54
57
|
const VITE_CONFIG_FILES = [
|
|
55
58
|
"vite.config.ts",
|
|
56
59
|
"vite.config.mts",
|
|
@@ -127,8 +130,9 @@ async function vpFmt(cwd, filePath) {
|
|
|
127
130
|
if (result.exitCode !== 0) warnMsg(`Failed to format ${filePath} with vp fmt:\n${result.stdout.toString()}${result.stderr.toString()}`);
|
|
128
131
|
}
|
|
129
132
|
function resolveInitSpec(command, args) {
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
const normalizedCommand = normalizeInitCommand(command);
|
|
134
|
+
if (!normalizedCommand) return null;
|
|
135
|
+
const spec = INIT_COMMAND_SPECS[normalizedCommand];
|
|
132
136
|
if (!spec || !hasTriggerFlag(args, spec.triggerFlags)) return null;
|
|
133
137
|
return spec;
|
|
134
138
|
}
|
|
@@ -157,7 +161,7 @@ function inspectInitCommand(command, args, projectPath = process.cwd()) {
|
|
|
157
161
|
async function applyToolInitConfigToViteConfig(command, args, projectPath = process.cwd()) {
|
|
158
162
|
const inspection = inspectInitCommand(command, args, projectPath);
|
|
159
163
|
if (!inspection.handled || !inspection.configKey) return { handled: false };
|
|
160
|
-
const spec = INIT_COMMAND_SPECS[command];
|
|
164
|
+
const spec = INIT_COMMAND_SPECS[normalizeInitCommand(command)];
|
|
161
165
|
const viteConfigPath = ensureViteConfigPath(projectPath);
|
|
162
166
|
const generatedConfigPath = resolveGeneratedConfigPath(projectPath, args, spec.defaultConfigFiles);
|
|
163
167
|
if (hasConfigKey(viteConfigPath, spec.configKey)) {
|
package/dist/config/bin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as defaultInteractive, d as promptGitHooks } from "../tsconfig-
|
|
1
|
+
import { c as defaultInteractive, d as promptGitHooks } from "../tsconfig-DFb5BKyT.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, x as hasStagedConfigInViteConfig, y as ensurePreCommitHook } from "../agent-
|
|
4
|
+
import { o as updateExistingAgentInstructions, x as hasStagedConfigInViteConfig, y as ensurePreCommitHook } from "../agent-Nuk-9l77.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";
|