vite-plus 1.0.0-rc.0 → 1.0.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/README.md +3 -1
- package/binding/index.cjs +55 -54
- package/binding/index.d.cts +27 -4
- package/dist/{agent-Dinpyd-k.js → agent-CKMI1a8W.js} +2 -2
- package/dist/bin.js +32 -22
- package/dist/config/bin.js +3 -3
- package/dist/{constants-CiKwrA0v.js → constants-BqJiMVVU.js} +1 -1
- package/dist/create/bin.js +7 -7
- package/dist/{define-config-CBccpane.cjs → define-config-C_KGDLUZ.cjs} +7 -1
- package/dist/{define-config-B9usMnEa.d.ts → define-config-Cf_5GHmY.d.ts} +20 -15
- package/dist/{define-config-jhuYJ7Tb.js → define-config-DhEJaYRc.js} +8 -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 +8052 -0
- package/dist/{dist-BDYZP12R.js → dist-BsAzy8OW.js} +109 -105
- package/dist/{editor-DMBczTdj.js → editor-CHfGUhxP.js} +47 -13
- 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 +13 -11
- package/dist/migration/compat/worker.js +1 -1
- package/dist/{oxlint-plugin-config-BgsDA6ua.js → oxlint-plugin-config-lMMD5fAC.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +1 -1
- package/dist/{package-B85H2Nw0.js → package-Cgdlhamw.js} +1 -1
- package/dist/{prompts-CQobX7uP.js → prompts-jMH8S4Wp.js} +2 -3
- package/dist/{report-CK5TnTsr.js → report-NhQk8VHb.js} +1 -0
- package/dist/{resolve-vite-config-BUFUmi8h.js → resolve-vite-config-BJYYtfY3.js} +2 -2
- package/dist/{resolve-vite-config-I8fmpR7I.js → resolve-vite-config-BPgpYMYp.js} +1 -1
- package/dist/staged/bin.js +2 -2
- package/dist/sync-versions/bin.js +1 -2
- package/dist/toolchain.js +8 -8
- package/dist/toolchain.json +8 -8
- package/dist/{tsconfig-Buo0RSzz.js → tsconfig-BoYTBNX_.js} +2 -2
- package/dist/{tsconfig-C1VeTG9k.js → tsconfig-CmKidmRD.js} +1 -1
- package/dist/version.js +2 -2
- package/dist/versions.js +3 -3
- package/docs/config/fmt.md +3 -1
- package/docs/config/lint.md +3 -1
- package/docs/config/run.md +61 -25
- package/docs/guide/automatic-data-tracking.md +20 -15
- package/docs/guide/cache.md +12 -8
- package/docs/guide/fmt.md +4 -2
- package/docs/guide/lint.md +4 -2
- package/docs/guide/migrate-rules.md +42 -0
- package/docs/guide/migrate.md +4 -4
- package/docs/guide/monorepo.md +4 -2
- package/docs/guide/run.md +3 -1
- package/docs/guide/troubleshooting.md +1 -1
- package/package.json +12 -12
- package/dist/dist-Dqv1-Clg.js +0 -3
- package/dist/semver-CaDAb8vV.js +0 -1400
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-CMFfr-1z.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-BqJiMVVU.js";
|
|
4
|
+
import { i as ensureVitePlusImportRuleDefaults, r as createDefaultVitePlusLintConfig } from "./oxlint-plugin-config-lMMD5fAC.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 { n as detectPackageMetadata, o as fetchNpmResource, r as getScopeFromPackageName, s as getNpmRegistry } from "./package-
|
|
6
|
+
import { n as detectPackageMetadata, o as fetchNpmResource, r as getScopeFromPackageName, s as getNpmRegistry } from "./package-Cgdlhamw.js";
|
|
7
7
|
import { n as isAlignableVitestEcosystemPackage } from "./vitest-ecosystem-BU0AqZq-.js";
|
|
8
|
-
import { C as multiselect, S as log, T as select, _ as getSpinner, b as confirm, d as readYamlFile, f as scalarString, g as getSilentSpinner, k as isCancel, t as cancelAndExit, u as editYamlFile, y as PackageManager } from "./prompts-
|
|
9
|
-
import {
|
|
10
|
-
import { l as displayRelative, u as rulesDir } from "./agent-
|
|
11
|
-
import { n as addMigrationWarning, t as addManualStep } from "./report-
|
|
8
|
+
import { C as multiselect, S as log, T as select, _ as getSpinner, b as confirm, d as readYamlFile, f as scalarString, g as getSilentSpinner, k as isCancel, t as cancelAndExit, u as editYamlFile, y as PackageManager } from "./prompts-jMH8S4Wp.js";
|
|
9
|
+
import { n as require_semver, t as require_dist } from "./dist-BWiANxFS.js";
|
|
10
|
+
import { l as displayRelative, u as rulesDir } from "./agent-CKMI1a8W.js";
|
|
11
|
+
import { n as addMigrationWarning, t as addManualStep } from "./report-NhQk8VHb.js";
|
|
12
12
|
import { n as runCommandSilently, r as require_cross_spawn } from "./command-CguLh2KL.js";
|
|
13
|
-
import {
|
|
14
|
-
import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-Buo0RSzz.js";
|
|
13
|
+
import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-BoYTBNX_.js";
|
|
15
14
|
import { t as extractOverrideTargetName } from "./package-overrides-Dpn4scvN.js";
|
|
16
15
|
import { i as findUnsafeHookInstallPath, t as SUPPORTED_GIT_HOOK_NAMES } from "./hooks-C-4gykWR.js";
|
|
17
16
|
import path, { posix, win32 } from "node:path";
|
|
18
17
|
import { fileURLToPath } from "node:url";
|
|
19
|
-
import { detectWorkspace, getVpDirs, hasConfigKey, mergeJsonConfig, mergeTsdownConfig, rewriteEslint, rewriteImportsInDirectory, rewritePrettier, rewriteScripts, wrapLazyPlugins } from "../binding/index.js";
|
|
18
|
+
import { detectWorkspace, getVpDirs, hasConfigKey, mergeJsonConfig, mergeTsdownConfig, migrateTaskCacheConfig, rewriteEslint, rewriteImportsInDirectory, rewritePrettier, rewriteScripts, wrapLazyPlugins } from "../binding/index.js";
|
|
20
19
|
import { styleText } from "node:util";
|
|
21
20
|
import * as actualFS from "node:fs";
|
|
22
21
|
import fs from "node:fs";
|
|
@@ -9254,6 +9253,29 @@ function wrapLazyPluginsInViteConfig(projectPath, silent = false, report) {
|
|
|
9254
9253
|
if (!silent) log.success(`✔ Wrapped inline Vite plugins with lazyPlugins in ${displayRelative(viteConfigPath)}`);
|
|
9255
9254
|
}
|
|
9256
9255
|
/**
|
|
9256
|
+
* Move `env`, `untrackedEnv`, `input`, and `output` from the top level of
|
|
9257
|
+
* each `run.tasks` entry into its `cache` object, as Vite Task requires.
|
|
9258
|
+
* Tasks that need manual changes are warned about, or collected into
|
|
9259
|
+
* `manualWarnings` when the caller reports them later.
|
|
9260
|
+
*/
|
|
9261
|
+
function migrateTaskCacheConfigInViteConfig(projectPath, silent = false, report, manualWarnings) {
|
|
9262
|
+
const configs = detectConfigs(projectPath);
|
|
9263
|
+
if (!configs.viteConfig) return false;
|
|
9264
|
+
const viteConfigPath = path.join(projectPath, configs.viteConfig);
|
|
9265
|
+
const result = migrateTaskCacheConfig(viteConfigPath);
|
|
9266
|
+
if (result.manualTasks.length > 0) {
|
|
9267
|
+
const tasks = result.manualTasks.map((task) => `\`${task}\``).join(", ");
|
|
9268
|
+
const warning = `${displayRelative(viteConfigPath)}: Move \`env\`, \`untrackedEnv\`, \`input\`, and \`output\` under \`cache\` manually in ${result.manualTasks.length === 1 ? "task" : "tasks"} ${tasks}; ${result.manualTasks.length === 1 ? "it was" : "they were"} left unchanged. See ${documentationUrl$1("/config/run#cache")}`;
|
|
9269
|
+
if (manualWarnings) manualWarnings.push(warning);
|
|
9270
|
+
else warnMigration(warning, report);
|
|
9271
|
+
}
|
|
9272
|
+
if (!result.updated) return false;
|
|
9273
|
+
fs.writeFileSync(viteConfigPath, result.content);
|
|
9274
|
+
if (report) report.migratedTaskCacheConfigCount++;
|
|
9275
|
+
if (!silent) log.success(`✔ Moved task cache settings under \`cache\` in ${displayRelative(viteConfigPath)}`);
|
|
9276
|
+
return true;
|
|
9277
|
+
}
|
|
9278
|
+
/**
|
|
9257
9279
|
* Rewrite imports in all TypeScript/JavaScript files under a directory
|
|
9258
9280
|
* This rewrites vite/vitest imports to @voidzero-dev/vite-plus
|
|
9259
9281
|
* @param projectPath - The root directory to search for files
|
|
@@ -9739,13 +9761,16 @@ function finalizeCoreMigrationForExistingVitePlus(workspaceInfo, silent = false,
|
|
|
9739
9761
|
scripts: false,
|
|
9740
9762
|
tsconfigTypes: false,
|
|
9741
9763
|
imports: false,
|
|
9742
|
-
tsdownConfig: false
|
|
9764
|
+
tsdownConfig: false,
|
|
9765
|
+
taskCacheConfig: false,
|
|
9766
|
+
taskCacheWarnings: []
|
|
9743
9767
|
};
|
|
9744
9768
|
if (pending.scripts) for (const projectPath of projectPaths) result.scripts = rewriteCorePackageScripts(projectPath) || result.scripts;
|
|
9745
9769
|
if (pending.tsconfigTypes) for (const projectPath of projectPaths) result.tsconfigTypes = rewriteTsconfigTypes(projectPath, silent, report) || result.tsconfigTypes;
|
|
9746
9770
|
result.imports = rewriteAllImports(workspaceInfo.rootDir, silent, report, true);
|
|
9747
9771
|
result.dependencies = dropDeadOxlintPluginsDependency(workspaceInfo.rootDir, workspaceInfo.packages);
|
|
9748
9772
|
for (const projectPath of projectPaths) result.tsdownConfig = mergeTsdownConfigFile(projectPath, silent, report) || result.tsdownConfig;
|
|
9773
|
+
for (const projectPath of projectPaths) result.taskCacheConfig = migrateTaskCacheConfigInViteConfig(projectPath, silent, report, result.taskCacheWarnings) || result.taskCacheConfig;
|
|
9749
9774
|
return result;
|
|
9750
9775
|
}
|
|
9751
9776
|
//#endregion
|
|
@@ -9857,6 +9882,7 @@ function rewriteStandaloneProject(projectPath, workspaceInfo, skipStagedMigratio
|
|
|
9857
9882
|
rewriteAllImports(projectPath, silent, report, true, oxlintOwnerDirs);
|
|
9858
9883
|
dropDeadOxlintPluginsDependency(projectPath, workspaceInfo.packages, originalOxlintDependencies);
|
|
9859
9884
|
wrapLazyPluginsInViteConfig(projectPath, silent, report);
|
|
9885
|
+
migrateTaskCacheConfigInViteConfig(projectPath, silent, report);
|
|
9860
9886
|
setPackageManager(projectPath, workspaceInfo.downloadPackageManager);
|
|
9861
9887
|
}
|
|
9862
9888
|
/**
|
|
@@ -9897,7 +9923,12 @@ function rewriteMonorepo(workspaceInfo, skipStagedMigration, silent = false, rep
|
|
|
9897
9923
|
rewriteAllImports(workspaceInfo.rootDir, silent, report, true, oxlintOwnerDirs);
|
|
9898
9924
|
dropDeadOxlintPluginsDependency(workspaceInfo.rootDir, workspaceInfo.packages, originalOxlintDependencies);
|
|
9899
9925
|
wrapLazyPluginsInViteConfig(workspaceInfo.rootDir, silent, report);
|
|
9900
|
-
|
|
9926
|
+
migrateTaskCacheConfigInViteConfig(workspaceInfo.rootDir, silent, report);
|
|
9927
|
+
for (const pkg of workspaceInfo.packages) {
|
|
9928
|
+
const projectPath = path.join(workspaceInfo.rootDir, pkg.path);
|
|
9929
|
+
wrapLazyPluginsInViteConfig(projectPath, silent, report);
|
|
9930
|
+
migrateTaskCacheConfigInViteConfig(projectPath, silent, report);
|
|
9931
|
+
}
|
|
9901
9932
|
setPackageManager(workspaceInfo.rootDir, workspaceInfo.downloadPackageManager);
|
|
9902
9933
|
}
|
|
9903
9934
|
/**
|
|
@@ -9932,7 +9963,10 @@ function rewriteMonorepoProject(projectPath, packageManager, skipStagedMigration
|
|
|
9932
9963
|
if (extractedStagedConfig) {
|
|
9933
9964
|
if (mergeStagedConfigToViteConfig(projectPath, extractedStagedConfig, silent, report)) removeLintStagedFromPackageJson(packageJsonPath);
|
|
9934
9965
|
}
|
|
9935
|
-
if (!deferLazyPluginWrapping)
|
|
9966
|
+
if (!deferLazyPluginWrapping) {
|
|
9967
|
+
wrapLazyPluginsInViteConfig(projectPath, silent, report);
|
|
9968
|
+
migrateTaskCacheConfigInViteConfig(projectPath, silent, report);
|
|
9969
|
+
}
|
|
9936
9970
|
}
|
|
9937
9971
|
//#endregion
|
|
9938
9972
|
//#region src/utils/editor.ts
|
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-C_KGDLUZ.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.d.ts
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-Cf_5GHmY.js";
|
|
2
2
|
import { TestProjectConfiguration, TestProjectInlineConfiguration, TestTagDefinition, TestUserConfig, UserProjectConfigExport, UserProjectConfigFn, UserWorkspaceConfig, ViteUserConfig, ViteUserConfigExport, ViteUserConfigFn, ViteUserConfigFnObject, ViteUserConfigFnPromise, WatcherTriggerPattern, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude } from "vitest/config";
|
|
3
3
|
export * from "vite";
|
|
4
4
|
export { type TestProjectConfiguration, type TestProjectInlineConfiguration, type TestTagDefinition, type TestUserConfig, type UserProjectConfigExport, type UserProjectConfigFn, type UserWorkspaceConfig, type ViteUserConfig, type ViteUserConfigExport, type ViteUserConfigFn, type ViteUserConfigFnObject, type ViteUserConfigFnPromise, type WatcherTriggerPattern, configDefaults, coverageConfigDefaults, defaultBrowserPort, defaultExclude, defaultInclude, defineConfig, defineProject, lazyPlugins };
|
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-DhEJaYRc.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-C_KGDLUZ.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,17 @@
|
|
|
1
1
|
import { r as __toESM } from "../rolldown-runtime-CMFfr-1z.js";
|
|
2
2
|
import { t as documentationUrl$1 } from "../documentation-DqcZSthV.js";
|
|
3
3
|
import { a as muted, c as warnMsg, i as log, o as printHeader, r as formatDuration, t as accent } from "../terminal-MKGAuy-p.js";
|
|
4
|
-
import { _ as engines, a as SETUP_VP_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-
|
|
4
|
+
import { _ as engines, a as SETUP_VP_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-BqJiMVVU.js";
|
|
5
5
|
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";
|
|
6
|
-
import { a as readNearestPackageJson, i as hasVitePlusDependency, n as detectPackageMetadata } from "../package-
|
|
6
|
+
import { a as readNearestPackageJson, i as hasVitePlusDependency, n as detectPackageMetadata } from "../package-Cgdlhamw.js";
|
|
7
7
|
import { t as vitest_v5_entry_points_default } from "../vitest-v5-entry-points-DthU1e_O.js";
|
|
8
|
-
import { E as spinner, S as log$1, T as select, b as confirm, c as selectPackageManager, i as promptGitHooks, k as isCancel, l as upgradeYarn, n as defaultInteractive, o as runViteFmt, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, w as outro, y as PackageManager } from "../prompts-
|
|
9
|
-
import {
|
|
10
|
-
import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-
|
|
11
|
-
import { n as addMigrationWarning, r as createMigrationReport } from "../report-
|
|
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-
|
|
8
|
+
import { E as spinner, S as log$1, T as select, b as confirm, c as selectPackageManager, i as promptGitHooks, k as isCancel, l as upgradeYarn, n as defaultInteractive, o as runViteFmt, r as downloadPackageManager$1, s as runViteInstall, t as cancelAndExit, w as outro, y as PackageManager } from "../prompts-jMH8S4Wp.js";
|
|
9
|
+
import { n as require_semver, t as require_dist } from "../dist-BWiANxFS.js";
|
|
10
|
+
import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-CKMI1a8W.js";
|
|
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-CHfGUhxP.js";
|
|
13
13
|
import { n as runCommandSilently } from "../command-CguLh2KL.js";
|
|
14
|
-
import { t as
|
|
15
|
-
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-Buo0RSzz.js";
|
|
14
|
+
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-BoYTBNX_.js";
|
|
16
15
|
import { t as extractOverrideTargetName } from "../package-overrides-Dpn4scvN.js";
|
|
17
16
|
import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
|
|
18
17
|
import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../protocol-D99W10Qi.js";
|
|
@@ -3678,7 +3677,7 @@ const FULL_MIGRATION_HINT = `${styleText("gray", "•")} Skipped editor, hooks,
|
|
|
3678
3677
|
function showMigrationSummary(options) {
|
|
3679
3678
|
const { projectRoot, packageManager, packageManagerVersion, installDurationMs, finalInstallOk, report, updatedExistingVitePlus, suggestFullMigration } = options;
|
|
3680
3679
|
const projectLabel = displayRelative(projectRoot) || ".";
|
|
3681
|
-
const configUpdates = report.createdViteConfigCount + report.mergedConfigCount + report.mergedStagedConfigCount + report.inlinedLintStagedConfigCount + report.removedConfigCount + report.tsdownImportCount + report.wrappedPluginConfigCount;
|
|
3680
|
+
const configUpdates = report.createdViteConfigCount + report.mergedConfigCount + report.mergedStagedConfigCount + report.inlinedLintStagedConfigCount + report.removedConfigCount + report.tsdownImportCount + report.wrappedPluginConfigCount + report.migratedTaskCacheConfigCount;
|
|
3682
3681
|
log(`${styleText("magenta", "◇")} ${updatedExistingVitePlus ? "Updated" : "Migrated"} ${accent(projectLabel)} to Vite+ ${VITE_PLUS_VERSION}`);
|
|
3683
3682
|
log(`${styleText("gray", "•")} Node ${process.versions.node} ${packageManager} ${packageManagerVersion}`);
|
|
3684
3683
|
if (report.dependencyUpgrades.length > 0) {
|
|
@@ -3710,6 +3709,7 @@ function showMigrationSummary(options) {
|
|
|
3710
3709
|
log(`${styleText("gray", "•")} setup-vp updated to ${SETUP_VP_VERSION} in ${setupVpFileCount} GitHub Actions ${fileLabel}`);
|
|
3711
3710
|
}
|
|
3712
3711
|
if (report.wrappedPluginConfigCount > 0) log(`${styleText("gray", "•")} Inline Vite plugins wrapped with lazyPlugins for check/lint/fmt`);
|
|
3712
|
+
if (report.migratedTaskCacheConfigCount > 0) log(`${styleText("gray", "•")} Task cache settings moved under \`cache\``);
|
|
3713
3713
|
if (report.gitHooksConfigured) log(`${styleText("gray", "•")} Git hooks configured`);
|
|
3714
3714
|
if (report.frameworkShimAdded) log(`${styleText("gray", "•")} TypeScript shim added for framework component files`);
|
|
3715
3715
|
if (report.packageManagerBootstrapConfigured) log(`${styleText("gray", "•")} Package manager settings configured`);
|
|
@@ -3981,16 +3981,18 @@ async function main() {
|
|
|
3981
3981
|
report.dependencyUpgrades = await collectToolchainVersionChanges(workspaceInfoOptional.rootDir);
|
|
3982
3982
|
updateMigrationProgress("Rewriting toolchain imports across the workspace");
|
|
3983
3983
|
const coreMigrationResult = finalizeCoreMigrationForExistingVitePlus(workspaceInfoOptional, true, report, pendingCoreMigration);
|
|
3984
|
-
if (coreMigrationResult.dependencies || coreMigrationResult.scripts || coreMigrationResult.tsconfigTypes || coreMigrationResult.imports || coreMigrationResult.tsdownConfig) didMigrate = true;
|
|
3984
|
+
if (coreMigrationResult.dependencies || coreMigrationResult.scripts || coreMigrationResult.tsconfigTypes || coreMigrationResult.imports || coreMigrationResult.tsdownConfig || coreMigrationResult.taskCacheConfig) didMigrate = true;
|
|
3985
3985
|
clearMigrationProgress();
|
|
3986
3986
|
const fullSetup = options.full === true;
|
|
3987
3987
|
const skippedSetupCandidates = !fullSetup && !hasExplicitExistingVitePlusSetupRequest(options) && hasExistingVitePlusMigrationCandidates(workspaceInfoOptional, options);
|
|
3988
3988
|
if (!didMigrate && !convertYarnPnp && report.warnings.length === 0 && !vitePlusBootstrapPending && !(fullSetup ? hasExistingVitePlusMigrationCandidates(workspaceInfoOptional, options) : hasExplicitExistingVitePlusSetupRequest(options))) {
|
|
3989
3989
|
if (vitestV5Preflight) log$1.warn(vitestV5Preflight);
|
|
3990
|
+
for (const warning of coreMigrationResult.taskCacheWarnings) log$1.warn(warning);
|
|
3990
3991
|
if (skippedSetupCandidates) log(FULL_MIGRATION_HINT);
|
|
3991
3992
|
outro(`This project is already using Vite+! ${accent("Happy coding!")}`);
|
|
3992
3993
|
return;
|
|
3993
3994
|
}
|
|
3995
|
+
for (const warning of coreMigrationResult.taskCacheWarnings) addMigrationWarning(report, warning);
|
|
3994
3996
|
const setupOptions = getExistingVitePlusSetupOptions(options, fullSetup);
|
|
3995
3997
|
const plan = await collectMigrationSetupPlan(workspaceInfoOptional.rootDir, packageManager, setupOptions, workspaceInfoOptional.packages, fullSetup);
|
|
3996
3998
|
const frameworkShimFrameworks = fullSetup ? await collectFrameworkShimFrameworks(workspaceInfoOptional.rootDir, options, workspaceInfoOptional.packages) : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as addMigrationWarning, r as createMigrationReport } from "../../report-
|
|
1
|
+
import { n as addMigrationWarning, r as createMigrationReport } from "../../report-NhQk8VHb.js";
|
|
2
2
|
import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../../protocol-D99W10Qi.js";
|
|
3
3
|
import { writeSync } from "node:fs";
|
|
4
4
|
//#region src/migration/compat/manual-chunks.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as VITE_PLUS_NAME } from "./constants-
|
|
1
|
+
import { u as VITE_PLUS_NAME } from "./constants-BqJiMVVU.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-BqJiMVVU.js";
|
|
2
|
+
import { n as VITE_PLUS_OXLINT_PLUGIN_NAME, t as PREFER_VITE_PLUS_IMPORTS_RULE_NAME } from "./oxlint-plugin-config-lMMD5fAC.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-DfmT__Aw.js";
|
|
3
|
-
import { o as resolveViteConfig } from "./resolve-vite-config-
|
|
3
|
+
import { o as resolveViteConfig } from "./resolve-vite-config-BJYYtfY3.js";
|
|
4
4
|
import module from "node:module";
|
|
5
5
|
import { buildWithConfigs, enableDebug, globalLogger, resolveUserConfig } from "vite/pack";
|
|
6
6
|
//#region src/pack-bin.ts
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./rolldown-runtime-CMFfr-1z.js";
|
|
2
2
|
import { t as accent } from "./terminal-MKGAuy-p.js";
|
|
3
|
-
import { f as VITE_PLUS_VERSION } from "./constants-
|
|
3
|
+
import { f as VITE_PLUS_VERSION } from "./constants-BqJiMVVU.js";
|
|
4
4
|
import { a as writeJsonFile, i as readJsonFile } from "./json-JP24qHUF.js";
|
|
5
|
-
import {
|
|
5
|
+
import { n as require_semver, t as require_dist } from "./dist-BWiANxFS.js";
|
|
6
6
|
import { n as runCommandSilently } from "./command-CguLh2KL.js";
|
|
7
|
-
import { t as require_dist } from "./dist-BDYZP12R.js";
|
|
8
7
|
import path from "node:path";
|
|
9
8
|
import { downloadPackageManager } from "../binding/index.js";
|
|
10
9
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as VITE_CONFIG_FILES } from "./constants-
|
|
2
|
-
import { u as withConfigMetadataResolution } from "./define-config-
|
|
1
|
+
import { l as VITE_CONFIG_FILES } from "./constants-BqJiMVVU.js";
|
|
2
|
+
import { u as withConfigMetadataResolution } from "./define-config-DhEJaYRc.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
//#region src/resolve-vite-config.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as resolveUniversalViteConfig } from "./resolve-vite-config-
|
|
1
|
+
import { a as resolveUniversalViteConfig } from "./resolve-vite-config-BJYYtfY3.js";
|
|
2
2
|
export { resolveUniversalViteConfig };
|
package/dist/staged/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "../rolldown-runtime-CMFfr-1z.js";
|
|
2
2
|
import { i as log, n as errorMsg, o as printHeader } from "../terminal-MKGAuy-p.js";
|
|
3
|
-
import { o as resolveViteConfig } from "../resolve-vite-config-
|
|
3
|
+
import { o as resolveViteConfig } from "../resolve-vite-config-BJYYtfY3.js";
|
|
4
4
|
import { t as unwrapCliParseOutcome } from "../cli-parse-DHE8NrBU.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path, { basename, delimiter, dirname, normalize, resolve } from "node:path";
|
|
@@ -3890,7 +3890,7 @@ const jsonParse = async (filename) => {
|
|
|
3890
3890
|
const yamlParse = async (filename) => {
|
|
3891
3891
|
const isPackageFile = PACKAGE_YAML_FILES.includes(path.basename(filename));
|
|
3892
3892
|
try {
|
|
3893
|
-
const [YAML, content] = await Promise.all([import("../dist-
|
|
3893
|
+
const [YAML, content] = await Promise.all([import("../dist-BsAzy8OW.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)), readFile(filename)]);
|
|
3894
3894
|
const yaml = YAML.parse(content);
|
|
3895
3895
|
return isPackageFile ? yaml[CONFIG_NAME] : yaml;
|
|
3896
3896
|
} catch (error) {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { r as __toESM } from "../rolldown-runtime-CMFfr-1z.js";
|
|
2
2
|
import { c as modify, l as parse, o as applyEdits, t as detectFormattingOptions } from "../json-JP24qHUF.js";
|
|
3
3
|
import { n as isAlignableVitestEcosystemPackage } from "../vitest-ecosystem-BU0AqZq-.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as require_dist } from "../dist-BDYZP12R.js";
|
|
4
|
+
import { n as require_semver, t as require_dist } from "../dist-BWiANxFS.js";
|
|
6
5
|
import { t as extractOverrideTargetName } from "../package-overrides-Dpn4scvN.js";
|
|
7
6
|
import path from "node:path";
|
|
8
7
|
import fsPromises from "node:fs/promises";
|
package/dist/toolchain.js
CHANGED
|
@@ -4,7 +4,7 @@ export const toolchain = {
|
|
|
4
4
|
{
|
|
5
5
|
"id": "vite-plus",
|
|
6
6
|
"name": "vite-plus",
|
|
7
|
-
"version": "1.0.0
|
|
7
|
+
"version": "1.0.0",
|
|
8
8
|
"kind": "package",
|
|
9
9
|
"delivery": [
|
|
10
10
|
"dependency"
|
|
@@ -14,7 +14,7 @@ export const toolchain = {
|
|
|
14
14
|
{
|
|
15
15
|
"id": "vite-plus-core",
|
|
16
16
|
"name": "@voidzero-dev/vite-plus-core",
|
|
17
|
-
"version": "1.0.0
|
|
17
|
+
"version": "1.0.0",
|
|
18
18
|
"kind": "package",
|
|
19
19
|
"delivery": [
|
|
20
20
|
"dependency"
|
|
@@ -26,7 +26,7 @@ export const toolchain = {
|
|
|
26
26
|
{
|
|
27
27
|
"id": "vite",
|
|
28
28
|
"name": "vite",
|
|
29
|
-
"version": "8.3.
|
|
29
|
+
"version": "8.3.1",
|
|
30
30
|
"kind": "tool",
|
|
31
31
|
"delivery": [
|
|
32
32
|
"bundled"
|
|
@@ -36,7 +36,7 @@ export const toolchain = {
|
|
|
36
36
|
{
|
|
37
37
|
"id": "rolldown",
|
|
38
38
|
"name": "rolldown",
|
|
39
|
-
"version": "1.2.
|
|
39
|
+
"version": "1.2.11",
|
|
40
40
|
"kind": "tool",
|
|
41
41
|
"delivery": [
|
|
42
42
|
"bundled",
|
|
@@ -77,7 +77,7 @@ export const toolchain = {
|
|
|
77
77
|
{
|
|
78
78
|
"id": "oxlint-tsgolint",
|
|
79
79
|
"name": "oxlint-tsgolint",
|
|
80
|
-
"version": "7.0.
|
|
80
|
+
"version": "7.0.2003",
|
|
81
81
|
"kind": "tool",
|
|
82
82
|
"delivery": [
|
|
83
83
|
"dependency"
|
|
@@ -99,8 +99,8 @@ export const toolchain = {
|
|
|
99
99
|
{
|
|
100
100
|
"id": "vite-task",
|
|
101
101
|
"name": "vite-task",
|
|
102
|
-
"revision": "
|
|
103
|
-
"builtAt": "2026-09-
|
|
102
|
+
"revision": "7d69d6577ecf6bd83deee32186de59918a712873",
|
|
103
|
+
"builtAt": "2026-09-28T02:31:26Z",
|
|
104
104
|
"kind": "tool",
|
|
105
105
|
"delivery": [
|
|
106
106
|
"compiled"
|
|
@@ -110,7 +110,7 @@ export const toolchain = {
|
|
|
110
110
|
{
|
|
111
111
|
"id": "oxc",
|
|
112
112
|
"name": "oxc",
|
|
113
|
-
"version": "0.
|
|
113
|
+
"version": "0.151.0",
|
|
114
114
|
"kind": "engine",
|
|
115
115
|
"delivery": [
|
|
116
116
|
"compiled"
|
package/dist/toolchain.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"id": "vite-plus",
|
|
6
6
|
"name": "vite-plus",
|
|
7
|
-
"version": "1.0.0
|
|
7
|
+
"version": "1.0.0",
|
|
8
8
|
"kind": "package",
|
|
9
9
|
"delivery": [
|
|
10
10
|
"dependency"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"id": "vite-plus-core",
|
|
16
16
|
"name": "@voidzero-dev/vite-plus-core",
|
|
17
|
-
"version": "1.0.0
|
|
17
|
+
"version": "1.0.0",
|
|
18
18
|
"kind": "package",
|
|
19
19
|
"delivery": [
|
|
20
20
|
"dependency"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{
|
|
27
27
|
"id": "vite",
|
|
28
28
|
"name": "vite",
|
|
29
|
-
"version": "8.3.
|
|
29
|
+
"version": "8.3.1",
|
|
30
30
|
"kind": "tool",
|
|
31
31
|
"delivery": [
|
|
32
32
|
"bundled"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
{
|
|
37
37
|
"id": "rolldown",
|
|
38
38
|
"name": "rolldown",
|
|
39
|
-
"version": "1.2.
|
|
39
|
+
"version": "1.2.11",
|
|
40
40
|
"kind": "tool",
|
|
41
41
|
"delivery": [
|
|
42
42
|
"bundled",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
{
|
|
78
78
|
"id": "oxlint-tsgolint",
|
|
79
79
|
"name": "oxlint-tsgolint",
|
|
80
|
-
"version": "7.0.
|
|
80
|
+
"version": "7.0.2003",
|
|
81
81
|
"kind": "tool",
|
|
82
82
|
"delivery": [
|
|
83
83
|
"dependency"
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
{
|
|
100
100
|
"id": "vite-task",
|
|
101
101
|
"name": "vite-task",
|
|
102
|
-
"revision": "
|
|
103
|
-
"builtAt": "2026-09-
|
|
102
|
+
"revision": "7d69d6577ecf6bd83deee32186de59918a712873",
|
|
103
|
+
"builtAt": "2026-09-28T02:31:26Z",
|
|
104
104
|
"kind": "tool",
|
|
105
105
|
"delivery": [
|
|
106
106
|
"compiled"
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
{
|
|
111
111
|
"id": "oxc",
|
|
112
112
|
"name": "oxc",
|
|
113
|
-
"version": "0.
|
|
113
|
+
"version": "0.151.0",
|
|
114
114
|
"kind": "engine",
|
|
115
115
|
"delivery": [
|
|
116
116
|
"compiled"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-
|
|
1
|
+
import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-BqJiMVVU.js";
|
|
2
2
|
import { c as modify, l as parse, o as applyEdits } from "./json-JP24qHUF.js";
|
|
3
3
|
import { t as vitest_v5_entry_points_default } from "./vitest-v5-entry-points-DthU1e_O.js";
|
|
4
|
-
import { S as log, b as confirm, k as isCancel, t as cancelAndExit } from "./prompts-
|
|
4
|
+
import { S as log, b as confirm, k as isCancel, t as cancelAndExit } from "./prompts-jMH8S4Wp.js";
|
|
5
5
|
import { n as runCommandSilently } from "./command-CguLh2KL.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { styleText } from "node:util";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig } from "./tsconfig-
|
|
1
|
+
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig } from "./tsconfig-BoYTBNX_.js";
|
|
2
2
|
export { fixBaseUrlInTsconfig, hasBaseUrlInTsconfig };
|
package/dist/version.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as renderCliDoc } from "./help-BmKpeOP9.js";
|
|
2
2
|
import { i as log, o as printHeader, t as accent } from "./terminal-MKGAuy-p.js";
|
|
3
|
-
import { y as version } from "./constants-
|
|
4
|
-
import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-
|
|
3
|
+
import { y as version } from "./constants-BqJiMVVU.js";
|
|
4
|
+
import { i as hasVitePlusDependency, n as detectPackageMetadata } from "./package-Cgdlhamw.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
import fs from "node:fs";
|
package/dist/versions.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const versions = {
|
|
2
|
-
"vite": "8.3.
|
|
3
|
-
"rolldown": "1.2.
|
|
2
|
+
"vite": "8.3.1",
|
|
3
|
+
"rolldown": "1.2.11",
|
|
4
4
|
"vitest": "5.0.1",
|
|
5
5
|
"oxfmt": "0.70.0",
|
|
6
6
|
"oxlint": "1.85.0",
|
|
7
|
-
"oxlint-tsgolint": "7.0.
|
|
7
|
+
"oxlint-tsgolint": "7.0.2003",
|
|
8
8
|
"tsdown": "0.23.0"
|
|
9
9
|
};
|
package/docs/config/fmt.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Format Config
|
|
2
2
|
|
|
3
|
-
`vp fmt`
|
|
3
|
+
`vp fmt` uses Oxfmt's [native config discovery](/guide/fmt#configuration) from the working directory. Use `vp fmt -c <path>` or `vp fmt --config <path>` to select another config. See [Oxfmt's configuration](https://oxc.rs/docs/guide/usage/formatter/config.html) for details.
|
|
4
|
+
|
|
5
|
+
`vp check` uses the workspace-root `fmt` block when it exists, including from a package directory. Package configs do not replace these format settings in `vp check`.
|
|
4
6
|
|
|
5
7
|
## Example
|
|
6
8
|
|
package/docs/config/lint.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Lint Config
|
|
2
2
|
|
|
3
|
-
`vp lint`
|
|
3
|
+
`vp lint` uses Oxlint's [native config discovery](/guide/lint#configuration) from the working directory. Use `vp lint -c <path>` or `vp lint --config <path>` to select another config. See [Oxlint's configuration](https://oxc.rs/docs/guide/usage/linter/config.html) for details.
|
|
4
|
+
|
|
5
|
+
`vp check` uses the workspace-root `lint` block when it exists, including from a package directory. Package configs do not replace these lint settings in `vp check`.
|
|
4
6
|
|
|
5
7
|
## Example
|
|
6
8
|
|