vite-plus 0.3.0 → 0.3.1
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 -29
- package/README.md +2 -2
- package/binding/index.cjs +60 -55
- package/binding/index.d.cts +125 -14
- package/dist/{agent-Wqx0MPk0.js → agent-C5jMYVfB.js} +3 -2
- package/dist/bin.js +89 -58
- package/dist/cli-parse-DHE8NrBU.js +13 -0
- package/dist/client/bundledDevClient.mjs +1 -1
- package/dist/client/client.mjs +1 -1
- package/dist/client/env.mjs +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/config/bin.js +83 -55
- package/dist/{constants-Bn-U8o4v.js → constants-0IAVgpox.js} +3 -3
- package/dist/create/bin.d.ts +13 -5
- package/dist/create/bin.js +37 -190
- package/dist/{define-config-WiVlryJ2.cjs → define-config-DIE9de46.cjs} +1 -1
- package/dist/{define-config-DWoAkNdp.d.ts → define-config-DPNEJxPz.d.ts} +5 -9
- package/dist/{define-config-GXUdVT-0.js → define-config-U3_xg7i-.js} +2 -2
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/dist-DfmT__Aw.js +619 -0
- package/dist/{editor-CC4DqODz.js → editor-B5-lvRaU.js} +68 -40
- package/dist/hooks/bin.js +9 -114
- package/dist/{hooks-DFqViZqZ.js → hooks-C-4gykWR.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/migration/bin.js +24 -143
- package/dist/migration/compat/worker.js +1 -1
- package/dist/module-runner.d.ts +1 -1
- package/dist/module-runner.js +1 -1
- package/dist/{oxlint-plugin-config-DX5ezKbB.js → oxlint-plugin-config-Drdl67Xp.js} +1 -1
- package/dist/oxlint-plugin.d.ts +2 -2
- package/dist/oxlint-plugin.js +1 -1
- package/dist/{pack-PvUg_xpv.d.ts → pack-BK38MLVZ.d.ts} +1 -1
- package/dist/pack-bin.d.ts +2 -3
- package/dist/pack-bin.js +5 -622
- package/dist/pack-client.d.ts +1 -1
- package/dist/pack.d.ts +2 -2
- package/dist/pack.js +1 -1
- package/dist/{package-CBe9EWPY.js → package-BZz2Ij68.js} +1 -1
- package/dist/{prompts-DF3yU-eU.js → prompts-CtzEgFY-.js} +3 -1400
- package/dist/{report-ZNR1Mk6h.js → report-CK5TnTsr.js} +1 -0
- package/dist/{resolve-vite-config-ipGb39Jo.js → resolve-vite-config-CGks1xR7.js} +3 -3
- package/dist/resolve-vite-config-Dnmc-lBc.js +2 -0
- package/dist/semver-CaDAb8vV.js +1400 -0
- package/dist/staged/bin.js +83 -218
- package/dist/sync-versions/bin.d.ts +1 -0
- package/dist/sync-versions/bin.js +3884 -0
- package/dist/sync-versions/bin.mjs +13323 -0
- package/dist/toolchain.js +9 -9
- package/dist/toolchain.json +9 -9
- package/dist/{tsconfig-LD2QhQ0O.js → tsconfig-CUggNuJR.js} +2 -2
- package/dist/{tsconfig-BVHG3DpR.js → tsconfig-VAbm4ZzJ.js} +1 -1
- package/dist/tsgolint-path.d.ts +3 -4
- package/dist/types/customEvent.d.ts +1 -1
- package/dist/types/hmrPayload.d.ts +1 -1
- package/dist/types/hot.d.ts +1 -1
- package/dist/types/import-meta.d.ts +1 -1
- package/dist/types/importGlob.d.ts +1 -1
- package/dist/types/importMeta.d.ts +1 -1
- package/dist/types/metadata.d.ts +1 -1
- package/dist/version.d.ts +2 -3
- package/dist/version.js +2 -2
- package/dist/versions.js +4 -4
- package/dist/vitest-ecosystem-BiRqcaRI.js +23 -0
- package/docs/guide/check.md +1 -0
- package/docs/guide/ci.md +42 -2
- package/docs/guide/env.md +124 -52
- package/docs/guide/ide-integration.md +14 -2
- package/docs/guide/index.md +1 -1
- package/docs/guide/install.md +3 -1
- package/docs/guide/installer-env-vars.md +10 -0
- package/docs/guide/migrate-rules.md +57 -2
- package/package.json +17 -19
- package/dist/lib-L3DWSRQp.js +0 -75
- package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
package/LICENSE
CHANGED
|
@@ -647,35 +647,6 @@ Repository: https://github.com/isaacs/minipass
|
|
|
647
647
|
|
|
648
648
|
---------------------------------------
|
|
649
649
|
|
|
650
|
-
## mri
|
|
651
|
-
License: MIT
|
|
652
|
-
By: Luke Edwards
|
|
653
|
-
Repository: https://github.com/lukeed/mri
|
|
654
|
-
|
|
655
|
-
> The MIT License (MIT)
|
|
656
|
-
>
|
|
657
|
-
> Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
|
658
|
-
>
|
|
659
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
660
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
661
|
-
> in the Software without restriction, including without limitation the rights
|
|
662
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
663
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
664
|
-
> furnished to do so, subject to the following conditions:
|
|
665
|
-
>
|
|
666
|
-
> The above copyright notice and this permission notice shall be included in
|
|
667
|
-
> all copies or substantial portions of the Software.
|
|
668
|
-
>
|
|
669
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
670
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
671
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
672
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
673
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
674
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
675
|
-
> THE SOFTWARE.
|
|
676
|
-
|
|
677
|
-
---------------------------------------
|
|
678
|
-
|
|
679
650
|
## nanotar
|
|
680
651
|
License: MIT
|
|
681
652
|
Repository: https://github.com/unjs/nanotar
|
|
@@ -934,3 +905,32 @@ Repository: https://github.com/eemeli/yaml
|
|
|
934
905
|
> OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
935
906
|
> TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
936
907
|
> THIS SOFTWARE.
|
|
908
|
+
|
|
909
|
+
---------------------------------------
|
|
910
|
+
|
|
911
|
+
## zod
|
|
912
|
+
License: MIT
|
|
913
|
+
By: Colin McDonnell <zod@colinhacks.com>
|
|
914
|
+
Repository: https://github.com/colinhacks/zod
|
|
915
|
+
|
|
916
|
+
> MIT License
|
|
917
|
+
>
|
|
918
|
+
> Copyright (c) 2025 Colin McDonnell
|
|
919
|
+
>
|
|
920
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
921
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
922
|
+
> in the Software without restriction, including without limitation the rights
|
|
923
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
924
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
925
|
+
> furnished to do so, subject to the following conditions:
|
|
926
|
+
>
|
|
927
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
928
|
+
> copies or substantial portions of the Software.
|
|
929
|
+
>
|
|
930
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
931
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
932
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
933
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
934
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
935
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
936
|
+
> SOFTWARE.
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This package provides the project-local version of Vite+. The global `vp` comman
|
|
|
9
9
|
|
|
10
10
|
Vite+ is the unified entry point for local web development. It combines [Vite](https://vite.dev/), [Vitest](https://vitest.dev/), [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), [Rolldown](https://rolldown.rs/), [tsdown](https://tsdown.dev/), and [Vite Task](https://github.com/voidzero-dev/vite-task) into one zero-config toolchain that also manages runtime and package manager workflows:
|
|
11
11
|
|
|
12
|
-
- **`vp env`:** Manage Node.js globally and per project
|
|
12
|
+
- **`vp env`:** Manage Node.js and package managers globally and per project
|
|
13
13
|
- **`vp install`:** Install dependencies with automatic package manager detection
|
|
14
14
|
- **`vp dev`:** Run Vite's fast native ESM dev server with instant HMR
|
|
15
15
|
- **`vp check`:** Run formatting, linting, and type checks in one command
|
|
@@ -99,7 +99,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
|
|
|
99
99
|
- **hooks** - Manage the Git hook dispatcher
|
|
100
100
|
- **staged** - Run linters on staged files
|
|
101
101
|
- **install** (`i`) - Install dependencies
|
|
102
|
-
- **env** - Manage Node.js
|
|
102
|
+
- **env** - Manage Node.js and package managers
|
|
103
103
|
|
|
104
104
|
#### Develop
|
|
105
105
|
|
package/binding/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
/* auto-generated by NAPI-RS */
|
|
5
5
|
|
|
6
|
-
const { readFileSync } = require('fs')
|
|
6
|
+
const { readFileSync } = require('fs');
|
|
7
7
|
let nativeBinding = null;
|
|
8
8
|
const loadErrors = [];
|
|
9
9
|
|
|
@@ -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.3.
|
|
84
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
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.3.
|
|
89
|
+
`Native binding package version mismatch, expected 0.3.1 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.3.
|
|
107
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
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.3.
|
|
112
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
return binding;
|
|
@@ -139,12 +139,12 @@ function requireNative() {
|
|
|
139
139
|
const bindingPackageVersion =
|
|
140
140
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
141
141
|
if (
|
|
142
|
-
bindingPackageVersion !== '0.3.
|
|
142
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
143
143
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
144
144
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
145
145
|
) {
|
|
146
146
|
throw new Error(
|
|
147
|
-
`Native binding package version mismatch, expected 0.3.
|
|
147
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
return binding;
|
|
@@ -162,12 +162,12 @@ function requireNative() {
|
|
|
162
162
|
const bindingPackageVersion =
|
|
163
163
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
164
164
|
if (
|
|
165
|
-
bindingPackageVersion !== '0.3.
|
|
165
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
166
166
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
167
167
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
168
168
|
) {
|
|
169
169
|
throw new Error(
|
|
170
|
-
`Native binding package version mismatch, expected 0.3.
|
|
170
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
return binding;
|
|
@@ -186,12 +186,12 @@ function requireNative() {
|
|
|
186
186
|
const bindingPackageVersion =
|
|
187
187
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
188
188
|
if (
|
|
189
|
-
bindingPackageVersion !== '0.3.
|
|
189
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
190
190
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
191
191
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
192
192
|
) {
|
|
193
193
|
throw new Error(
|
|
194
|
-
`Native binding package version mismatch, expected 0.3.
|
|
194
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
return binding;
|
|
@@ -209,12 +209,12 @@ function requireNative() {
|
|
|
209
209
|
const bindingPackageVersion =
|
|
210
210
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
211
211
|
if (
|
|
212
|
-
bindingPackageVersion !== '0.3.
|
|
212
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
213
213
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
214
214
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
215
215
|
) {
|
|
216
216
|
throw new Error(
|
|
217
|
-
`Native binding package version mismatch, expected 0.3.
|
|
217
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
return binding;
|
|
@@ -235,12 +235,12 @@ function requireNative() {
|
|
|
235
235
|
const bindingPackageVersion =
|
|
236
236
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
237
237
|
if (
|
|
238
|
-
bindingPackageVersion !== '0.3.
|
|
238
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
239
239
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
240
240
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
241
241
|
) {
|
|
242
242
|
throw new Error(
|
|
243
|
-
`Native binding package version mismatch, expected 0.3.
|
|
243
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
246
|
return binding;
|
|
@@ -258,12 +258,12 @@ function requireNative() {
|
|
|
258
258
|
const bindingPackageVersion =
|
|
259
259
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
260
260
|
if (
|
|
261
|
-
bindingPackageVersion !== '0.3.
|
|
261
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
262
262
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
263
263
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
264
264
|
) {
|
|
265
265
|
throw new Error(
|
|
266
|
-
`Native binding package version mismatch, expected 0.3.
|
|
266
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
return binding;
|
|
@@ -281,12 +281,12 @@ function requireNative() {
|
|
|
281
281
|
const bindingPackageVersion =
|
|
282
282
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
283
283
|
if (
|
|
284
|
-
bindingPackageVersion !== '0.3.
|
|
284
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
285
285
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
286
286
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
287
287
|
) {
|
|
288
288
|
throw new Error(
|
|
289
|
-
`Native binding package version mismatch, expected 0.3.
|
|
289
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
292
|
return binding;
|
|
@@ -308,12 +308,12 @@ function requireNative() {
|
|
|
308
308
|
const bindingPackageVersion =
|
|
309
309
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
310
310
|
if (
|
|
311
|
-
bindingPackageVersion !== '0.3.
|
|
311
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
312
312
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
313
313
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
314
314
|
) {
|
|
315
315
|
throw new Error(
|
|
316
|
-
`Native binding package version mismatch, expected 0.3.
|
|
316
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
319
|
return binding;
|
|
@@ -331,12 +331,12 @@ function requireNative() {
|
|
|
331
331
|
const bindingPackageVersion =
|
|
332
332
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
333
333
|
if (
|
|
334
|
-
bindingPackageVersion !== '0.3.
|
|
334
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
335
335
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
336
336
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
337
337
|
) {
|
|
338
338
|
throw new Error(
|
|
339
|
-
`Native binding package version mismatch, expected 0.3.
|
|
339
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
return binding;
|
|
@@ -359,12 +359,12 @@ function requireNative() {
|
|
|
359
359
|
const bindingPackageVersion =
|
|
360
360
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
361
361
|
if (
|
|
362
|
-
bindingPackageVersion !== '0.3.
|
|
362
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
363
363
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
364
364
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
365
365
|
) {
|
|
366
366
|
throw new Error(
|
|
367
|
-
`Native binding package version mismatch, expected 0.3.
|
|
367
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
370
|
return binding;
|
|
@@ -382,12 +382,12 @@ function requireNative() {
|
|
|
382
382
|
const bindingPackageVersion =
|
|
383
383
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
384
384
|
if (
|
|
385
|
-
bindingPackageVersion !== '0.3.
|
|
385
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
386
386
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
387
387
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
388
388
|
) {
|
|
389
389
|
throw new Error(
|
|
390
|
-
`Native binding package version mismatch, expected 0.3.
|
|
390
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
393
|
return binding;
|
|
@@ -407,12 +407,12 @@ function requireNative() {
|
|
|
407
407
|
const bindingPackageVersion =
|
|
408
408
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
409
409
|
if (
|
|
410
|
-
bindingPackageVersion !== '0.3.
|
|
410
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
411
411
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
412
412
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
413
413
|
) {
|
|
414
414
|
throw new Error(
|
|
415
|
-
`Native binding package version mismatch, expected 0.3.
|
|
415
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
return binding;
|
|
@@ -430,12 +430,12 @@ function requireNative() {
|
|
|
430
430
|
const bindingPackageVersion =
|
|
431
431
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
432
432
|
if (
|
|
433
|
-
bindingPackageVersion !== '0.3.
|
|
433
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
434
434
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
435
435
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
436
436
|
) {
|
|
437
437
|
throw new Error(
|
|
438
|
-
`Native binding package version mismatch, expected 0.3.
|
|
438
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
441
|
return binding;
|
|
@@ -455,12 +455,12 @@ function requireNative() {
|
|
|
455
455
|
const bindingPackageVersion =
|
|
456
456
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
457
457
|
if (
|
|
458
|
-
bindingPackageVersion !== '0.3.
|
|
458
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
459
459
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
460
460
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
461
461
|
) {
|
|
462
462
|
throw new Error(
|
|
463
|
-
`Native binding package version mismatch, expected 0.3.
|
|
463
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
return binding;
|
|
@@ -478,12 +478,12 @@ function requireNative() {
|
|
|
478
478
|
const bindingPackageVersion =
|
|
479
479
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
480
480
|
if (
|
|
481
|
-
bindingPackageVersion !== '0.3.
|
|
481
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
482
482
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
483
483
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
484
484
|
) {
|
|
485
485
|
throw new Error(
|
|
486
|
-
`Native binding package version mismatch, expected 0.3.
|
|
486
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
return binding;
|
|
@@ -503,12 +503,12 @@ function requireNative() {
|
|
|
503
503
|
const bindingPackageVersion =
|
|
504
504
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
505
505
|
if (
|
|
506
|
-
bindingPackageVersion !== '0.3.
|
|
506
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
507
507
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
508
508
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
509
509
|
) {
|
|
510
510
|
throw new Error(
|
|
511
|
-
`Native binding package version mismatch, expected 0.3.
|
|
511
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
514
|
return binding;
|
|
@@ -526,12 +526,12 @@ function requireNative() {
|
|
|
526
526
|
const bindingPackageVersion =
|
|
527
527
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
528
528
|
if (
|
|
529
|
-
bindingPackageVersion !== '0.3.
|
|
529
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
530
530
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
531
531
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
532
532
|
) {
|
|
533
533
|
throw new Error(
|
|
534
|
-
`Native binding package version mismatch, expected 0.3.
|
|
534
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
return binding;
|
|
@@ -551,12 +551,12 @@ function requireNative() {
|
|
|
551
551
|
const bindingPackageVersion =
|
|
552
552
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
553
553
|
if (
|
|
554
|
-
bindingPackageVersion !== '0.3.
|
|
554
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
555
555
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
556
556
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
557
557
|
) {
|
|
558
558
|
throw new Error(
|
|
559
|
-
`Native binding package version mismatch, expected 0.3.
|
|
559
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
562
|
return binding;
|
|
@@ -574,12 +574,12 @@ function requireNative() {
|
|
|
574
574
|
const bindingPackageVersion =
|
|
575
575
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
576
576
|
if (
|
|
577
|
-
bindingPackageVersion !== '0.3.
|
|
577
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
578
578
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
579
579
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
580
580
|
) {
|
|
581
581
|
throw new Error(
|
|
582
|
-
`Native binding package version mismatch, expected 0.3.
|
|
582
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
return binding;
|
|
@@ -598,12 +598,12 @@ function requireNative() {
|
|
|
598
598
|
const bindingPackageVersion =
|
|
599
599
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
600
600
|
if (
|
|
601
|
-
bindingPackageVersion !== '0.3.
|
|
601
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
602
602
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
603
603
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
604
604
|
) {
|
|
605
605
|
throw new Error(
|
|
606
|
-
`Native binding package version mismatch, expected 0.3.
|
|
606
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
609
|
return binding;
|
|
@@ -621,12 +621,12 @@ function requireNative() {
|
|
|
621
621
|
const bindingPackageVersion =
|
|
622
622
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
623
623
|
if (
|
|
624
|
-
bindingPackageVersion !== '0.3.
|
|
624
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
625
625
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
626
626
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
627
627
|
) {
|
|
628
628
|
throw new Error(
|
|
629
|
-
`Native binding package version mismatch, expected 0.3.
|
|
629
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
632
|
return binding;
|
|
@@ -648,12 +648,12 @@ function requireNative() {
|
|
|
648
648
|
const bindingPackageVersion =
|
|
649
649
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
650
650
|
if (
|
|
651
|
-
bindingPackageVersion !== '0.3.
|
|
651
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
652
652
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
653
653
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
654
654
|
) {
|
|
655
655
|
throw new Error(
|
|
656
|
-
`Native binding package version mismatch, expected 0.3.
|
|
656
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
659
|
return binding;
|
|
@@ -671,12 +671,12 @@ function requireNative() {
|
|
|
671
671
|
const bindingPackageVersion =
|
|
672
672
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
673
673
|
if (
|
|
674
|
-
bindingPackageVersion !== '0.3.
|
|
674
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
675
675
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
676
676
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
677
677
|
) {
|
|
678
678
|
throw new Error(
|
|
679
|
-
`Native binding package version mismatch, expected 0.3.
|
|
679
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
680
680
|
);
|
|
681
681
|
}
|
|
682
682
|
return binding;
|
|
@@ -694,12 +694,12 @@ function requireNative() {
|
|
|
694
694
|
const bindingPackageVersion =
|
|
695
695
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
696
696
|
if (
|
|
697
|
-
bindingPackageVersion !== '0.3.
|
|
697
|
+
bindingPackageVersion !== '0.3.1' &&
|
|
698
698
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
699
699
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
700
700
|
) {
|
|
701
701
|
throw new Error(
|
|
702
|
-
`Native binding package version mismatch, expected 0.3.
|
|
702
|
+
`Native binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
705
|
return binding;
|
|
@@ -844,9 +844,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
844
844
|
) {
|
|
845
845
|
const bindingPackageVersion =
|
|
846
846
|
require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
|
|
847
|
-
if (bindingPackageVersion !== '0.3.
|
|
847
|
+
if (bindingPackageVersion !== '0.3.1') {
|
|
848
848
|
throw new Error(
|
|
849
|
-
`WASI binding package version mismatch, expected 0.3.
|
|
849
|
+
`WASI binding package version mismatch, expected 0.3.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
850
850
|
);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
@@ -969,6 +969,11 @@ module.exports.getVpDirs = nativeBinding.getVpDirs;
|
|
|
969
969
|
module.exports.hasConfigKey = nativeBinding.hasConfigKey;
|
|
970
970
|
module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
|
|
971
971
|
module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
|
|
972
|
+
module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
|
|
973
|
+
module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
|
|
974
|
+
module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
|
|
975
|
+
module.exports.parseMigrateArgs = nativeBinding.parseMigrateArgs;
|
|
976
|
+
module.exports.parseStagedArgs = nativeBinding.parseStagedArgs;
|
|
972
977
|
module.exports.rewriteEslint = nativeBinding.rewriteEslint;
|
|
973
978
|
module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
|
|
974
979
|
module.exports.rewritePrettier = nativeBinding.rewritePrettier;
|