vite-plus 0.2.8 → 0.3.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/AGENTS.md +7 -0
- package/README.md +13 -6
- package/binding/index.cjs +57 -54
- package/binding/index.d.cts +100 -3
- package/dist/{agent-CI79DuSy.js → agent-Wqx0MPk0.js} +4 -188
- package/dist/bin.js +298 -278
- package/dist/command-CLJK5jGW.js +2 -0
- package/dist/command-CguLh2KL.js +471 -0
- package/dist/config/bin.js +29 -15
- package/dist/{constants-BppDcRc1.js → constants-Bn-U8o4v.js} +13 -3
- package/dist/create/bin.js +197 -247
- package/dist/{define-config-DPnHe1Mx.js → define-config-GXUdVT-0.js} +3 -3
- package/dist/{define-config-CEm_MtvJ.cjs → define-config-WiVlryJ2.cjs} +2 -2
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-CSQWHI6y.js → dist-BDYZP12R.js} +193 -149
- package/dist/dist-Dqv1-Clg.js +3 -0
- package/dist/{editor-CGWdbLgD.js → editor-CC4DqODz.js} +736 -153
- package/dist/{terminal-CrqqK8WT.js → help-BmKpeOP9.js} +27 -34
- package/dist/hooks/bin.d.ts +1 -0
- package/dist/hooks/bin.js +131 -0
- package/dist/hooks-DFqViZqZ.js +573 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-BU88uu6o.js → json-cULBl7Pi.js} +145 -139
- package/dist/migration/bin.js +67 -21
- package/dist/migration/compat/worker.js +1 -1
- package/dist/{oxlint-plugin-config-BHOzlwMw.js → oxlint-plugin-config-DX5ezKbB.js} +1 -1
- package/dist/oxlint-plugin.js +1 -1
- package/dist/pack-bin.js +5 -4
- package/dist/{package-hV-77cBb.js → package-CBe9EWPY.js} +2 -2
- package/dist/{prompts-DYap08te.js → prompts-DF3yU-eU.js} +136 -512
- package/dist/{report-BS7ULx7A.js → report-ZNR1Mk6h.js} +1 -0
- package/dist/{resolve-vite-config-EWXclqvV.js → resolve-vite-config-ipGb39Jo.js} +2 -9
- package/dist/staged/bin.js +299 -251
- package/dist/terminal-MKGAuy-p.js +39 -0
- package/dist/test/browser/providers/playwright/context.d.ts +1 -1
- package/dist/test/browser/providers/playwright.d.ts +6 -6
- package/dist/test/browser/providers/preview/context.d.ts +1 -1
- package/dist/test/browser/providers/preview.d.ts +4 -4
- package/dist/test/browser/providers/webdriverio/context.d.ts +1 -1
- package/dist/test/browser/providers/webdriverio.d.ts +6 -6
- package/dist/test/browser-playwright/context.d.ts +1 -1
- package/dist/test/browser-playwright.d.ts +6 -6
- package/dist/test/browser-preview/context.d.ts +1 -1
- package/dist/test/browser-preview.d.ts +4 -4
- package/dist/test/browser-webdriverio/context.d.ts +1 -1
- package/dist/test/browser-webdriverio.d.ts +6 -6
- package/dist/test/context.d.ts +3 -3
- package/dist/test/locators.d.ts +1 -1
- package/dist/toolchain.d.ts +25 -0
- package/dist/toolchain.js +194 -0
- package/dist/toolchain.json +193 -0
- package/dist/tsconfig-BVHG3DpR.js +2 -0
- package/dist/{tsconfig-CVUKLfL8.js → tsconfig-LD2QhQ0O.js} +5 -4
- package/dist/tsgolint-path.js +1 -1
- package/dist/version.js +5 -4
- package/dist/versions.d.ts +3 -3
- package/dist/versions.js +6 -6
- package/docs/guide/ci.md +37 -4
- package/docs/guide/commit-hooks.md +87 -14
- package/docs/guide/create.md +7 -4
- package/docs/guide/env.md +20 -6
- package/docs/guide/fmt.md +2 -2
- package/docs/guide/github-actions-cache.md +5 -1
- package/docs/guide/ide-integration.md +61 -2
- package/docs/guide/index.md +3 -1
- package/docs/guide/install.md +27 -1
- package/docs/guide/installer-env-vars.md +53 -6
- package/docs/guide/lint.md +3 -1
- package/docs/guide/migrate-rules.md +9 -0
- package/docs/guide/migrate.md +41 -4
- package/docs/guide/monorepo.md +4 -4
- package/docs/guide/test.md +8 -0
- package/docs/guide/troubleshooting.md +12 -4
- package/docs/guide/upgrade.md +75 -5
- package/package.json +36 -33
- package/rules/vite-tools.yml +0 -7
- package/dist/dist-DT25H9pj.js +0 -3
- package/docs/_data/team.ts +0 -131
- package/docs/package.json +0 -30
- package/docs/pnpm-lock.yaml +0 -4003
- package/docs/pnpm-workspace.yaml +0 -6
- package/docs/public/checkmark.svg +0 -1
- package/docs/public/cta-background.jpg +0 -0
- package/docs/public/favicon.svg +0 -1
- package/docs/public/icon.svg +0 -1
- package/docs/public/logo.svg +0 -1
- package/docs/public/og.jpg +0 -0
- package/docs/vite.config.ts +0 -17
- package/dist/{log-update-CoW8Z4Dl.js → log-update-DHZRyJ2m.js} +1 -1
- package/dist/{tsgolint-path-eMZT-oea.js → tsgolint-path-CbDReEOx.js} +1 -1
package/AGENTS.md
CHANGED
|
@@ -10,6 +10,13 @@ Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.de
|
|
|
10
10
|
|
|
11
11
|
`vp <name>` runs a built-in command. `vp run <name>` runs a `package.json` script or a `vite.config.ts` task. Scripts cannot overwrite built-ins, so `vp dev` and `vp run dev` may do different things. Check `package.json` and `vite.config.ts` first, and run `vp run <name>` when the project defines a script or task with that name.
|
|
12
12
|
|
|
13
|
+
## Tool Versions
|
|
14
|
+
|
|
15
|
+
Run `vp toolchain` to show versions and relationships in the active Vite+
|
|
16
|
+
release. Add a tool name to select part of the graph. For example, run
|
|
17
|
+
`vp toolchain vite`. Use `--global` to ignore the local `vite-plus` package. Use
|
|
18
|
+
`vp why <package>` to show the package-manager dependency graph.
|
|
19
|
+
|
|
13
20
|
## Review Checklist
|
|
14
21
|
|
|
15
22
|
- [ ] Run `vp install` after pulling remote changes and before getting started.
|
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ Vite+ is the unified entry point for local web development. It combines [Vite](h
|
|
|
17
17
|
- **`vp build`:** Build applications for production with Vite + Rolldown
|
|
18
18
|
- **`vp run`:** Run `package.json` scripts and monorepo tasks with caching and dependency-aware scheduling
|
|
19
19
|
- **`vp pack`:** Build libraries for npm publishing or standalone app binaries
|
|
20
|
+
- **`vp toolchain`:** Show the versions of Vite+, Vite, Rolldown, Oxc, and other tools
|
|
20
21
|
- **`vp create` / `vp migrate`:** Scaffold new projects and migrate existing ones
|
|
21
22
|
|
|
22
23
|
All of this is configured from your project root and works across Vite's framework ecosystem.
|
|
@@ -95,6 +96,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
|
|
|
95
96
|
- **create** - Create a new project from a template
|
|
96
97
|
- **migrate** - Migrate an existing project to Vite+
|
|
97
98
|
- **config** - Configure hooks and agent integration
|
|
99
|
+
- **hooks** - Manage the Git hook dispatcher
|
|
98
100
|
- **staged** - Run linters on staged files
|
|
99
101
|
- **install** (`i`) - Install dependencies
|
|
100
102
|
- **env** - Manage Node.js versions
|
|
@@ -139,6 +141,7 @@ Vite+ automatically wraps your package manager (pnpm, npm, Yarn, or Bun) based o
|
|
|
139
141
|
|
|
140
142
|
#### Maintain
|
|
141
143
|
|
|
144
|
+
- **toolchain** - Show Vite+ tool versions and their relationships
|
|
142
145
|
- **upgrade** - Update `vp` itself to the latest version
|
|
143
146
|
- **implode** - Remove `vp` and all related data
|
|
144
147
|
|
|
@@ -175,26 +178,30 @@ vp migrate
|
|
|
175
178
|
Use the official [`setup-vp`](https://github.com/voidzero-dev/setup-vp) action to install Vite+ in GitHub Actions:
|
|
176
179
|
|
|
177
180
|
```yaml
|
|
178
|
-
- uses: voidzero-dev/setup-vp
|
|
181
|
+
- uses: voidzero-dev/setup-vp@<setup-vp-version>
|
|
179
182
|
with:
|
|
180
183
|
node-version: '22'
|
|
181
184
|
cache: true
|
|
182
185
|
```
|
|
183
186
|
|
|
187
|
+
Set `<setup-vp-version>` to an exact version from the [`setup-vp` releases page](https://github.com/voidzero-dev/setup-vp/releases). You can use a commit SHA instead. Do not use the `v1` tag. The `v1` tag no longer receives updates.
|
|
188
|
+
|
|
189
|
+
See [Automatic Version Updates](https://viteplus.dev/guide/ci#automatic-version-updates) to configure Dependabot or Renovate.
|
|
190
|
+
|
|
184
191
|
#### Manual Installation & Migration
|
|
185
192
|
|
|
186
193
|
If you are manually migrating a project to Vite+, install these dev dependencies first:
|
|
187
194
|
|
|
188
195
|
```bash
|
|
189
|
-
|
|
196
|
+
vp install -D vite-plus
|
|
190
197
|
```
|
|
191
198
|
|
|
192
|
-
|
|
199
|
+
Add package-manager overrides so that other packages use the Vite+ versions. Alias `vite` to `@voidzero-dev/vite-plus-core`. Pin `vitest` to the version from `vp toolchain vitest`. The project and `vp test` then use the same Vitest copy. Without the pin, a dependency or workspace package can install a different Vitest version. The two versions can use separate mocks, `expect` functions, and runner states:
|
|
193
200
|
|
|
194
201
|
```json
|
|
195
202
|
"overrides": {
|
|
196
203
|
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
197
|
-
"vitest": "4.1.
|
|
204
|
+
"vitest": "4.1.11"
|
|
198
205
|
}
|
|
199
206
|
```
|
|
200
207
|
|
|
@@ -203,7 +210,7 @@ If you are using `pnpm`, add this to your `pnpm-workspace.yaml`:
|
|
|
203
210
|
```yaml
|
|
204
211
|
overrides:
|
|
205
212
|
vite: npm:@voidzero-dev/vite-plus-core@latest
|
|
206
|
-
vitest: 4.1.
|
|
213
|
+
vitest: 4.1.11
|
|
207
214
|
```
|
|
208
215
|
|
|
209
216
|
Or, if you are using Yarn:
|
|
@@ -211,7 +218,7 @@ Or, if you are using Yarn:
|
|
|
211
218
|
```json
|
|
212
219
|
"resolutions": {
|
|
213
220
|
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
|
|
214
|
-
"vitest": "4.1.
|
|
221
|
+
"vitest": "4.1.11"
|
|
215
222
|
}
|
|
216
223
|
```
|
|
217
224
|
|
package/binding/index.cjs
CHANGED
|
@@ -81,12 +81,12 @@ function requireNative() {
|
|
|
81
81
|
const bindingPackageVersion =
|
|
82
82
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
83
83
|
if (
|
|
84
|
-
bindingPackageVersion !== '0.
|
|
84
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
89
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
107
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
112
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
142
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
147
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
165
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
170
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
189
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
194
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
212
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
217
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
238
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
243
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
261
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
266
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
284
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
289
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
311
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
316
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
334
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
339
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
362
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
367
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
385
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
390
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
410
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
415
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
433
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
438
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
458
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
463
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
481
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
486
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
506
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
511
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
529
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
534
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
554
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
559
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
577
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
582
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
601
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
606
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
624
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
629
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
651
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
656
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
674
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
679
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
697
|
+
bindingPackageVersion !== '0.3.0' &&
|
|
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.
|
|
702
|
+
`Native binding package version mismatch, expected 0.3.0 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.
|
|
847
|
+
if (bindingPackageVersion !== '0.3.0') {
|
|
848
848
|
throw new Error(
|
|
849
|
-
`WASI binding package version mismatch, expected 0.
|
|
849
|
+
`WASI binding package version mismatch, expected 0.3.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
850
850
|
);
|
|
851
851
|
}
|
|
852
852
|
}
|
|
@@ -955,14 +955,17 @@ module.exports.collapseSourcemaps = nativeBinding.collapseSourcemaps;
|
|
|
955
955
|
module.exports.enhancedTransform = nativeBinding.enhancedTransform;
|
|
956
956
|
module.exports.enhancedTransformSync = nativeBinding.enhancedTransformSync;
|
|
957
957
|
module.exports.FilterTokenKind = nativeBinding.FilterTokenKind;
|
|
958
|
+
module.exports.getNativeMemoryStats = nativeBinding.getNativeMemoryStats;
|
|
958
959
|
module.exports.initTraceSubscriber = nativeBinding.initTraceSubscriber;
|
|
959
960
|
module.exports.registerPlugins = nativeBinding.registerPlugins;
|
|
961
|
+
module.exports.resetNativeMemoryStats = nativeBinding.resetNativeMemoryStats;
|
|
960
962
|
module.exports.resolveTsconfig = nativeBinding.resolveTsconfig;
|
|
961
963
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
962
964
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
963
965
|
module.exports.detectWorkspace = nativeBinding.detectWorkspace;
|
|
964
966
|
module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
|
|
965
967
|
module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
|
|
968
|
+
module.exports.getVpDirs = nativeBinding.getVpDirs;
|
|
966
969
|
module.exports.hasConfigKey = nativeBinding.hasConfigKey;
|
|
967
970
|
module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
|
|
968
971
|
module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
|