vite-plus 1.2.0 → 1.4.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 +4 -0
- package/LICENSE +1 -849
- package/README.md +1 -1
- package/bin/vpx +9 -0
- package/binding/index.cjs +59 -54
- package/binding/index.d.cts +132 -2
- package/dist/{agent-KeDc6vmg.js → agent-D8oxxhVR.js} +7 -9
- package/dist/bin.js +27 -34
- package/dist/{cli-parse-DHE8NrBU.js → cli-parse-aeUeFDlC.js} +2 -3
- package/dist/command-TjS_6y9O.js +1 -0
- package/dist/{command-CguLh2KL.js → command-rY79K5NI.js} +40 -42
- package/dist/{comparison-CmVirWIW-DUGaiYqF.js → comparison-CmVirWIW-UlEf2maz.js} +1 -2
- package/dist/config/bin.js +8 -10
- package/dist/{constants-BW3g7VnD.js → constants-DRUnJ_Dz.js} +4 -6
- package/dist/create/bin.d.ts +4 -8
- package/dist/create/bin.js +64 -68
- package/dist/{define-config-CIlk9scU.js → define-config-ChwJcu5e.js} +6 -9
- package/dist/{define-config-Dq_23Eyr.cjs → define-config-Cv2P6NT2.cjs} +8 -13
- package/dist/{define-config-Bexdd6RZ.d.ts → define-config-rPhYIFSn.d.ts} +1 -11
- 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-Bi7ZEK3c.js → dist-Bs0SObNC.js} +77 -149
- package/dist/{dist-Cqz8OtiO.js → dist-CdkMvIiQ.js} +11 -5
- package/dist/dist-zDZV5eEc.js +3 -0
- package/dist/{documentation-DqcZSthV.js → documentation-cv_y0Auv.js} +1 -2
- package/dist/{editor-b1XUwt9v.js → editor-ClL78D8u.js} +1492 -4211
- package/dist/{help-BmKpeOP9.js → help-B03t_iQ4.js} +1 -2
- package/dist/hooks/bin.js +4 -5
- package/dist/{hooks-DhwsWb46.js → hooks-xRcJPc-O.js} +5 -4
- package/dist/index.cjs +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-JP24qHUF.js → json-kl84kDyH.js} +9 -18
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +719 -184
- package/dist/migration/compat/worker.js +4 -6
- package/dist/{oxlint-plugin-config-Dx-ZY2MN.js → oxlint-plugin-config-BVpqYdcC.js} +3 -4
- package/dist/oxlint-plugin.d.ts +0 -2
- package/dist/oxlint-plugin.js +6 -7
- package/dist/{pack-BK38MLVZ.d.ts → pack-ARPFMefW.d.ts} +0 -2
- package/dist/pack-bin.d.ts +1 -3
- package/dist/pack-bin.js +3 -4
- package/dist/pack.d.ts +1 -1
- package/dist/{package-BP16iQby.js → package-DzsomcUD.js} +10 -95
- package/dist/{package-overrides-D1RcXSFl.js → package-overrides-Ci8GXouY.js} +5 -8
- package/dist/picomatch-DEUoj81q.js +1916 -0
- package/dist/{prompts-BGpQtC5z.js → prompts-GL1vj0wk.js} +113 -239
- package/dist/{protocol-D99W10Qi.js → protocol-CkNmY-Mr.js} +1 -2
- package/dist/{report-NhQk8VHb.js → report-DLHO30yZ.js} +2 -2
- package/dist/{resolve-vite-config-x47JetlI.js → resolve-vite-config-Dn5896A4.js} +9 -25
- package/dist/resolve-vite-config-QO6cC0SP.js +1 -0
- package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-DegdyBIC.js} +2 -3
- package/dist/script-esm-hooks.d.ts +8 -0
- package/dist/script-esm-hooks.js +24 -0
- package/dist/script-hooks-9Fof5UMY.js +176 -0
- package/dist/script-preload.cjs +468 -0
- package/dist/script-register.d.ts +1 -0
- package/dist/script-register.js +22 -0
- package/dist/script-watch.d.ts +1 -0
- package/dist/script-watch.js +1908 -0
- package/dist/staged/bin.js +81 -2011
- package/dist/sync-versions/bin.js +29 -50
- package/dist/sync-versions/bin.mjs +117 -224
- package/dist/{terminal-MKGAuy-p.js → terminal-BcuPUy-j.js} +1 -2
- package/dist/toolchain.js +36 -10
- package/dist/toolchain.json +36 -10
- package/dist/{tsconfig-C5PnJfW4.js → tsconfig-Do6MAG_f.js} +1 -1
- package/dist/{tsconfig-D2DzAQ_D.js → tsconfig-LE_mAwe_.js} +8 -10
- package/dist/version.d.ts +1 -3
- package/dist/version.js +5 -6
- package/dist/versions.js +5 -5
- package/dist/{vitest-ecosystem-BU0AqZq-.js → vitest-ecosystem-BeEYz-qF.js} +1 -2
- package/dist/{vitest-v5-entry-points-DthU1e_O.js → vitest-v5-entry-points-NyJsFeux.js} +1 -2
- package/dist/vpx-bin.d.ts +1 -0
- package/dist/vpx-bin.js +232 -0
- package/dist/vpx-script-EXgV5QOf.js +434 -0
- package/docs/config/run.md +4 -0
- package/docs/guide/check.md +1 -0
- package/docs/guide/ci.md +13 -3
- package/docs/guide/create.md +34 -0
- package/docs/guide/env.md +27 -13
- package/docs/guide/global-cli.md +52 -0
- package/docs/guide/local-cli.md +4 -4
- package/docs/guide/migrate-rules.md +48 -5
- package/docs/guide/migrate.md +6 -6
- package/docs/guide/package-management.md +19 -2
- package/docs/guide/test.md +1 -1
- package/docs/guide/vitest-v5.md +2 -2
- package/docs/guide/vpx.md +170 -9
- package/package.json +32 -29
- package/dist/command-DaRqSNpP.js +0 -1
- package/dist/dist-CBWGibx8.js +0 -3
- package/dist/resolve-vite-config-CGzlyhGr.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as modify, l as parse$1, o as applyEdits, t as detectFormattingOptions } from "../json-
|
|
2
|
-
import { n as isAlignableVitestEcosystemPackage } from "../vitest-ecosystem-
|
|
3
|
-
import { i as normalizeRange, t as extractOverrideTargetName } from "../package-overrides-
|
|
4
|
-
import { t as require_dist } from "../dist-
|
|
1
|
+
import { c as modify, l as parse$1, o as applyEdits, t as detectFormattingOptions } from "../json-kl84kDyH.js";
|
|
2
|
+
import { n as isAlignableVitestEcosystemPackage } from "../vitest-ecosystem-BeEYz-qF.js";
|
|
3
|
+
import { i as normalizeRange, t as extractOverrideTargetName } from "../package-overrides-Ci8GXouY.js";
|
|
4
|
+
import { t as require_dist } from "../dist-Bs0SObNC.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fsPromises from "node:fs/promises";
|
|
7
7
|
import { Buffer } from "node:buffer";
|
|
8
|
-
|
|
8
|
+
// src/sync-versions/input.ts
|
|
9
9
|
const MAX_SYNC_VERSIONS_REQUEST_BYTES = 16777216;
|
|
10
10
|
async function readBoundedUtf8(input, maxBytes = MAX_SYNC_VERSIONS_REQUEST_BYTES) {
|
|
11
11
|
const chunks = [];
|
|
@@ -19,8 +19,7 @@ async function readBoundedUtf8(input, maxBytes = MAX_SYNC_VERSIONS_REQUEST_BYTES
|
|
|
19
19
|
}
|
|
20
20
|
return Buffer.concat(chunks, totalBytes).toString("utf8");
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
|
|
22
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
|
|
24
23
|
function getEnumValues(entries) {
|
|
25
24
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
26
25
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -412,6 +411,7 @@ function hide(inst, key, value) {
|
|
|
412
411
|
return own(inst, key, value, false);
|
|
413
412
|
}
|
|
414
413
|
/** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
|
|
414
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
415
415
|
function derived(computes, table) {
|
|
416
416
|
for (const key in computes) {
|
|
417
417
|
const compute = computes[key];
|
|
@@ -535,8 +535,7 @@ function constantCatch(value) {
|
|
|
535
535
|
fn[CONSTANT_CATCH] = true;
|
|
536
536
|
return fn;
|
|
537
537
|
}
|
|
538
|
-
|
|
539
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
|
|
538
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
|
|
540
539
|
var _a$1;
|
|
541
540
|
const _zodDesc = {
|
|
542
541
|
value: void 0,
|
|
@@ -563,6 +562,7 @@ function newError(Definition) {
|
|
|
563
562
|
}
|
|
564
563
|
return new Definition();
|
|
565
564
|
}
|
|
565
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
566
566
|
function $constructor(name, initializer, proto, params) {
|
|
567
567
|
const zodProto = {};
|
|
568
568
|
function Internals(def) {
|
|
@@ -641,8 +641,7 @@ function config(newConfig) {
|
|
|
641
641
|
if (newConfig) Object.assign(globalConfig, newConfig);
|
|
642
642
|
return globalConfig;
|
|
643
643
|
}
|
|
644
|
-
|
|
645
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
|
|
644
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
|
|
646
645
|
function _getMessage() {
|
|
647
646
|
const internals = this._zod;
|
|
648
647
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -693,8 +692,7 @@ const initializer$1 = (inst, def) => {
|
|
|
693
692
|
});
|
|
694
693
|
}
|
|
695
694
|
};
|
|
696
|
-
const $ZodError = $constructor("$ZodError", initializer$1);
|
|
697
|
-
$constructor("$ZodError", initializer$1, void 0, { Parent: Error });
|
|
695
|
+
const $ZodError = /* @__PURE__ */ $constructor("$ZodError", initializer$1);
|
|
698
696
|
/** Get-or-create `obj[key]` as an own data property. A path segment naming an inherited member
|
|
699
697
|
* ("toString", "constructor") would otherwise read through to the prototype, and assigning
|
|
700
698
|
* "__proto__" would hit the setter instead of creating a key. */
|
|
@@ -757,8 +755,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
757
755
|
processError(error);
|
|
758
756
|
return fieldErrors;
|
|
759
757
|
}
|
|
760
|
-
|
|
761
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
|
|
758
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
|
|
762
759
|
function finalizeParams(callee, params) {
|
|
763
760
|
return {
|
|
764
761
|
callee: params?.callee ?? callee,
|
|
@@ -960,8 +957,7 @@ const _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
960
957
|
const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
961
958
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
962
959
|
};
|
|
963
|
-
|
|
964
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
|
|
960
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
|
|
965
961
|
/**
|
|
966
962
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
967
963
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1029,8 +1025,7 @@ function datetime(args) {
|
|
|
1029
1025
|
const anyString = /^[\s\S]{0,}$/;
|
|
1030
1026
|
const lowercase = /^[^A-Z]*$/;
|
|
1031
1027
|
const uppercase = /^[^a-z]*$/;
|
|
1032
|
-
|
|
1033
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
|
|
1028
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
|
|
1034
1029
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1035
1030
|
var _a;
|
|
1036
1031
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1209,8 +1204,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1209
1204
|
payload.value = def.tx(payload.value);
|
|
1210
1205
|
};
|
|
1211
1206
|
});
|
|
1212
|
-
|
|
1213
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
|
|
1207
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
|
|
1214
1208
|
var Doc = class {
|
|
1215
1209
|
constructor(args = [], closed = {}) {
|
|
1216
1210
|
this.content = [];
|
|
@@ -1243,15 +1237,13 @@ var Doc = class {
|
|
|
1243
1237
|
return new F(...Object.keys(this.closed), `return function (${this.args.join(", ")}) {\n${content.join("\n")}\n};`)(...Object.values(this.closed));
|
|
1244
1238
|
}
|
|
1245
1239
|
};
|
|
1246
|
-
|
|
1247
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
|
|
1240
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
|
|
1248
1241
|
const version = {
|
|
1249
1242
|
major: 4,
|
|
1250
1243
|
minor: 6,
|
|
1251
1244
|
patch: 5
|
|
1252
1245
|
};
|
|
1253
|
-
|
|
1254
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
|
|
1246
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
|
|
1255
1247
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1256
1248
|
var _a;
|
|
1257
1249
|
inst ?? (inst = {});
|
|
@@ -2510,8 +2502,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2510
2502
|
payload.issues.push(issue(_iss));
|
|
2511
2503
|
}
|
|
2512
2504
|
}
|
|
2513
|
-
|
|
2514
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
|
|
2505
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
|
|
2515
2506
|
var $ZodCyclicError = class extends Error {
|
|
2516
2507
|
constructor() {
|
|
2517
2508
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -2763,8 +2754,7 @@ function isBackEdge(ctx, value) {
|
|
|
2763
2754
|
const backEdges = ctx[STATE]?.backEdges;
|
|
2764
2755
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
2765
2756
|
}
|
|
2766
|
-
|
|
2767
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
|
|
2757
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
|
|
2768
2758
|
const error = () => {
|
|
2769
2759
|
const Sizable = {
|
|
2770
2760
|
string: {
|
|
@@ -2871,8 +2861,7 @@ const error = () => {
|
|
|
2871
2861
|
function en_default() {
|
|
2872
2862
|
return { localeError: error() };
|
|
2873
2863
|
}
|
|
2874
|
-
|
|
2875
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
|
|
2864
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
|
|
2876
2865
|
var _a;
|
|
2877
2866
|
var $ZodRegistry = class {
|
|
2878
2867
|
constructor() {
|
|
@@ -2918,8 +2907,7 @@ function registry() {
|
|
|
2918
2907
|
}
|
|
2919
2908
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
2920
2909
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2921
|
-
|
|
2922
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
|
|
2910
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
|
|
2923
2911
|
function snapshotChecks(def) {
|
|
2924
2912
|
if (def.checks) def.checks = [...def.checks];
|
|
2925
2913
|
return def;
|
|
@@ -3358,8 +3346,7 @@ function _check(fn, params) {
|
|
|
3358
3346
|
ch._zod.check = fn;
|
|
3359
3347
|
return ch;
|
|
3360
3348
|
}
|
|
3361
|
-
|
|
3362
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
|
|
3349
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
|
|
3363
3350
|
function assignProps(target, ...sources) {
|
|
3364
3351
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
3365
3352
|
return target;
|
|
@@ -3802,8 +3789,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
3802
3789
|
extractDefs(ctx, schema);
|
|
3803
3790
|
return finalize(ctx, schema);
|
|
3804
3791
|
};
|
|
3805
|
-
|
|
3806
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
|
|
3792
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
|
|
3807
3793
|
const narrowMin = (agg, key, value) => {
|
|
3808
3794
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
3809
3795
|
};
|
|
@@ -4118,8 +4104,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
4118
4104
|
const seen = ctx.seen.get(schema);
|
|
4119
4105
|
seen.ref = def.innerType;
|
|
4120
4106
|
};
|
|
4121
|
-
|
|
4122
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
|
|
4107
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
|
|
4123
4108
|
const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4124
4109
|
function _lazyMethod(proto, key, make) {
|
|
4125
4110
|
Object.defineProperty(proto, key, {
|
|
@@ -4168,8 +4153,7 @@ const initializer = (inst, issues) => {
|
|
|
4168
4153
|
});
|
|
4169
4154
|
};
|
|
4170
4155
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4171
|
-
|
|
4172
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
|
|
4156
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
|
|
4173
4157
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4174
4158
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4175
4159
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -4182,8 +4166,7 @@ const safeEncode = /* @__PURE__ */ _safeEncode(ZodRealError);
|
|
|
4182
4166
|
const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
4183
4167
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
4184
4168
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
4185
|
-
|
|
4186
|
-
//#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
|
|
4169
|
+
// ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
|
|
4187
4170
|
function _ensureDefaultLocale() {
|
|
4188
4171
|
if (!globalConfig.localeError) config(en_default());
|
|
4189
4172
|
}
|
|
@@ -4958,8 +4941,7 @@ function refine(fn, _params = {}) {
|
|
|
4958
4941
|
function superRefine(fn, params) {
|
|
4959
4942
|
return /* @__PURE__ */ _superRefine(fn, params);
|
|
4960
4943
|
}
|
|
4961
|
-
|
|
4962
|
-
//#region src/sync-versions/plan.ts
|
|
4944
|
+
// src/sync-versions/plan.ts
|
|
4963
4945
|
var import_dist = require_dist();
|
|
4964
4946
|
const MAX_MANIFESTS = 256;
|
|
4965
4947
|
const MAX_MANIFEST_BYTES = 1048576;
|
|
@@ -5208,8 +5190,7 @@ function planSyncVersions(request, toolchain) {
|
|
|
5208
5190
|
replacements
|
|
5209
5191
|
};
|
|
5210
5192
|
}
|
|
5211
|
-
|
|
5212
|
-
//#region src/sync-versions/protocol.ts
|
|
5193
|
+
// src/sync-versions/protocol.ts
|
|
5213
5194
|
const exactVersionSchema = string().regex(/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/);
|
|
5214
5195
|
const toolchainManifestSchema = object({
|
|
5215
5196
|
schemaVersion: literal(1),
|
|
@@ -5240,8 +5221,7 @@ function runSyncVersionsProtocol(requestJson, manifest) {
|
|
|
5240
5221
|
const plan = planSyncVersions(parseSyncVersionsRequest(input), toolchainFromManifest(manifest));
|
|
5241
5222
|
return `${JSON.stringify(plan)}\n`;
|
|
5242
5223
|
}
|
|
5243
|
-
|
|
5244
|
-
//#region src/sync-versions/bin.ts
|
|
5224
|
+
// src/sync-versions/bin.ts
|
|
5245
5225
|
function errorMessage(error) {
|
|
5246
5226
|
return error instanceof Error ? error.message : String(error);
|
|
5247
5227
|
}
|
|
@@ -5268,5 +5248,4 @@ try {
|
|
|
5268
5248
|
process.stderr.write(`vite-plus sync-versions: ${errorMessage(error)}\n`);
|
|
5269
5249
|
process.exitCode = 1;
|
|
5270
5250
|
}
|
|
5271
|
-
//#endregion
|
|
5272
5251
|
export {};
|