vite-plus 0.3.3 → 1.0.0-rc.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 +35 -146
- package/README.md +6 -4
- package/binding/index.cjs +58 -54
- package/binding/index.d.cts +36 -4
- package/dist/{agent-Cu6-tXIP.js → agent-DIwEez_1.js} +6 -5
- package/dist/bin.js +75 -35
- package/dist/config/bin.js +3 -3
- package/dist/constants-BAsBfS1J.js +356 -0
- package/dist/create/bin.js +19 -13
- package/dist/{define-config-IgzmnvvV.js → define-config-Bz6dc3fm.js} +165 -43
- package/dist/{define-config-D0mevyb3.cjs → define-config-CAeeMTvb.cjs} +179 -44
- package/dist/{define-config-DPNEJxPz.d.ts → define-config-Cf_5GHmY.d.ts} +71 -25
- 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-BWiANxFS.js +8052 -0
- package/dist/{dist-BDYZP12R.js → dist-BsAzy8OW.js} +109 -105
- package/dist/documentation-DqcZSthV.js +11 -0
- package/dist/{editor-4sjlHmUh.js → editor-DWgrWTbN.js} +246 -159
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-cULBl7Pi.js → json-JP24qHUF.js} +14 -6
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +3127 -18
- package/dist/migration/compat/worker.js +1 -1
- package/dist/{oxlint-plugin-config-BVqEe9KY.js → oxlint-plugin-config-B-P1a_0g.js} +1 -1
- package/dist/oxlint-plugin.js +9 -7
- package/dist/pack-bin.js +1 -1
- package/dist/{package-CHH8jWan.js → package-BrupPpWA.js} +6 -2
- package/dist/{vitest-ecosystem-BiRqcaRI.js → package-overrides-Dpn4scvN.js} +1 -7
- package/dist/{prompts-k14KgthC.js → prompts-BW7_fDGJ.js} +3 -4
- package/dist/{report-CK5TnTsr.js → report-NhQk8VHb.js} +1 -0
- package/dist/{resolve-vite-config-CTOTuqTi.js → resolve-vite-config-D3XIVT6s.js} +1 -1
- package/dist/{resolve-vite-config-BqvS2P98.js → resolve-vite-config-DcsMQaYy.js} +2 -2
- package/dist/staged/bin.js +1206 -3318
- package/dist/sync-versions/bin.js +4 -4
- package/dist/sync-versions/bin.mjs +17 -2
- package/dist/test/browser/context.js +1 -1
- package/dist/test/browser/providers/playwright/context.js +1 -1
- package/dist/test/browser/providers/preview/context.js +1 -1
- package/dist/test/browser-playwright/context.js +1 -1
- package/dist/test/browser-preview/context.js +1 -1
- package/dist/test/context.d.ts +2 -942
- package/dist/test/context.js +1 -1
- package/dist/test/internal/traces.js +1 -0
- package/dist/test/locators.d.ts +2 -294
- package/dist/test/matchers.d.ts +2 -29
- package/dist/test/mocker.d.ts +2 -0
- package/dist/test/mocker.js +1 -0
- package/dist/test/{browser-webdriverio/context.js → plugins/browser-context.d.ts} +1 -0
- package/dist/test/plugins/browser-context.js +1 -1
- package/dist/test/plugins/browser-locators.d.ts +2 -0
- package/dist/test/plugins/browser-playwright.d.ts +2 -0
- package/dist/test/plugins/browser-preview.d.ts +2 -0
- package/dist/test/plugins/browser.d.ts +2 -0
- package/dist/test/plugins/mocker-automock.d.ts +2 -0
- package/dist/test/plugins/mocker-browser.d.ts +2 -0
- package/dist/test/plugins/mocker-node.d.ts +2 -0
- package/dist/test/plugins/mocker-redirect.d.ts +2 -0
- package/dist/test/plugins/mocker-register.d.ts +2 -0
- package/dist/test/plugins/mocker-transforms.d.ts +2 -0
- package/dist/test/plugins/mocker.d.ts +2 -0
- package/dist/test/plugins/pretty-format.d.ts +2 -0
- package/dist/test/plugins/snapshot-environment.d.ts +2 -0
- package/dist/test/plugins/snapshot-manager.d.ts +2 -0
- package/dist/test/plugins/snapshot.d.ts +2 -0
- package/dist/test/plugins/spy.d.ts +2 -0
- package/dist/test/plugins/utils-constants.d.ts +2 -0
- package/dist/test/plugins/utils-diff.d.ts +2 -0
- package/dist/test/plugins/utils-display.d.ts +2 -0
- package/dist/test/plugins/utils-error.d.ts +2 -0
- package/dist/test/plugins/utils-helpers.d.ts +2 -0
- package/dist/test/plugins/utils-offset.d.ts +2 -0
- package/dist/test/plugins/utils-resolver.d.ts +2 -0
- package/dist/test/plugins/utils-serialize.d.ts +2 -0
- package/dist/test/plugins/utils-source-map-node.d.ts +2 -0
- package/dist/test/plugins/utils-source-map.d.ts +2 -0
- package/dist/test/plugins/utils-timers.d.ts +2 -0
- package/dist/test/plugins/utils.d.ts +2 -0
- package/dist/toolchain.js +11 -11
- package/dist/toolchain.json +11 -11
- package/dist/{tsconfig-euB-GmIE.js → tsconfig-DESFDzWP.js} +1 -1
- package/dist/{tsconfig-C3h9CVTA.js → tsconfig-piorpNV7.js} +8 -4
- package/dist/version.js +5 -3
- package/dist/versions.js +6 -6
- package/dist/vitest-ecosystem-BU0AqZq-.js +23 -0
- package/dist/vitest-v5-entry-points-DthU1e_O.js +25 -0
- package/docs/config/fmt.md +4 -2
- package/docs/config/lint.md +4 -2
- package/docs/config/run.md +62 -26
- package/docs/guide/automatic-data-tracking.md +20 -15
- package/docs/guide/cache.md +12 -8
- package/docs/guide/check.md +2 -0
- package/docs/guide/commit-hooks.md +8 -1
- package/docs/guide/env.md +18 -13
- package/docs/guide/fmt.md +6 -2
- package/docs/guide/index.md +1 -1
- package/docs/guide/install.md +1 -1
- package/docs/guide/lint.md +5 -1
- package/docs/guide/local-cli.md +3 -3
- package/docs/guide/migrate-rules.md +58 -12
- package/docs/guide/migrate.md +86 -20
- package/docs/guide/monorepo.md +7 -1
- package/docs/guide/run.md +3 -1
- package/docs/guide/test.md +2 -0
- package/docs/guide/troubleshooting.md +3 -3
- package/docs/guide/vitest-v5.md +221 -0
- package/package.json +64 -87
- package/bin/oxfmt +0 -33
- package/bin/oxlint +0 -38
- package/dist/cli-truncate-Bg3RDXpi.js +0 -865
- package/dist/constants-C2dTOTe-.js +0 -80
- package/dist/dist-Dqv1-Clg.js +0 -3
- package/dist/is-fullwidth-code-point-BUNlIICg.js +0 -8
- package/dist/log-update-CoW8Z4Dl.js +0 -491
- package/dist/semver-CaDAb8vV.js +0 -1400
- package/dist/strip-ansi-C3wrWz9t.js +0 -853
- package/dist/test/browser/providers/webdriverio/context.d.ts +0 -1
- package/dist/test/browser/providers/webdriverio/context.js +0 -1
- package/dist/test/browser/providers/webdriverio.d.ts +0 -77
- package/dist/test/browser/providers/webdriverio.js +0 -1
- package/dist/test/browser-webdriverio/context.d.ts +0 -1
- package/dist/test/browser-webdriverio.d.ts +0 -77
- package/dist/test/browser-webdriverio.js +0 -1
- package/dist/test/coverage.d.ts +0 -2
- package/dist/test/coverage.js +0 -1
- package/dist/test/environments.d.ts +0 -2
- package/dist/test/environments.js +0 -1
- package/dist/test/plugins/browser-webdriverio.js +0 -1
- package/dist/test/plugins/expect.js +0 -1
- package/dist/test/plugins/runner-types.js +0 -1
- package/dist/test/plugins/runner-utils.js +0 -1
- package/dist/test/plugins/runner.js +0 -1
- package/dist/test/reporters.d.ts +0 -2
- package/dist/test/reporters.js +0 -1
- package/dist/test/runners.d.ts +0 -2
- package/dist/test/runners.js +0 -1
- package/dist/test/snapshot.d.ts +0 -2
- package/dist/test/snapshot.js +0 -1
- package/dist/test/suite.d.ts +0 -2
- package/dist/test/suite.js +0 -1
- package/dist/tsgolint-path-CbDReEOx.js +0 -34
- package/dist/tsgolint-path.d.ts +0 -7
- package/dist/tsgolint-path.js +0 -2
- package/dist/wrap-ansi-DNjkuBEp.js +0 -157
- package/dist/wrap-ansi-DUi52C6W.js +0 -2
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 !== '0.
|
|
96
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
101
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
119
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
124
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
154
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
159
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
177
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
182
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
201
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
206
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
224
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
229
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
250
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
255
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
273
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
278
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
296
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
301
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
323
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
328
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
346
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
351
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
374
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
379
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
397
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
402
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
422
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
427
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
445
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
450
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
470
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
475
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
493
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
498
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
518
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
523
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
541
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
546
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
566
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
571
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
589
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
594
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
613
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
618
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
636
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
641
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
663
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
668
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
686
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
691
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
709
|
+
bindingPackageVersion !== '1.0.0-rc.1' &&
|
|
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 0.
|
|
714
|
+
`Native binding package version mismatch, expected 1.0.0-rc.1 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 !== '0.
|
|
860
|
+
if (bindingPackageVersion !== '1.0.0-rc.1') {
|
|
861
861
|
throw new Error(
|
|
862
|
-
`WASI binding package version mismatch, expected 0.
|
|
862
|
+
`WASI binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
863
863
|
);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
@@ -1042,13 +1042,17 @@ module.exports.resetNativeMemoryStats = nativeBinding.resetNativeMemoryStats;
|
|
|
1042
1042
|
module.exports.resolveTsconfig = nativeBinding.resolveTsconfig;
|
|
1043
1043
|
module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
1044
1044
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
1045
|
+
module.exports.analyzeMigrationSource = nativeBinding.analyzeMigrationSource;
|
|
1045
1046
|
module.exports.detectWorkspace = nativeBinding.detectWorkspace;
|
|
1047
|
+
module.exports.documentationUrl = nativeBinding.documentationUrl;
|
|
1046
1048
|
module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
|
|
1047
1049
|
module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
|
|
1048
1050
|
module.exports.getVpDirs = nativeBinding.getVpDirs;
|
|
1049
1051
|
module.exports.hasConfigKey = nativeBinding.hasConfigKey;
|
|
1052
|
+
module.exports.isDirectoryGitignored = nativeBinding.isDirectoryGitignored;
|
|
1050
1053
|
module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
|
|
1051
1054
|
module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
|
|
1055
|
+
module.exports.migrateTaskCacheConfig = nativeBinding.migrateTaskCacheConfig;
|
|
1052
1056
|
module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
|
|
1053
1057
|
module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
|
|
1054
1058
|
module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
|
package/binding/index.d.cts
CHANGED
|
@@ -1712,8 +1712,9 @@ export declare class BindingDevEngine {
|
|
|
1712
1712
|
*/
|
|
1713
1713
|
registerClient(clientId: string): Promise<void>;
|
|
1714
1714
|
/**
|
|
1715
|
-
* Delivery notification
|
|
1716
|
-
*
|
|
1715
|
+
* Delivery notification for the payload `filename`: the client reported that it
|
|
1716
|
+
* ran the payload, so record its modules as shipped to that client. See
|
|
1717
|
+
* `DevEngine::notify_payload_delivered`.
|
|
1717
1718
|
*/
|
|
1718
1719
|
notifyPayloadDelivered(filename: string): Promise<void>;
|
|
1719
1720
|
removeClient(clientId: string): Promise<void>;
|
|
@@ -2146,6 +2147,8 @@ export interface BindingChecksOptions {
|
|
|
2146
2147
|
configurationFieldConflict?: boolean;
|
|
2147
2148
|
preferBuiltinFeature?: boolean;
|
|
2148
2149
|
couldNotCleanDirectory?: boolean;
|
|
2150
|
+
bundlerTimings?: boolean;
|
|
2151
|
+
/** Deprecated alias for `bundlerTimings`. Rolldown uses `bundlerTimings` if both options have values. */
|
|
2149
2152
|
pluginTimings?: boolean;
|
|
2150
2153
|
duplicateShebang?: boolean;
|
|
2151
2154
|
unsupportedTsconfigOption?: boolean;
|
|
@@ -2829,9 +2832,13 @@ export interface BindingOutputOptions {
|
|
|
2829
2832
|
| boolean
|
|
2830
2833
|
| string
|
|
2831
2834
|
| RegExp
|
|
2832
|
-
| ((
|
|
2835
|
+
| ((sources: Array<string>, sourcemapPath: string) => Uint8Array);
|
|
2833
2836
|
sourcemapDebugIds?: boolean;
|
|
2834
|
-
|
|
2837
|
+
/**
|
|
2838
|
+
* Batched like `sourcemapIgnoreList` above. One call rewrites every source of a sourcemap,
|
|
2839
|
+
* and the returned array matches the source array by index.
|
|
2840
|
+
*/
|
|
2841
|
+
sourcemapPathTransform?: (sources: Array<string>, sourcemapPath: string) => Array<string>;
|
|
2835
2842
|
sourcemapExcludeSources?: boolean;
|
|
2836
2843
|
strict?: boolean | 'auto';
|
|
2837
2844
|
minify?: boolean | 'dce-only' | MinifyOptions;
|
|
@@ -3477,6 +3484,9 @@ export interface ViteImportGlobMeta {
|
|
|
3477
3484
|
isSubImportsPattern?: boolean;
|
|
3478
3485
|
}
|
|
3479
3486
|
|
|
3487
|
+
/** Parse source and resolve lexical bindings for the TypeScript migration rules. */
|
|
3488
|
+
export declare function analyzeMigrationSource(filename: string, source: string): string;
|
|
3489
|
+
|
|
3480
3490
|
/** Error from batch import rewriting */
|
|
3481
3491
|
export interface BatchRewriteError {
|
|
3482
3492
|
/** The file path that had an error */
|
|
@@ -3580,6 +3590,9 @@ export interface DetectWorkspaceResult {
|
|
|
3580
3590
|
root?: string;
|
|
3581
3591
|
}
|
|
3582
3592
|
|
|
3593
|
+
/** Build documentation links with the same compiled origin as the native CLI. */
|
|
3594
|
+
export declare function documentationUrl(path: string): string;
|
|
3595
|
+
|
|
3583
3596
|
/**
|
|
3584
3597
|
* Download a package manager
|
|
3585
3598
|
*
|
|
@@ -3657,6 +3670,9 @@ export interface HooksArgs {
|
|
|
3657
3670
|
hooksDir?: string;
|
|
3658
3671
|
}
|
|
3659
3672
|
|
|
3673
|
+
/** Check inherited `.gitignore` rules without requiring the directory to exist. */
|
|
3674
|
+
export declare function isDirectoryGitignored(root: string, directory: string): boolean;
|
|
3675
|
+
|
|
3660
3676
|
/** Execution context after command dispatch selects the working directory. */
|
|
3661
3677
|
export interface JsCommandContext {
|
|
3662
3678
|
cwd: string;
|
|
@@ -3754,6 +3770,12 @@ export interface MigrateArgs {
|
|
|
3754
3770
|
full?: boolean;
|
|
3755
3771
|
}
|
|
3756
3772
|
|
|
3773
|
+
/**
|
|
3774
|
+
* Move `env`, `untrackedEnv`, `input`, and `output` from the top level of
|
|
3775
|
+
* each static `run.tasks` entry into its `cache` object.
|
|
3776
|
+
*/
|
|
3777
|
+
export declare function migrateTaskCacheConfig(viteConfigPath: string): TaskCacheConfigResult;
|
|
3778
|
+
|
|
3757
3779
|
export declare function parseConfigArgs(argv: Array<string>): ParseConfigArgsOutcome;
|
|
3758
3780
|
|
|
3759
3781
|
export type ParseConfigArgsOutcome =
|
|
@@ -3998,6 +4020,16 @@ export interface StagedArgs {
|
|
|
3998
4020
|
verbose?: boolean;
|
|
3999
4021
|
}
|
|
4000
4022
|
|
|
4023
|
+
/** Result of moving task cache settings under `cache` */
|
|
4024
|
+
export interface TaskCacheConfigResult {
|
|
4025
|
+
/** The updated vite config content */
|
|
4026
|
+
content: string;
|
|
4027
|
+
/** Whether any changes were made */
|
|
4028
|
+
updated: boolean;
|
|
4029
|
+
/** Tasks that set cache settings outside `cache` but could not be updated */
|
|
4030
|
+
manualTasks: Array<string>;
|
|
4031
|
+
}
|
|
4032
|
+
|
|
4001
4033
|
/**
|
|
4002
4034
|
* Set the value of a top-level config key in a vite config file (upsert)
|
|
4003
4035
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { n as rewriteDocumentationLinks } from "./documentation-DqcZSthV.js";
|
|
2
|
+
import { a as SETUP_VP_VERSION } from "./constants-BAsBfS1J.js";
|
|
3
|
+
import { C as multiselect, S as log, T as select, k as isCancel } from "./prompts-BW7_fDGJ.js";
|
|
3
4
|
import path from "node:path";
|
|
4
5
|
import { styleText } from "node:util";
|
|
5
6
|
import fs from "node:fs";
|
|
@@ -187,7 +188,7 @@ function updateExistingAgentInstructions(projectRoot) {
|
|
|
187
188
|
if (!targetPaths) return;
|
|
188
189
|
const templatePath = path.join(pkgRoot, "AGENTS.md");
|
|
189
190
|
if (!fs.existsSync(templatePath)) return;
|
|
190
|
-
const templateContent = fs.readFileSync(templatePath, "utf-8");
|
|
191
|
+
const templateContent = rewriteDocumentationLinks(fs.readFileSync(templatePath, "utf-8"));
|
|
191
192
|
for (const targetPath of targetPaths) try {
|
|
192
193
|
const fullPath = path.join(projectRoot, targetPath);
|
|
193
194
|
const existing = fs.readFileSync(fullPath, "utf-8");
|
|
@@ -271,7 +272,7 @@ async function detectAgentConflicts({ projectRoot, targetPaths }) {
|
|
|
271
272
|
if (!targetPaths || targetPaths.length === 0) return [];
|
|
272
273
|
const sourcePath = path.join(pkgRoot, "AGENTS.md");
|
|
273
274
|
if (!fs.existsSync(sourcePath)) return [];
|
|
274
|
-
const incomingContent = await fsPromises.readFile(sourcePath, "utf-8");
|
|
275
|
+
const incomingContent = rewriteDocumentationLinks(await fsPromises.readFile(sourcePath, "utf-8"));
|
|
275
276
|
const shouldLinkToAgents = targetPaths.includes(AGENT_STANDARD_PATH);
|
|
276
277
|
const conflicts = [];
|
|
277
278
|
const seenRealPaths = /* @__PURE__ */ new Set();
|
|
@@ -294,7 +295,7 @@ async function writeAgentInstructions({ projectRoot, targetPath, targetPaths, in
|
|
|
294
295
|
return;
|
|
295
296
|
}
|
|
296
297
|
const seenRealPaths = /* @__PURE__ */ new Set();
|
|
297
|
-
const incomingContent = await fsPromises.readFile(sourcePath, "utf-8");
|
|
298
|
+
const incomingContent = rewriteDocumentationLinks(await fsPromises.readFile(sourcePath, "utf-8"));
|
|
298
299
|
const shouldLinkToAgents = paths.includes(AGENT_STANDARD_PATH);
|
|
299
300
|
for (const targetPathToWrite of orderAgentTargetPaths(projectRoot, paths)) {
|
|
300
301
|
const destinationPath = path.join(projectRoot, targetPathToWrite);
|