vite-plus 0.3.1 → 0.3.2
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/README.md +1 -1
- package/bin/vp +1 -1
- package/binding/index.cjs +54 -55
- package/binding/index.d.cts +12 -0
- package/dist/{agent-C5jMYVfB.js → agent-C59HKB4Y.js} +2 -2
- package/dist/bin.js +6 -5
- package/dist/config/bin.js +2 -2
- package/dist/{constants-0IAVgpox.js → constants-IhOditRA.js} +2 -2
- package/dist/create/bin.js +19 -9
- package/dist/{define-config-U3_xg7i-.js → define-config-DAaCa0U_.js} +2 -2
- package/dist/{define-config-DIE9de46.cjs → define-config-DpAPETDf.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-B5-lvRaU.js → editor-QOIGtmH4.js} +143 -36
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins-dev.d.ts +3 -0
- package/dist/lint-plugins-dev.js +2 -0
- package/dist/lint-plugins.cjs +21 -0
- package/dist/lint-plugins.d.ts +3 -0
- package/dist/lint-plugins.js +2 -0
- package/dist/migration/bin.js +7 -7
- package/dist/{oxlint-plugin-config-Drdl67Xp.js → oxlint-plugin-config-BU42tr8y.js} +1 -1
- package/dist/oxlint-plugin.js +93 -32
- package/dist/pack-bin.js +1 -1
- package/dist/{package-BZz2Ij68.js → package-BB-Jh_z3.js} +1 -1
- package/dist/{prompts-CtzEgFY-.js → prompts-CujFOJXu.js} +1 -1
- package/dist/{resolve-vite-config-Dnmc-lBc.js → resolve-vite-config-6Nox70uP.js} +1 -1
- package/dist/{resolve-vite-config-CGks1xR7.js → resolve-vite-config-CHHjsjKJ.js} +2 -2
- package/dist/staged/bin.js +1 -1
- package/dist/toolchain.js +8 -8
- package/dist/toolchain.json +8 -8
- package/dist/{tsconfig-CUggNuJR.js → tsconfig-DCtWfQPA.js} +2 -2
- package/dist/{tsconfig-VAbm4ZzJ.js → tsconfig-MXktI3SX.js} +1 -1
- package/dist/version.js +2 -2
- package/dist/versions.js +4 -4
- package/docs/config/fmt.md +4 -2
- package/docs/config/lint.md +4 -2
- package/docs/guide/env.md +29 -5
- package/docs/guide/fmt.md +3 -1
- package/docs/guide/install.md +1 -0
- package/docs/guide/installer-env-vars.md +35 -1
- package/docs/guide/lint.md +58 -1
- package/docs/guide/migrate-rules.md +38 -0
- package/docs/guide/migrate.md +1 -1
- package/docs/guide/monorepo.md +2 -0
- package/docs/guide/troubleshooting.md +14 -0
- package/package.json +23 -14
- package/templates/generator/README.md +14 -0
- package/templates/generator/bin/index.ts +54 -5
package/README.md
CHANGED
package/bin/vp
CHANGED
package/binding/index.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// prettier-ignore
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
// @ts-nocheck
|
|
4
3
|
/* auto-generated by NAPI-RS */
|
|
@@ -81,12 +80,12 @@ function requireNative() {
|
|
|
81
80
|
const bindingPackageVersion =
|
|
82
81
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
83
82
|
if (
|
|
84
|
-
bindingPackageVersion !== '0.3.
|
|
83
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
85
84
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
86
85
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
87
86
|
) {
|
|
88
87
|
throw new Error(
|
|
89
|
-
`Native binding package version mismatch, expected 0.3.
|
|
88
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
90
89
|
);
|
|
91
90
|
}
|
|
92
91
|
return binding;
|
|
@@ -104,12 +103,12 @@ function requireNative() {
|
|
|
104
103
|
const bindingPackageVersion =
|
|
105
104
|
require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
|
|
106
105
|
if (
|
|
107
|
-
bindingPackageVersion !== '0.3.
|
|
106
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
108
107
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
109
108
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
110
109
|
) {
|
|
111
110
|
throw new Error(
|
|
112
|
-
`Native binding package version mismatch, expected 0.3.
|
|
111
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
113
112
|
);
|
|
114
113
|
}
|
|
115
114
|
return binding;
|
|
@@ -139,12 +138,12 @@ function requireNative() {
|
|
|
139
138
|
const bindingPackageVersion =
|
|
140
139
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
141
140
|
if (
|
|
142
|
-
bindingPackageVersion !== '0.3.
|
|
141
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
143
142
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
144
143
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
145
144
|
) {
|
|
146
145
|
throw new Error(
|
|
147
|
-
`Native binding package version mismatch, expected 0.3.
|
|
146
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
148
147
|
);
|
|
149
148
|
}
|
|
150
149
|
return binding;
|
|
@@ -162,12 +161,12 @@ function requireNative() {
|
|
|
162
161
|
const bindingPackageVersion =
|
|
163
162
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
164
163
|
if (
|
|
165
|
-
bindingPackageVersion !== '0.3.
|
|
164
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
166
165
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
167
166
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
168
167
|
) {
|
|
169
168
|
throw new Error(
|
|
170
|
-
`Native binding package version mismatch, expected 0.3.
|
|
169
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
171
170
|
);
|
|
172
171
|
}
|
|
173
172
|
return binding;
|
|
@@ -186,12 +185,12 @@ function requireNative() {
|
|
|
186
185
|
const bindingPackageVersion =
|
|
187
186
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
188
187
|
if (
|
|
189
|
-
bindingPackageVersion !== '0.3.
|
|
188
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
190
189
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
191
190
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
192
191
|
) {
|
|
193
192
|
throw new Error(
|
|
194
|
-
`Native binding package version mismatch, expected 0.3.
|
|
193
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
195
194
|
);
|
|
196
195
|
}
|
|
197
196
|
return binding;
|
|
@@ -209,12 +208,12 @@ function requireNative() {
|
|
|
209
208
|
const bindingPackageVersion =
|
|
210
209
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
211
210
|
if (
|
|
212
|
-
bindingPackageVersion !== '0.3.
|
|
211
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
213
212
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
214
213
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
215
214
|
) {
|
|
216
215
|
throw new Error(
|
|
217
|
-
`Native binding package version mismatch, expected 0.3.
|
|
216
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
218
217
|
);
|
|
219
218
|
}
|
|
220
219
|
return binding;
|
|
@@ -235,12 +234,12 @@ function requireNative() {
|
|
|
235
234
|
const bindingPackageVersion =
|
|
236
235
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
237
236
|
if (
|
|
238
|
-
bindingPackageVersion !== '0.3.
|
|
237
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
239
238
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
240
239
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
241
240
|
) {
|
|
242
241
|
throw new Error(
|
|
243
|
-
`Native binding package version mismatch, expected 0.3.
|
|
242
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
244
243
|
);
|
|
245
244
|
}
|
|
246
245
|
return binding;
|
|
@@ -258,12 +257,12 @@ function requireNative() {
|
|
|
258
257
|
const bindingPackageVersion =
|
|
259
258
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
260
259
|
if (
|
|
261
|
-
bindingPackageVersion !== '0.3.
|
|
260
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
262
261
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
263
262
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
264
263
|
) {
|
|
265
264
|
throw new Error(
|
|
266
|
-
`Native binding package version mismatch, expected 0.3.
|
|
265
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
267
266
|
);
|
|
268
267
|
}
|
|
269
268
|
return binding;
|
|
@@ -281,12 +280,12 @@ function requireNative() {
|
|
|
281
280
|
const bindingPackageVersion =
|
|
282
281
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
283
282
|
if (
|
|
284
|
-
bindingPackageVersion !== '0.3.
|
|
283
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
285
284
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
286
285
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
287
286
|
) {
|
|
288
287
|
throw new Error(
|
|
289
|
-
`Native binding package version mismatch, expected 0.3.
|
|
288
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
290
289
|
);
|
|
291
290
|
}
|
|
292
291
|
return binding;
|
|
@@ -308,12 +307,12 @@ function requireNative() {
|
|
|
308
307
|
const bindingPackageVersion =
|
|
309
308
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
310
309
|
if (
|
|
311
|
-
bindingPackageVersion !== '0.3.
|
|
310
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
312
311
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
313
312
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
314
313
|
) {
|
|
315
314
|
throw new Error(
|
|
316
|
-
`Native binding package version mismatch, expected 0.3.
|
|
315
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
317
316
|
);
|
|
318
317
|
}
|
|
319
318
|
return binding;
|
|
@@ -331,12 +330,12 @@ function requireNative() {
|
|
|
331
330
|
const bindingPackageVersion =
|
|
332
331
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
333
332
|
if (
|
|
334
|
-
bindingPackageVersion !== '0.3.
|
|
333
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
335
334
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
336
335
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
337
336
|
) {
|
|
338
337
|
throw new Error(
|
|
339
|
-
`Native binding package version mismatch, expected 0.3.
|
|
338
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
340
339
|
);
|
|
341
340
|
}
|
|
342
341
|
return binding;
|
|
@@ -359,12 +358,12 @@ function requireNative() {
|
|
|
359
358
|
const bindingPackageVersion =
|
|
360
359
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
361
360
|
if (
|
|
362
|
-
bindingPackageVersion !== '0.3.
|
|
361
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
363
362
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
364
363
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
365
364
|
) {
|
|
366
365
|
throw new Error(
|
|
367
|
-
`Native binding package version mismatch, expected 0.3.
|
|
366
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
368
367
|
);
|
|
369
368
|
}
|
|
370
369
|
return binding;
|
|
@@ -382,12 +381,12 @@ function requireNative() {
|
|
|
382
381
|
const bindingPackageVersion =
|
|
383
382
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
384
383
|
if (
|
|
385
|
-
bindingPackageVersion !== '0.3.
|
|
384
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
386
385
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
387
386
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
388
387
|
) {
|
|
389
388
|
throw new Error(
|
|
390
|
-
`Native binding package version mismatch, expected 0.3.
|
|
389
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
391
390
|
);
|
|
392
391
|
}
|
|
393
392
|
return binding;
|
|
@@ -407,12 +406,12 @@ function requireNative() {
|
|
|
407
406
|
const bindingPackageVersion =
|
|
408
407
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
409
408
|
if (
|
|
410
|
-
bindingPackageVersion !== '0.3.
|
|
409
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
411
410
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
412
411
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
413
412
|
) {
|
|
414
413
|
throw new Error(
|
|
415
|
-
`Native binding package version mismatch, expected 0.3.
|
|
414
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
416
415
|
);
|
|
417
416
|
}
|
|
418
417
|
return binding;
|
|
@@ -430,12 +429,12 @@ function requireNative() {
|
|
|
430
429
|
const bindingPackageVersion =
|
|
431
430
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
432
431
|
if (
|
|
433
|
-
bindingPackageVersion !== '0.3.
|
|
432
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
434
433
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
435
434
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
436
435
|
) {
|
|
437
436
|
throw new Error(
|
|
438
|
-
`Native binding package version mismatch, expected 0.3.
|
|
437
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
439
438
|
);
|
|
440
439
|
}
|
|
441
440
|
return binding;
|
|
@@ -455,12 +454,12 @@ function requireNative() {
|
|
|
455
454
|
const bindingPackageVersion =
|
|
456
455
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
457
456
|
if (
|
|
458
|
-
bindingPackageVersion !== '0.3.
|
|
457
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
459
458
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
460
459
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
461
460
|
) {
|
|
462
461
|
throw new Error(
|
|
463
|
-
`Native binding package version mismatch, expected 0.3.
|
|
462
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
464
463
|
);
|
|
465
464
|
}
|
|
466
465
|
return binding;
|
|
@@ -478,12 +477,12 @@ function requireNative() {
|
|
|
478
477
|
const bindingPackageVersion =
|
|
479
478
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
480
479
|
if (
|
|
481
|
-
bindingPackageVersion !== '0.3.
|
|
480
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
482
481
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
483
482
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
484
483
|
) {
|
|
485
484
|
throw new Error(
|
|
486
|
-
`Native binding package version mismatch, expected 0.3.
|
|
485
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
487
486
|
);
|
|
488
487
|
}
|
|
489
488
|
return binding;
|
|
@@ -503,12 +502,12 @@ function requireNative() {
|
|
|
503
502
|
const bindingPackageVersion =
|
|
504
503
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
505
504
|
if (
|
|
506
|
-
bindingPackageVersion !== '0.3.
|
|
505
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
507
506
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
508
507
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
509
508
|
) {
|
|
510
509
|
throw new Error(
|
|
511
|
-
`Native binding package version mismatch, expected 0.3.
|
|
510
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
512
511
|
);
|
|
513
512
|
}
|
|
514
513
|
return binding;
|
|
@@ -526,12 +525,12 @@ function requireNative() {
|
|
|
526
525
|
const bindingPackageVersion =
|
|
527
526
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
528
527
|
if (
|
|
529
|
-
bindingPackageVersion !== '0.3.
|
|
528
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
530
529
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
531
530
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
532
531
|
) {
|
|
533
532
|
throw new Error(
|
|
534
|
-
`Native binding package version mismatch, expected 0.3.
|
|
533
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
535
534
|
);
|
|
536
535
|
}
|
|
537
536
|
return binding;
|
|
@@ -551,12 +550,12 @@ function requireNative() {
|
|
|
551
550
|
const bindingPackageVersion =
|
|
552
551
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
553
552
|
if (
|
|
554
|
-
bindingPackageVersion !== '0.3.
|
|
553
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
555
554
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
556
555
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
557
556
|
) {
|
|
558
557
|
throw new Error(
|
|
559
|
-
`Native binding package version mismatch, expected 0.3.
|
|
558
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
560
559
|
);
|
|
561
560
|
}
|
|
562
561
|
return binding;
|
|
@@ -574,12 +573,12 @@ function requireNative() {
|
|
|
574
573
|
const bindingPackageVersion =
|
|
575
574
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
576
575
|
if (
|
|
577
|
-
bindingPackageVersion !== '0.3.
|
|
576
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
578
577
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
579
578
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
580
579
|
) {
|
|
581
580
|
throw new Error(
|
|
582
|
-
`Native binding package version mismatch, expected 0.3.
|
|
581
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
583
582
|
);
|
|
584
583
|
}
|
|
585
584
|
return binding;
|
|
@@ -598,12 +597,12 @@ function requireNative() {
|
|
|
598
597
|
const bindingPackageVersion =
|
|
599
598
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
600
599
|
if (
|
|
601
|
-
bindingPackageVersion !== '0.3.
|
|
600
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
602
601
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
603
602
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
604
603
|
) {
|
|
605
604
|
throw new Error(
|
|
606
|
-
`Native binding package version mismatch, expected 0.3.
|
|
605
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
607
606
|
);
|
|
608
607
|
}
|
|
609
608
|
return binding;
|
|
@@ -621,12 +620,12 @@ function requireNative() {
|
|
|
621
620
|
const bindingPackageVersion =
|
|
622
621
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
623
622
|
if (
|
|
624
|
-
bindingPackageVersion !== '0.3.
|
|
623
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
625
624
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
626
625
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
627
626
|
) {
|
|
628
627
|
throw new Error(
|
|
629
|
-
`Native binding package version mismatch, expected 0.3.
|
|
628
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
630
629
|
);
|
|
631
630
|
}
|
|
632
631
|
return binding;
|
|
@@ -648,12 +647,12 @@ function requireNative() {
|
|
|
648
647
|
const bindingPackageVersion =
|
|
649
648
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
650
649
|
if (
|
|
651
|
-
bindingPackageVersion !== '0.3.
|
|
650
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
652
651
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
653
652
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
654
653
|
) {
|
|
655
654
|
throw new Error(
|
|
656
|
-
`Native binding package version mismatch, expected 0.3.
|
|
655
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
657
656
|
);
|
|
658
657
|
}
|
|
659
658
|
return binding;
|
|
@@ -671,12 +670,12 @@ function requireNative() {
|
|
|
671
670
|
const bindingPackageVersion =
|
|
672
671
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
673
672
|
if (
|
|
674
|
-
bindingPackageVersion !== '0.3.
|
|
673
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
675
674
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
676
675
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
677
676
|
) {
|
|
678
677
|
throw new Error(
|
|
679
|
-
`Native binding package version mismatch, expected 0.3.
|
|
678
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
680
679
|
);
|
|
681
680
|
}
|
|
682
681
|
return binding;
|
|
@@ -694,12 +693,12 @@ function requireNative() {
|
|
|
694
693
|
const bindingPackageVersion =
|
|
695
694
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
696
695
|
if (
|
|
697
|
-
bindingPackageVersion !== '0.3.
|
|
696
|
+
bindingPackageVersion !== '0.3.2' &&
|
|
698
697
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
699
698
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
700
699
|
) {
|
|
701
700
|
throw new Error(
|
|
702
|
-
`Native binding package version mismatch, expected 0.3.
|
|
701
|
+
`Native binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
703
702
|
);
|
|
704
703
|
}
|
|
705
704
|
return binding;
|
|
@@ -844,9 +843,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
844
843
|
) {
|
|
845
844
|
const bindingPackageVersion =
|
|
846
845
|
require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
|
|
847
|
-
if (bindingPackageVersion !== '0.3.
|
|
846
|
+
if (bindingPackageVersion !== '0.3.2') {
|
|
848
847
|
throw new Error(
|
|
849
|
-
`WASI binding package version mismatch, expected 0.3.
|
|
848
|
+
`WASI binding package version mismatch, expected 0.3.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
850
849
|
);
|
|
851
850
|
}
|
|
852
851
|
}
|
package/binding/index.d.cts
CHANGED
|
@@ -306,6 +306,7 @@ export interface TreeShakeOptions {
|
|
|
306
306
|
*/
|
|
307
307
|
invalidImportSideEffects?: boolean;
|
|
308
308
|
}
|
|
309
|
+
|
|
309
310
|
export interface Comment {
|
|
310
311
|
type: 'Line' | 'Block';
|
|
311
312
|
value: string;
|
|
@@ -332,6 +333,7 @@ export declare const enum Severity {
|
|
|
332
333
|
Warning = 'Warning',
|
|
333
334
|
Advice = 'Advice',
|
|
334
335
|
}
|
|
336
|
+
|
|
335
337
|
export declare class ParseResult {
|
|
336
338
|
get program(): import('@oxc-project/types').Program;
|
|
337
339
|
get module(): EcmaScriptModule;
|
|
@@ -610,6 +612,7 @@ export interface ValueSpan {
|
|
|
610
612
|
start: number;
|
|
611
613
|
end: number;
|
|
612
614
|
}
|
|
615
|
+
|
|
613
616
|
export declare class ResolverFactory {
|
|
614
617
|
constructor(options?: NapiResolveOptions | undefined | null);
|
|
615
618
|
static default(): ResolverFactory;
|
|
@@ -919,6 +922,7 @@ export interface TsconfigOptions {
|
|
|
919
922
|
*/
|
|
920
923
|
references?: 'auto';
|
|
921
924
|
}
|
|
925
|
+
|
|
922
926
|
export interface SourceMap {
|
|
923
927
|
file?: string;
|
|
924
928
|
mappings: string;
|
|
@@ -929,6 +933,7 @@ export interface SourceMap {
|
|
|
929
933
|
version: number;
|
|
930
934
|
x_google_ignoreList?: Array<number>;
|
|
931
935
|
}
|
|
936
|
+
|
|
932
937
|
export interface ArrowFunctionsOptions {
|
|
933
938
|
/**
|
|
934
939
|
* This option enables the following:
|
|
@@ -1604,6 +1609,7 @@ export interface TypeScriptOptions {
|
|
|
1604
1609
|
*/
|
|
1605
1610
|
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean;
|
|
1606
1611
|
}
|
|
1612
|
+
|
|
1607
1613
|
export declare class BindingBundleEndEventData {
|
|
1608
1614
|
output: string;
|
|
1609
1615
|
duration: number;
|
|
@@ -2180,6 +2186,7 @@ export interface BindingDevOptions {
|
|
|
2180
2186
|
onAdditionalAssets?: undefined | ((output: BindingOutputs) => void | Promise<void>);
|
|
2181
2187
|
rebuildStrategy?: BindingRebuildStrategy;
|
|
2182
2188
|
watch?: BindingDevWatchOptions;
|
|
2189
|
+
hotUpdate?: boolean;
|
|
2183
2190
|
}
|
|
2184
2191
|
|
|
2185
2192
|
export interface BindingDevtoolsOptions {
|
|
@@ -2705,6 +2712,7 @@ export interface BindingManualCodeSplittingOptions {
|
|
|
2705
2712
|
maxSize?: number;
|
|
2706
2713
|
minModuleSize?: number;
|
|
2707
2714
|
maxModuleSize?: number;
|
|
2715
|
+
internalInvalidateModuleInfoCache?: () => void;
|
|
2708
2716
|
}
|
|
2709
2717
|
|
|
2710
2718
|
export interface BindingMatchGroup {
|
|
@@ -3434,6 +3442,7 @@ export declare function startAsyncRuntime(): void;
|
|
|
3434
3442
|
export interface ViteImportGlobMeta {
|
|
3435
3443
|
isSubImportsPattern?: boolean;
|
|
3436
3444
|
}
|
|
3445
|
+
|
|
3437
3446
|
/** Error from batch import rewriting */
|
|
3438
3447
|
export interface BatchRewriteError {
|
|
3439
3448
|
/** The file path that had an error */
|
|
@@ -3456,6 +3465,8 @@ export interface BatchRewriteResult {
|
|
|
3456
3465
|
|
|
3457
3466
|
/** Configuration options passed from JavaScript to Rust. */
|
|
3458
3467
|
export interface CliOptions {
|
|
3468
|
+
/** The current JavaScript runtime (`process.execPath`). */
|
|
3469
|
+
nodeExecPath: string;
|
|
3459
3470
|
lint: (err: Error | null, arg: JsCommandContext) => Promise<JsCommandResolvedResult>;
|
|
3460
3471
|
fmt: (err: Error | null, arg: JsCommandContext) => Promise<JsCommandResolvedResult>;
|
|
3461
3472
|
vite: (err: Error | null, arg: JsCommandContext) => Promise<JsCommandResolvedResult>;
|
|
@@ -3802,6 +3813,7 @@ export declare function rewriteEslint(scriptsJson: string): string | null;
|
|
|
3802
3813
|
export declare function rewriteImportsInDirectory(
|
|
3803
3814
|
root: string,
|
|
3804
3815
|
preserveVitestInNuxtPackages?: boolean | undefined | null,
|
|
3816
|
+
oxlintOwnerDirs?: Array<string> | undefined | null,
|
|
3805
3817
|
): BatchRewriteResult;
|
|
3806
3818
|
|
|
3807
3819
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SETUP_VP_VERSION } from "./constants-
|
|
2
|
-
import { C as multiselect, S as log, T as select, k as isCancel } from "./prompts-
|
|
1
|
+
import { a as SETUP_VP_VERSION } from "./constants-IhOditRA.js";
|
|
2
|
+
import { C as multiselect, S as log, T as select, k as isCancel } from "./prompts-CujFOJXu.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import fs from "node:fs";
|
package/dist/bin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as renderCliDoc } from "./help-BmKpeOP9.js";
|
|
2
2
|
import { c as warnMsg, i as log, n as errorMsg, o as printHeader, t as accent } from "./terminal-MKGAuy-p.js";
|
|
3
|
-
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-
|
|
4
|
-
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-
|
|
3
|
+
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-IhOditRA.js";
|
|
4
|
+
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-BU42tr8y.js";
|
|
5
5
|
import { t as resolveTsgolintExecutable } from "./tsgolint-path-CbDReEOx.js";
|
|
6
|
-
import { a as readNearestPackageJson } from "./package-
|
|
6
|
+
import { a as readNearestPackageJson } from "./package-BB-Jh_z3.js";
|
|
7
7
|
import { t as cac } from "./dist-DfmT__Aw.js";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import path, { dirname, join, resolve } from "node:path";
|
|
@@ -1517,7 +1517,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
|
|
|
1517
1517
|
}
|
|
1518
1518
|
if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
|
|
1519
1519
|
const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
|
|
1520
|
-
const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-
|
|
1520
|
+
const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-MXktI3SX.js");
|
|
1521
1521
|
await fixBaseUrlInTsconfig(projectPath);
|
|
1522
1522
|
const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
|
|
1523
1523
|
const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
|
|
@@ -1817,13 +1817,14 @@ else if (command === "hooks") await import("./hooks/bin.js");
|
|
|
1817
1817
|
else if (command === "--version" || command === "-V") await import("./version.js");
|
|
1818
1818
|
else if (command === "staged") await import("./staged/bin.js");
|
|
1819
1819
|
else try {
|
|
1820
|
-
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-
|
|
1820
|
+
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-6Nox70uP.js");
|
|
1821
1821
|
const initInspection = inspectInitCommand(command, args.slice(1));
|
|
1822
1822
|
if (initInspection.handled && initInspection.configKey && initInspection.hasExistingConfigKey && initInspection.existingViteConfigPath) {
|
|
1823
1823
|
log(`Skipped initialization: '${accent(initInspection.configKey)}' already exists in '${accent(path.basename(initInspection.existingViteConfigPath))}'.`);
|
|
1824
1824
|
process.exit(0);
|
|
1825
1825
|
}
|
|
1826
1826
|
const exitCode = await run({
|
|
1827
|
+
nodeExecPath: process.execPath,
|
|
1827
1828
|
lint,
|
|
1828
1829
|
pack,
|
|
1829
1830
|
fmt,
|
package/dist/config/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as log, n as errorMsg } from "../terminal-MKGAuy-p.js";
|
|
2
|
-
import { i as promptGitHooks, n as defaultInteractive } from "../prompts-
|
|
3
|
-
import { o as updateExistingAgentInstructions } from "../agent-
|
|
2
|
+
import { i as promptGitHooks, n as defaultInteractive } from "../prompts-CujFOJXu.js";
|
|
3
|
+
import { o as updateExistingAgentInstructions } from "../agent-C59HKB4Y.js";
|
|
4
4
|
import { t as require_dist } from "../dist-BDYZP12R.js";
|
|
5
5
|
import { a as install, c as resolveHooksLocation, o as isGitHooksEnvDisabled, s as isHooksUserDisabled } from "../hooks-C-4gykWR.js";
|
|
6
6
|
import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
//#region package.json
|
|
3
|
-
var version = "0.3.
|
|
3
|
+
var version = "0.3.2";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/utils/constants.ts
|
|
6
6
|
const VITE_PLUS_NAME = "vite-plus";
|
|
@@ -14,7 +14,7 @@ const VITE_CONFIG_FILES = [
|
|
|
14
14
|
"vite.config.cts"
|
|
15
15
|
];
|
|
16
16
|
const VITEST_VERSION = "4.1.11";
|
|
17
|
-
const SETUP_VP_VERSION = "v1.
|
|
17
|
+
const SETUP_VP_VERSION = "v1.20.0";
|
|
18
18
|
const TSDOWN_MIGRATION_SKILL_URL = "https://github.com/rolldown/tsdown/blob/main/skills/tsdown-migrate/SKILL.md";
|
|
19
19
|
const VITE_PLUS_OVERRIDE_PACKAGES = process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : {
|
|
20
20
|
vite: `npm:@voidzero-dev/vite-plus-core@${VITE_PLUS_VERSION}`,
|