vite-plus 1.4.0 → 1.5.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/binding/index.cjs +116 -55
- package/binding/index.d.cts +31 -0
- package/dist/{agent-D8oxxhVR.js → agent-CowvWq3j.js} +2 -2
- package/dist/bin.js +30 -8
- package/dist/config/bin.js +5 -5
- package/dist/{constants-DRUnJ_Dz.js → constants-D5f7inVN.js} +6 -2
- package/dist/create/bin.js +115 -65
- package/dist/{define-config-Cv2P6NT2.cjs → define-config-BGCfAiIo.cjs} +35 -3
- package/dist/{define-config-rPhYIFSn.d.ts → define-config-BrvHRi-G.d.ts} +30 -2
- package/dist/{define-config-ChwJcu5e.js → define-config-XKYhw0xH.js} +30 -5
- package/dist/define-config.cjs +2 -1
- package/dist/define-config.d.ts +2 -2
- package/dist/define-config.js +1 -1
- package/dist/{editor-ClL78D8u.js → editor-BVaNnIey.js} +1266 -884
- package/dist/hooks/bin.js +2 -2
- package/dist/{hooks-xRcJPc-O.js → hooks-w_e2whkQ.js} +40 -21
- package/dist/index.cjs +4 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +1302 -311
- package/dist/migration/compat/worker.js +1 -1
- package/dist/{oxlint-plugin-config-BVpqYdcC.js → oxlint-plugin-config-5hVqz4kj.js} +1 -1
- package/dist/oxlint-plugin.js +29 -4
- package/dist/pack-bin.js +2 -2
- package/dist/{package-DzsomcUD.js → package-DLUCo6L_.js} +1 -1
- package/dist/{prompts-GL1vj0wk.js → prompts-DLpJGhfK.js} +3 -3
- package/dist/register.d.ts +1 -0
- package/dist/register.js +12 -0
- package/dist/{report-DLHO30yZ.js → report-BEdpIQvC.js} +2 -0
- package/dist/{resolve-vite-config-Dn5896A4.js → resolve-vite-config-D-JtjGRa.js} +2 -2
- package/dist/{resolve-vite-config-QO6cC0SP.js → resolve-vite-config-D7IUZYKq.js} +1 -1
- package/dist/script-esm-hooks.d.ts +5 -2
- package/dist/script-esm-hooks.js +5 -2
- package/dist/script-preload.cjs +24 -1
- package/dist/script-register.js +7 -2
- package/dist/script-watch.js +135 -41
- package/dist/staged/bin.js +2 -2
- package/dist/sync-versions/bin.js +1 -1
- package/dist/toolchain.js +14 -14
- package/dist/toolchain.json +14 -14
- package/dist/{tsconfig-LE_mAwe_.js → tsconfig-D3DiCiW6.js} +2 -2
- package/dist/{tsconfig-Do6MAG_f.js → tsconfig-DLERIAbF.js} +1 -1
- package/dist/version.js +2 -2
- package/dist/versions.js +7 -7
- package/docs/config/check.md +2 -0
- package/docs/config/fmt.md +1 -1
- package/docs/config/lint.md +1 -1
- package/docs/config/run.md +6 -2
- package/docs/config/staged.md +1 -1
- package/docs/guide/check.md +5 -1
- package/docs/guide/ci.md +2 -2
- package/docs/guide/create.md +1 -1
- package/docs/guide/env.md +1 -1
- package/docs/guide/global-cli.md +13 -9
- package/docs/guide/homebrew.md +127 -0
- package/docs/guide/ide-integration.md +1 -3
- package/docs/guide/implode.md +5 -3
- package/docs/guide/index.md +4 -4
- package/docs/guide/local-cli.md +22 -1
- package/docs/guide/migrate-rules.md +81 -22
- package/docs/guide/migrate.md +9 -9
- package/docs/guide/package-management/add.md +84 -0
- package/docs/guide/package-management/approve-builds.md +48 -0
- package/docs/guide/package-management/audit.md +39 -0
- package/docs/guide/package-management/cache.md +53 -0
- package/docs/guide/package-management/ci.md +28 -0
- package/docs/guide/package-management/config.md +119 -0
- package/docs/guide/package-management/dedupe.md +32 -0
- package/docs/guide/package-management/deprecate.md +39 -0
- package/docs/guide/package-management/dist-tag.md +61 -0
- package/docs/guide/package-management/dlx.md +40 -0
- package/docs/guide/package-management/fund.md +32 -0
- package/docs/guide/package-management/global-packages.md +32 -0
- package/docs/guide/package-management/index.md +78 -0
- package/docs/guide/package-management/info.md +35 -0
- package/docs/guide/package-management/install.md +89 -0
- package/docs/guide/package-management/licenses.md +42 -0
- package/docs/guide/package-management/link.md +29 -0
- package/docs/guide/package-management/list.md +60 -0
- package/docs/guide/package-management/login.md +34 -0
- package/docs/guide/package-management/logout.md +34 -0
- package/docs/guide/package-management/outdated.md +60 -0
- package/docs/guide/package-management/owner.md +79 -0
- package/docs/guide/package-management/pack.md +40 -0
- package/docs/guide/package-management/package-manager-selection.md +60 -0
- package/docs/guide/package-management/patch-commit.md +27 -0
- package/docs/guide/package-management/patch.md +29 -0
- package/docs/guide/package-management/ping.md +32 -0
- package/docs/guide/package-management/pkg.md +88 -0
- package/docs/guide/package-management/prune.md +34 -0
- package/docs/guide/package-management/publish.md +61 -0
- package/docs/guide/package-management/rebuild.md +31 -0
- package/docs/guide/package-management/remove.md +47 -0
- package/docs/guide/package-management/search.md +38 -0
- package/docs/guide/package-management/stage.md +175 -0
- package/docs/guide/package-management/team.md +140 -0
- package/docs/guide/package-management/token.md +87 -0
- package/docs/guide/package-management/unlink.md +33 -0
- package/docs/guide/package-management/update.md +62 -0
- package/docs/guide/package-management/version.md +36 -0
- package/docs/guide/package-management/whoami.md +30 -0
- package/docs/guide/package-management/why.md +55 -0
- package/docs/guide/run.md +23 -1
- package/docs/guide/test.md +1 -1
- package/docs/guide/troubleshooting.md +1 -1
- package/docs/guide/upgrade.md +12 -6
- package/docs/guide/vitest-v5.md +2 -2
- package/docs/guide/vpx.md +45 -5
- package/package.json +40 -34
- package/docs/guide/package-management.md +0 -269
package/binding/index.cjs
CHANGED
|
@@ -6,8 +6,13 @@ const { readFileSync } = require('fs');
|
|
|
6
6
|
let nativeBinding = null;
|
|
7
7
|
// Which artifact actually loaded. The WASI fallback chain overwrites it with
|
|
8
8
|
// the flavor it resolved; the late native retry below leaves it alone because
|
|
9
|
-
// it only runs while no WASI candidate has been loaded.
|
|
9
|
+
// it only runs while no WASI candidate has been loaded. The take-over check
|
|
10
|
+
// after the load-failure block can also set it.
|
|
10
11
|
let __napiLoadedBindingTarget = 'native';
|
|
12
|
+
// What this loader's own `requireNative()` calls returned. The check after
|
|
13
|
+
// the load-failure block compares it with `nativeBinding` to tell a binding
|
|
14
|
+
// this loader loaded from one that code outside it put in its place.
|
|
15
|
+
let __napiRequiredNativeBinding = null;
|
|
11
16
|
const loadErrors = [];
|
|
12
17
|
|
|
13
18
|
const isMusl = () => {
|
|
@@ -93,12 +98,12 @@ function requireNative() {
|
|
|
93
98
|
const bindingPackageVersion =
|
|
94
99
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
95
100
|
if (
|
|
96
|
-
bindingPackageVersion !== '1.
|
|
101
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
97
102
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
98
103
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
99
104
|
) {
|
|
100
105
|
throw new Error(
|
|
101
|
-
`Native binding package version mismatch, expected 1.
|
|
106
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
102
107
|
);
|
|
103
108
|
}
|
|
104
109
|
return binding;
|
|
@@ -116,12 +121,12 @@ function requireNative() {
|
|
|
116
121
|
const bindingPackageVersion =
|
|
117
122
|
require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
|
|
118
123
|
if (
|
|
119
|
-
bindingPackageVersion !== '1.
|
|
124
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
120
125
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
121
126
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
122
127
|
) {
|
|
123
128
|
throw new Error(
|
|
124
|
-
`Native binding package version mismatch, expected 1.
|
|
129
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
125
130
|
);
|
|
126
131
|
}
|
|
127
132
|
return binding;
|
|
@@ -151,12 +156,12 @@ function requireNative() {
|
|
|
151
156
|
const bindingPackageVersion =
|
|
152
157
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
153
158
|
if (
|
|
154
|
-
bindingPackageVersion !== '1.
|
|
159
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
155
160
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
156
161
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
157
162
|
) {
|
|
158
163
|
throw new Error(
|
|
159
|
-
`Native binding package version mismatch, expected 1.
|
|
164
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
160
165
|
);
|
|
161
166
|
}
|
|
162
167
|
return binding;
|
|
@@ -174,12 +179,12 @@ function requireNative() {
|
|
|
174
179
|
const bindingPackageVersion =
|
|
175
180
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
176
181
|
if (
|
|
177
|
-
bindingPackageVersion !== '1.
|
|
182
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
178
183
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
179
184
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
180
185
|
) {
|
|
181
186
|
throw new Error(
|
|
182
|
-
`Native binding package version mismatch, expected 1.
|
|
187
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
183
188
|
);
|
|
184
189
|
}
|
|
185
190
|
return binding;
|
|
@@ -198,12 +203,12 @@ function requireNative() {
|
|
|
198
203
|
const bindingPackageVersion =
|
|
199
204
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
200
205
|
if (
|
|
201
|
-
bindingPackageVersion !== '1.
|
|
206
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
202
207
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
203
208
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
204
209
|
) {
|
|
205
210
|
throw new Error(
|
|
206
|
-
`Native binding package version mismatch, expected 1.
|
|
211
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
207
212
|
);
|
|
208
213
|
}
|
|
209
214
|
return binding;
|
|
@@ -221,12 +226,12 @@ function requireNative() {
|
|
|
221
226
|
const bindingPackageVersion =
|
|
222
227
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
223
228
|
if (
|
|
224
|
-
bindingPackageVersion !== '1.
|
|
229
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
225
230
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
226
231
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
227
232
|
) {
|
|
228
233
|
throw new Error(
|
|
229
|
-
`Native binding package version mismatch, expected 1.
|
|
234
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
230
235
|
);
|
|
231
236
|
}
|
|
232
237
|
return binding;
|
|
@@ -247,12 +252,12 @@ function requireNative() {
|
|
|
247
252
|
const bindingPackageVersion =
|
|
248
253
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
249
254
|
if (
|
|
250
|
-
bindingPackageVersion !== '1.
|
|
255
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
251
256
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
252
257
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
253
258
|
) {
|
|
254
259
|
throw new Error(
|
|
255
|
-
`Native binding package version mismatch, expected 1.
|
|
260
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
256
261
|
);
|
|
257
262
|
}
|
|
258
263
|
return binding;
|
|
@@ -270,12 +275,12 @@ function requireNative() {
|
|
|
270
275
|
const bindingPackageVersion =
|
|
271
276
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
272
277
|
if (
|
|
273
|
-
bindingPackageVersion !== '1.
|
|
278
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
274
279
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
275
280
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
276
281
|
) {
|
|
277
282
|
throw new Error(
|
|
278
|
-
`Native binding package version mismatch, expected 1.
|
|
283
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
279
284
|
);
|
|
280
285
|
}
|
|
281
286
|
return binding;
|
|
@@ -293,12 +298,12 @@ function requireNative() {
|
|
|
293
298
|
const bindingPackageVersion =
|
|
294
299
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
295
300
|
if (
|
|
296
|
-
bindingPackageVersion !== '1.
|
|
301
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
297
302
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
298
303
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
299
304
|
) {
|
|
300
305
|
throw new Error(
|
|
301
|
-
`Native binding package version mismatch, expected 1.
|
|
306
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
302
307
|
);
|
|
303
308
|
}
|
|
304
309
|
return binding;
|
|
@@ -320,12 +325,12 @@ function requireNative() {
|
|
|
320
325
|
const bindingPackageVersion =
|
|
321
326
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
322
327
|
if (
|
|
323
|
-
bindingPackageVersion !== '1.
|
|
328
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
324
329
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
325
330
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
326
331
|
) {
|
|
327
332
|
throw new Error(
|
|
328
|
-
`Native binding package version mismatch, expected 1.
|
|
333
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
329
334
|
);
|
|
330
335
|
}
|
|
331
336
|
return binding;
|
|
@@ -343,12 +348,35 @@ function requireNative() {
|
|
|
343
348
|
const bindingPackageVersion =
|
|
344
349
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
345
350
|
if (
|
|
346
|
-
bindingPackageVersion !== '1.
|
|
351
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
347
352
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
348
353
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
349
354
|
) {
|
|
350
355
|
throw new Error(
|
|
351
|
-
`Native binding package version mismatch, expected 1.
|
|
356
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
return binding;
|
|
360
|
+
} catch (e) {
|
|
361
|
+
loadErrors.push(e);
|
|
362
|
+
}
|
|
363
|
+
} else if (process.arch === 'ppc64') {
|
|
364
|
+
try {
|
|
365
|
+
return require('./vite-plus.freebsd-ppc64.node');
|
|
366
|
+
} catch (e) {
|
|
367
|
+
loadErrors.push(e);
|
|
368
|
+
}
|
|
369
|
+
try {
|
|
370
|
+
const binding = require('@voidzero-dev/vite-plus-freebsd-ppc64');
|
|
371
|
+
const bindingPackageVersion =
|
|
372
|
+
require('@voidzero-dev/vite-plus-freebsd-ppc64/package.json').version;
|
|
373
|
+
if (
|
|
374
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
375
|
+
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
376
|
+
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
377
|
+
) {
|
|
378
|
+
throw new Error(
|
|
379
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
352
380
|
);
|
|
353
381
|
}
|
|
354
382
|
return binding;
|
|
@@ -371,12 +399,12 @@ function requireNative() {
|
|
|
371
399
|
const bindingPackageVersion =
|
|
372
400
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
373
401
|
if (
|
|
374
|
-
bindingPackageVersion !== '1.
|
|
402
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
375
403
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
376
404
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
377
405
|
) {
|
|
378
406
|
throw new Error(
|
|
379
|
-
`Native binding package version mismatch, expected 1.
|
|
407
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
380
408
|
);
|
|
381
409
|
}
|
|
382
410
|
return binding;
|
|
@@ -394,12 +422,12 @@ function requireNative() {
|
|
|
394
422
|
const bindingPackageVersion =
|
|
395
423
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
396
424
|
if (
|
|
397
|
-
bindingPackageVersion !== '1.
|
|
425
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
398
426
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
399
427
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
400
428
|
) {
|
|
401
429
|
throw new Error(
|
|
402
|
-
`Native binding package version mismatch, expected 1.
|
|
430
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
403
431
|
);
|
|
404
432
|
}
|
|
405
433
|
return binding;
|
|
@@ -419,12 +447,12 @@ function requireNative() {
|
|
|
419
447
|
const bindingPackageVersion =
|
|
420
448
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
421
449
|
if (
|
|
422
|
-
bindingPackageVersion !== '1.
|
|
450
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
423
451
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
424
452
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
425
453
|
) {
|
|
426
454
|
throw new Error(
|
|
427
|
-
`Native binding package version mismatch, expected 1.
|
|
455
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
428
456
|
);
|
|
429
457
|
}
|
|
430
458
|
return binding;
|
|
@@ -442,12 +470,12 @@ function requireNative() {
|
|
|
442
470
|
const bindingPackageVersion =
|
|
443
471
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
444
472
|
if (
|
|
445
|
-
bindingPackageVersion !== '1.
|
|
473
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
446
474
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
447
475
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
448
476
|
) {
|
|
449
477
|
throw new Error(
|
|
450
|
-
`Native binding package version mismatch, expected 1.
|
|
478
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
451
479
|
);
|
|
452
480
|
}
|
|
453
481
|
return binding;
|
|
@@ -467,12 +495,12 @@ function requireNative() {
|
|
|
467
495
|
const bindingPackageVersion =
|
|
468
496
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
469
497
|
if (
|
|
470
|
-
bindingPackageVersion !== '1.
|
|
498
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
471
499
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
472
500
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
473
501
|
) {
|
|
474
502
|
throw new Error(
|
|
475
|
-
`Native binding package version mismatch, expected 1.
|
|
503
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
476
504
|
);
|
|
477
505
|
}
|
|
478
506
|
return binding;
|
|
@@ -490,12 +518,12 @@ function requireNative() {
|
|
|
490
518
|
const bindingPackageVersion =
|
|
491
519
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
492
520
|
if (
|
|
493
|
-
bindingPackageVersion !== '1.
|
|
521
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
494
522
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
495
523
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
496
524
|
) {
|
|
497
525
|
throw new Error(
|
|
498
|
-
`Native binding package version mismatch, expected 1.
|
|
526
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
499
527
|
);
|
|
500
528
|
}
|
|
501
529
|
return binding;
|
|
@@ -515,12 +543,12 @@ function requireNative() {
|
|
|
515
543
|
const bindingPackageVersion =
|
|
516
544
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
517
545
|
if (
|
|
518
|
-
bindingPackageVersion !== '1.
|
|
546
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
519
547
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
520
548
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
521
549
|
) {
|
|
522
550
|
throw new Error(
|
|
523
|
-
`Native binding package version mismatch, expected 1.
|
|
551
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
524
552
|
);
|
|
525
553
|
}
|
|
526
554
|
return binding;
|
|
@@ -538,12 +566,12 @@ function requireNative() {
|
|
|
538
566
|
const bindingPackageVersion =
|
|
539
567
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
540
568
|
if (
|
|
541
|
-
bindingPackageVersion !== '1.
|
|
569
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
542
570
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
543
571
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
544
572
|
) {
|
|
545
573
|
throw new Error(
|
|
546
|
-
`Native binding package version mismatch, expected 1.
|
|
574
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
547
575
|
);
|
|
548
576
|
}
|
|
549
577
|
return binding;
|
|
@@ -563,12 +591,12 @@ function requireNative() {
|
|
|
563
591
|
const bindingPackageVersion =
|
|
564
592
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
565
593
|
if (
|
|
566
|
-
bindingPackageVersion !== '1.
|
|
594
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
567
595
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
568
596
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
569
597
|
) {
|
|
570
598
|
throw new Error(
|
|
571
|
-
`Native binding package version mismatch, expected 1.
|
|
599
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
572
600
|
);
|
|
573
601
|
}
|
|
574
602
|
return binding;
|
|
@@ -586,12 +614,12 @@ function requireNative() {
|
|
|
586
614
|
const bindingPackageVersion =
|
|
587
615
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
588
616
|
if (
|
|
589
|
-
bindingPackageVersion !== '1.
|
|
617
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
590
618
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
591
619
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
592
620
|
) {
|
|
593
621
|
throw new Error(
|
|
594
|
-
`Native binding package version mismatch, expected 1.
|
|
622
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
595
623
|
);
|
|
596
624
|
}
|
|
597
625
|
return binding;
|
|
@@ -610,12 +638,12 @@ function requireNative() {
|
|
|
610
638
|
const bindingPackageVersion =
|
|
611
639
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
612
640
|
if (
|
|
613
|
-
bindingPackageVersion !== '1.
|
|
641
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
614
642
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
615
643
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
616
644
|
) {
|
|
617
645
|
throw new Error(
|
|
618
|
-
`Native binding package version mismatch, expected 1.
|
|
646
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
619
647
|
);
|
|
620
648
|
}
|
|
621
649
|
return binding;
|
|
@@ -633,12 +661,12 @@ function requireNative() {
|
|
|
633
661
|
const bindingPackageVersion =
|
|
634
662
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
635
663
|
if (
|
|
636
|
-
bindingPackageVersion !== '1.
|
|
664
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
637
665
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
638
666
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
639
667
|
) {
|
|
640
668
|
throw new Error(
|
|
641
|
-
`Native binding package version mismatch, expected 1.
|
|
669
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
642
670
|
);
|
|
643
671
|
}
|
|
644
672
|
return binding;
|
|
@@ -660,12 +688,12 @@ function requireNative() {
|
|
|
660
688
|
const bindingPackageVersion =
|
|
661
689
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
662
690
|
if (
|
|
663
|
-
bindingPackageVersion !== '1.
|
|
691
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
664
692
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
665
693
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
666
694
|
) {
|
|
667
695
|
throw new Error(
|
|
668
|
-
`Native binding package version mismatch, expected 1.
|
|
696
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
669
697
|
);
|
|
670
698
|
}
|
|
671
699
|
return binding;
|
|
@@ -683,12 +711,12 @@ function requireNative() {
|
|
|
683
711
|
const bindingPackageVersion =
|
|
684
712
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
685
713
|
if (
|
|
686
|
-
bindingPackageVersion !== '1.
|
|
714
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
687
715
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
688
716
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
689
717
|
) {
|
|
690
718
|
throw new Error(
|
|
691
|
-
`Native binding package version mismatch, expected 1.
|
|
719
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
692
720
|
);
|
|
693
721
|
}
|
|
694
722
|
return binding;
|
|
@@ -706,12 +734,12 @@ function requireNative() {
|
|
|
706
734
|
const bindingPackageVersion =
|
|
707
735
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
708
736
|
if (
|
|
709
|
-
bindingPackageVersion !== '1.
|
|
737
|
+
bindingPackageVersion !== '1.5.1' &&
|
|
710
738
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
711
739
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
712
740
|
) {
|
|
713
741
|
throw new Error(
|
|
714
|
-
`Native binding package version mismatch, expected 1.
|
|
742
|
+
`Native binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
715
743
|
);
|
|
716
744
|
}
|
|
717
745
|
return binding;
|
|
@@ -770,6 +798,7 @@ const forceWasi =
|
|
|
770
798
|
|
|
771
799
|
if (!forceWasi) {
|
|
772
800
|
nativeBinding = requireNative();
|
|
801
|
+
__napiRequiredNativeBinding = nativeBinding;
|
|
773
802
|
}
|
|
774
803
|
|
|
775
804
|
if (!nativeBinding || forceWasi) {
|
|
@@ -857,9 +886,9 @@ if (!nativeBinding || forceWasi) {
|
|
|
857
886
|
) {
|
|
858
887
|
const bindingPackageVersion =
|
|
859
888
|
require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
|
|
860
|
-
if (bindingPackageVersion !== '1.
|
|
889
|
+
if (bindingPackageVersion !== '1.5.1') {
|
|
861
890
|
throw new Error(
|
|
862
|
-
`WASI binding package version mismatch, expected 1.
|
|
891
|
+
`WASI binding package version mismatch, expected 1.5.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
863
892
|
);
|
|
864
893
|
}
|
|
865
894
|
}
|
|
@@ -879,6 +908,7 @@ if (!nativeBinding || forceWasi) {
|
|
|
879
908
|
}
|
|
880
909
|
if (!wasiBindingLoaded && forceWasi && !forceWasiError && !__napiWasiFlavorRequested) {
|
|
881
910
|
nativeBinding = requireNative();
|
|
911
|
+
__napiRequiredNativeBinding = nativeBinding;
|
|
882
912
|
}
|
|
883
913
|
if ((forceWasiError || __napiWasiFlavorRequested) && !wasiBindingLoaded) {
|
|
884
914
|
const error = new Error(
|
|
@@ -906,6 +936,37 @@ if (!nativeBinding) {
|
|
|
906
936
|
throw new Error(`Failed to load native binding`);
|
|
907
937
|
}
|
|
908
938
|
|
|
939
|
+
// A package can patch its own fallback in front of the load-failure check
|
|
940
|
+
// above, e.g. a WebContainer download through `napi-postinstall/fallback`.
|
|
941
|
+
// That fallback swaps `nativeBinding` for a generated WASI loader, which has
|
|
942
|
+
// already stamped its own flavor, while the target above still says 'native'.
|
|
943
|
+
// Take that flavor over, or the CommonJS stamp throws a conflict and the ESM
|
|
944
|
+
// export reports the wrong artifact. Three limits keep the conflict check:
|
|
945
|
+
// - only a binding this loader did not load itself, so a native addon whose
|
|
946
|
+
// `#[napi(module_exports)]` hook claims the name is still rejected;
|
|
947
|
+
// - only an own data property, read through its descriptor, so no addon
|
|
948
|
+
// getter runs here, and it must read back the same, as the stamp reads it;
|
|
949
|
+
// - only a flavor in `__napiWasiFlavors`, the ones this loader's own WASI
|
|
950
|
+
// chain can report ('wasm32-wasi' for a package without a WASI target).
|
|
951
|
+
// This is metadata and never fails a load: a throwing Proxy trap keeps 'native'.
|
|
952
|
+
if (__napiLoadedBindingTarget === 'native' && nativeBinding !== __napiRequiredNativeBinding) {
|
|
953
|
+
try {
|
|
954
|
+
const __napiBindingTargetDescriptor = Object.getOwnPropertyDescriptor(
|
|
955
|
+
nativeBinding,
|
|
956
|
+
'__napiBindingTarget',
|
|
957
|
+
);
|
|
958
|
+
if (
|
|
959
|
+
__napiBindingTargetDescriptor &&
|
|
960
|
+
__napiWasiFlavors.indexOf(__napiBindingTargetDescriptor.value) !== -1 &&
|
|
961
|
+
nativeBinding.__napiBindingTarget === __napiBindingTargetDescriptor.value
|
|
962
|
+
) {
|
|
963
|
+
__napiLoadedBindingTarget = __napiBindingTargetDescriptor.value;
|
|
964
|
+
}
|
|
965
|
+
} catch {
|
|
966
|
+
// keep 'native'
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
909
970
|
function __napiStampBindingTarget(exportsObject, target) {
|
|
910
971
|
if (Object.prototype.hasOwnProperty.call(exportsObject, '__napiBindingTarget')) {
|
|
911
972
|
if (exportsObject.__napiBindingTarget === target) {
|
package/binding/index.d.cts
CHANGED
|
@@ -1669,6 +1669,15 @@ export interface TypeScriptOptions {
|
|
|
1669
1669
|
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean;
|
|
1670
1670
|
}
|
|
1671
1671
|
|
|
1672
|
+
/**
|
|
1673
|
+
* The selected tsconfig and its original source, sent to an asynchronous loader.
|
|
1674
|
+
* `None` selects discovery explicitly, without consulting the receiving thread's env.
|
|
1675
|
+
*/
|
|
1676
|
+
export interface FrozenTsconfig {
|
|
1677
|
+
path?: string;
|
|
1678
|
+
source?: string;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1672
1681
|
export interface LoadContext {
|
|
1673
1682
|
/** Export conditions of the relevant `package.json` */
|
|
1674
1683
|
conditions?: Array<string>;
|
|
@@ -2009,6 +2018,12 @@ export declare class BindingOutputChunk {
|
|
|
2009
2018
|
getImports(): Array<string>;
|
|
2010
2019
|
getDynamicImports(): Array<string>;
|
|
2011
2020
|
getCode(): string;
|
|
2021
|
+
/**
|
|
2022
|
+
* Identity of the shared chunk data behind this object. Two `BindingOutputChunk` objects with the same
|
|
2023
|
+
* identity share the same data, so a JavaScript string made from `getCode()` of one is valid for the other.
|
|
2024
|
+
* The identity is the address of that data. It stays unique while a `BindingOutputChunk` keeps the data alive.
|
|
2025
|
+
*/
|
|
2026
|
+
getCodeIdentity(): number;
|
|
2012
2027
|
getMap(): string | null;
|
|
2013
2028
|
getSourcemapFileName(): string | null;
|
|
2014
2029
|
getPreliminaryFileName(): string;
|
|
@@ -2058,6 +2073,8 @@ export declare class BindingRenderedChunkMeta {
|
|
|
2058
2073
|
|
|
2059
2074
|
export declare class BindingRenderedModule {
|
|
2060
2075
|
get code(): string | null;
|
|
2076
|
+
/** `code.length` without materializing `code`. */
|
|
2077
|
+
get renderedLength(): number;
|
|
2061
2078
|
get renderedExports(): Array<string>;
|
|
2062
2079
|
}
|
|
2063
2080
|
|
|
@@ -2314,6 +2331,12 @@ export interface BindingDevOptions {
|
|
|
2314
2331
|
|
|
2315
2332
|
export interface BindingDevtoolsOptions {
|
|
2316
2333
|
sessionId?: string;
|
|
2334
|
+
/**
|
|
2335
|
+
* `"full"` (default): write JSON-lines devtools logs. `"report"`: aggregate the same
|
|
2336
|
+
* event stream in-memory and emit an agent-readable report (`metrics.json` + markdown)
|
|
2337
|
+
* under `node_modules/.rolldown/report/<output dir>` instead.
|
|
2338
|
+
*/
|
|
2339
|
+
mode?: 'full' | 'report';
|
|
2317
2340
|
}
|
|
2318
2341
|
|
|
2319
2342
|
export interface BindingDevWatchOptions {
|
|
@@ -4238,6 +4261,14 @@ export declare namespace oxcNode {
|
|
|
4238
4261
|
) => ResolveFnOutput | Promise<ResolveFnOutput>,
|
|
4239
4262
|
): ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
4240
4263
|
export function enableWatchReport(): void;
|
|
4264
|
+
export function freezeTransformDeps(): string;
|
|
4265
|
+
/** Freeze the effective config before registering the off-thread ESM hooks. */
|
|
4266
|
+
export function freezeTsconfig(cwd: string): FrozenTsconfig;
|
|
4267
|
+
/** Apply a frozen selection, including discovery without the receiving thread's env. */
|
|
4268
|
+
export function initializeLoader(
|
|
4269
|
+
path?: string | undefined | null,
|
|
4270
|
+
source?: string | undefined | null,
|
|
4271
|
+
): void;
|
|
4241
4272
|
export function load(
|
|
4242
4273
|
url: string,
|
|
4243
4274
|
context: LoadContext,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-DLpJGhfK.js";
|
|
2
|
+
import { a as SETUP_VP_VERSION } from "./constants-D5f7inVN.js";
|
|
1
3
|
import { n as rewriteDocumentationLinks } from "./documentation-cv_y0Auv.js";
|
|
2
|
-
import { a as SETUP_VP_VERSION } from "./constants-DRUnJ_Dz.js";
|
|
3
|
-
import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-GL1vj0wk.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import fs from "node:fs";
|
package/dist/bin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as documentationUrl$1 } from "./documentation-cv_y0Auv.js";
|
|
2
2
|
import { t as renderCliDoc } from "./help-B03t_iQ4.js";
|
|
3
3
|
import { c as warnMsg, i as log, n as errorMsg, o as printHeader, t as accent } from "./terminal-BcuPUy-j.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as
|
|
6
|
-
import { o as readNearestPackageJson } from "./package-
|
|
4
|
+
import { i as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-5hVqz4kj.js";
|
|
5
|
+
import { g as resolveBundled, h as resolve$1, i as DEFAULT_ENVS, l as VITE_CONFIG_FILES, n as BASEURL_TSCONFIG_WARNING, r as CONFIG_METADATA_ENV, u as VITE_PLUS_NAME } from "./constants-D5f7inVN.js";
|
|
6
|
+
import { o as readNearestPackageJson } from "./package-DLUCo6L_.js";
|
|
7
7
|
import { t as cac } from "./dist-CdkMvIiQ.js";
|
|
8
8
|
import { createRequire } from "node:module";
|
|
9
9
|
import path, { dirname, join, resolve } from "node:path";
|
|
@@ -342,7 +342,7 @@ const commandHelpDocs = {
|
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
344
|
label: "--api [port]",
|
|
345
|
-
description: "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or
|
|
345
|
+
description: "Specify server port. Note if the port is already being used, Vite will automatically try the next available port so this may not be the actual port the server ends up listening on. If true will be set to 51204 or 23315 in browser mode. Use '--help --api' for more info."
|
|
346
346
|
},
|
|
347
347
|
{
|
|
348
348
|
label: "--silent [value]",
|
|
@@ -440,6 +440,14 @@ const commandHelpDocs = {
|
|
|
440
440
|
label: "--changed [since]",
|
|
441
441
|
description: "Run tests that are affected by the changed files (default: false)"
|
|
442
442
|
},
|
|
443
|
+
{
|
|
444
|
+
label: "--sinceLastRun",
|
|
445
|
+
description: "Run tests with dependencies modified since their last run, plus tests that failed (default: false)"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
label: "--lastFailed",
|
|
449
|
+
description: "Run only the tests that failed in the last run (default: false)"
|
|
450
|
+
},
|
|
443
451
|
{
|
|
444
452
|
label: "--sequence <options>",
|
|
445
453
|
description: "Options for how tests should be sorted. Use '--help --sequence' for more info."
|
|
@@ -1099,7 +1107,7 @@ const commandHelpDocs = {
|
|
|
1099
1107
|
},
|
|
1100
1108
|
{
|
|
1101
1109
|
label: "--env-file <file>",
|
|
1102
|
-
description: "Load environment variables from a file,
|
|
1110
|
+
description: "Load environment variables from a file, can be repeated"
|
|
1103
1111
|
},
|
|
1104
1112
|
{
|
|
1105
1113
|
label: "--env-prefix <prefix>",
|
|
@@ -1529,7 +1537,7 @@ async function applyToolInitConfigToViteConfig(command, args, projectPath = proc
|
|
|
1529
1537
|
}
|
|
1530
1538
|
if (spec.configKey === "lint" && hasTriggerFlag(args, ["--init"])) {
|
|
1531
1539
|
const lintInitConfigPath = path.join(projectPath, ".vite-plus-lint-init.oxlintrc.json");
|
|
1532
|
-
const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-
|
|
1540
|
+
const { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig } = await import("./tsconfig-DLERIAbF.js");
|
|
1533
1541
|
await fixBaseUrlInTsconfig(projectPath);
|
|
1534
1542
|
const hasBaseUrl = hasBaseUrlInTsconfig(projectPath);
|
|
1535
1543
|
const initConfig = createDefaultVitePlusLintConfig({ includeTypeAwareDefaults: !hasBaseUrl });
|
|
@@ -1797,6 +1805,18 @@ async function vite(err, context) {
|
|
|
1797
1805
|
process.stdout;
|
|
1798
1806
|
process.stderr;
|
|
1799
1807
|
ensureBlockingStdio();
|
|
1808
|
+
/**
|
|
1809
|
+
* Loading a config through Vite imports `node:process` as ESM, and building that
|
|
1810
|
+
* namespace reads every `process` getter, so `process.stdin` is created and its
|
|
1811
|
+
* descriptor becomes non-blocking, TTY or pipe. Tasks inherit that descriptor, and a
|
|
1812
|
+
* blocking read there fails with EAGAIN. `ensureBlockingStdio()` leaves terminals
|
|
1813
|
+
* alone, so restore blocking reads through the stream handle, as `vpx` does before
|
|
1814
|
+
* exec.
|
|
1815
|
+
*/
|
|
1816
|
+
function restoreBlockingStdin() {
|
|
1817
|
+
if (process.platform === "win32") return;
|
|
1818
|
+
process.stdin._handle?.setBlocking?.(true);
|
|
1819
|
+
}
|
|
1800
1820
|
function getErrorMessage(err) {
|
|
1801
1821
|
if (err instanceof Error) return err.message;
|
|
1802
1822
|
if (typeof err === "object" && err && "message" in err && typeof err.message === "string") return err.message;
|
|
@@ -1867,8 +1887,10 @@ else try {
|
|
|
1867
1887
|
toolchainManifestPath: path.join(cliDistDir, "toolchain.json"),
|
|
1868
1888
|
vitePlusPackagePath,
|
|
1869
1889
|
resolveUniversalViteConfig: async (err, cwd) => {
|
|
1870
|
-
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-
|
|
1871
|
-
|
|
1890
|
+
const { resolveUniversalViteConfig } = await import("./resolve-vite-config-D7IUZYKq.js");
|
|
1891
|
+
const config = await resolveUniversalViteConfig(err, cwd);
|
|
1892
|
+
restoreBlockingStdin();
|
|
1893
|
+
return config;
|
|
1872
1894
|
},
|
|
1873
1895
|
nodeVersion: process.version,
|
|
1874
1896
|
explicitChdir,
|