vite-plus 1.5.0 → 1.6.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/binding/index.cjs +117 -55
- package/binding/index.d.cts +9 -0
- package/dist/{agent-DkQD3xqe.js → agent-CTG3B-ec.js} +2 -2
- package/dist/bin.js +36 -7
- package/dist/{comparison-CmVirWIW-UlEf2maz.js → comparison-CmVirWIW-Z8p6CfWL.js} +4 -1
- package/dist/config/bin.js +2 -2
- package/dist/constants-DXqV1vWL.js +77 -0
- package/dist/create/bin.js +30 -35
- package/dist/{define-config-wR57OZG_.js → define-config-CeYkQCqG.js} +1 -1
- package/dist/{define-config-CwtQqYC1.cjs → define-config-jt2Hyhp2.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-aOy1T15H.js → editor-C0U0Ymqk.js} +213 -83
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +9 -8
- package/dist/{oxlint-plugin-config-CHsI_zKo.js → oxlint-plugin-config-DvBRM_Se.js} +1 -1
- package/dist/oxlint-plugin.js +2 -2
- package/dist/pack-bin.js +1 -1
- package/dist/{package-DfFo6-E-.js → package-CK48ZXBV.js} +1 -1
- package/dist/{constants-D2P2aVKb.js → package-Cc9gI1u1.js} +2 -77
- package/dist/{package-overrides-Ci8GXouY.js → package-overrides-nw4zcITi.js} +1 -1
- package/dist/{prompts-C7DI63WP.js → prompts-JkuWOV60.js} +9 -5
- package/dist/{resolve-vite-config-33bzSaeT.js → resolve-vite-config-CfUvxuCo.js} +1 -1
- package/dist/{resolve-vite-config-Cx3cnVVI.js → resolve-vite-config-x5QVnaf4.js} +2 -2
- package/dist/staged/bin.js +1 -1
- package/dist/sync-versions/bin.js +1 -1
- package/dist/toolchain.js +9 -9
- package/dist/toolchain.json +9 -9
- package/dist/{tsconfig-BE3Wj9OX.js → tsconfig-CZlh956U.js} +1 -1
- package/dist/{tsconfig-shNmmCE_.js → tsconfig-DUR3fhIX.js} +2 -2
- package/dist/user-agent-CpEaSTwI.js +6 -0
- package/dist/version.js +3 -2
- package/dist/versions.js +5 -5
- package/dist/vpx-bin.js +2 -0
- package/docs/config/run.md +8 -7
- package/docs/guide/automatic-data-tracking.md +138 -0
- package/docs/guide/check.md +13 -0
- package/docs/guide/global-cli.md +13 -3
- package/docs/guide/index.md +4 -4
- package/docs/guide/local-cli.md +1 -1
- package/docs/guide/migrate-rules.md +3 -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/run.md +22 -0
- package/docs/guide/vpx.md +1 -1
- package/package.json +18 -18
- package/docs/guide/package-management.md +0 -269
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.
|
|
@@ -398,7 +398,9 @@ Migration converts the Volta `volta.node` pin to `.node-version`, because Vite+
|
|
|
398
398
|
|
|
399
399
|
### Bun
|
|
400
400
|
|
|
401
|
-
- Bun catalogs only resolve inside a workspace
|
|
401
|
+
- Bun catalogs only resolve inside a workspace, which is a root `package.json` with a `workspaces` field. An empty `workspaces` field also counts. In a bun workspace, existing top-level or workspace catalog locations and named catalog references are preserved. A standalone bun project without `workspaces` keeps concrete specs and gets no catalog field, because `bun install` cannot resolve `catalog:` outside a workspace.
|
|
402
|
+
- Bun before 1.2.21 reads only catalogs under `workspaces`. On those versions, migration uses catalogs only when the project already has one under `workspaces`, and keeps concrete specs otherwise.
|
|
403
|
+
- When an existing named catalog already owns `vite-plus`, `vite`, or `vitest`, migration adds missing toolchain entries to that catalog instead of creating a default catalog beside it.
|
|
402
404
|
- The core alias is mirrored as a direct `vite` dependency so Bun sees the peer provider before applying overrides.
|
|
403
405
|
|
|
404
406
|
## After the Migration
|
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.
|
|
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.6.0` release:
|
|
99
99
|
|
|
100
100
|
::: code-group
|
|
101
101
|
|
|
102
102
|
```bash [pnpm]
|
|
103
|
-
pnpm dlx --package=vite-plus@1.
|
|
103
|
+
pnpm dlx --package=vite-plus@1.6.0 vp migrate --no-interactive
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
```bash [npm]
|
|
107
|
-
npx --package=vite-plus@1.
|
|
107
|
+
npx --package=vite-plus@1.6.0 vp migrate --no-interactive
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
:::
|
|
111
111
|
|
|
112
|
-
Replace `1.
|
|
112
|
+
Replace `1.6.0` 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).
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# vp pm config
|
|
2
|
+
|
|
3
|
+
Read and write package-manager configuration. Alias: `vp pm c`. This is distinct from `vp config`, which configures project tooling.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm config list
|
|
7
|
+
vp pm config get registry
|
|
8
|
+
vp pm config set registry https://registry.npmjs.org --location project
|
|
9
|
+
vp pm config delete registry --location project
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Configuration keys are manager-specific. The registry examples use npm or pnpm keys, not Yarn 2 configuration keys.
|
|
13
|
+
|
|
14
|
+
## Options
|
|
15
|
+
|
|
16
|
+
- `list` displays configuration.
|
|
17
|
+
- `get <key>` reads a value.
|
|
18
|
+
- `set <key> <value>` writes a value.
|
|
19
|
+
- `delete <key>` removes a value.
|
|
20
|
+
|
|
21
|
+
Here `--global` selects configuration scope, not Vite+'s global package store.
|
|
22
|
+
|
|
23
|
+
These subcommands do not accept additional native arguments after `--`.
|
|
24
|
+
|
|
25
|
+
### `list`
|
|
26
|
+
|
|
27
|
+
| Option | Description | Notes |
|
|
28
|
+
| ------------------------------------ | ------------------------------- | --------------------------------- |
|
|
29
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
30
|
+
| `-g, --global` | Use global config. | Overrides `--location`. |
|
|
31
|
+
| `--location <project\|user\|global>` | Choose the configuration scope. | |
|
|
32
|
+
|
|
33
|
+
### `get`
|
|
34
|
+
|
|
35
|
+
| Option | Description | Notes |
|
|
36
|
+
| ------------------------------------ | ------------------------------- | --------------------------------- |
|
|
37
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
38
|
+
| `-g, --global` | Use global config. | Overrides `--location`. |
|
|
39
|
+
| `--location <project\|user\|global>` | Choose the configuration scope. | |
|
|
40
|
+
|
|
41
|
+
### `set`
|
|
42
|
+
|
|
43
|
+
| Option | Description | Notes |
|
|
44
|
+
| ------------------------------------ | ------------------------------- | --------------------------------- |
|
|
45
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
46
|
+
| `-g, --global` | Use global config. | Overrides `--location`. |
|
|
47
|
+
| `--location <project\|user\|global>` | Choose the configuration scope. | |
|
|
48
|
+
|
|
49
|
+
### `delete`
|
|
50
|
+
|
|
51
|
+
| Option | Description | Notes |
|
|
52
|
+
| ------------------------------------ | ------------------------------- | ----------------------- |
|
|
53
|
+
| `-g, --global` | Use global config. | Overrides `--location`. |
|
|
54
|
+
| `--location <project\|user\|global>` | Choose the configuration scope. | |
|
|
55
|
+
|
|
56
|
+
## Compatibility
|
|
57
|
+
|
|
58
|
+
### `list`
|
|
59
|
+
|
|
60
|
+
- **npm:** `npm config list`.
|
|
61
|
+
- **pnpm:** `pnpm config list`.
|
|
62
|
+
- **Yarn Classic:** `yarn config list`.
|
|
63
|
+
- **Yarn Modern:** `yarn config`.
|
|
64
|
+
- **Bun:** Fallback: `npm config list`. Uses npm configuration, not `bunfig.toml`.
|
|
65
|
+
|
|
66
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
67
|
+
| ------------------------------------ | --------------------- | --------------------- | ------------ | --------------------- | --------------------- | ---------------------------------- |
|
|
68
|
+
| `--json` | Yes | Yes | Yes | Yes | Yes | |
|
|
69
|
+
| `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
|
|
70
|
+
| `--location <project\|user\|global>` | project, user, global | project, user, global | user, global | project, user, global | project, user, global | Reads retain merged configuration. |
|
|
71
|
+
|
|
72
|
+
### `get`
|
|
73
|
+
|
|
74
|
+
- **npm:** `npm config get`.
|
|
75
|
+
- **pnpm:** `pnpm config get`.
|
|
76
|
+
- **Yarn Classic:** `yarn config get`.
|
|
77
|
+
- **Yarn Modern:** `yarn config get`.
|
|
78
|
+
- **Bun:** Fallback: `npm config get`. Uses npm configuration, not `bunfig.toml`.
|
|
79
|
+
|
|
80
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
81
|
+
| ------------------------------------ | --------------------- | --------------------- | ------------ | --------------------- | --------------------- | ---------------------------------- |
|
|
82
|
+
| `--json` | Yes | Yes | Yes | Yes | Yes | |
|
|
83
|
+
| `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
|
|
84
|
+
| `--location <project\|user\|global>` | project, user, global | project, user, global | user, global | project, user, global | project, user, global | Reads retain merged configuration. |
|
|
85
|
+
|
|
86
|
+
### `set`
|
|
87
|
+
|
|
88
|
+
- **npm:** `npm config set`.
|
|
89
|
+
- **pnpm:** `pnpm config set`.
|
|
90
|
+
- **Yarn Classic:** `yarn config set`.
|
|
91
|
+
- **Yarn Modern:** `yarn config set`.
|
|
92
|
+
- **Bun:** Fallback: `npm config set`. Uses npm configuration, not `bunfig.toml`.
|
|
93
|
+
|
|
94
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
95
|
+
| ------------------------------------ | --------------------- | --------------------- | ------------ | --------------------- | --------------------- | ----- |
|
|
96
|
+
| `--json` | Yes | Yes | Yes | Yes | Yes | |
|
|
97
|
+
| `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
|
|
98
|
+
| `--location <project\|user\|global>` | project, user, global | project, user, global | user, global | project, user, global | project, user, global | |
|
|
99
|
+
|
|
100
|
+
### `delete`
|
|
101
|
+
|
|
102
|
+
- **npm:** `npm config delete`.
|
|
103
|
+
- **pnpm:** `pnpm config delete`.
|
|
104
|
+
- **Yarn Classic:** `yarn config delete`.
|
|
105
|
+
- **Yarn Modern:** `yarn config unset`.
|
|
106
|
+
- **Bun:** Fallback: `npm config delete`. Uses npm configuration, not `bunfig.toml`.
|
|
107
|
+
|
|
108
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
109
|
+
| ------------------------------------ | --------------------- | --------------------- | ------------ | --------------------- | --------------------- | ----- |
|
|
110
|
+
| `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
|
|
111
|
+
| `--location <project\|user\|global>` | project, user, global | project, user, global | user, global | project, user, global | project, user, global | |
|
|
112
|
+
|
|
113
|
+
Yarn Classic user writes use native defaults.
|
|
114
|
+
|
|
115
|
+
## Native Options
|
|
116
|
+
|
|
117
|
+
For native options, see [npm config](https://docs.npmjs.com/cli/v11/commands/npm-config), [pnpm config](https://pnpm.io/cli/config), [Yarn config](https://yarnpkg.com/cli/config), [Yarn config get](https://yarnpkg.com/cli/config/get), [Yarn config set](https://yarnpkg.com/cli/config/set), [Yarn config unset](https://yarnpkg.com/cli/config/unset), and [Yarn Classic config](https://classic.yarnpkg.com/en/docs/cli/config). Native options outside this interface require the native command.
|
|
118
|
+
|
|
119
|
+
For `bunfig.toml` settings, see [Bun configuration](https://bun.com/docs/runtime/bunfig).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# vp dedupe
|
|
2
|
+
|
|
3
|
+
Reduce duplicate dependency entries using the selected package manager.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp dedupe
|
|
7
|
+
vp dedupe --check
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
|
|
12
|
+
| Option | Description | Notes |
|
|
13
|
+
| --------- | ------------------------------------------ | ----- |
|
|
14
|
+
| `--check` | Check if deduplication would make changes. | |
|
|
15
|
+
|
|
16
|
+
## Compatibility
|
|
17
|
+
|
|
18
|
+
- **npm:** `npm dedupe`.
|
|
19
|
+
- **pnpm:** `pnpm dedupe`.
|
|
20
|
+
- **Yarn Classic:** Fallback: `yarn install`.
|
|
21
|
+
- **Yarn Modern:** `yarn dedupe`.
|
|
22
|
+
- **Bun:** 1.4 or later: `bun dedupe`. Earlier versions use `bun install` as a fallback.
|
|
23
|
+
|
|
24
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
25
|
+
| --------- | --- | ---- | ------------ | ----------- | ------------ | ----- |
|
|
26
|
+
| `--check` | Yes | Yes | No | Yes | 1.4 or later | |
|
|
27
|
+
|
|
28
|
+
A fallback install is not a read-only check. Unsupported `--check` requests fail before the fallback runs.
|
|
29
|
+
|
|
30
|
+
## Native Options
|
|
31
|
+
|
|
32
|
+
For native options, see [npm dedupe](https://docs.npmjs.com/cli/v11/commands/npm-dedupe), [pnpm dedupe](https://pnpm.io/cli/dedupe), [Yarn dedupe](https://yarnpkg.com/cli/dedupe), [Yarn Classic install](https://classic.yarnpkg.com/en/docs/cli/install), and [Bun dedupe](https://bun.com/docs/pm/cli/dedupe). For the Bun fallback, see [Bun install](https://bun.com/docs/pm/cli/install). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# vp pm deprecate
|
|
2
|
+
|
|
3
|
+
Set a deprecation message for a published package version or version range.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm deprecate 'my-package@<2.0.0' 'Upgrade to version 2 or later'
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Options
|
|
10
|
+
|
|
11
|
+
A package specification and a message are required.
|
|
12
|
+
|
|
13
|
+
Deprecation warns consumers; it does not unpublish the package.
|
|
14
|
+
|
|
15
|
+
| Option | Description | Notes |
|
|
16
|
+
| ------------------ | --------------------------- | ----- |
|
|
17
|
+
| `--otp <otp>` | Supply a one-time password. | |
|
|
18
|
+
| `--registry <url>` | Select the registry. | |
|
|
19
|
+
|
|
20
|
+
## Compatibility
|
|
21
|
+
|
|
22
|
+
- **npm:** `npm deprecate`.
|
|
23
|
+
- **pnpm:** 11 or later: `pnpm deprecate`. Earlier versions use `npm deprecate` as a fallback.
|
|
24
|
+
- **Yarn Classic:** Fallback: `npm deprecate`.
|
|
25
|
+
- **Yarn Modern:** Fallback: `npm deprecate`.
|
|
26
|
+
- **Bun:** Fallback: `npm deprecate`.
|
|
27
|
+
|
|
28
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
29
|
+
| ------------------ | --- | ---- | ------------ | ----------- | --- | ----- |
|
|
30
|
+
| `--otp <otp>` | Yes | Yes | Yes | Yes | Yes | |
|
|
31
|
+
| `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
|
|
32
|
+
|
|
33
|
+
Bun emits a fallback warning. Registry configuration and authentication follow the command that runs.
|
|
34
|
+
|
|
35
|
+
An empty message is forwarded unchanged. Native pnpm rejects it; Vite+ does not translate it to `undeprecate`.
|
|
36
|
+
|
|
37
|
+
## Native Options
|
|
38
|
+
|
|
39
|
+
For native options, see [npm deprecate](https://docs.npmjs.com/cli/v11/commands/npm-deprecate) and [pnpm deprecate](https://pnpm.io/cli/deprecate). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# vp pm dist-tag
|
|
2
|
+
|
|
3
|
+
Manage the tags that map package names such as `my-package@next` to a published version.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm dist-tag list my-package
|
|
7
|
+
vp pm dist-tag add my-package@2.0.0 next
|
|
8
|
+
vp pm dist-tag rm my-package next
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
- `list [package]` lists tags. Alias: `ls`.
|
|
14
|
+
- `add <package@version> <tag>` assigns a tag.
|
|
15
|
+
- `rm <package> <tag>` removes a tag.
|
|
16
|
+
|
|
17
|
+
There are no additional Vite+ options or native pass-through arguments on these subcommands. Changing a tag changes what future installs of that tag resolve to; it does not delete the published version.
|
|
18
|
+
|
|
19
|
+
### `list`
|
|
20
|
+
|
|
21
|
+
There are no command-specific options.
|
|
22
|
+
|
|
23
|
+
### `add`
|
|
24
|
+
|
|
25
|
+
There are no command-specific options.
|
|
26
|
+
|
|
27
|
+
### `rm`
|
|
28
|
+
|
|
29
|
+
There are no command-specific options.
|
|
30
|
+
|
|
31
|
+
## Compatibility
|
|
32
|
+
|
|
33
|
+
### `list`
|
|
34
|
+
|
|
35
|
+
- **npm:** `npm dist-tag list`.
|
|
36
|
+
- **pnpm:** 11 or later: `pnpm dist-tag list`. Earlier versions use `npm dist-tag list` as a fallback.
|
|
37
|
+
- **Yarn Classic:** `yarn tag list`.
|
|
38
|
+
- **Yarn Modern:** `yarn npm tag list`.
|
|
39
|
+
- **Bun:** Fallback: `npm dist-tag list`.
|
|
40
|
+
|
|
41
|
+
### `add`
|
|
42
|
+
|
|
43
|
+
- **npm:** `npm dist-tag add`.
|
|
44
|
+
- **pnpm:** 11 or later: `pnpm dist-tag add`. Earlier versions use `npm dist-tag add` as a fallback.
|
|
45
|
+
- **Yarn Classic:** `yarn tag add`.
|
|
46
|
+
- **Yarn Modern:** `yarn npm tag add`.
|
|
47
|
+
- **Bun:** Fallback: `npm dist-tag add`.
|
|
48
|
+
|
|
49
|
+
### `rm`
|
|
50
|
+
|
|
51
|
+
- **npm:** `npm dist-tag rm`.
|
|
52
|
+
- **pnpm:** 11 or later: `pnpm dist-tag rm`. Earlier versions use `npm dist-tag rm` as a fallback.
|
|
53
|
+
- **Yarn Classic:** `yarn tag rm`.
|
|
54
|
+
- **Yarn Modern:** `yarn npm tag rm`.
|
|
55
|
+
- **Bun:** Fallback: `npm dist-tag rm`.
|
|
56
|
+
|
|
57
|
+
On the native pnpm path, Vite+ does not fill in a missing package for `list`, resolve version ranges for `add`, or bypass restrictions on removing `latest`. pnpm validates these requests and returns its own errors.
|
|
58
|
+
|
|
59
|
+
## Native Options
|
|
60
|
+
|
|
61
|
+
For native options, see [npm dist-tag](https://docs.npmjs.com/cli/v11/commands/npm-dist-tag), [pnpm dist-tag](https://pnpm.io/cli/dist-tag), [Yarn npm tag list](https://yarnpkg.com/cli/npm/tag/list), [Yarn npm tag add](https://yarnpkg.com/cli/npm/tag/add), [Yarn npm tag remove](https://yarnpkg.com/cli/npm/tag/remove), and [Yarn Classic tag](https://classic.yarnpkg.com/en/docs/cli/tag). The upstream commands may expose additional options not accepted by this Vite+ interface.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# vp dlx
|
|
2
|
+
|
|
3
|
+
Download and run a package without adding it to the project's dependencies.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp dlx create-vite my-app
|
|
7
|
+
vp dlx --silent create-vite my-app
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
|
|
12
|
+
Put Vite+ options before the package or command:
|
|
13
|
+
|
|
14
|
+
Arguments after the command are passed to the executed program, not parsed as Vite+ options. Shell mode interprets shell syntax; use it only with trusted command strings.
|
|
15
|
+
|
|
16
|
+
| Option | Description | Notes |
|
|
17
|
+
| ---------------------- | ---------------------------------------------------------------------- | ---------------- |
|
|
18
|
+
| `-p, --package <name>` | Make the selected package available to the executed command. | Can be repeated. |
|
|
19
|
+
| `-c, --shell-mode` | Execute within a shell environment. | |
|
|
20
|
+
| `-s, --silent` | Suppress Vite+ output and request native quiet output where available. | |
|
|
21
|
+
|
|
22
|
+
## Compatibility
|
|
23
|
+
|
|
24
|
+
- **npm:** `npm exec --yes`.
|
|
25
|
+
- **pnpm:** `pnpm dlx`.
|
|
26
|
+
- **Yarn Classic:** Fallback: `npx --yes`.
|
|
27
|
+
- **Yarn Modern:** `yarn dlx`.
|
|
28
|
+
- **Bun:** `bun x`.
|
|
29
|
+
|
|
30
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
31
|
+
| ---------------------- | --- | --------------- | ------------ | ----------- | --- | --------------------------------- |
|
|
32
|
+
| `-p, --package <name>` | Yes | Yes | Yes | Yes | Yes | |
|
|
33
|
+
| `-c, --shell-mode` | Yes | 7.21.0 or later | Yes | No | No | |
|
|
34
|
+
| `-s, --silent` | Yes | Yes | Yes | Yes | Yes | Bun only suppresses Vite+ output. |
|
|
35
|
+
|
|
36
|
+
For installed project binaries, use `vp exec` or `vpx` instead. See [Running Binaries](/guide/vpx) for those workflows.
|
|
37
|
+
|
|
38
|
+
## Native Options
|
|
39
|
+
|
|
40
|
+
For native options, see [npm exec](https://docs.npmjs.com/cli/v11/commands/npm-exec), [pnpm dlx](https://pnpm.io/cli/dlx), [Yarn dlx](https://yarnpkg.com/cli/dlx), and [Bun x](https://bun.com/docs/pm/bunx). For the Yarn Classic fallback, see [npx](https://docs.npmjs.com/cli/v11/commands/npx). For argument handling, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# vp pm fund
|
|
2
|
+
|
|
3
|
+
Show funding information for installed dependencies.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm fund
|
|
7
|
+
vp pm fund --json
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
|
|
12
|
+
| Option | Description | Notes |
|
|
13
|
+
| -------- | --------------------------- | --------------------------------- |
|
|
14
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
15
|
+
|
|
16
|
+
## Compatibility
|
|
17
|
+
|
|
18
|
+
- **npm:** `npm fund`.
|
|
19
|
+
- **pnpm:** Fallback: `npm fund`.
|
|
20
|
+
- **Yarn Classic:** Fallback: `npm fund`.
|
|
21
|
+
- **Yarn Modern:** Fallback: `npm fund`.
|
|
22
|
+
- **Bun:** Fallback: `npm fund`.
|
|
23
|
+
|
|
24
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
25
|
+
| -------- | --- | ---- | ------------ | ----------- | --- | ----- |
|
|
26
|
+
| `--json` | Yes | Yes | Yes | Yes | Yes | |
|
|
27
|
+
|
|
28
|
+
Bun emits a fallback warning. Results follow npm's view of the installed dependencies.
|
|
29
|
+
|
|
30
|
+
## Native Options
|
|
31
|
+
|
|
32
|
+
For native options, see [npm fund](https://docs.npmjs.com/cli/v11/commands/npm-fund), which Vite+ uses for all package managers. To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|