vite-plus 1.0.0 → 1.1.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/LICENSE +30 -5
- package/README.md +7 -7
- package/binding/index.cjs +54 -55
- package/binding/index.d.cts +50 -12
- package/dist/{agent-CKMI1a8W.js → agent-eISuMXJb.js} +2 -2
- package/dist/bin.js +9 -6
- package/dist/config/bin.js +3 -3
- package/dist/{constants-BqJiMVVU.js → constants-CCQkpaxK.js} +2 -2
- package/dist/create/bin.js +42 -10
- package/dist/{define-config-C_KGDLUZ.cjs → define-config-CREUiMmM.cjs} +2 -2
- package/dist/{define-config-Cf_5GHmY.d.ts → define-config-CeW9DETl.d.ts} +24 -8
- package/dist/{define-config-DhEJaYRc.js → define-config-Ro6PS4dP.js} +2 -2
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-BWiANxFS.js → dist-DUsqQuw8.js} +117 -1395
- package/dist/{editor-CHfGUhxP.js → editor-B8tkz7nL.js} +94 -52
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +54 -50
- package/dist/{oxlint-plugin-config-lMMD5fAC.js → oxlint-plugin-config-CbG58Kzr.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +3 -2
- package/dist/{package-Cgdlhamw.js → package-BS84eWrW.js} +7 -2
- package/dist/package-overrides-CpoQngt3.js +411 -0
- package/dist/{prompts-jMH8S4Wp.js → prompts-ByOzbMBG.js} +537 -252
- package/dist/{resolve-vite-config-BJYYtfY3.js → resolve-vite-config-Be237LWp.js} +2 -2
- package/dist/{resolve-vite-config-BPgpYMYp.js → resolve-vite-config-CofpYgnY.js} +1 -1
- package/dist/staged/bin.js +791 -742
- package/dist/sync-versions/bin.js +4 -6
- package/dist/sync-versions/bin.mjs +247 -1419
- package/dist/toolchain.js +9 -9
- package/dist/toolchain.json +9 -9
- package/dist/{tsconfig-CmKidmRD.js → tsconfig-3ONY2k2K.js} +1 -1
- package/dist/{tsconfig-BoYTBNX_.js → tsconfig-DzZ-nrx2.js} +2 -2
- package/dist/version.js +2 -2
- package/dist/versions.js +5 -5
- package/docs/guide/ci.md +3 -4
- package/docs/guide/env.md +10 -5
- package/docs/guide/github-actions-cache.md +1 -3
- package/docs/guide/ide-integration.md +3 -1
- package/docs/guide/implode.md +2 -0
- package/docs/guide/install.md +3 -0
- package/docs/guide/local-cli.md +7 -7
- package/docs/guide/migrate-rules.md +8 -0
- package/docs/guide/migrate.md +7 -7
- package/docs/guide/test.md +1 -1
- package/docs/guide/troubleshooting.md +2 -2
- package/docs/guide/upgrade-project.md +1 -1
- package/docs/guide/vitest-v5.md +2 -2
- package/docs/guide/vpx.md +2 -2
- package/package.json +31 -28
- package/dist/package-overrides-Dpn4scvN.js +0 -17
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as __toESM } from "../rolldown-runtime-CMFfr-1z.js";
|
|
2
1
|
import { c as modify, l as parse, o as applyEdits, t as detectFormattingOptions } from "../json-JP24qHUF.js";
|
|
3
2
|
import { n as isAlignableVitestEcosystemPackage } from "../vitest-ecosystem-BU0AqZq-.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as extractOverrideTargetName } from "../package-overrides-
|
|
3
|
+
import { t as require_dist } from "../dist-DUsqQuw8.js";
|
|
4
|
+
import { i as normalizeRange, t as extractOverrideTargetName } from "../package-overrides-CpoQngt3.js";
|
|
6
5
|
import path from "node:path";
|
|
7
6
|
import fsPromises from "node:fs/promises";
|
|
8
7
|
import { Buffer } from "node:buffer";
|
|
@@ -3571,7 +3570,6 @@ ZodEffects.createWithPreprocess;
|
|
|
3571
3570
|
ZodPipeline.create;
|
|
3572
3571
|
//#endregion
|
|
3573
3572
|
//#region src/sync-versions/plan.ts
|
|
3574
|
-
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
|
3575
3573
|
var import_dist = require_dist();
|
|
3576
3574
|
const MAX_MANIFESTS = 256;
|
|
3577
3575
|
const MAX_MANIFEST_BYTES = 1048576;
|
|
@@ -3662,13 +3660,13 @@ function alignedNpmAlias(current, toolchain) {
|
|
|
3662
3660
|
const packageName = current.slice(4, versionAt);
|
|
3663
3661
|
const currentVersion = current.slice(versionAt + 1);
|
|
3664
3662
|
const target = targetVersion(packageName, toolchain);
|
|
3665
|
-
if (target === void 0 || currentVersion === target ||
|
|
3663
|
+
if (target === void 0 || currentVersion === target || normalizeRange(currentVersion) === null) return current;
|
|
3666
3664
|
return `${current.slice(0, versionAt + 1)}${target}`;
|
|
3667
3665
|
}
|
|
3668
3666
|
function alignedSpec(name, current, toolchain) {
|
|
3669
3667
|
if (current.startsWith("npm:")) return alignedNpmAlias(current, toolchain);
|
|
3670
3668
|
const target = targetVersion(name, toolchain);
|
|
3671
|
-
if (target === void 0 || current === target || current.startsWith("$") || /^[a-z][a-z+.-]*:/i.test(current) ||
|
|
3669
|
+
if (target === void 0 || current === target || current.startsWith("$") || /^[a-z][a-z+.-]*:/i.test(current) || normalizeRange(current) === null) return current;
|
|
3672
3670
|
return target;
|
|
3673
3671
|
}
|
|
3674
3672
|
function replaceJsonValue(contents, location, value) {
|