vite-plus 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -1
- package/binding/index.cjs +54 -54
- package/binding/index.d.cts +3 -0
- package/dist/{agent-eISuMXJb.js → agent-KeDc6vmg.js} +2 -2
- package/dist/bin.js +10 -10
- package/dist/command-DaRqSNpP.js +1 -0
- package/dist/comparison-CmVirWIW-DUGaiYqF.js +121 -0
- package/dist/config/bin.js +4 -4
- package/dist/{constants-CCQkpaxK.js → constants-BW3g7VnD.js} +3 -3
- package/dist/create/bin.d.ts +2 -1
- package/dist/create/bin.js +91 -23
- package/dist/{define-config-CeW9DETl.d.ts → define-config-Bexdd6RZ.d.ts} +1 -1
- package/dist/{define-config-Ro6PS4dP.js → define-config-CIlk9scU.js} +111 -6
- package/dist/{define-config-CREUiMmM.cjs → define-config-Dq_23Eyr.cjs} +89 -3
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -2
- package/dist/{dist-BsAzy8OW.js → dist-Bi7ZEK3c.js} +1 -2
- package/dist/dist-CBWGibx8.js +3 -0
- package/dist/{dist-DfmT__Aw.js → dist-Cqz8OtiO.js} +24 -21
- package/dist/{editor-B8tkz7nL.js → editor-b1XUwt9v.js} +30 -23
- package/dist/fmt.js +1 -2
- package/dist/hooks/bin.js +1 -1
- package/dist/{hooks-C-4gykWR.js → hooks-DhwsWb46.js} +34 -22
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins-dev.js +1 -2
- package/dist/lint-plugins.cjs +1 -1
- package/dist/lint-plugins.js +1 -2
- package/dist/migration/bin.js +17 -15
- package/dist/{oxlint-plugin-config-CbG58Kzr.js → oxlint-plugin-config-Dx-ZY2MN.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +2 -2
- package/dist/{package-BS84eWrW.js → package-BP16iQby.js} +1 -1
- package/dist/{package-overrides-CpoQngt3.js → package-overrides-D1RcXSFl.js} +1 -1
- package/dist/{prompts-ByOzbMBG.js → prompts-BGpQtC5z.js} +15 -14
- package/dist/resolve-vite-config-CGzlyhGr.js +1 -0
- package/dist/{resolve-vite-config-Be237LWp.js → resolve-vite-config-x47JetlI.js} +2 -2
- package/dist/staged/bin.js +2 -2
- package/dist/sync-versions/bin.js +4759 -3369
- package/dist/sync-versions/bin.mjs +4893 -3500
- package/dist/test/browser/providers/playwright.d.ts +7 -2
- package/dist/test/browser-playwright.d.ts +7 -2
- package/dist/toolchain.js +12 -12
- package/dist/toolchain.json +12 -12
- package/dist/tsconfig-C5PnJfW4.js +1 -0
- package/dist/{tsconfig-DzZ-nrx2.js → tsconfig-D2DzAQ_D.js} +2 -2
- package/dist/version.js +2 -2
- package/dist/versions.js +7 -7
- package/docs/config/run.md +9 -5
- package/docs/config/staged.md +1 -1
- package/docs/guide/automatic-data-tracking.md +7 -6
- package/docs/guide/cache.md +3 -3
- package/docs/guide/check.md +7 -7
- package/docs/guide/commit-hooks.md +3 -1
- package/docs/guide/create.md +14 -4
- package/docs/guide/env.md +9 -2
- package/docs/guide/github-actions-cache.md +1 -1
- package/docs/guide/global-cli.md +36 -10
- package/docs/guide/ide-integration.md +1 -1
- package/docs/guide/index.md +8 -8
- package/docs/guide/local-cli.md +20 -4
- package/docs/guide/migrate-rules.md +3 -3
- package/docs/guide/migrate.md +9 -9
- package/docs/guide/{install.md → package-management.md} +25 -4
- package/docs/guide/run.md +10 -8
- package/docs/guide/test.md +3 -1
- package/docs/guide/troubleshooting.md +7 -5
- package/docs/guide/upgrade-project.md +1 -5
- package/docs/guide/upgrade.md +6 -0
- package/docs/guide/vitest-v5.md +2 -2
- package/docs/guide/vpx.md +3 -3
- package/package.json +30 -29
- package/templates/generator/bin/index.ts +0 -0
- package/templates/generator/package.json +2 -2
- package/templates/generator/src/template.ts +1 -0
- package/dist/command-CLJK5jGW.js +0 -2
- package/dist/dist-DUsqQuw8.js +0 -6774
- package/dist/resolve-vite-config-CofpYgnY.js +0 -2
- package/dist/tsconfig-3ONY2k2K.js +0 -2
package/LICENSE
CHANGED
|
@@ -74,6 +74,34 @@ Repository: https://github.com/nkzw-tech/safe-word-list
|
|
|
74
74
|
|
|
75
75
|
---------------------------------------
|
|
76
76
|
|
|
77
|
+
## @voidzero-dev/vite-task-client
|
|
78
|
+
License: MIT
|
|
79
|
+
Repository: https://github.com/voidzero-dev/vite-task
|
|
80
|
+
|
|
81
|
+
> MIT License
|
|
82
|
+
>
|
|
83
|
+
> Copyright (c) 2026-present, VoidZero Inc.
|
|
84
|
+
>
|
|
85
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
86
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
87
|
+
> in the Software without restriction, including without limitation the rights
|
|
88
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
89
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
90
|
+
> furnished to do so, subject to the following conditions:
|
|
91
|
+
>
|
|
92
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
93
|
+
> copies or substantial portions of the Software.
|
|
94
|
+
>
|
|
95
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
96
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
97
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
98
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
99
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
100
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
101
|
+
> SOFTWARE.
|
|
102
|
+
|
|
103
|
+
---------------------------------------
|
|
104
|
+
|
|
77
105
|
## balanced-match
|
|
78
106
|
License: MIT
|
|
79
107
|
By: Julian Gruber
|
|
@@ -134,7 +162,7 @@ Repository: https://github.com/juliangruber/brace-expansion
|
|
|
134
162
|
|
|
135
163
|
## cac
|
|
136
164
|
License: MIT
|
|
137
|
-
By: egoist <0x142857@gmail.com>
|
|
165
|
+
By: egoist <0x142857@gmail.com>, Kevin Deng <sxzz@sxzz.moe>
|
|
138
166
|
Repository: https://github.com/cacjs/cac
|
|
139
167
|
|
|
140
168
|
> The MIT License (MIT)
|
package/binding/index.cjs
CHANGED
|
@@ -93,12 +93,12 @@ function requireNative() {
|
|
|
93
93
|
const bindingPackageVersion =
|
|
94
94
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
95
95
|
if (
|
|
96
|
-
bindingPackageVersion !== '1.
|
|
96
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
97
97
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
98
98
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
99
99
|
) {
|
|
100
100
|
throw new Error(
|
|
101
|
-
`Native binding package version mismatch, expected 1.
|
|
101
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
102
102
|
);
|
|
103
103
|
}
|
|
104
104
|
return binding;
|
|
@@ -116,12 +116,12 @@ function requireNative() {
|
|
|
116
116
|
const bindingPackageVersion =
|
|
117
117
|
require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
|
|
118
118
|
if (
|
|
119
|
-
bindingPackageVersion !== '1.
|
|
119
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
120
120
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
121
121
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
122
122
|
) {
|
|
123
123
|
throw new Error(
|
|
124
|
-
`Native binding package version mismatch, expected 1.
|
|
124
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
127
|
return binding;
|
|
@@ -151,12 +151,12 @@ function requireNative() {
|
|
|
151
151
|
const bindingPackageVersion =
|
|
152
152
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
153
153
|
if (
|
|
154
|
-
bindingPackageVersion !== '1.
|
|
154
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
155
155
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
156
156
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
157
157
|
) {
|
|
158
158
|
throw new Error(
|
|
159
|
-
`Native binding package version mismatch, expected 1.
|
|
159
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
return binding;
|
|
@@ -174,12 +174,12 @@ function requireNative() {
|
|
|
174
174
|
const bindingPackageVersion =
|
|
175
175
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
176
176
|
if (
|
|
177
|
-
bindingPackageVersion !== '1.
|
|
177
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
178
178
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
179
179
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
180
180
|
) {
|
|
181
181
|
throw new Error(
|
|
182
|
-
`Native binding package version mismatch, expected 1.
|
|
182
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
183
183
|
);
|
|
184
184
|
}
|
|
185
185
|
return binding;
|
|
@@ -198,12 +198,12 @@ function requireNative() {
|
|
|
198
198
|
const bindingPackageVersion =
|
|
199
199
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
200
200
|
if (
|
|
201
|
-
bindingPackageVersion !== '1.
|
|
201
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
202
202
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
203
203
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
204
204
|
) {
|
|
205
205
|
throw new Error(
|
|
206
|
-
`Native binding package version mismatch, expected 1.
|
|
206
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
209
|
return binding;
|
|
@@ -221,12 +221,12 @@ function requireNative() {
|
|
|
221
221
|
const bindingPackageVersion =
|
|
222
222
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
223
223
|
if (
|
|
224
|
-
bindingPackageVersion !== '1.
|
|
224
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
225
225
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
226
226
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
227
227
|
) {
|
|
228
228
|
throw new Error(
|
|
229
|
-
`Native binding package version mismatch, expected 1.
|
|
229
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
230
230
|
);
|
|
231
231
|
}
|
|
232
232
|
return binding;
|
|
@@ -247,12 +247,12 @@ function requireNative() {
|
|
|
247
247
|
const bindingPackageVersion =
|
|
248
248
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
249
249
|
if (
|
|
250
|
-
bindingPackageVersion !== '1.
|
|
250
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
251
251
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
252
252
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
253
253
|
) {
|
|
254
254
|
throw new Error(
|
|
255
|
-
`Native binding package version mismatch, expected 1.
|
|
255
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
return binding;
|
|
@@ -270,12 +270,12 @@ function requireNative() {
|
|
|
270
270
|
const bindingPackageVersion =
|
|
271
271
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
272
272
|
if (
|
|
273
|
-
bindingPackageVersion !== '1.
|
|
273
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
274
274
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
275
275
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
276
276
|
) {
|
|
277
277
|
throw new Error(
|
|
278
|
-
`Native binding package version mismatch, expected 1.
|
|
278
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
281
|
return binding;
|
|
@@ -293,12 +293,12 @@ function requireNative() {
|
|
|
293
293
|
const bindingPackageVersion =
|
|
294
294
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
295
295
|
if (
|
|
296
|
-
bindingPackageVersion !== '1.
|
|
296
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
297
297
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
298
298
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
299
299
|
) {
|
|
300
300
|
throw new Error(
|
|
301
|
-
`Native binding package version mismatch, expected 1.
|
|
301
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
302
302
|
);
|
|
303
303
|
}
|
|
304
304
|
return binding;
|
|
@@ -320,12 +320,12 @@ function requireNative() {
|
|
|
320
320
|
const bindingPackageVersion =
|
|
321
321
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
322
322
|
if (
|
|
323
|
-
bindingPackageVersion !== '1.
|
|
323
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
324
324
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
325
325
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
326
326
|
) {
|
|
327
327
|
throw new Error(
|
|
328
|
-
`Native binding package version mismatch, expected 1.
|
|
328
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
329
329
|
);
|
|
330
330
|
}
|
|
331
331
|
return binding;
|
|
@@ -343,12 +343,12 @@ function requireNative() {
|
|
|
343
343
|
const bindingPackageVersion =
|
|
344
344
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
345
345
|
if (
|
|
346
|
-
bindingPackageVersion !== '1.
|
|
346
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
347
347
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
348
348
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
349
349
|
) {
|
|
350
350
|
throw new Error(
|
|
351
|
-
`Native binding package version mismatch, expected 1.
|
|
351
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
352
352
|
);
|
|
353
353
|
}
|
|
354
354
|
return binding;
|
|
@@ -371,12 +371,12 @@ function requireNative() {
|
|
|
371
371
|
const bindingPackageVersion =
|
|
372
372
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
373
373
|
if (
|
|
374
|
-
bindingPackageVersion !== '1.
|
|
374
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
375
375
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
376
376
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
377
377
|
) {
|
|
378
378
|
throw new Error(
|
|
379
|
-
`Native binding package version mismatch, expected 1.
|
|
379
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
380
380
|
);
|
|
381
381
|
}
|
|
382
382
|
return binding;
|
|
@@ -394,12 +394,12 @@ function requireNative() {
|
|
|
394
394
|
const bindingPackageVersion =
|
|
395
395
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
396
396
|
if (
|
|
397
|
-
bindingPackageVersion !== '1.
|
|
397
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
398
398
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
399
399
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
400
400
|
) {
|
|
401
401
|
throw new Error(
|
|
402
|
-
`Native binding package version mismatch, expected 1.
|
|
402
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
403
403
|
);
|
|
404
404
|
}
|
|
405
405
|
return binding;
|
|
@@ -419,12 +419,12 @@ function requireNative() {
|
|
|
419
419
|
const bindingPackageVersion =
|
|
420
420
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
421
421
|
if (
|
|
422
|
-
bindingPackageVersion !== '1.
|
|
422
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
423
423
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
424
424
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
425
425
|
) {
|
|
426
426
|
throw new Error(
|
|
427
|
-
`Native binding package version mismatch, expected 1.
|
|
427
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
428
428
|
);
|
|
429
429
|
}
|
|
430
430
|
return binding;
|
|
@@ -442,12 +442,12 @@ function requireNative() {
|
|
|
442
442
|
const bindingPackageVersion =
|
|
443
443
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
444
444
|
if (
|
|
445
|
-
bindingPackageVersion !== '1.
|
|
445
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
446
446
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
447
447
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
448
448
|
) {
|
|
449
449
|
throw new Error(
|
|
450
|
-
`Native binding package version mismatch, expected 1.
|
|
450
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
451
451
|
);
|
|
452
452
|
}
|
|
453
453
|
return binding;
|
|
@@ -467,12 +467,12 @@ function requireNative() {
|
|
|
467
467
|
const bindingPackageVersion =
|
|
468
468
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
469
469
|
if (
|
|
470
|
-
bindingPackageVersion !== '1.
|
|
470
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
471
471
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
472
472
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
473
473
|
) {
|
|
474
474
|
throw new Error(
|
|
475
|
-
`Native binding package version mismatch, expected 1.
|
|
475
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
476
476
|
);
|
|
477
477
|
}
|
|
478
478
|
return binding;
|
|
@@ -490,12 +490,12 @@ function requireNative() {
|
|
|
490
490
|
const bindingPackageVersion =
|
|
491
491
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
492
492
|
if (
|
|
493
|
-
bindingPackageVersion !== '1.
|
|
493
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
494
494
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
495
495
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
496
496
|
) {
|
|
497
497
|
throw new Error(
|
|
498
|
-
`Native binding package version mismatch, expected 1.
|
|
498
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
499
499
|
);
|
|
500
500
|
}
|
|
501
501
|
return binding;
|
|
@@ -515,12 +515,12 @@ function requireNative() {
|
|
|
515
515
|
const bindingPackageVersion =
|
|
516
516
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
517
517
|
if (
|
|
518
|
-
bindingPackageVersion !== '1.
|
|
518
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
519
519
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
520
520
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
521
521
|
) {
|
|
522
522
|
throw new Error(
|
|
523
|
-
`Native binding package version mismatch, expected 1.
|
|
523
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
return binding;
|
|
@@ -538,12 +538,12 @@ function requireNative() {
|
|
|
538
538
|
const bindingPackageVersion =
|
|
539
539
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
540
540
|
if (
|
|
541
|
-
bindingPackageVersion !== '1.
|
|
541
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
542
542
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
543
543
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
544
544
|
) {
|
|
545
545
|
throw new Error(
|
|
546
|
-
`Native binding package version mismatch, expected 1.
|
|
546
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
547
547
|
);
|
|
548
548
|
}
|
|
549
549
|
return binding;
|
|
@@ -563,12 +563,12 @@ function requireNative() {
|
|
|
563
563
|
const bindingPackageVersion =
|
|
564
564
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
565
565
|
if (
|
|
566
|
-
bindingPackageVersion !== '1.
|
|
566
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
567
567
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
568
568
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
569
569
|
) {
|
|
570
570
|
throw new Error(
|
|
571
|
-
`Native binding package version mismatch, expected 1.
|
|
571
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
574
|
return binding;
|
|
@@ -586,12 +586,12 @@ function requireNative() {
|
|
|
586
586
|
const bindingPackageVersion =
|
|
587
587
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
588
588
|
if (
|
|
589
|
-
bindingPackageVersion !== '1.
|
|
589
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
590
590
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
591
591
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
592
592
|
) {
|
|
593
593
|
throw new Error(
|
|
594
|
-
`Native binding package version mismatch, expected 1.
|
|
594
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
595
595
|
);
|
|
596
596
|
}
|
|
597
597
|
return binding;
|
|
@@ -610,12 +610,12 @@ function requireNative() {
|
|
|
610
610
|
const bindingPackageVersion =
|
|
611
611
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
612
612
|
if (
|
|
613
|
-
bindingPackageVersion !== '1.
|
|
613
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
614
614
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
615
615
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
616
616
|
) {
|
|
617
617
|
throw new Error(
|
|
618
|
-
`Native binding package version mismatch, expected 1.
|
|
618
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
621
|
return binding;
|
|
@@ -633,12 +633,12 @@ function requireNative() {
|
|
|
633
633
|
const bindingPackageVersion =
|
|
634
634
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
635
635
|
if (
|
|
636
|
-
bindingPackageVersion !== '1.
|
|
636
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
637
637
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
638
638
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
639
639
|
) {
|
|
640
640
|
throw new Error(
|
|
641
|
-
`Native binding package version mismatch, expected 1.
|
|
641
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
642
642
|
);
|
|
643
643
|
}
|
|
644
644
|
return binding;
|
|
@@ -660,12 +660,12 @@ function requireNative() {
|
|
|
660
660
|
const bindingPackageVersion =
|
|
661
661
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
662
662
|
if (
|
|
663
|
-
bindingPackageVersion !== '1.
|
|
663
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
664
664
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
665
665
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
666
666
|
) {
|
|
667
667
|
throw new Error(
|
|
668
|
-
`Native binding package version mismatch, expected 1.
|
|
668
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
669
669
|
);
|
|
670
670
|
}
|
|
671
671
|
return binding;
|
|
@@ -683,12 +683,12 @@ function requireNative() {
|
|
|
683
683
|
const bindingPackageVersion =
|
|
684
684
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
685
685
|
if (
|
|
686
|
-
bindingPackageVersion !== '1.
|
|
686
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
687
687
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
688
688
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
689
689
|
) {
|
|
690
690
|
throw new Error(
|
|
691
|
-
`Native binding package version mismatch, expected 1.
|
|
691
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
692
692
|
);
|
|
693
693
|
}
|
|
694
694
|
return binding;
|
|
@@ -706,12 +706,12 @@ function requireNative() {
|
|
|
706
706
|
const bindingPackageVersion =
|
|
707
707
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
708
708
|
if (
|
|
709
|
-
bindingPackageVersion !== '1.
|
|
709
|
+
bindingPackageVersion !== '1.2.0' &&
|
|
710
710
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
711
711
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
712
712
|
) {
|
|
713
713
|
throw new Error(
|
|
714
|
-
`Native binding package version mismatch, expected 1.
|
|
714
|
+
`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
715
715
|
);
|
|
716
716
|
}
|
|
717
717
|
return binding;
|
|
@@ -857,9 +857,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
857
857
|
) {
|
|
858
858
|
const bindingPackageVersion =
|
|
859
859
|
require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
|
|
860
|
-
if (bindingPackageVersion !== '1.
|
|
860
|
+
if (bindingPackageVersion !== '1.2.0') {
|
|
861
861
|
throw new Error(
|
|
862
|
-
`WASI binding package version mismatch, expected 1.
|
|
862
|
+
`WASI binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
863
863
|
);
|
|
864
864
|
}
|
|
865
865
|
}
|
package/binding/index.d.cts
CHANGED
|
@@ -2458,6 +2458,7 @@ export interface BindingExperimentalDevModeOptions {
|
|
|
2458
2458
|
/** @deprecated Common runtime injection will be disabled by default in the future. */
|
|
2459
2459
|
skipCommonRuntimeInjection?: boolean;
|
|
2460
2460
|
lazy?: boolean;
|
|
2461
|
+
hotUpdate?: boolean;
|
|
2461
2462
|
}
|
|
2462
2463
|
|
|
2463
2464
|
export interface BindingExperimentalOptions {
|
|
@@ -3644,6 +3645,7 @@ export declare function documentationUrl(path: string): string;
|
|
|
3644
3645
|
* - `name`: The name of the package manager
|
|
3645
3646
|
* - `version`: The version of the package manager
|
|
3646
3647
|
* - `expected_hash`: The expected hash of the package manager
|
|
3648
|
+
* - `cwd`: An absolute directory used to load workspace npm configuration
|
|
3647
3649
|
*
|
|
3648
3650
|
* ## Returns
|
|
3649
3651
|
*
|
|
@@ -3676,6 +3678,7 @@ export interface DownloadPackageManagerOptions {
|
|
|
3676
3678
|
name: string;
|
|
3677
3679
|
version: string;
|
|
3678
3680
|
expectedHash?: string;
|
|
3681
|
+
cwd?: string;
|
|
3679
3682
|
}
|
|
3680
3683
|
|
|
3681
3684
|
export interface DownloadPackageManagerResult {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as rewriteDocumentationLinks } from "./documentation-DqcZSthV.js";
|
|
2
|
-
import { a as SETUP_VP_VERSION } from "./constants-
|
|
3
|
-
import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-
|
|
2
|
+
import { a as SETUP_VP_VERSION } from "./constants-BW3g7VnD.js";
|
|
3
|
+
import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-BGpQtC5z.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import fs from "node:fs";
|
package/dist/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as documentationUrl$1 } from "./documentation-DqcZSthV.js";
|
|
2
2
|
import { t as renderCliDoc } from "./help-BmKpeOP9.js";
|
|
3
3
|
import { c as warnMsg, i as log, n as errorMsg, o as printHeader, t as accent } from "./terminal-MKGAuy-p.js";
|
|
4
|
-
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-
|
|
5
|
-
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-
|
|
6
|
-
import { o as readNearestPackageJson } from "./package-
|
|
7
|
-
import { t as cac } from "./dist-
|
|
4
|
+
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-BW3g7VnD.js";
|
|
5
|
+
import { r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-Dx-ZY2MN.js";
|
|
6
|
+
import { o as readNearestPackageJson } from "./package-BP16iQby.js";
|
|
7
|
+
import { t as cac } from "./dist-Cqz8OtiO.js";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import path, { dirname, join, resolve } from "node:path";
|
|
10
10
|
import { fileURLToPath } from "node:url";
|
|
@@ -506,7 +506,7 @@ const commandHelpDocs = {
|
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
label: "--cache",
|
|
509
|
-
description: "
|
|
509
|
+
description: "Store the results of test runs to run failed and longer test files first (default: true)"
|
|
510
510
|
},
|
|
511
511
|
{
|
|
512
512
|
label: "--maxConcurrency <number>",
|
|
@@ -514,7 +514,7 @@ const commandHelpDocs = {
|
|
|
514
514
|
},
|
|
515
515
|
{
|
|
516
516
|
label: "--fsModuleCache",
|
|
517
|
-
description: "Cache transformed modules on the file system and reuse them between reruns (default:
|
|
517
|
+
description: "Cache transformed modules on the file system and reuse them between reruns (default: true)"
|
|
518
518
|
},
|
|
519
519
|
{
|
|
520
520
|
label: "--fsModuleCachePath <path>",
|
|
@@ -1099,7 +1099,7 @@ const commandHelpDocs = {
|
|
|
1099
1099
|
},
|
|
1100
1100
|
{
|
|
1101
1101
|
label: "--env-prefix <prefix>",
|
|
1102
|
-
description: "Prefix for env variables to inject into the bundle (default: TSDOWN_)"
|
|
1102
|
+
description: "Prefix for env variables to inject into the bundle (default: VITE_PACK_, TSDOWN_)"
|
|
1103
1103
|
},
|
|
1104
1104
|
{
|
|
1105
1105
|
label: "--on-success <command>",
|
|
@@ -1468,7 +1468,7 @@ export default defineConfig({});
|
|
|
1468
1468
|
return viteConfigPath;
|
|
1469
1469
|
}
|
|
1470
1470
|
async function vpFmt(cwd, filePath) {
|
|
1471
|
-
const { runCommandSilently } = await import("./command-
|
|
1471
|
+
const { runCommandSilently } = await import("./command-DaRqSNpP.js");
|
|
1472
1472
|
const { binPath, envs } = await fmt();
|
|
1473
1473
|
const result = await runCommandSilently({
|
|
1474
1474
|
command: binPath,
|
|
@@ -1527,7 +1527,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
|
|
|
1527
1527
|
}
|
|
1528
1528
|
if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
|
|
1529
1529
|
const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
|
|
1530
|
-
const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-
|
|
1530
|
+
const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-C5PnJfW4.js");
|
|
1531
1531
|
await fixBaseUrlInTsconfig(projectPath);
|
|
1532
1532
|
const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
|
|
1533
1533
|
const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
|
|
@@ -1873,7 +1873,7 @@ else try {
|
|
|
1873
1873
|
toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
|
|
1874
1874
|
vitePlusPackagePath,
|
|
1875
1875
|
resolveUniversalViteConfig: async (err, cwd) => {
|
|
1876
|
-
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-
|
|
1876
|
+
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-CGzlyhGr.js");
|
|
1877
1877
|
return resolveUniversalViteConfig(err, cwd);
|
|
1878
1878
|
},
|
|
1879
1879
|
nodeVersion: process.version,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runCommandSilently } from "./command-CguLh2KL.js";
|