vite-plus 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/binding/index.cjs +54 -54
- package/binding/index.d.cts +4 -0
- package/dist/{agent-KeDc6vmg.js → agent-97KmGCyL.js} +4 -4
- package/dist/bin.js +8 -8
- package/dist/{command-CguLh2KL.js → command-CdMBoZFD.js} +13 -13
- package/dist/command-DVTILtS-.js +1 -0
- package/dist/config/bin.js +3 -3
- package/dist/{constants-BW3g7VnD.js → constants-DR55DpRm.js} +2 -2
- package/dist/create/bin.js +28 -13
- package/dist/{define-config-Dq_23Eyr.cjs → define-config-BxDc_9BK.cjs} +2 -2
- package/dist/{define-config-CIlk9scU.js → define-config-CvE5pHqB.js} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-Bi7ZEK3c.js → dist-DIpm7mot.js} +5 -5
- package/dist/dist-Dhu07wmN.js +3 -0
- package/dist/{editor-b1XUwt9v.js → editor-CtJGQP7C.js} +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +8 -8
- package/dist/{oxlint-plugin-config-Dx-ZY2MN.js → oxlint-plugin-config-BIzrO2y2.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +1 -1
- package/dist/{package-BP16iQby.js → package-CQDXTm6j.js} +1 -1
- package/dist/{prompts-BGpQtC5z.js → prompts-1xNz_ne0.js} +90 -196
- package/dist/{resolve-vite-config-CGzlyhGr.js → resolve-vite-config-7WDtXO4G.js} +1 -1
- package/dist/{resolve-vite-config-x47JetlI.js → resolve-vite-config-BVr1SUNg.js} +2 -2
- package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-kJ_i4yPo.js} +1 -1
- package/dist/staged/bin.js +33 -5
- package/dist/sync-versions/bin.js +4 -3
- package/dist/sync-versions/bin.mjs +8 -7
- package/dist/toolchain.js +6 -6
- package/dist/toolchain.json +6 -6
- package/dist/{tsconfig-D2DzAQ_D.js → tsconfig-BZu7kl-x.js} +3 -3
- package/dist/{tsconfig-C5PnJfW4.js → tsconfig-zWgHiQ3X.js} +1 -1
- package/dist/version.js +2 -2
- package/dist/versions.js +2 -2
- package/docs/guide/create.md +34 -0
- package/docs/guide/env.md +16 -9
- package/docs/guide/local-cli.md +4 -4
- package/docs/guide/migrate.md +5 -5
- package/docs/guide/package-management.md +18 -1
- package/docs/guide/test.md +1 -1
- package/docs/guide/vitest-v5.md +2 -2
- package/package.json +23 -23
- package/dist/command-DaRqSNpP.js +0 -1
- package/dist/dist-CBWGibx8.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
//#region package.json
|
|
3
|
-
var version = "1.
|
|
3
|
+
var version = "1.3.0";
|
|
4
4
|
var exports = {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -289,7 +289,7 @@ const VITE_CONFIG_FILES = [
|
|
|
289
289
|
"vite.config.mts",
|
|
290
290
|
"vite.config.cts"
|
|
291
291
|
];
|
|
292
|
-
const VITEST_VERSION = "5.0.
|
|
292
|
+
const VITEST_VERSION = "5.0.5";
|
|
293
293
|
const SETUP_VP_VERSION = "v1.21.2";
|
|
294
294
|
const TSDOWN_MIGRATION_SKILL_URL = "https://github.com/rolldown/tsdown/blob/main/skills/tsdown-migrate/SKILL.md";
|
|
295
295
|
const VITE_PLUS_OVERRIDE_PACKAGES = process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : {
|
package/dist/create/bin.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-
|
|
1
|
+
import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-kJ_i4yPo.js";
|
|
2
2
|
import { t as documentationUrl$1 } from "../documentation-DqcZSthV.js";
|
|
3
3
|
import { t as renderCliDoc } from "../help-BmKpeOP9.js";
|
|
4
4
|
import { a as muted, i as log, o as printHeader, r as formatDuration, s as success, t as accent } from "../terminal-MKGAuy-p.js";
|
|
5
|
-
import { d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, u as VITE_PLUS_NAME } from "../constants-
|
|
5
|
+
import { d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, u as VITE_PLUS_NAME } from "../constants-DR55DpRm.js";
|
|
6
6
|
import { i as readJsonFile, n as editJsonFile } from "../json-JP24qHUF.js";
|
|
7
|
-
import { c as getNpmRegistry, r as getScopeFromPackageName, s as fetchNpmResource, t as checkNpmPackageExists } from "../package-
|
|
8
|
-
import { i as hasViteConfig, o as resolveViteConfig, r as findWorkspaceRoot, t as findViteConfig } from "../resolve-vite-config-
|
|
9
|
-
import { A as text, E as multiselect, M as isCancel, O as select, S as normalize$1, T as log$1, a as resolveGitInit, c as selectPackageManager, d as readYamlFile, h as resolveApproveBuildTargets, i as promptGitHooks, j as require_picocolors, k as spinner, m as detectGatedBuilds, n as defaultInteractive, o as runViteFmt, p as approveBuilds, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, u as editYamlFile, v as DependencyType, w as intro, y as PackageManager } from "../prompts-
|
|
10
|
-
import { a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as templatesDir, l as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID } from "../agent-
|
|
11
|
-
import { A as createCatalogDependencyResolver, B as addFrameworkShim, F as updateWorkspaceConfig, H as hasFrameworkShim, K as promptTsupMigration, L as findGitRoot, M as detectWorkspace$1, N as isBingoTemplate, P as updatePackageJsonWithDeps, R as initGitRepository, V as detectFramework, W as detectTsupProject, Y as detectPrettierProject, Z as promptPrettierMigration, _ as installGitHooks, a as selectEditors, b as injectCreateDefaultTemplate, c as rewriteMonorepoProject, et as detectEslintProject, h as setPackageManager, j as supportsCatalog, l as rewriteStandaloneProject, n as detectExistingEditors, o as writeEditorConfigs, rt as promptEslintMigration, s as rewriteMonorepo, y as shouldSkipStagedMigrationForHooks } from "../editor-
|
|
12
|
-
import { n as runCommandSilently, t as runCommand$1 } from "../command-
|
|
13
|
-
import { t as require_dist } from "../dist-
|
|
7
|
+
import { c as getNpmRegistry, r as getScopeFromPackageName, s as fetchNpmResource, t as checkNpmPackageExists } from "../package-CQDXTm6j.js";
|
|
8
|
+
import { i as hasViteConfig, o as resolveViteConfig, r as findWorkspaceRoot, t as findViteConfig } from "../resolve-vite-config-BVr1SUNg.js";
|
|
9
|
+
import { A as text, E as multiselect, M as isCancel, O as select, S as normalize$1, T as log$1, a as resolveGitInit, c as selectPackageManager, d as readYamlFile, h as resolveApproveBuildTargets, i as promptGitHooks, j as require_picocolors, k as spinner, m as detectGatedBuilds, n as defaultInteractive, o as runViteFmt, p as approveBuilds, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, u as editYamlFile, v as DependencyType, w as intro, y as PackageManager } from "../prompts-1xNz_ne0.js";
|
|
10
|
+
import { a as selectAgentTargets, c as writeCopilotSetupWorkflow, d as templatesDir, l as displayRelative, r as detectExistingAgentTargetPaths, s as writeAgentInstructions, t as COPILOT_AGENT_ID } from "../agent-97KmGCyL.js";
|
|
11
|
+
import { A as createCatalogDependencyResolver, B as addFrameworkShim, F as updateWorkspaceConfig, H as hasFrameworkShim, K as promptTsupMigration, L as findGitRoot, M as detectWorkspace$1, N as isBingoTemplate, P as updatePackageJsonWithDeps, R as initGitRepository, V as detectFramework, W as detectTsupProject, Y as detectPrettierProject, Z as promptPrettierMigration, _ as installGitHooks, a as selectEditors, b as injectCreateDefaultTemplate, c as rewriteMonorepoProject, et as detectEslintProject, h as setPackageManager, j as supportsCatalog, l as rewriteStandaloneProject, n as detectExistingEditors, o as writeEditorConfigs, rt as promptEslintMigration, s as rewriteMonorepo, y as shouldSkipStagedMigrationForHooks } from "../editor-CtJGQP7C.js";
|
|
12
|
+
import { n as runCommandSilently, t as runCommand$1 } from "../command-CdMBoZFD.js";
|
|
13
|
+
import { t as require_dist } from "../dist-DIpm7mot.js";
|
|
14
14
|
import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
|
|
15
15
|
import path from "node:path";
|
|
16
16
|
import { getVpDirs, parseCreateArgs, removeConfigKey, runCommand, upsertJsonConfig, vitePlusHeader } from "../../binding/index.js";
|
|
@@ -1162,7 +1162,7 @@ async function getConfiguredDefaultTemplate(startDir) {
|
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
//#endregion
|
|
1165
|
-
//#region ../../node_modules/.pnpm/validate-npm-package-name@
|
|
1165
|
+
//#region ../../node_modules/.pnpm/validate-npm-package-name@8.0.0/node_modules/validate-npm-package-name/lib/builtin-modules.json
|
|
1166
1166
|
var require_builtin_modules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1167
1167
|
module.exports = [
|
|
1168
1168
|
"_http_agent",
|
|
@@ -4087,6 +4087,19 @@ function shouldConfigureEditorsForCreate({ editor, isMonorepo }) {
|
|
|
4087
4087
|
if (!isMonorepo) return true;
|
|
4088
4088
|
return hasExplicitEditorOptIn(editor);
|
|
4089
4089
|
}
|
|
4090
|
+
function detectLauncherPackageManager() {
|
|
4091
|
+
const name = process.env.npm_config_user_agent?.split("/")[0];
|
|
4092
|
+
return Object.values(PackageManager).find((packageManager) => packageManager === name);
|
|
4093
|
+
}
|
|
4094
|
+
function formatLocalVpCommand(packageManager, command) {
|
|
4095
|
+
switch (packageManager) {
|
|
4096
|
+
case PackageManager.pnpm: return `pnpm exec ${command}`;
|
|
4097
|
+
case PackageManager.yarn: return `yarn exec ${command}`;
|
|
4098
|
+
case PackageManager.bun: return `bunx ${command}`;
|
|
4099
|
+
case PackageManager.npm:
|
|
4100
|
+
default: return `npx ${command}`;
|
|
4101
|
+
}
|
|
4102
|
+
}
|
|
4090
4103
|
function copy(src, dest) {
|
|
4091
4104
|
if (fs.statSync(src).isDirectory()) copyDir(src, dest);
|
|
4092
4105
|
else fs.copyFileSync(src, dest);
|
|
@@ -5138,7 +5151,8 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
|
|
|
5138
5151
|
}
|
|
5139
5152
|
const requestedPackageManager = options.packageManager;
|
|
5140
5153
|
const detectedPackageManager = workspaceInfoOptional.packageManager;
|
|
5141
|
-
const
|
|
5154
|
+
const launcherPackageManager = detectLauncherPackageManager();
|
|
5155
|
+
const packageManager = (isMonorepo ? detectedPackageManager ?? requestedPackageManager : requestedPackageManager ?? detectedPackageManager) ?? launcherPackageManager ?? await selectPackageManager(options.interactive, compactOutput);
|
|
5142
5156
|
const packageManagerVersion = packageManager === detectedPackageManager ? workspaceInfoOptional.packageManagerVersion : "latest";
|
|
5143
5157
|
const shouldSilencePackageManagerInstallLog = compactOutput || isMonorepo && workspaceInfoOptional.packageManager !== void 0;
|
|
5144
5158
|
const downloadResult = await downloadPackageManager$1(packageManager, packageManagerVersion, options.interactive, shouldSilencePackageManagerInstallLog, workspaceInfoOptional.rootDir);
|
|
@@ -5147,6 +5161,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
|
|
|
5147
5161
|
packageManager,
|
|
5148
5162
|
downloadPackageManager: downloadResult
|
|
5149
5163
|
};
|
|
5164
|
+
const vpRunCommand = launcherPackageManager ? formatLocalVpCommand(packageManager, "vp run") : "vp run";
|
|
5150
5165
|
const existingAgentTargetPaths = options.agent !== void 0 || !options.interactive ? void 0 : detectExistingAgentTargetPaths(workspaceInfoOptional.rootDir);
|
|
5151
5166
|
if (existingAgentTargetPaths !== void 0) selectedAgentTargetPaths = existingAgentTargetPaths;
|
|
5152
5167
|
else {
|
|
@@ -5312,7 +5327,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
|
|
|
5312
5327
|
description: describeScaffold(selectedTemplateName, selectedTemplateArgs),
|
|
5313
5328
|
gitInitialized,
|
|
5314
5329
|
installSummary,
|
|
5315
|
-
nextCommand: getNextCommand(projectDir,
|
|
5330
|
+
nextCommand: getNextCommand(projectDir, vpRunCommand),
|
|
5316
5331
|
packageManager: workspaceInfo.packageManager,
|
|
5317
5332
|
packageManagerVersion: workspaceInfo.downloadPackageManager.version,
|
|
5318
5333
|
projectDir
|
|
@@ -5515,7 +5530,7 @@ Use \`vp create --list\` to list all available templates, or run \`vp create --h
|
|
|
5515
5530
|
description: describeScaffold(selectedTemplateName, selectedTemplateArgs),
|
|
5516
5531
|
gitInitialized,
|
|
5517
5532
|
installSummary,
|
|
5518
|
-
nextCommand: getNextCommand(projectDir,
|
|
5533
|
+
nextCommand: getNextCommand(projectDir, vpRunCommand),
|
|
5519
5534
|
packageManager: workspaceInfo.packageManager,
|
|
5520
5535
|
packageManagerVersion: workspaceInfo.downloadPackageManager.version,
|
|
5521
5536
|
projectDir
|
|
@@ -77,10 +77,10 @@ var addon;
|
|
|
77
77
|
var init_src = __esmMin((() => {}));
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region package.json
|
|
80
|
-
var version = "1.
|
|
80
|
+
var version = "1.3.0", VITE_PLUS_VERSION, VITEST_VERSION, CONFIG_METADATA_ENV;
|
|
81
81
|
var init_constants = __esmMin((() => {
|
|
82
82
|
VITE_PLUS_VERSION = process.env.VP_VERSION || version;
|
|
83
|
-
VITEST_VERSION = "5.0.
|
|
83
|
+
VITEST_VERSION = "5.0.5";
|
|
84
84
|
process.env.VP_OVERRIDE_PACKAGES ? JSON.parse(process.env.VP_OVERRIDE_PACKAGES) : `${VITE_PLUS_VERSION}`;
|
|
85
85
|
(0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
86
86
|
process.versions.node, process.release.name;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-
|
|
1
|
+
import { c as VITEST_VERSION, r as CONFIG_METADATA_ENV } from "./constants-DR55DpRm.js";
|
|
2
2
|
import { t as VITEST_RESOLVER_PACKAGES } from "./vitest-ecosystem-BU0AqZq-.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import path, { join, resolve } from "node:path";
|
package/dist/define-config.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_define_config = require("./define-config-
|
|
2
|
+
const require_define_config = require("./define-config-BxDc_9BK.cjs");
|
|
3
3
|
require_define_config.init_define_config();
|
|
4
4
|
exports.AUTO_INLINE_DEPS = require_define_config.AUTO_INLINE_DEPS;
|
|
5
5
|
exports.assertCoverageProviderVersionMatch = require_define_config.assertCoverageProviderVersionMatch;
|
package/dist/define-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as AUTO_INLINE_DEPS, n as assertCoverageProviderVersionMatch, r as checkCoverageProviderVersion, i as computeAutoInlineList, a as defineConfig, o as defineProject, s as isVitestFamilySpecifier, c as lazyPlugins, l as resolveCoverageProviderToCheck, u as withConfigMetadataResolution } from "./define-config-
|
|
1
|
+
export { t as AUTO_INLINE_DEPS, n as assertCoverageProviderVersionMatch, r as checkCoverageProviderVersion, i as computeAutoInlineList, a as defineConfig, o as defineProject, s as isVitestFamilySpecifier, c as lazyPlugins, l as resolveCoverageProviderToCheck, u as withConfigMetadataResolution } from "./define-config-CvE5pHqB.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-
|
|
1
|
+
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-kJ_i4yPo.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
|
|
3
3
|
var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
4
|
const ALIAS = Symbol.for("yaml.alias");
|
|
@@ -1462,13 +1462,13 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1462
1462
|
//#endregion
|
|
1463
1463
|
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js
|
|
1464
1464
|
var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1465
|
-
var node_process
|
|
1465
|
+
var node_process = __require("process");
|
|
1466
1466
|
function debug(logLevel, ...messages) {
|
|
1467
1467
|
if (logLevel === "debug") console.log(...messages);
|
|
1468
1468
|
}
|
|
1469
1469
|
function warn(logLevel, warning) {
|
|
1470
1470
|
if (logLevel === "debug" || logLevel === "warn") {
|
|
1471
|
-
if (typeof node_process
|
|
1471
|
+
if (typeof node_process.emitWarning === "function") node_process.emitWarning(warning);
|
|
1472
1472
|
else console.warn(warning);
|
|
1473
1473
|
}
|
|
1474
1474
|
}
|
|
@@ -4387,7 +4387,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4387
4387
|
//#endregion
|
|
4388
4388
|
//#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
|
|
4389
4389
|
var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4390
|
-
var node_process
|
|
4390
|
+
var node_process = __require("process");
|
|
4391
4391
|
var directives = require_directives();
|
|
4392
4392
|
var Document = require_Document();
|
|
4393
4393
|
var errors = require_errors();
|
|
@@ -4504,7 +4504,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4504
4504
|
}
|
|
4505
4505
|
/** Advance the composer by one CST token. */
|
|
4506
4506
|
*next(token) {
|
|
4507
|
-
if (node_process
|
|
4507
|
+
if (node_process.env.LOG_STREAM) console.dir(token, { depth: null });
|
|
4508
4508
|
switch (token.type) {
|
|
4509
4509
|
case "directive":
|
|
4510
4510
|
this.directives.add(token.source, (offset, message, warning) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as __toESM } from "./rolldown-runtime-
|
|
1
|
+
import { r as __toESM } from "./rolldown-runtime-kJ_i4yPo.js";
|
|
2
2
|
import { t as documentationUrl$1 } from "./documentation-DqcZSthV.js";
|
|
3
|
-
import { a as SETUP_VP_VERSION, c as VITEST_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, l as VITE_CONFIG_FILES, m as isForceOverrideMode, n as BASEURL_TSCONFIG_WARNING, o as TSDOWN_MIGRATION_SKILL_URL, s as VITEST_AGE_GATE_EXEMPT_PACKAGES, u as VITE_PLUS_NAME } from "./constants-
|
|
4
|
-
import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-
|
|
3
|
+
import { a as SETUP_VP_VERSION, c as VITEST_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, l as VITE_CONFIG_FILES, m as isForceOverrideMode, n as BASEURL_TSCONFIG_WARNING, o as TSDOWN_MIGRATION_SKILL_URL, s as VITEST_AGE_GATE_EXEMPT_PACKAGES, u as VITE_PLUS_NAME } from "./constants-DR55DpRm.js";
|
|
4
|
+
import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-BIzrO2y2.js";
|
|
5
5
|
import { a as writeJsonFile, c as modify, i as readJsonFile, l as parse, n as editJsonFile, o as applyEdits, r as isJsonFile, t as detectFormattingOptions } from "./json-JP24qHUF.js";
|
|
6
|
-
import { c as getNpmRegistry, n as detectPackageMetadata, r as getScopeFromPackageName, s as fetchNpmResource } from "./package-
|
|
6
|
+
import { c as getNpmRegistry, n as detectPackageMetadata, r as getScopeFromPackageName, s as fetchNpmResource } from "./package-CQDXTm6j.js";
|
|
7
7
|
import { n as isAlignableVitestEcosystemPackage } from "./vitest-ecosystem-BU0AqZq-.js";
|
|
8
|
-
import { C as confirm, E as multiselect, M as isCancel, O as select, S as normalize$2, T as log, _ as getSpinner, b as coerce, d as readYamlFile, f as scalarString, g as getSilentSpinner, t as cancelAndExit, u as editYamlFile, y as PackageManager } from "./prompts-
|
|
8
|
+
import { C as confirm, E as multiselect, M as isCancel, O as select, S as normalize$2, T as log, _ as getSpinner, b as coerce, d as readYamlFile, f as scalarString, g as getSilentSpinner, t as cancelAndExit, u as editYamlFile, y as PackageManager } from "./prompts-1xNz_ne0.js";
|
|
9
9
|
import { _ as isGreaterThanOrEqual, h as compareReversed, v as isLessThanOrEqual } from "./comparison-CmVirWIW-DUGaiYqF.js";
|
|
10
10
|
import { i as normalizeRange, s as satisfies, t as extractOverrideTargetName } from "./package-overrides-D1RcXSFl.js";
|
|
11
|
-
import { l as displayRelative, u as rulesDir } from "./agent-
|
|
11
|
+
import { l as displayRelative, u as rulesDir } from "./agent-97KmGCyL.js";
|
|
12
12
|
import { n as addMigrationWarning, t as addManualStep } from "./report-NhQk8VHb.js";
|
|
13
|
-
import { n as runCommandSilently, r as require_cross_spawn } from "./command-
|
|
14
|
-
import { t as require_dist } from "./dist-
|
|
15
|
-
import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-
|
|
13
|
+
import { n as runCommandSilently, r as require_cross_spawn } from "./command-CdMBoZFD.js";
|
|
14
|
+
import { t as require_dist } from "./dist-DIpm7mot.js";
|
|
15
|
+
import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-BZu7kl-x.js";
|
|
16
16
|
import { i as findUnsafeHookInstallPath, t as SUPPORTED_GIT_HOOK_NAMES } from "./hooks-DhwsWb46.js";
|
|
17
17
|
import path, { posix, win32 } from "node:path";
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
@@ -1798,7 +1798,7 @@ function vitestEcosystemCatalogReferencesPending(pkg, catalogDependencyResolver)
|
|
|
1798
1798
|
pkg.optionalDependencies
|
|
1799
1799
|
]) {
|
|
1800
1800
|
if (!dependencies) continue;
|
|
1801
|
-
for (const [name, spec] of Object.entries(dependencies)) if (isAlignableVitestEcosystemPackage(name) && spec.startsWith("catalog:") && catalogDependencyResolver(spec, name) !== "5.0.
|
|
1801
|
+
for (const [name, spec] of Object.entries(dependencies)) if (isAlignableVitestEcosystemPackage(name) && spec.startsWith("catalog:") && catalogDependencyResolver(spec, name) !== "5.0.5") return true;
|
|
1802
1802
|
}
|
|
1803
1803
|
return false;
|
|
1804
1804
|
}
|
|
@@ -4361,8 +4361,8 @@ var Minipass = class extends EventEmitter {
|
|
|
4361
4361
|
return this[BUFFER].shift();
|
|
4362
4362
|
}
|
|
4363
4363
|
[FLUSH](noDrain = false) {
|
|
4364
|
-
do
|
|
4365
|
-
while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
4364
|
+
do;
|
|
4365
|
+
while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
4366
4366
|
if (!noDrain && !this[BUFFER].length && !this[EOF]) this.emit("drain");
|
|
4367
4367
|
}
|
|
4368
4368
|
[FLUSHCHUNK](chunk) {
|
|
@@ -8401,7 +8401,7 @@ function isSemanticVitePlusOverrideSpec(dependencyName, spec) {
|
|
|
8401
8401
|
if (!spec) return false;
|
|
8402
8402
|
if (isLegacyWrapperSpec(spec)) return false;
|
|
8403
8403
|
if (spec === VITE_PLUS_OVERRIDE_PACKAGES[dependencyName]) return true;
|
|
8404
|
-
if (dependencyName === "@vitest/browser" && spec === "5.0.
|
|
8404
|
+
if (dependencyName === "@vitest/browser" && spec === "5.0.5") return true;
|
|
8405
8405
|
return false;
|
|
8406
8406
|
}
|
|
8407
8407
|
function overrideSpecSatisfiesVitePlus(dependencyName, spec, catalogDependencyResolver) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_define_config = require("./define-config-
|
|
1
|
+
const require_define_config = require("./define-config-BxDc_9BK.cjs");
|
|
2
2
|
//#region src/index.cts
|
|
3
3
|
const vite = require("vite");
|
|
4
4
|
const { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } = require("vitest/config");
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-
|
|
1
|
+
import { a as defineConfig, c as lazyPlugins, o as defineProject } from "./define-config-CvE5pHqB.js";
|
|
2
2
|
import { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
|
|
3
3
|
export * from "vite";
|
|
4
4
|
export { configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
|
package/dist/lint-plugins.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./define-config-
|
|
2
|
+
require("./define-config-BxDc_9BK.cjs");
|
|
3
3
|
let _oxlint_plugins = require("@oxlint/plugins");
|
|
4
4
|
Object.defineProperty(exports, "definePlugin", {
|
|
5
5
|
enumerable: true,
|
package/dist/migration/bin.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as documentationUrl$1 } from "../documentation-DqcZSthV.js";
|
|
2
2
|
import { a as muted, c as warnMsg, i as log, o as printHeader, r as formatDuration, t as accent } from "../terminal-MKGAuy-p.js";
|
|
3
|
-
import { _ as engines, a as SETUP_VP_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-
|
|
3
|
+
import { _ as engines, a as SETUP_VP_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-DR55DpRm.js";
|
|
4
4
|
import { a as writeJsonFile, c as modify, i as readJsonFile, l as parse, o as applyEdits, s as findNodeAtLocation, u as parseTree } from "../json-JP24qHUF.js";
|
|
5
|
-
import { a as hasVitePlusDependency, i as hasPackageManagerDeclaration, n as detectPackageMetadata, o as readNearestPackageJson } from "../package-
|
|
5
|
+
import { a as hasVitePlusDependency, i as hasPackageManagerDeclaration, n as detectPackageMetadata, o as readNearestPackageJson } from "../package-CQDXTm6j.js";
|
|
6
6
|
import { t as vitest_v5_entry_points_default } from "../vitest-v5-entry-points-DthU1e_O.js";
|
|
7
|
-
import { C as confirm, D as outro, M as isCancel, O as select, S as normalize$1, T as log$1, c as selectPackageManager, i as promptGitHooks, k as spinner, l as upgradeYarn, n as defaultInteractive, o as runViteFmt, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, x as getMajor, y as PackageManager } from "../prompts-
|
|
7
|
+
import { C as confirm, D as outro, M as isCancel, O as select, S as normalize$1, T as log$1, c as selectPackageManager, i as promptGitHooks, k as spinner, l as upgradeYarn, n as defaultInteractive, o as runViteFmt, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, x as getMajor, y as PackageManager } from "../prompts-1xNz_ne0.js";
|
|
8
8
|
import { _ as isGreaterThanOrEqual, p as compare } from "../comparison-CmVirWIW-DUGaiYqF.js";
|
|
9
9
|
import { a as rangeToComparators, i as normalizeRange, n as findMinimumForRange, o as rangesIntersect, r as isRangeSubset, s as satisfies, t as extractOverrideTargetName } from "../package-overrides-D1RcXSFl.js";
|
|
10
|
-
import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-
|
|
10
|
+
import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-97KmGCyL.js";
|
|
11
11
|
import { n as addMigrationWarning, r as createMigrationReport } from "../report-NhQk8VHb.js";
|
|
12
|
-
import { $ as confirmEslintMigration, A as createCatalogDependencyResolver, B as addFrameworkShim, C as mergeViteConfigFiles, D as usesWebdriverioProvider, E as ensureVitePlusBootstrap, G as migrateTsupToTsdown, H as hasFrameworkShim, I as minimatch, J as confirmPrettierMigration, L as findGitRoot, M as detectWorkspace$1, O as configureYarnNodeModulesMode, Q as warnPackageLevelPrettier, S as mergeTsdownConfigFile, T as detectVitePlusBootstrapPending, U as confirmTsupMigration, V as detectFramework, W as detectTsupProject, X as migratePrettierToOxfmt, Y as detectPrettierProject, _ as installGitHooks, at as warnLegacyEslintConfig, ct as checkViteVersion, d as finalizeCoreMigrationForExistingVitePlus, et as detectEslintProject, f as detectNodeVersionManagerFile, g as detectLegacyGitHooksMigrationCandidate, i as selectEditor, it as warnIncompatibleEslintIntegration, k as detectYarnPnpMode, l as rewriteStandaloneProject, lt as checkVitestVersion, m as migrateSetupVpVersion, nt as migrateEslintToOxlint, o as writeEditorConfigs, ot as warnPackageLevelEslint, p as migrateNodeVersionManagerFile, q as warnMissingTsupConfig, r as isJsonLikeFile, s as rewriteMonorepo, st as WEBDRIVERIO_PROVIDER, t as detectEditorConflicts, tt as detectIncompatibleEslintIntegration, u as detectPendingCoreMigration, v as preflightGitHooksSetup, w as collectToolchainVersionChanges, x as injectLintTypeCheckDefaults, y as shouldSkipStagedMigrationForHooks, z as extractOverrideParentSegments } from "../editor-
|
|
13
|
-
import { n as runCommandSilently } from "../command-
|
|
14
|
-
import { t as require_dist } from "../dist-
|
|
15
|
-
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-
|
|
12
|
+
import { $ as confirmEslintMigration, A as createCatalogDependencyResolver, B as addFrameworkShim, C as mergeViteConfigFiles, D as usesWebdriverioProvider, E as ensureVitePlusBootstrap, G as migrateTsupToTsdown, H as hasFrameworkShim, I as minimatch, J as confirmPrettierMigration, L as findGitRoot, M as detectWorkspace$1, O as configureYarnNodeModulesMode, Q as warnPackageLevelPrettier, S as mergeTsdownConfigFile, T as detectVitePlusBootstrapPending, U as confirmTsupMigration, V as detectFramework, W as detectTsupProject, X as migratePrettierToOxfmt, Y as detectPrettierProject, _ as installGitHooks, at as warnLegacyEslintConfig, ct as checkViteVersion, d as finalizeCoreMigrationForExistingVitePlus, et as detectEslintProject, f as detectNodeVersionManagerFile, g as detectLegacyGitHooksMigrationCandidate, i as selectEditor, it as warnIncompatibleEslintIntegration, k as detectYarnPnpMode, l as rewriteStandaloneProject, lt as checkVitestVersion, m as migrateSetupVpVersion, nt as migrateEslintToOxlint, o as writeEditorConfigs, ot as warnPackageLevelEslint, p as migrateNodeVersionManagerFile, q as warnMissingTsupConfig, r as isJsonLikeFile, s as rewriteMonorepo, st as WEBDRIVERIO_PROVIDER, t as detectEditorConflicts, tt as detectIncompatibleEslintIntegration, u as detectPendingCoreMigration, v as preflightGitHooksSetup, w as collectToolchainVersionChanges, x as injectLintTypeCheckDefaults, y as shouldSkipStagedMigrationForHooks, z as extractOverrideParentSegments } from "../editor-CtJGQP7C.js";
|
|
13
|
+
import { n as runCommandSilently } from "../command-CdMBoZFD.js";
|
|
14
|
+
import { t as require_dist } from "../dist-DIpm7mot.js";
|
|
15
|
+
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-BZu7kl-x.js";
|
|
16
16
|
import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
|
|
17
17
|
import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../protocol-D99W10Qi.js";
|
|
18
18
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as VITE_PLUS_NAME } from "./constants-
|
|
1
|
+
import { u as VITE_PLUS_NAME } from "./constants-DR55DpRm.js";
|
|
2
2
|
//#region src/oxlint-plugin-config.ts
|
|
3
3
|
const VITE_PLUS_OXLINT_PLUGIN_NAME = VITE_PLUS_NAME;
|
|
4
4
|
const VITE_PLUS_OXLINT_PLUGIN_SPECIFIER = `${VITE_PLUS_NAME}/oxlint-plugin`;
|
package/dist/oxlint-plugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as exports } from "./constants-
|
|
2
|
-
import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-
|
|
1
|
+
import { v as exports } from "./constants-DR55DpRm.js";
|
|
2
|
+
import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-BIzrO2y2.js";
|
|
3
3
|
import { t as vitest_v5_entry_points_default } from "./vitest-v5-entry-points-DthU1e_O.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs";
|
package/dist/pack-bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { t as cac } from "./dist-Cqz8OtiO.js";
|
|
3
|
-
import { o as resolveViteConfig } from "./resolve-vite-config-
|
|
3
|
+
import { o as resolveViteConfig } from "./resolve-vite-config-BVr1SUNg.js";
|
|
4
4
|
import module from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { buildWithConfigs, enableDebug, globalLogger, resolveUserConfig } from "vite/pack";
|