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
|
@@ -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).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Global Packages
|
|
2
|
+
|
|
3
|
+
Global package operations require the [global CLI](/guide/global-cli). Use `-g` to manage tools independently of a project's dependencies:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp install -g typescript
|
|
7
|
+
vp install -g --node 22 typescript
|
|
8
|
+
vp uninstall -g typescript
|
|
9
|
+
vp update -g
|
|
10
|
+
vp list -g
|
|
11
|
+
vp outdated -g
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Storage and Node.js
|
|
15
|
+
|
|
16
|
+
Vite+ stores global packages in `packages/` under its resolved data directory, not in the underlying package manager's global installation directory.
|
|
17
|
+
|
|
18
|
+
Without `--node`, a global install uses the Node.js version resolved for the current directory. A project's pin therefore takes precedence over `vp env default`. See [Node.js Selection](/guide/env#node-js-selection).
|
|
19
|
+
|
|
20
|
+
`vp link` uses native package-manager links. It does not modify Vite+'s global package store, and those links do not appear in `vp list -g`.
|
|
21
|
+
|
|
22
|
+
## Updating Packages
|
|
23
|
+
|
|
24
|
+
Updates preserve the version specification recorded at installation. A package installed with `some-pkg@nightly` updates to the newest version of that tag. A version range stays within the range.
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
vp update -g some-pkg
|
|
28
|
+
vp update -g some-pkg@latest
|
|
29
|
+
vp update -g --latest
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
With --latest, future updates follow the latest tag instead of the original tag or version range.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Package Management
|
|
2
|
+
|
|
3
|
+
Vite+ provides one command interface for npm, pnpm, Yarn, and Bun. `vp` detects the workspace's package manager, downloads the selected version when needed, and translates commands and supported options for it.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp install
|
|
7
|
+
vp add react
|
|
8
|
+
vp add -D typescript
|
|
9
|
+
vp remove react
|
|
10
|
+
vp update
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Getting Started
|
|
14
|
+
|
|
15
|
+
- [Package Manager Selection](./package-manager-selection) explains detection, version ranges, and package-manager shims.
|
|
16
|
+
- [Global Packages](./global-packages) explains the separate Vite+ global package store.
|
|
17
|
+
|
|
18
|
+
## Commands
|
|
19
|
+
|
|
20
|
+
Core commands such as `vp add` run directly under `vp`. Forwarded Commands use `vp pm` to delegate operations to the detected package manager, translating commands and supported options just as core commands do. The `vp pm` prefix keeps names such as `pack` available for Vite+ commands. For example, `vp pm pack` creates a package tarball, but [`vp pack`](/guide/pack) builds a library.
|
|
21
|
+
|
|
22
|
+
## Native Arguments
|
|
23
|
+
|
|
24
|
+
Put native arguments after `--` to pass them through without translation:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
vp install -- --registry=https://registry.npmjs.org
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Core Commands
|
|
31
|
+
|
|
32
|
+
- [install](./install)
|
|
33
|
+
- [add](./add)
|
|
34
|
+
- [remove](./remove)
|
|
35
|
+
- [update](./update)
|
|
36
|
+
- [dedupe](./dedupe)
|
|
37
|
+
- [outdated](./outdated)
|
|
38
|
+
- [list](./list)
|
|
39
|
+
- [why](./why)
|
|
40
|
+
- [info](./info)
|
|
41
|
+
- [link](./link)
|
|
42
|
+
- [unlink](./unlink)
|
|
43
|
+
- [rebuild](./rebuild)
|
|
44
|
+
- [dlx](./dlx)
|
|
45
|
+
|
|
46
|
+
## Forwarded Commands
|
|
47
|
+
|
|
48
|
+
- **Install and cleanup**
|
|
49
|
+
- [pm ci](./ci)
|
|
50
|
+
- [pm prune](./prune)
|
|
51
|
+
- **Inspection and diagnostics**
|
|
52
|
+
- [pm licenses](./licenses)
|
|
53
|
+
- [pm search](./search)
|
|
54
|
+
- [pm audit](./audit)
|
|
55
|
+
- [pm fund](./fund)
|
|
56
|
+
- [pm ping](./ping)
|
|
57
|
+
- **Local development**
|
|
58
|
+
- [pm approve-builds](./approve-builds)
|
|
59
|
+
- [pm patch](./patch)
|
|
60
|
+
- [pm patch-commit](./patch-commit)
|
|
61
|
+
- **Publishing**
|
|
62
|
+
- [pm pack](./pack)
|
|
63
|
+
- [pm version](./version)
|
|
64
|
+
- [pm publish](./publish)
|
|
65
|
+
- [pm stage](./stage)
|
|
66
|
+
- [pm dist-tag](./dist-tag)
|
|
67
|
+
- [pm deprecate](./deprecate)
|
|
68
|
+
- **Registry and accounts**
|
|
69
|
+
- [pm login](./login)
|
|
70
|
+
- [pm logout](./logout)
|
|
71
|
+
- [pm whoami](./whoami)
|
|
72
|
+
- [pm token](./token)
|
|
73
|
+
- [pm owner](./owner)
|
|
74
|
+
- [pm team](./team)
|
|
75
|
+
- **Configuration and maintenance**
|
|
76
|
+
- [pm config](./config)
|
|
77
|
+
- [pm pkg](./pkg)
|
|
78
|
+
- [pm cache](./cache)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# vp info
|
|
2
|
+
|
|
3
|
+
Read package metadata from the registry. Aliases: `vp view`, `vp show`, `vp pm view`, `vp pm info`, and `vp pm show`.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp info react
|
|
7
|
+
vp info react versions --json
|
|
8
|
+
vp info react@19 dist.tarball
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
Supply a package name with an optional version, followed by an optional field name.
|
|
14
|
+
|
|
15
|
+
| Option | Description | Notes |
|
|
16
|
+
| -------- | --------------------------- | --------------------------------- |
|
|
17
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
18
|
+
|
|
19
|
+
## Compatibility
|
|
20
|
+
|
|
21
|
+
- **npm:** `npm view`.
|
|
22
|
+
- **pnpm:** `pnpm view`.
|
|
23
|
+
- **Yarn Classic:** `yarn info`.
|
|
24
|
+
- **Yarn Modern:** `yarn npm info`. A requested field is passed as `--fields`.
|
|
25
|
+
- **Bun:** `bun info`.
|
|
26
|
+
|
|
27
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
28
|
+
| -------- | --- | ---- | ------------ | ----------- | --- | ----- |
|
|
29
|
+
| `--json` | Yes | Yes | Yes | Yes | Yes | |
|
|
30
|
+
|
|
31
|
+
This command queries registry metadata, not the local dependency tree. Use [list](./list) or [why](./why) to inspect installed packages.
|
|
32
|
+
|
|
33
|
+
## Native Options
|
|
34
|
+
|
|
35
|
+
For native options, see [npm view](https://docs.npmjs.com/cli/v11/commands/npm-view), [pnpm view](https://pnpm.io/cli/view), [Yarn npm info](https://yarnpkg.com/cli/npm/info), [Yarn Classic info](https://classic.yarnpkg.com/en/docs/cli/info), and [Bun info](https://bun.com/docs/pm/cli/info). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# vp install
|
|
2
|
+
|
|
3
|
+
Install the dependencies declared by the project. Alias: `vp i`. Supplying package names switches to [add](./add) behavior.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp install
|
|
7
|
+
vp install --frozen-lockfile
|
|
8
|
+
vp install --lockfile-only
|
|
9
|
+
vp install --filter web
|
|
10
|
+
vp install react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Options
|
|
14
|
+
|
|
15
|
+
| Option | Description | Notes |
|
|
16
|
+
| ------------------------ | --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `-P, --prod` | Select production dependencies or save added packages to dependencies. | |
|
|
18
|
+
| `-D, --dev` | Include development dependencies or save added packages to devDependencies. | |
|
|
19
|
+
| `--no-optional` | Do not install optionalDependencies. | |
|
|
20
|
+
| `--frozen-lockfile` | Prevent lockfile changes. | Overrides an earlier `--no-frozen-lockfile`. |
|
|
21
|
+
| `--no-frozen-lockfile` | Explicitly allow lockfile updates. | Overrides an earlier `--frozen-lockfile`. |
|
|
22
|
+
| `--lockfile-only` | Update the lockfile without a full install. | |
|
|
23
|
+
| `--prefer-offline` | Use cached packages when available. | |
|
|
24
|
+
| `--offline` | Only use packages already in cache. | |
|
|
25
|
+
| `-f, --force` | Request a forced reinstall. | |
|
|
26
|
+
| `--ignore-scripts` | Do not run lifecycle scripts. | |
|
|
27
|
+
| `--no-lockfile` | Skip reading or generating a lockfile. | |
|
|
28
|
+
| `--fix-lockfile` | Repair lockfile entries. | Cannot be combined with package names. |
|
|
29
|
+
| `--shamefully-hoist` | Create a flat `node_modules` layout. | |
|
|
30
|
+
| `--resolution-only` | Re-run dependency resolution for analysis. | Cannot be combined with package names. |
|
|
31
|
+
| `--silent` | Suppress Vite+ output and request native quiet output. | |
|
|
32
|
+
| `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
|
|
33
|
+
| `-w, --workspace-root` | Select the workspace root. | |
|
|
34
|
+
| `-E, --save-exact` | Save an exact dependency version. | Requires package names. |
|
|
35
|
+
| `--save-peer` | Request the manager's peer-dependency save behavior. | Requires package names. |
|
|
36
|
+
| `-O, --save-optional` | Save to optionalDependencies. | Requires package names. |
|
|
37
|
+
| `--save-catalog` | Save the dependency to the default catalog. | Requires package names. |
|
|
38
|
+
| `-g, --global` | Install globally. | Requires the global CLI. Uses the [global package store](./global-packages). Requires package names. |
|
|
39
|
+
| `--node <version>` | Node.js version to use for global installation. | Requires --global. |
|
|
40
|
+
| `--concurrency <number>` | Number of global package installs to run in parallel. | Requires --global. Must be a positive integer. |
|
|
41
|
+
|
|
42
|
+
## Compatibility
|
|
43
|
+
|
|
44
|
+
The commands below describe project operations. Global mode is described under [Options](#options).
|
|
45
|
+
|
|
46
|
+
- **npm:** `npm install`, or `npm ci` with `--frozen-lockfile` and no package names. With package names: `npm install`.
|
|
47
|
+
- **pnpm:** `pnpm install`. With package names: `pnpm add`.
|
|
48
|
+
- **Yarn Classic:** `yarn install`. With package names: `yarn add`.
|
|
49
|
+
- **Yarn Modern:** `yarn install`. With package names: `yarn add`.
|
|
50
|
+
- **Bun:** `bun install`. With package names: `bun add`.
|
|
51
|
+
|
|
52
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
53
|
+
| ------------------------ | ------------------------- | --------------------- | --------------------- | --------------------- | -------------------------------- | -------------------------------------------------- |
|
|
54
|
+
| `-P, --prod` | Yes | Yes | Yes | With package names | Yes | Yarn Modern only warns in install mode. |
|
|
55
|
+
| `-D, --dev` | Yes | Yes | Yes | With package names | Yes | |
|
|
56
|
+
| `--no-optional` | Yes | Yes | Yes | No | Yes | |
|
|
57
|
+
| `--frozen-lockfile` | Without package names | Without package names | Yes | Without package names | Yes | |
|
|
58
|
+
| `--no-frozen-lockfile` | Without package names | Without package names | Without package names | Without package names | Yes | |
|
|
59
|
+
| `--lockfile-only` | Without --frozen-lockfile | Yes | No | 3 or later | Yes | npm ignores this in CI mode. |
|
|
60
|
+
| `--prefer-offline` | Yes | Yes | Yes | No | 1.4.1 or later | |
|
|
61
|
+
| `--offline` | Yes | Yes | Yes | No | 1.4.1 or later | |
|
|
62
|
+
| `-f, --force` | Without --frozen-lockfile | Yes | Yes | No | Yes | npm ignores this in CI mode. |
|
|
63
|
+
| `--ignore-scripts` | Yes | Yes | Yes | 2.4 or later | Yes | On Yarn Modern, lockfile-only mode takes priority. |
|
|
64
|
+
| `--no-lockfile` | Without --frozen-lockfile | Yes | Yes | No | No | npm ignores this in CI mode. |
|
|
65
|
+
| `--fix-lockfile` | No | Yes | No | 4 or later | No | |
|
|
66
|
+
| `--shamefully-hoist` | No | Yes | No | No | No | |
|
|
67
|
+
| `--resolution-only` | No | Yes | No | No | No | |
|
|
68
|
+
| `--silent` | Yes | Yes | Yes | No | Yes | |
|
|
69
|
+
| `--filter <pattern>` | 7.14.0 or later | Yes | No | Yes | Install: Yes. Add: 1.4 or later. | |
|
|
70
|
+
| `-w, --workspace-root` | 8.1.0 or later | Yes | With package names | No | No | |
|
|
71
|
+
| `-E, --save-exact` | Yes | Yes | Yes | Yes | Yes | |
|
|
72
|
+
| `--save-peer` | Yes | Yes | Yes | Yes | Yes | |
|
|
73
|
+
| `-O, --save-optional` | Yes | Yes | Yes | Yes | Yes | |
|
|
74
|
+
| `--save-catalog` | No | 10.12.0 or later | No | No | 1.4 or later | |
|
|
75
|
+
| `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
|
|
76
|
+
| `--node <version>` | Yes | Yes | Yes | Yes | Yes | |
|
|
77
|
+
| `--concurrency <number>` | Yes | Yes | Yes | Yes | Yes | |
|
|
78
|
+
|
|
79
|
+
With package names, [add](./add) compatibility rules apply.
|
|
80
|
+
|
|
81
|
+
### Git and Remote Tarball Dependencies
|
|
82
|
+
|
|
83
|
+
npm 12 disables git dependencies and remote tarball URLs by default. Installs can fail with `EALLOWGIT` or `EALLOWREMOTE`. Opt in through npm's project `allow-git` or `allow-remote` configuration only when those sources are intended.
|
|
84
|
+
|
|
85
|
+
For dependency build-script approval, see [approve-builds](./approve-builds).
|
|
86
|
+
|
|
87
|
+
## Native Options
|
|
88
|
+
|
|
89
|
+
For native options, see [npm install](https://docs.npmjs.com/cli/v11/commands/npm-install), [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).
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# vp pm licenses
|
|
2
|
+
|
|
3
|
+
List licenses reported for installed dependencies.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp pm licenses list
|
|
7
|
+
vp pm licenses list --json
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Options
|
|
11
|
+
|
|
12
|
+
`list`, also spelled `ls`, is the supported subcommand. `--json` requests the package manager's native JSON output. Vite+ does not normalize the output into a shared schema.
|
|
13
|
+
|
|
14
|
+
### `list`
|
|
15
|
+
|
|
16
|
+
| Option | Description | Notes |
|
|
17
|
+
| -------- | --------------------------- | --------------------------------- |
|
|
18
|
+
| `--json` | Request native JSON output. | Output retains the native schema. |
|
|
19
|
+
|
|
20
|
+
## Compatibility
|
|
21
|
+
|
|
22
|
+
### `list`
|
|
23
|
+
|
|
24
|
+
- **npm:** No command. Warns and exits successfully without performing the operation.
|
|
25
|
+
- **pnpm:** 7.17.0 or later: `pnpm licenses list`. Earlier versions warn and skip.
|
|
26
|
+
- **Yarn Classic:** `yarn licenses list`.
|
|
27
|
+
- **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
|
|
28
|
+
- **Bun:** 1.4.0 or later: `bun pm licenses`. Earlier versions warn and skip.
|
|
29
|
+
|
|
30
|
+
| Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
|
|
31
|
+
| -------- | --- | --------------- | ------------ | ----------- | -------------- | ----- |
|
|
32
|
+
| `--json` | No | 7.17.0 or later | Yes | No | 1.4.0 or later | |
|
|
33
|
+
|
|
34
|
+
## Native Options
|
|
35
|
+
|
|
36
|
+
For example, a pnpm project can use:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
vp pm licenses list -- --prod --long
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
For native options, see [pnpm licenses](https://pnpm.io/cli/licenses), [Yarn Classic licenses](https://classic.yarnpkg.com/en/docs/cli/licenses), and [Bun pm licenses](https://bun.com/docs/pm/cli/pm). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# vp link
|
|
2
|
+
|
|
3
|
+
Create local development links through the selected package manager. Alias: `vp ln`.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
vp link ../my-library
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## Options
|
|
10
|
+
|
|
11
|
+
An optional package name or directory is passed to the manager.
|
|
12
|
+
|
|
13
|
+
There are no command-specific options.
|
|
14
|
+
|
|
15
|
+
## Compatibility
|
|
16
|
+
|
|
17
|
+
- **npm:** `npm link`.
|
|
18
|
+
- **pnpm:** `pnpm link`.
|
|
19
|
+
- **Yarn Classic:** `yarn link`.
|
|
20
|
+
- **Yarn Modern:** `yarn link`.
|
|
21
|
+
- **Bun:** `bun link`.
|
|
22
|
+
|
|
23
|
+
The meaning of a directory, package name, or omitted argument follows that manager's native linking workflow. In particular, Yarn 2 and later link projects differently from Yarn Classic's package registration workflow.
|
|
24
|
+
|
|
25
|
+
These links do not use Vite+'s [global package store](./global-packages) and do not appear in `vp list -g`. Use [unlink](./unlink) to remove native links.
|
|
26
|
+
|
|
27
|
+
## Native Options
|
|
28
|
+
|
|
29
|
+
For native options, see [npm link](https://docs.npmjs.com/cli/v11/commands/npm-link), [pnpm link](https://pnpm.io/cli/link), [Yarn link](https://yarnpkg.com/cli/link), [Yarn Classic link](https://classic.yarnpkg.com/en/docs/cli/link), and [Bun link](https://bun.com/docs/pm/cli/link). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
|