vite-plus 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding/index.cjs +116 -55
- package/dist/{agent-DkQD3xqe.js → agent-CowvWq3j.js} +2 -2
- package/dist/bin.js +20 -6
- package/dist/config/bin.js +2 -2
- package/dist/{constants-D2P2aVKb.js → constants-D5f7inVN.js} +1 -1
- package/dist/create/bin.js +7 -7
- package/dist/{define-config-CwtQqYC1.cjs → define-config-BGCfAiIo.cjs} +1 -1
- package/dist/{define-config-wR57OZG_.js → define-config-XKYhw0xH.js} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-aOy1T15H.js → editor-BVaNnIey.js} +6 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +6 -6
- package/dist/{oxlint-plugin-config-CHsI_zKo.js → oxlint-plugin-config-5hVqz4kj.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +1 -1
- package/dist/{package-DfFo6-E-.js → package-DLUCo6L_.js} +1 -1
- package/dist/{prompts-C7DI63WP.js → prompts-DLpJGhfK.js} +1 -1
- package/dist/{resolve-vite-config-Cx3cnVVI.js → resolve-vite-config-D-JtjGRa.js} +2 -2
- package/dist/{resolve-vite-config-33bzSaeT.js → resolve-vite-config-D7IUZYKq.js} +1 -1
- package/dist/staged/bin.js +1 -1
- package/dist/toolchain.js +5 -5
- package/dist/toolchain.json +5 -5
- package/dist/{tsconfig-shNmmCE_.js → tsconfig-D3DiCiW6.js} +2 -2
- package/dist/{tsconfig-BE3Wj9OX.js → tsconfig-DLERIAbF.js} +1 -1
- package/dist/version.js +2 -2
- package/dist/versions.js +2 -2
- package/docs/guide/global-cli.md +1 -1
- package/docs/guide/index.md +4 -4
- package/docs/guide/local-cli.md +1 -1
- package/docs/guide/migrate.md +4 -4
- package/docs/guide/package-management/add.md +84 -0
- package/docs/guide/package-management/approve-builds.md +48 -0
- package/docs/guide/package-management/audit.md +39 -0
- package/docs/guide/package-management/cache.md +53 -0
- package/docs/guide/package-management/ci.md +28 -0
- package/docs/guide/package-management/config.md +119 -0
- package/docs/guide/package-management/dedupe.md +32 -0
- package/docs/guide/package-management/deprecate.md +39 -0
- package/docs/guide/package-management/dist-tag.md +61 -0
- package/docs/guide/package-management/dlx.md +40 -0
- package/docs/guide/package-management/fund.md +32 -0
- package/docs/guide/package-management/global-packages.md +32 -0
- package/docs/guide/package-management/index.md +78 -0
- package/docs/guide/package-management/info.md +35 -0
- package/docs/guide/package-management/install.md +89 -0
- package/docs/guide/package-management/licenses.md +42 -0
- package/docs/guide/package-management/link.md +29 -0
- package/docs/guide/package-management/list.md +60 -0
- package/docs/guide/package-management/login.md +34 -0
- package/docs/guide/package-management/logout.md +34 -0
- package/docs/guide/package-management/outdated.md +60 -0
- package/docs/guide/package-management/owner.md +79 -0
- package/docs/guide/package-management/pack.md +40 -0
- package/docs/guide/package-management/package-manager-selection.md +60 -0
- package/docs/guide/package-management/patch-commit.md +27 -0
- package/docs/guide/package-management/patch.md +29 -0
- package/docs/guide/package-management/ping.md +32 -0
- package/docs/guide/package-management/pkg.md +88 -0
- package/docs/guide/package-management/prune.md +34 -0
- package/docs/guide/package-management/publish.md +61 -0
- package/docs/guide/package-management/rebuild.md +31 -0
- package/docs/guide/package-management/remove.md +47 -0
- package/docs/guide/package-management/search.md +38 -0
- package/docs/guide/package-management/stage.md +175 -0
- package/docs/guide/package-management/team.md +140 -0
- package/docs/guide/package-management/token.md +87 -0
- package/docs/guide/package-management/unlink.md +33 -0
- package/docs/guide/package-management/update.md +62 -0
- package/docs/guide/package-management/version.md +36 -0
- package/docs/guide/package-management/whoami.md +30 -0
- package/docs/guide/package-management/why.md +55 -0
- package/docs/guide/vpx.md +1 -1
- package/package.json +12 -12
- package/docs/guide/package-management.md +0 -269
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-DegdyBIC.js";
|
|
2
2
|
import { t as documentationUrl$1 } from "./documentation-cv_y0Auv.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 { a as ensureVitePlusImportRuleDefaults, i as createDefaultVitePlusLintConfig, t as PREFER_VITE_PLUS_IMPORTS_RULE } 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-D5f7inVN.js";
|
|
4
|
+
import { a as ensureVitePlusImportRuleDefaults, i as createDefaultVitePlusLintConfig, t as PREFER_VITE_PLUS_IMPORTS_RULE } from "./oxlint-plugin-config-5hVqz4kj.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-kl84kDyH.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-DLUCo6L_.js";
|
|
7
7
|
import { n as isAlignableVitestEcosystemPackage } from "./vitest-ecosystem-BeEYz-qF.js";
|
|
8
|
-
import { C as confirm, E as multiselect, M as isCancel, O as select, S as normalize$3, T as log$1, _ 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$3, T as log$1, _ 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-DLpJGhfK.js";
|
|
9
9
|
import { _ as isGreaterThanOrEqual, h as compareReversed, v as isLessThanOrEqual } from "./comparison-CmVirWIW-UlEf2maz.js";
|
|
10
10
|
import { s as satisfies, t as extractOverrideTargetName } from "./package-overrides-Ci8GXouY.js";
|
|
11
|
-
import { l as displayRelative, u as rulesDir } from "./agent-
|
|
11
|
+
import { l as displayRelative, u as rulesDir } from "./agent-CowvWq3j.js";
|
|
12
12
|
import { n as addMigrationWarning, t as addManualStep } from "./report-BEdpIQvC.js";
|
|
13
13
|
import { a as require_cross_spawn, i as runCommandSilently, n as getVpCommand } from "./command-rY79K5NI.js";
|
|
14
14
|
import { t as require_dist } from "./dist-Bs0SObNC.js";
|
|
15
|
-
import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-
|
|
15
|
+
import { a as hasBaseUrlInTsconfig, c as hasVitestTypesInTsconfig, l as removeDeprecatedTsconfigFalseOption, n as findTsconfigFiles, s as hasTypesToRewriteInTsconfig, u as rewriteTypesInTsconfig } from "./tsconfig-D3DiCiW6.js";
|
|
16
16
|
import { t as require_picomatch } from "./picomatch-DEUoj81q.js";
|
|
17
17
|
import { a as findUnsafeHookInstallPath, n as SUPPORTED_GIT_HOOK_NAMES, o as hookScript, t as HOOK_STUB_SCRIPT } from "./hooks-w_e2whkQ.js";
|
|
18
18
|
import path from "node:path";
|
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-BGCfAiIo.cjs");
|
|
2
2
|
// 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, l as resolveConfigFromFile, o as defineProject } from "./define-config-
|
|
1
|
+
import { a as defineConfig, c as lazyPlugins, l as resolveConfigFromFile, o as defineProject } from "./define-config-XKYhw0xH.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, resolveConfigFromFile };
|
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-BGCfAiIo.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,12 +1,12 @@
|
|
|
1
|
-
import { C as confirm, D as outro, M as isCancel, O as select, S as normalize$1, T as log, 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-
|
|
1
|
+
import { C as confirm, D as outro, M as isCancel, O as select, S as normalize$1, T as log, 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-DLpJGhfK.js";
|
|
2
2
|
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-Ci8GXouY.js";
|
|
3
|
-
import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-
|
|
3
|
+
import { i as selectAgentTargetPaths, l as displayRelative, n as detectAgentConflicts, r as detectExistingAgentTargetPaths, s as writeAgentInstructions } from "../agent-CowvWq3j.js";
|
|
4
4
|
import { t as unwrapCliParseOutcome } from "../cli-parse-aeUeFDlC.js";
|
|
5
|
-
import { _ as engines, a as SETUP_VP_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-
|
|
6
|
-
import { A as detectVitePlusBootstrapPending, C as removeMigratedOxlintConfigs, Ct as readPackageJsonIfExists, D as mergeViteConfigFiles, E as mergeTsdownConfigFile, F as detectYarnPnpMode, I as createCatalogDependencyResolver, J as detectFramework, K as extractOverrideParentSegments, M as sourceTreeMatches, N as usesWebdriverioProvider, O as retryPreservedOxlintConfigs, P as configureYarnNodeModulesMode, Q as migrateTsupToTsdown, R as detectWorkspace$1, S as prepareOxlintConfigs, St as isPlainRecord, T as injectLintTypeCheckDefaults, U as minimatch, W as findGitRoot, X as confirmTsupMigration, Y as hasFrameworkShim, Z as detectTsupProject, _ as hasExistingViteHooksPolicy, _t as SHELL_STATE_COMMANDS, at as warnPackageLevelPrettier, b as preflightGitHooksSetup, bt as checkVitestVersion, ct as detectIncompatibleEslintIntegration, d as finalizeCoreMigrationForExistingVitePlus, dt as warnIncompatibleEslintIntegration, et as warnMissingTsupConfig, f as detectNodeVersionManagerFile, ft as warnLegacyEslintConfig, g as detectLegacyGitHooksMigrationCandidate, gt as RETENTION_SCAN_SKIP_DIRS, ht as LINT_STAGED_JSON_CONFIG_FILES, i as selectEditor, j as ensureVitePlusBootstrap, k as collectToolchainVersionChanges, l as rewriteStandaloneProject, lt as migrateEslintToOxlint, m as migrateSetupVpVersion, mt as detectMigrationWarnings, nt as detectPrettierProject, o as writeEditorConfigs, ot as confirmEslintMigration, p as migrateNodeVersionManagerFile, pt as warnPackageLevelEslint, q as addFrameworkShim, r as isJsonLikeFile, rt as migratePrettierToOxfmt, s as rewriteMonorepo, st as detectEslintProject, t as detectEditorConflicts, tt as confirmPrettierMigration, u as detectPendingCoreMigration, v as installGitHooks, vt as WEBDRIVERIO_PROVIDER, wt as warnMigration, x as shouldSkipStagedMigrationForHooks, xt as getCommandStartIndex, y as isViteHooksSetupComplete, yt as checkViteVersion } from "../editor-
|
|
7
|
-
import { a as hasVitePlusDependency, i as hasPackageManagerDeclaration, n as detectPackageMetadata, o as readNearestPackageJson } from "../package-
|
|
5
|
+
import { _ as engines, a as SETUP_VP_VERSION, d as VITE_PLUS_OVERRIDE_PACKAGES, f as VITE_PLUS_VERSION, m as isForceOverrideMode } from "../constants-D5f7inVN.js";
|
|
6
|
+
import { A as detectVitePlusBootstrapPending, C as removeMigratedOxlintConfigs, Ct as readPackageJsonIfExists, D as mergeViteConfigFiles, E as mergeTsdownConfigFile, F as detectYarnPnpMode, I as createCatalogDependencyResolver, J as detectFramework, K as extractOverrideParentSegments, M as sourceTreeMatches, N as usesWebdriverioProvider, O as retryPreservedOxlintConfigs, P as configureYarnNodeModulesMode, Q as migrateTsupToTsdown, R as detectWorkspace$1, S as prepareOxlintConfigs, St as isPlainRecord, T as injectLintTypeCheckDefaults, U as minimatch, W as findGitRoot, X as confirmTsupMigration, Y as hasFrameworkShim, Z as detectTsupProject, _ as hasExistingViteHooksPolicy, _t as SHELL_STATE_COMMANDS, at as warnPackageLevelPrettier, b as preflightGitHooksSetup, bt as checkVitestVersion, ct as detectIncompatibleEslintIntegration, d as finalizeCoreMigrationForExistingVitePlus, dt as warnIncompatibleEslintIntegration, et as warnMissingTsupConfig, f as detectNodeVersionManagerFile, ft as warnLegacyEslintConfig, g as detectLegacyGitHooksMigrationCandidate, gt as RETENTION_SCAN_SKIP_DIRS, ht as LINT_STAGED_JSON_CONFIG_FILES, i as selectEditor, j as ensureVitePlusBootstrap, k as collectToolchainVersionChanges, l as rewriteStandaloneProject, lt as migrateEslintToOxlint, m as migrateSetupVpVersion, mt as detectMigrationWarnings, nt as detectPrettierProject, o as writeEditorConfigs, ot as confirmEslintMigration, p as migrateNodeVersionManagerFile, pt as warnPackageLevelEslint, q as addFrameworkShim, r as isJsonLikeFile, rt as migratePrettierToOxfmt, s as rewriteMonorepo, st as detectEslintProject, t as detectEditorConflicts, tt as confirmPrettierMigration, u as detectPendingCoreMigration, v as installGitHooks, vt as WEBDRIVERIO_PROVIDER, wt as warnMigration, x as shouldSkipStagedMigrationForHooks, xt as getCommandStartIndex, y as isViteHooksSetupComplete, yt as checkViteVersion } from "../editor-BVaNnIey.js";
|
|
7
|
+
import { a as hasVitePlusDependency, i as hasPackageManagerDeclaration, n as detectPackageMetadata, o as readNearestPackageJson } from "../package-DLUCo6L_.js";
|
|
8
8
|
import { a as muted, c as warnMsg, i as log$1, o as printHeader, r as formatDuration, t as accent } from "../terminal-BcuPUy-j.js";
|
|
9
|
-
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-
|
|
9
|
+
import { a as hasBaseUrlInTsconfig, i as fixBaseUrlInTsconfig, t as confirmBaseUrlFix } from "../tsconfig-D3DiCiW6.js";
|
|
10
10
|
import { i as runCommandSilently } from "../command-rY79K5NI.js";
|
|
11
11
|
import { n as addMigrationWarning, r as createMigrationReport } from "../report-BEdpIQvC.js";
|
|
12
12
|
import { t as ROLLDOWN_COMPAT_RESULT_PREFIX } from "../protocol-CkNmY-Mr.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as VITE_PLUS_NAME } from "./constants-
|
|
1
|
+
import { u as VITE_PLUS_NAME } from "./constants-D5f7inVN.js";
|
|
2
2
|
// 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 PREFER_VITE_PLUS_IMPORTS_RULE_NAME, r as VITE_PLUS_OXLINT_PLUGIN_NAME } from "./oxlint-plugin-config-
|
|
1
|
+
import { v as exports } from "./constants-D5f7inVN.js";
|
|
2
|
+
import { n as PREFER_VITE_PLUS_IMPORTS_RULE_NAME, r as VITE_PLUS_OXLINT_PLUGIN_NAME } from "./oxlint-plugin-config-5hVqz4kj.js";
|
|
3
3
|
import { t as vitest_v5_entry_points_default } from "./vitest-v5-entry-points-NyJsFeux.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-CdkMvIiQ.js";
|
|
3
|
-
import { a as resolveViteConfig } from "./resolve-vite-config-
|
|
3
|
+
import { a as resolveViteConfig } from "./resolve-vite-config-D-JtjGRa.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";
|
|
@@ -4,7 +4,7 @@ import { i as runCommandSilently, n as getVpCommand } from "./command-rY79K5NI.j
|
|
|
4
4
|
import { a as writeJsonFile, i as readJsonFile } from "./json-kl84kDyH.js";
|
|
5
5
|
import { t as accent } from "./terminal-BcuPUy-j.js";
|
|
6
6
|
import { t as require_dist } from "./dist-Bs0SObNC.js";
|
|
7
|
-
import { f as VITE_PLUS_VERSION } from "./constants-
|
|
7
|
+
import { f as VITE_PLUS_VERSION } from "./constants-D5f7inVN.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { downloadPackageManager } from "../binding/index.js";
|
|
10
10
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as withConfigMetadataResolution } from "./define-config-
|
|
2
|
-
import { l as VITE_CONFIG_FILES } from "./constants-
|
|
1
|
+
import { d as withConfigMetadataResolution } from "./define-config-XKYhw0xH.js";
|
|
2
|
+
import { l as VITE_CONFIG_FILES } from "./constants-D5f7inVN.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { findMonorepoRoot } from "../binding/index.js";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as resolveUniversalViteConfig } from "./resolve-vite-config-
|
|
1
|
+
export { i as resolveUniversalViteConfig } from "./resolve-vite-config-D-JtjGRa.js";
|
package/dist/staged/bin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __toESM } from "../rolldown-runtime-DegdyBIC.js";
|
|
2
2
|
import { t as require_picomatch } from "../picomatch-DEUoj81q.js";
|
|
3
|
-
import { a as resolveViteConfig } from "../resolve-vite-config-
|
|
3
|
+
import { a as resolveViteConfig } from "../resolve-vite-config-D-JtjGRa.js";
|
|
4
4
|
import { t as unwrapCliParseOutcome } from "../cli-parse-aeUeFDlC.js";
|
|
5
5
|
import { i as log, n as errorMsg, o as printHeader } from "../terminal-BcuPUy-j.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
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.5.
|
|
7
|
+
"version": "1.5.1",
|
|
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.5.
|
|
17
|
+
"version": "1.5.1",
|
|
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.7",
|
|
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.18",
|
|
40
40
|
"kind": "tool",
|
|
41
41
|
"delivery": [
|
|
42
42
|
"bundled",
|
|
@@ -100,7 +100,7 @@ export const toolchain = {
|
|
|
100
100
|
"id": "vite-task",
|
|
101
101
|
"name": "vite-task",
|
|
102
102
|
"revision": "40cb9cac46bddbf8aa5ce5373df1a6a1980acc38",
|
|
103
|
-
"builtAt": "2026-11-
|
|
103
|
+
"builtAt": "2026-11-09T12:28:42Z",
|
|
104
104
|
"kind": "tool",
|
|
105
105
|
"delivery": [
|
|
106
106
|
"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.5.
|
|
7
|
+
"version": "1.5.1",
|
|
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.5.
|
|
17
|
+
"version": "1.5.1",
|
|
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.7",
|
|
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.18",
|
|
40
40
|
"kind": "tool",
|
|
41
41
|
"delivery": [
|
|
42
42
|
"bundled",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"id": "vite-task",
|
|
101
101
|
"name": "vite-task",
|
|
102
102
|
"revision": "40cb9cac46bddbf8aa5ce5373df1a6a1980acc38",
|
|
103
|
-
"builtAt": "2026-11-
|
|
103
|
+
"builtAt": "2026-11-09T12:28:42Z",
|
|
104
104
|
"kind": "tool",
|
|
105
105
|
"delivery": [
|
|
106
106
|
"compiled"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as confirm, M as isCancel, T as log, t as cancelAndExit } from "./prompts-
|
|
1
|
+
import { C as confirm, M as isCancel, T as log, t as cancelAndExit } from "./prompts-DLpJGhfK.js";
|
|
2
2
|
import { c as modify, l as parse, o as applyEdits } from "./json-kl84kDyH.js";
|
|
3
3
|
import { t as vitest_v5_entry_points_default } from "./vitest-v5-entry-points-NyJsFeux.js";
|
|
4
4
|
import { i as runCommandSilently, n as getVpCommand } from "./command-rY79K5NI.js";
|
|
5
|
-
import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-
|
|
5
|
+
import { p as createBaseUrlTsconfigFixArgs, t as BASEURL_TSCONFIG_FIX_PACKAGE } from "./constants-D5f7inVN.js";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { styleText } from "node:util";
|
|
8
8
|
import fs from "node:fs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as fixBaseUrlInTsconfig, a as hasBaseUrlInTsconfig } from "./tsconfig-
|
|
1
|
+
export { i as fixBaseUrlInTsconfig, a as hasBaseUrlInTsconfig } from "./tsconfig-D3DiCiW6.js";
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { y as version } from "./constants-
|
|
1
|
+
import { y as version } from "./constants-D5f7inVN.js";
|
|
2
2
|
import { t as renderCliDoc } from "./help-B03t_iQ4.js";
|
|
3
|
-
import { a as hasVitePlusDependency, n as detectPackageMetadata } from "./package-
|
|
3
|
+
import { a as hasVitePlusDependency, n as detectPackageMetadata } from "./package-DLUCo6L_.js";
|
|
4
4
|
import { i as log, o as printHeader, t as accent } from "./terminal-BcuPUy-j.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/versions.js
CHANGED
package/docs/guide/global-cli.md
CHANGED
|
@@ -485,7 +485,7 @@ To see which toolchain is selected for your current project, run `vp toolchain`.
|
|
|
485
485
|
## Next Steps
|
|
486
486
|
|
|
487
487
|
- [Environment](/guide/env) covers Node.js and package-manager selection, pinning, shims, and managed installations.
|
|
488
|
-
- [Package Management](/guide/package-management) covers pnpm, npm, Yarn, and Bun workflows.
|
|
488
|
+
- [Package Management](/guide/package-management/) covers pnpm, npm, Yarn, and Bun workflows.
|
|
489
489
|
- [Run](/guide/run) covers package scripts and cached workspace tasks.
|
|
490
490
|
- [Upgrading Vite+](/guide/upgrade) explains global CLI upgrades. See [Update Vite+](/guide/upgrade-project) for project-local upgrades.
|
|
491
491
|
- [Removing Vite+](/guide/implode) removes the global binary and its managed data.
|
package/docs/guide/index.md
CHANGED
|
@@ -100,9 +100,9 @@ Vite+ covers the full frontend development cycle, from starting a project throug
|
|
|
100
100
|
|
|
101
101
|
- [`vp create`](/guide/create) creates new apps, packages, and monorepos.
|
|
102
102
|
- [`vp migrate`](/guide/migrate) moves existing projects onto Vite+.
|
|
103
|
-
- [`vp install`](/guide/package-management) installs dependencies with the right package manager.
|
|
104
|
-
- [`vp add`](/guide/package-management), [`vp remove`](/guide/package-management), [`vp update`](/guide/package-management), [`vp dedupe`](/guide/package-management), [`vp outdated`](/guide/package-management), [`vp list`](/guide/package-management), [`vp why`](/guide/package-management), and [`vp info`](/guide/package-management) cover the rest of the package-management workflow.
|
|
105
|
-
- [`vp link`](/guide/package-management), [`vp unlink`](/guide/package-management), [`vp rebuild`](/guide/package-management), and [`vp pm <command>`](/guide/package-management) provide lower-level package-manager operations.
|
|
103
|
+
- [`vp install`](/guide/package-management/install) installs dependencies with the right package manager.
|
|
104
|
+
- [`vp add`](/guide/package-management/add), [`vp remove`](/guide/package-management/remove), [`vp update`](/guide/package-management/update), [`vp dedupe`](/guide/package-management/dedupe), [`vp outdated`](/guide/package-management/outdated), [`vp list`](/guide/package-management/list), [`vp why`](/guide/package-management/why), and [`vp info`](/guide/package-management/info) cover the rest of the package-management workflow.
|
|
105
|
+
- [`vp link`](/guide/package-management/link), [`vp unlink`](/guide/package-management/unlink), [`vp rebuild`](/guide/package-management/rebuild), and [`vp pm <command>`](/guide/package-management/) provide lower-level package-manager operations.
|
|
106
106
|
|
|
107
107
|
### Project Toolchain
|
|
108
108
|
|
|
@@ -115,7 +115,7 @@ Vite+ covers the full frontend development cycle, from starting a project throug
|
|
|
115
115
|
- [`vp toolchain`](/guide/upgrade#show-the-toolchain) shows the active project toolchain; use `--global` to inspect the global installation instead.
|
|
116
116
|
- [`vp run`](/guide/run) runs tasks across workspaces with caching.
|
|
117
117
|
- [`vp cache clean`](/guide/cache) clears task cache entries.
|
|
118
|
-
- [`vp exec`](/guide/vpx) runs local project binaries, while [`vp dlx`](/guide/
|
|
118
|
+
- [`vp exec`](/guide/vpx) runs local project binaries, while [`vp dlx`](/guide/package-management/dlx) and [`vpx`](/guide/vpx) download and run package binaries.
|
|
119
119
|
- [`vp config`](/guide/commit-hooks) installs the Git hook dispatcher and configures agent integration.
|
|
120
120
|
- [`vp hooks`](/guide/commit-hooks) manages the Git hook dispatcher, and [`vp staged`](/guide/commit-hooks) runs checks on staged files.
|
|
121
121
|
- [Monorepo Guide](/guide/monorepo) covers multi-package project structure and commands.
|
package/docs/guide/local-cli.md
CHANGED
|
@@ -148,7 +148,7 @@ The project-local CLI can be used independently for:
|
|
|
148
148
|
- [`vp pack`](/guide/pack) with tsdown
|
|
149
149
|
- [`vp toolchain`](/guide/upgrade#show-the-toolchain) for inspecting the versions bundled with the project-local package
|
|
150
150
|
- [`vp run`](/guide/run) and task caching across workspaces
|
|
151
|
-
- [package-manager commands](/guide/package-management) using the Node.js runtime already active in your shell
|
|
151
|
+
- [package-manager commands](/guide/package-management/) using the Node.js runtime already active in your shell
|
|
152
152
|
- [`vp create`](/guide/create), [`vp migrate`](/guide/migrate), and project configuration commands
|
|
153
153
|
|
|
154
154
|
The local package cannot manage the machine-level Vite+ installation. The `vp env`, `vp upgrade`, and `vp implode` commands require the [global CLI](/guide/global-cli). Upgrade or remove a local-only installation through your package manager.
|
package/docs/guide/migrate.md
CHANGED
|
@@ -95,21 +95,21 @@ Upgrade the [global CLI](./upgrade.md#global-vp) to your target 1.0 release, the
|
|
|
95
95
|
|
|
96
96
|
### Without the Global CLI
|
|
97
97
|
|
|
98
|
-
Use an existing Node.js runtime that satisfies `^22.18.0 || ^24.11.0 || >=26.0.0`. Run the target migrator through your package manager without adding it to the project first. For the `1.5.
|
|
98
|
+
Use an existing Node.js runtime that satisfies `^22.18.0 || ^24.11.0 || >=26.0.0`. Run the target migrator through your package manager without adding it to the project first. For the `1.5.1` release:
|
|
99
99
|
|
|
100
100
|
::: code-group
|
|
101
101
|
|
|
102
102
|
```bash [pnpm]
|
|
103
|
-
pnpm dlx --package=vite-plus@1.5.
|
|
103
|
+
pnpm dlx --package=vite-plus@1.5.1 vp migrate --no-interactive
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
```bash [npm]
|
|
107
|
-
npx --package=vite-plus@1.5.
|
|
107
|
+
npx --package=vite-plus@1.5.1 vp migrate --no-interactive
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
:::
|
|
111
111
|
|
|
112
|
-
Replace `1.5.
|
|
112
|
+
Replace `1.5.1` with your target release. For a preview, use the version from the PR and pass `--registry=https://registry-bridge.viteplus.dev` to `pnpm` or `npx` before the `vp` command. Keep the version in `--package` explicit so you run the target migrator rather than the old local CLI.
|
|
113
113
|
|
|
114
114
|
After migration, finish dependency installation and validate with the updated local CLI:
|
|
115
115
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# vp add
|
|
2
|
+
|
|
3
|
+
Add packages to the project and update its manifest and lockfile.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp add react
|
|
7
|
+
vp add -D typescript
|
|
8
|
+
vp add --save-peer react
|
|
9
|
+
vp add --filter web react
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
Choose one dependency target at a time. Peer dependencies follow the native manager's behavior, including whether it also records a development dependency.
|
|
15
|
+
|
|
16
|
+
| Option | Description | Notes |
|
|
17
|
+
| ---------------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------ |
|
|
18
|
+
| `-P, --save-prod` | Save to dependencies, the default target. | Choose one dependency target. |
|
|
19
|
+
| `-D, --save-dev` | Save to devDependencies. | Choose one dependency target. |
|
|
20
|
+
| `--save-peer` | Request the manager's peer-dependency save behavior. | Choose one dependency target. |
|
|
21
|
+
| `-O, --save-optional` | Save to optionalDependencies. | Choose one dependency target. |
|
|
22
|
+
| `-E, --save-exact` | Save an exact dependency version. | |
|
|
23
|
+
| `--save-catalog-name <name>` | Save the dependency to a named catalog. | |
|
|
24
|
+
| `--save-catalog` | Save the dependency to the default catalog. | |
|
|
25
|
+
| `--allow-build <names>` | Allow the named packages to run postinstall scripts. | |
|
|
26
|
+
| `--ignore-scripts` | Do not run lifecycle scripts. | |
|
|
27
|
+
| `--no-optional` | Do not install optionalDependencies. | Cannot be combined with --global. |
|
|
28
|
+
| `--frozen-lockfile` | Prevent lockfile changes. | Cannot be combined with --global. Overrides an earlier `--no-frozen-lockfile`. |
|
|
29
|
+
| `--no-frozen-lockfile` | Explicitly allow lockfile updates. | Cannot be combined with --global. Overrides an earlier `--frozen-lockfile`. |
|
|
30
|
+
| `--lockfile-only` | Update the lockfile without a full install. | Cannot be combined with --global. |
|
|
31
|
+
| `--prefer-offline` | Use cached packages when available. | Cannot be combined with --global. |
|
|
32
|
+
| `--offline` | Only use packages already in cache. | Cannot be combined with --global. |
|
|
33
|
+
| `-f, --force` | Request a forced reinstall. | Cannot be combined with --global. |
|
|
34
|
+
| `--no-lockfile` | Skip reading or generating a lockfile. | Cannot be combined with --global. |
|
|
35
|
+
| `--shamefully-hoist` | Create a flat `node_modules` layout. | Cannot be combined with --global. |
|
|
36
|
+
| `--silent` | Suppress Vite+ output and request native quiet output. | Cannot be combined with --global. |
|
|
37
|
+
| `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
|
|
38
|
+
| `-w, --workspace-root` | Add to workspace root. | |
|
|
39
|
+
| `--workspace` | Require the dependency to exist in the workspace. | |
|
|
40
|
+
| `-g, --global` | Install globally. | Requires the global CLI. Uses the [global package store](./global-packages). |
|
|
41
|
+
| `--node <version>` | Node.js version to use for global installation. | Requires --global. |
|
|
42
|
+
| `--concurrency <number>` | Number of global package installs to run in parallel. | Requires --global. Must be a positive integer. |
|
|
43
|
+
|
|
44
|
+
## Compatibility
|
|
45
|
+
|
|
46
|
+
The commands below describe project operations. Global mode is described under [Options](#options).
|
|
47
|
+
|
|
48
|
+
- **npm:** `npm install`.
|
|
49
|
+
- **pnpm:** `pnpm add`.
|
|
50
|
+
- **Yarn Classic:** `yarn add`.
|
|
51
|
+
- **Yarn Modern:** `yarn add`.
|
|
52
|
+
- **Bun:** `bun add`.
|
|
53
|
+
|
|
54
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
55
|
+
| ---------------------------- | --------------- | ---------------- | ------------ | ----------- | -------------- | -------------------------------------------------- |
|
|
56
|
+
| `-P, --save-prod` | Yes | Yes | Yes | Yes | Yes | |
|
|
57
|
+
| `-D, --save-dev` | Yes | Yes | Yes | Yes | Yes | |
|
|
58
|
+
| `--save-peer` | Yes | Yes | Yes | Yes | Yes | |
|
|
59
|
+
| `-O, --save-optional` | Yes | Yes | Yes | Yes | Yes | |
|
|
60
|
+
| `-E, --save-exact` | Yes | Yes | Yes | Yes | Yes | |
|
|
61
|
+
| `--save-catalog-name <name>` | No | 10.12.0 or later | No | No | 1.4 or later | |
|
|
62
|
+
| `--save-catalog` | No | 10.12.0 or later | No | No | 1.4 or later | |
|
|
63
|
+
| `--allow-build <names>` | No | 10.4.0 or later | No | No | No | |
|
|
64
|
+
| `--ignore-scripts` | Yes | Yes | Yes | 3 or later | Yes | On Yarn Modern, lockfile-only mode takes priority. |
|
|
65
|
+
| `--no-optional` | Yes | Yes | Yes | No | Yes | |
|
|
66
|
+
| `--frozen-lockfile` | No | No | Yes | No | Yes | |
|
|
67
|
+
| `--no-frozen-lockfile` | No | No | No | No | Yes | |
|
|
68
|
+
| `--lockfile-only` | Yes | Yes | No | 3 or later | Yes | |
|
|
69
|
+
| `--prefer-offline` | Yes | Yes | Yes | No | 1.4.1 or later | |
|
|
70
|
+
| `--offline` | Yes | Yes | Yes | No | 1.4.1 or later | |
|
|
71
|
+
| `-f, --force` | Yes | Yes | Yes | No | Yes | |
|
|
72
|
+
| `--no-lockfile` | Yes | Yes | Yes | No | No | |
|
|
73
|
+
| `--shamefully-hoist` | No | Yes | No | No | No | |
|
|
74
|
+
| `--silent` | Yes | Yes | Yes | No | Yes | |
|
|
75
|
+
| `--filter <pattern>` | 7.14.0 or later | Yes | No | Yes | 1.4 or later | |
|
|
76
|
+
| `-w, --workspace-root` | 8.1.0 or later | Yes | Yes | No | No | |
|
|
77
|
+
| `--workspace` | No | Yes | No | No | No | |
|
|
78
|
+
| `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
|
|
79
|
+
| `--node <version>` | Yes | Yes | Yes | Yes | Yes | |
|
|
80
|
+
| `--concurrency <number>` | Yes | Yes | Yes | Yes | Yes | |
|
|
81
|
+
|
|
82
|
+
## Native Options
|
|
83
|
+
|
|
84
|
+
For native options, see [npm install](https://docs.npmjs.com/cli/v11/commands/npm-install), [pnpm add](https://pnpm.io/cli/add), [Yarn add](https://yarnpkg.com/cli/add), [Yarn Classic add](https://classic.yarnpkg.com/en/docs/cli/add), and [Bun add](https://bun.com/docs/pm/cli/add). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# vp pm approve-builds
|
|
2
|
+
|
|
3
|
+
Approve dependency lifecycle scripts using the selected manager's trust policy. Approve only packages whose install scripts you intend to execute.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm approve-builds
|
|
7
|
+
vp pm approve-builds sharp
|
|
8
|
+
vp pm approve-builds '!untrusted-package'
|
|
9
|
+
vp pm approve-builds --all
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Options
|
|
13
|
+
|
|
14
|
+
Supply packages to approve, or prefix a name with `!` to request denial where supported. Quote denial arguments to avoid shell history expansion.
|
|
15
|
+
|
|
16
|
+
| Option | Description | Notes |
|
|
17
|
+
| ------- | --------------------------------------------------- | ------------------------------------------------------------------ |
|
|
18
|
+
| `--all` | Approve all packages pending build-script approval. | Cannot be combined with package names, including names after `--`. |
|
|
19
|
+
|
|
20
|
+
## Compatibility
|
|
21
|
+
|
|
22
|
+
- **npm:** 11.16 or later: `npm approve-scripts`. Earlier versions warn and skip. Denials use `npm deny-scripts`.
|
|
23
|
+
- **pnpm:** 10.1 or later: `pnpm approve-builds`. Earlier versions warn and skip.
|
|
24
|
+
- **Yarn Classic:** No command. Warns and exits successfully without performing the operation.
|
|
25
|
+
- **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
|
|
26
|
+
- **Bun:** `bun pm trust` for named packages or `--all`.
|
|
27
|
+
|
|
28
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
29
|
+
| ------- | ---------------- | ---------------- | ------------ | ----------- | --- | ----- |
|
|
30
|
+
| `--all` | 11.16.0 or later | 10.32.0 or later | No | No | Yes | |
|
|
31
|
+
|
|
32
|
+
With no package names, pnpm opens its interactive flow and npm lists pending packages with `--allow-scripts-pending`. Bun does not open an interactive selector; inspect pending packages with `bun pm untrusted` and then name the packages to trust.
|
|
33
|
+
|
|
34
|
+
Denial arguments prefixed with `!` require pnpm 11 or later or npm 11.16 or later. npm requires separate approval and denial invocations. Bun skips denial entries with a warning because it uses `trustedDependencies` rather than a denylist.
|
|
35
|
+
|
|
36
|
+
For Yarn Modern, configure `enableScripts: false` and explicitly allow trusted packages through `dependenciesMeta`.
|
|
37
|
+
|
|
38
|
+
### npm Build-Script Policy
|
|
39
|
+
|
|
40
|
+
npm 12 enforces `allowScripts` in `package.json`. Dependency install scripts not covered by the policy are skipped, including implicit native builds. Approval updates policy but does not run scripts skipped earlier. Follow it with [`vp pm rebuild <package>`](./rebuild).
|
|
41
|
+
|
|
42
|
+
In npm 11.16 through 11.x, this policy is advisory. Scripts still run and npm warns about unreviewed packages.
|
|
43
|
+
|
|
44
|
+
## Native Options
|
|
45
|
+
|
|
46
|
+
For native options, see [npm approve-scripts](https://docs.npmjs.com/cli/v11/commands/npm-approve-scripts), [npm deny-scripts](https://docs.npmjs.com/cli/v11/commands/npm-deny-scripts), [pnpm approve-builds](https://pnpm.io/cli/approve-builds), [Bun pm trust](https://bun.com/docs/pm/cli/pm), and [Bun pm untrusted](https://bun.com/docs/pm/cli/pm). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
47
|
+
|
|
48
|
+
For script policy configuration, see [npm package.json](https://docs.npmjs.com/cli/v11/configuring-npm/package-json), [Yarn enableScripts](https://yarnpkg.com/configuration/yarnrc#enableScripts), and [Bun lifecycle scripts](https://bun.com/docs/pm/lifecycle).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# vp pm audit
|
|
2
|
+
|
|
3
|
+
Audit dependencies for known vulnerabilities.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm audit
|
|
7
|
+
vp pm audit --json
|
|
8
|
+
vp pm audit --production --level high
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
| Option | Description | Notes |
|
|
14
|
+
| ----------------- | -------------------------------------------- | --------------------------------- |
|
|
15
|
+
| `--fix` | Request automatic vulnerability remediation. | |
|
|
16
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
17
|
+
| `--level <level>` | Minimum vulnerability level to report. | |
|
|
18
|
+
| `--production` | Only audit production dependencies. | |
|
|
19
|
+
|
|
20
|
+
## Compatibility
|
|
21
|
+
|
|
22
|
+
- **npm:** `npm audit` or `npm audit fix`.
|
|
23
|
+
- **pnpm:** `pnpm audit`.
|
|
24
|
+
- **Yarn Classic:** `yarn audit`.
|
|
25
|
+
- **Yarn Modern:** 2.4 or later: `yarn npm audit`. Earlier versions warn and skip.
|
|
26
|
+
- **Bun:** `bun audit` or `bun audit fix`.
|
|
27
|
+
|
|
28
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
29
|
+
| ----------------- | --- | ---- | ------------ | ----------- | --------------- | ----- |
|
|
30
|
+
| `--fix` | Yes | Yes | No | No | 1.4 or later | |
|
|
31
|
+
| `--json` | Yes | Yes | Yes | Yes | Yes | |
|
|
32
|
+
| `--level <level>` | Yes | Yes | Yes | Yes | Yes | |
|
|
33
|
+
| `--production` | Yes | Yes | Yes | Yes | 1.2.21 or later | |
|
|
34
|
+
|
|
35
|
+
Vulnerability output and failure thresholds retain the native manager's semantics.
|
|
36
|
+
|
|
37
|
+
## Native Options
|
|
38
|
+
|
|
39
|
+
For native options, see [npm audit](https://docs.npmjs.com/cli/v11/commands/npm-audit), [pnpm audit](https://pnpm.io/cli/audit), [Yarn npm audit](https://yarnpkg.com/cli/npm/audit), [Yarn Classic audit](https://classic.yarnpkg.com/en/docs/cli/audit), and [Bun audit](https://bun.com/docs/pm/cli/audit). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# vp pm cache
|
|
2
|
+
|
|
3
|
+
Inspect or clean the package manager's download cache or store. This is distinct from [`vp cache`](/guide/cache), which manages task results.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm cache dir
|
|
7
|
+
vp pm cache clean
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
|
|
12
|
+
- `dir` and `path` print the cache or store location.
|
|
13
|
+
- `clean` requests native cache cleanup.
|
|
14
|
+
|
|
15
|
+
Other subcommands warn and exit successfully without running a command. There are no additional Vite+ options.
|
|
16
|
+
|
|
17
|
+
### `dir`
|
|
18
|
+
|
|
19
|
+
Print the cache or store location. Alias: `path`. There are no command-specific options.
|
|
20
|
+
|
|
21
|
+
### `clean`
|
|
22
|
+
|
|
23
|
+
Request native cache cleanup. There are no command-specific options.
|
|
24
|
+
|
|
25
|
+
## Compatibility
|
|
26
|
+
|
|
27
|
+
### `dir`
|
|
28
|
+
|
|
29
|
+
- **npm:** `npm config get cache`.
|
|
30
|
+
- **pnpm:** `pnpm store path`.
|
|
31
|
+
- **Yarn Classic:** `yarn cache dir`.
|
|
32
|
+
- **Yarn Modern:** `yarn config get cacheFolder`.
|
|
33
|
+
- **Bun:** `bun pm cache`.
|
|
34
|
+
|
|
35
|
+
### `clean`
|
|
36
|
+
|
|
37
|
+
- **npm:** `npm cache clean`.
|
|
38
|
+
- **pnpm:** `pnpm store prune`. Prunes the store rather than deleting all content.
|
|
39
|
+
- **Yarn Classic:** `yarn cache clean`.
|
|
40
|
+
- **Yarn Modern:** `yarn cache clean`.
|
|
41
|
+
- **Bun:** `bun pm cache rm`.
|
|
42
|
+
|
|
43
|
+
npm normally requires an explicit native `--force` for cache deletion:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
vp pm cache clean -- --force
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
That example is npm-specific. Vite+ does not expose a separate `vp pm store` command.
|
|
50
|
+
|
|
51
|
+
## Native Options
|
|
52
|
+
|
|
53
|
+
For native options, see [npm config](https://docs.npmjs.com/cli/v11/commands/npm-config), [npm cache](https://docs.npmjs.com/cli/v11/commands/npm-cache), [pnpm store](https://pnpm.io/cli/store), [Yarn config get](https://yarnpkg.com/cli/config/get), [Yarn cache clean](https://yarnpkg.com/cli/cache/clean), [Yarn Classic cache](https://classic.yarnpkg.com/en/docs/cli/cache), and [Bun pm cache](https://bun.com/docs/pm/cli/pm). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# vp pm ci
|
|
2
|
+
|
|
3
|
+
Install dependencies with a frozen lockfile for CI.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm ci
|
|
7
|
+
vp pm ci -- --ignore-scripts
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
|
|
12
|
+
This command has no additional Vite+ options. For translated Vite+ options, use [`vp install --frozen-lockfile`](./install).
|
|
13
|
+
|
|
14
|
+
There are no command-specific options.
|
|
15
|
+
|
|
16
|
+
## Compatibility
|
|
17
|
+
|
|
18
|
+
- **npm:** `npm ci`.
|
|
19
|
+
- **pnpm:** `pnpm install --frozen-lockfile`.
|
|
20
|
+
- **Yarn Classic:** `yarn install --frozen-lockfile`.
|
|
21
|
+
- **Yarn Modern:** `yarn install --immutable`.
|
|
22
|
+
- **Bun:** `bun install --frozen-lockfile`.
|
|
23
|
+
|
|
24
|
+
The native manager determines installation cleanup and lockfile validation. This command does not make all managers behave like `npm ci` beyond the frozen-lockfile request.
|
|
25
|
+
|
|
26
|
+
## Native Options
|
|
27
|
+
|
|
28
|
+
For native options, see [npm ci](https://docs.npmjs.com/cli/v11/commands/npm-ci), [pnpm install](https://pnpm.io/cli/install), [Yarn install](https://yarnpkg.com/cli/install), [Yarn Classic install](https://classic.yarnpkg.com/en/docs/cli/install), and [Bun install](https://bun.com/docs/pm/cli/install). To pass these options through Vite+, see [Native Arguments](./#native-arguments). For CI setup, see the [CI guide](/guide/ci).
|