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.
Files changed (77) hide show
  1. package/binding/index.cjs +116 -55
  2. package/dist/{agent-DkQD3xqe.js → agent-CowvWq3j.js} +2 -2
  3. package/dist/bin.js +20 -6
  4. package/dist/config/bin.js +2 -2
  5. package/dist/{constants-D2P2aVKb.js → constants-D5f7inVN.js} +1 -1
  6. package/dist/create/bin.js +7 -7
  7. package/dist/{define-config-CwtQqYC1.cjs → define-config-BGCfAiIo.cjs} +1 -1
  8. package/dist/{define-config-wR57OZG_.js → define-config-XKYhw0xH.js} +1 -1
  9. package/dist/define-config.cjs +1 -1
  10. package/dist/define-config.js +1 -1
  11. package/dist/{editor-aOy1T15H.js → editor-BVaNnIey.js} +6 -6
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/lint-plugins.cjs +1 -1
  15. package/dist/migration/bin.js +6 -6
  16. package/dist/{oxlint-plugin-config-CHsI_zKo.js → oxlint-plugin-config-5hVqz4kj.js} +1 -1
  17. package/dist/oxlint-plugin.js +2 -2
  18. package/dist/pack-bin.js +1 -1
  19. package/dist/{package-DfFo6-E-.js → package-DLUCo6L_.js} +1 -1
  20. package/dist/{prompts-C7DI63WP.js → prompts-DLpJGhfK.js} +1 -1
  21. package/dist/{resolve-vite-config-Cx3cnVVI.js → resolve-vite-config-D-JtjGRa.js} +2 -2
  22. package/dist/{resolve-vite-config-33bzSaeT.js → resolve-vite-config-D7IUZYKq.js} +1 -1
  23. package/dist/staged/bin.js +1 -1
  24. package/dist/toolchain.js +5 -5
  25. package/dist/toolchain.json +5 -5
  26. package/dist/{tsconfig-shNmmCE_.js → tsconfig-D3DiCiW6.js} +2 -2
  27. package/dist/{tsconfig-BE3Wj9OX.js → tsconfig-DLERIAbF.js} +1 -1
  28. package/dist/version.js +2 -2
  29. package/dist/versions.js +2 -2
  30. package/docs/guide/global-cli.md +1 -1
  31. package/docs/guide/index.md +4 -4
  32. package/docs/guide/local-cli.md +1 -1
  33. package/docs/guide/migrate.md +4 -4
  34. package/docs/guide/package-management/add.md +84 -0
  35. package/docs/guide/package-management/approve-builds.md +48 -0
  36. package/docs/guide/package-management/audit.md +39 -0
  37. package/docs/guide/package-management/cache.md +53 -0
  38. package/docs/guide/package-management/ci.md +28 -0
  39. package/docs/guide/package-management/config.md +119 -0
  40. package/docs/guide/package-management/dedupe.md +32 -0
  41. package/docs/guide/package-management/deprecate.md +39 -0
  42. package/docs/guide/package-management/dist-tag.md +61 -0
  43. package/docs/guide/package-management/dlx.md +40 -0
  44. package/docs/guide/package-management/fund.md +32 -0
  45. package/docs/guide/package-management/global-packages.md +32 -0
  46. package/docs/guide/package-management/index.md +78 -0
  47. package/docs/guide/package-management/info.md +35 -0
  48. package/docs/guide/package-management/install.md +89 -0
  49. package/docs/guide/package-management/licenses.md +42 -0
  50. package/docs/guide/package-management/link.md +29 -0
  51. package/docs/guide/package-management/list.md +60 -0
  52. package/docs/guide/package-management/login.md +34 -0
  53. package/docs/guide/package-management/logout.md +34 -0
  54. package/docs/guide/package-management/outdated.md +60 -0
  55. package/docs/guide/package-management/owner.md +79 -0
  56. package/docs/guide/package-management/pack.md +40 -0
  57. package/docs/guide/package-management/package-manager-selection.md +60 -0
  58. package/docs/guide/package-management/patch-commit.md +27 -0
  59. package/docs/guide/package-management/patch.md +29 -0
  60. package/docs/guide/package-management/ping.md +32 -0
  61. package/docs/guide/package-management/pkg.md +88 -0
  62. package/docs/guide/package-management/prune.md +34 -0
  63. package/docs/guide/package-management/publish.md +61 -0
  64. package/docs/guide/package-management/rebuild.md +31 -0
  65. package/docs/guide/package-management/remove.md +47 -0
  66. package/docs/guide/package-management/search.md +38 -0
  67. package/docs/guide/package-management/stage.md +175 -0
  68. package/docs/guide/package-management/team.md +140 -0
  69. package/docs/guide/package-management/token.md +87 -0
  70. package/docs/guide/package-management/unlink.md +33 -0
  71. package/docs/guide/package-management/update.md +62 -0
  72. package/docs/guide/package-management/version.md +36 -0
  73. package/docs/guide/package-management/whoami.md +30 -0
  74. package/docs/guide/package-management/why.md +55 -0
  75. package/docs/guide/vpx.md +1 -1
  76. package/package.json +12 -12
  77. package/docs/guide/package-management.md +0 -269
@@ -0,0 +1,61 @@
1
+ # vp pm publish
2
+
3
+ Publish a package to a registry. Supported targets and preview options depend on the package manager:
4
+
5
+ ```bash
6
+ vp pm publish --dry-run
7
+ vp pm publish --access public --tag next
8
+ vp pm publish ./package.tgz
9
+ ```
10
+
11
+ ## Options
12
+
13
+ | Option | Description | Notes |
14
+ | ------------------------------- | -------------------------------------------- | --------------------------------------------- |
15
+ | `--dry-run` | Preview without publishing. | |
16
+ | `--tag <tag>` | Select a distribution tag. | |
17
+ | `--access <public\|restricted>` | Request public or restricted package access. | |
18
+ | `--otp <otp>` | Supply a one-time password. | |
19
+ | `--no-git-checks` | Skip git checks. | |
20
+ | `--publish-branch <branch>` | Set the branch name to publish from. | |
21
+ | `--report-summary` | Save publish summary. | |
22
+ | `--provenance` | Publish with provenance. | Requires a compatible publishing environment. |
23
+ | `--force` | Request native forced publishing. | |
24
+ | `--json` | Request native JSON output. | Output retains the native schema. |
25
+ | `-r, --recursive` | Publish all workspace packages. | |
26
+ | `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
27
+
28
+ ## Compatibility
29
+
30
+ - **npm:** `npm publish`.
31
+ - **pnpm:** `pnpm publish`.
32
+ - **Yarn Classic:** `yarn publish`.
33
+ - **Yarn Modern:** `yarn npm publish` for the active workspace. Explicit tarball or folder targets are rejected.
34
+ - **Bun:** `bun publish`.
35
+
36
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
37
+ | ------------------------------- | --------------- | --------------------------------- | --------------- | -------------- | --- | ----- |
38
+ | `--dry-run` | 5.10.0 or later | Yes | No | 4.9.3 or later | Yes | |
39
+ | `--tag <tag>` | Yes | Yes | Yes | Yes | Yes | |
40
+ | `--access <public\|restricted>` | Yes | Yes | Yes | Yes | Yes | |
41
+ | `--otp <otp>` | Yes | Yes | 1.12.1 or later | 3.2.0 or later | Yes | |
42
+ | `--no-git-checks` | No | Yes | No | No | No | |
43
+ | `--publish-branch <branch>` | No | Yes | No | No | No | |
44
+ | `--report-summary` | No | Yes | No | No | No | |
45
+ | `--provenance` | 9.5.0 or later | Yes | No | 4.9.0 or later | No | |
46
+ | `--force` | Yes | Yes | No | No | No | |
47
+ | `--json` | Yes | Before 11.0.0 or 11.0.7 and later | Yes | 4.9.3 or later | No | |
48
+ | `-r, --recursive` | 7.13.0 or later | Yes | No | No | No | |
49
+ | `--filter <pattern>` | 7.13.0 or later | Yes | No | No | No | |
50
+
51
+ Yarn publishing uses Yarn's registry configuration and credentials. Unsupported targets and workspace selection cause an error rather than falling back to npm. Native publish failures are not retried through npm.
52
+
53
+ Vite+ rejects unsupported options before the native publish command runs. Yarn Classic can ignore `--dry-run` and publish for real, or accept `--provenance` without producing an attestation. Vite+ rejects both options on Yarn Classic.
54
+
55
+ Arguments after `--` are passed directly to the native command without these checks. Passing an unsupported safety option this way can result in a real publication or a publication without provenance.
56
+
57
+ For a workflow that separates CI uploads from maintainer approval, use [stage](./stage).
58
+
59
+ ## Native Options
60
+
61
+ For native options, see [npm publish](https://docs.npmjs.com/cli/v11/commands/npm-publish), [pnpm publish](https://pnpm.io/cli/publish), [Yarn Classic publish](https://classic.yarnpkg.com/en/docs/cli/publish), [Yarn npm publish](https://yarnpkg.com/cli/npm/publish), and [Bun publish](https://bun.com/docs/pm/cli/publish). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,31 @@
1
+ # vp rebuild
2
+
3
+ Rebuild installed packages, for example after switching Node.js versions or when a native addon needs recompilation. This top-level command requires the global CLI. Both the global and project-local CLI accept `vp pm rebuild` and its alias `vp pm rb`.
4
+
5
+ ```bash
6
+ vp rebuild
7
+ vp rebuild better-sqlite3 sharp
8
+ vp rebuild -- --update-binary
9
+ ```
10
+
11
+ ## Options
12
+
13
+ Supply package names to rebuild only those packages. Omit them to request a full rebuild. There are no additional Vite+ options.
14
+
15
+ There are no command-specific options.
16
+
17
+ ## Compatibility
18
+
19
+ - **npm:** `npm rebuild`.
20
+ - **pnpm:** `pnpm rebuild`.
21
+ - **Yarn Classic:** No command. Warns and exits successfully without performing the operation.
22
+ - **Yarn Modern:** `yarn rebuild`.
23
+ - **Bun:** No command. Warns and exits successfully without performing the operation.
24
+
25
+ With pnpm 10 and later, a bare rebuild respects build-script approvals. Naming a package explicitly bypasses that approval gate, so rebuild only packages whose scripts you trust.
26
+
27
+ On npm 12, [approving a dependency's scripts](./approve-builds) records policy but does not execute scripts skipped by an earlier install. Rebuild that package after approval.
28
+
29
+ ## Native Options
30
+
31
+ For native options, see [npm rebuild](https://docs.npmjs.com/cli/v11/commands/npm-rebuild), [pnpm rebuild](https://pnpm.io/cli/rebuild), and [Yarn rebuild](https://yarnpkg.com/cli/rebuild). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,47 @@
1
+ # vp remove
2
+
3
+ Remove dependencies from the project. Aliases: `vp rm`, `vp un`, and `vp uninstall`.
4
+
5
+ ```bash
6
+ vp remove react
7
+ vp remove --filter web react
8
+ vp remove -g --dry-run typescript
9
+ ```
10
+
11
+ ## Options
12
+
13
+ | Option | Description | Notes |
14
+ | ---------------------- | -------------------------------------------------------- | ---------------------------------------------------------------------------- |
15
+ | `-D, --save-dev` | Remove from devDependencies. | |
16
+ | `-O, --save-optional` | Remove from optionalDependencies. | |
17
+ | `-P, --save-prod` | Remove from dependencies. | |
18
+ | `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
19
+ | `-w, --workspace-root` | Remove from workspace root. | |
20
+ | `-r, --recursive` | Remove recursively from all workspace packages. | |
21
+ | `-g, --global` | Remove global packages. | Requires the global CLI. Uses the [global package store](./global-packages). |
22
+ | `--dry-run` | Preview what would be removed without actually removing. | Requires --global. |
23
+
24
+ ## Compatibility
25
+
26
+ The commands below describe project operations. Global mode is described under [Options](#options).
27
+
28
+ - **npm:** `npm uninstall`.
29
+ - **pnpm:** `pnpm remove`.
30
+ - **Yarn Classic:** `yarn remove`.
31
+ - **Yarn Modern:** `yarn remove`.
32
+ - **Bun:** `bun remove`.
33
+
34
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
35
+ | ---------------------- | --------------- | ---- | ------------ | ----------- | ------------ | -------------------------------- |
36
+ | `-D, --save-dev` | Yes | Yes | No | No | No | |
37
+ | `-O, --save-optional` | Yes | Yes | No | No | No | |
38
+ | `-P, --save-prod` | Yes | Yes | No | No | No | |
39
+ | `--filter <pattern>` | 7.14.0 or later | Yes | One filter | Yes | 1.4 or later | |
40
+ | `-w, --workspace-root` | 8.1.0 or later | Yes | No | No | No | |
41
+ | `-r, --recursive` | 8.1.0 or later | Yes | No | Yes | No | npm includes the workspace root. |
42
+ | `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
43
+ | `--dry-run` | Yes | Yes | Yes | Yes | Yes | |
44
+
45
+ ## Native Options
46
+
47
+ For native options, see [npm uninstall](https://docs.npmjs.com/cli/v11/commands/npm-uninstall), [pnpm remove](https://pnpm.io/cli/remove), [Yarn remove](https://yarnpkg.com/cli/remove), [Yarn Classic remove](https://classic.yarnpkg.com/en/docs/cli/remove), and [Bun remove](https://bun.com/docs/pm/cli/remove). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,38 @@
1
+ # vp pm search
2
+
3
+ Search the package registry.
4
+
5
+ ```bash
6
+ vp pm search vite plugin
7
+ vp pm search typescript --json
8
+ ```
9
+
10
+ ## Options
11
+
12
+ At least one search term is required.
13
+
14
+ | Option | Description | Notes |
15
+ | ------------------ | --------------------------- | --------------------------------- |
16
+ | `--json` | Request native JSON output. | Output retains the native schema. |
17
+ | `--long` | Show extended information. | |
18
+ | `--registry <url>` | Select the registry. | |
19
+
20
+ ## Compatibility
21
+
22
+ - **npm:** `npm search`.
23
+ - **pnpm:** 11 or later: `pnpm search`. Earlier versions use `npm search` as a fallback.
24
+ - **Yarn Classic:** Fallback: `npm search`.
25
+ - **Yarn Modern:** Fallback: `npm search`.
26
+ - **Bun:** Fallback: `npm search`.
27
+
28
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
29
+ | ------------------ | --- | --------- | ------------ | ----------- | --- | ----- |
30
+ | `--json` | Yes | Yes | Yes | Yes | Yes | |
31
+ | `--long` | Yes | Before 11 | Yes | Yes | Yes | |
32
+ | `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
33
+
34
+ Registry settings and output follow the command that runs.
35
+
36
+ ## Native Options
37
+
38
+ For native options, see [npm search](https://docs.npmjs.com/cli/v11/commands/npm-search) and [pnpm search](https://pnpm.io/cli/search). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,175 @@
1
+ # vp pm stage
2
+
3
+ Use staged publishing to separate a package upload from its release. A CI job can upload a staged version without 2FA, then a maintainer approves or rejects it from a trusted device with 2FA.
4
+
5
+ ```bash
6
+ vp pm stage publish --dry-run
7
+ vp pm stage publish
8
+ vp pm stage list
9
+ vp pm stage view <stage-id>
10
+ vp pm stage download <stage-id>
11
+ vp pm stage approve <stage-id>
12
+ vp pm stage reject <stage-id>
13
+ ```
14
+
15
+ ## Options
16
+
17
+ Use the subcommands below to upload, inspect, approve, or reject staged versions.
18
+
19
+ ### `publish`
20
+
21
+ Upload a package. Accepts an optional tarball or folder target.
22
+
23
+ | Option | Description | Notes |
24
+ | ------------------------------- | -------------------------------------------- | --------------------------------------------- |
25
+ | `--tag <tag>` | Publish tag. | |
26
+ | `--access <public\|restricted>` | Request public or restricted package access. | |
27
+ | `--otp <otp>` | Supply a one-time password. | |
28
+ | `--dry-run` | Preview without staging. | |
29
+ | `--json` | Request native JSON output. | Output retains the native schema. |
30
+ | `-r, --recursive` | Stage all publishable workspace packages. | |
31
+ | `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
32
+ | `--provenance` | Stage with provenance. | Requires a compatible publishing environment. |
33
+ | `--registry <url>` | Select the registry. | |
34
+
35
+ ### `list`
36
+
37
+ List staged versions. Accepts an optional package specification. Alias: `ls`.
38
+
39
+ | Option | Description | Notes |
40
+ | ------------------ | --------------------------- | --------------------------------- |
41
+ | `--json` | Request native JSON output. | Output retains the native schema. |
42
+ | `--registry <url>` | Select the registry. | |
43
+
44
+ ### `view`
45
+
46
+ Inspect a staged version. Requires a stage ID.
47
+
48
+ | Option | Description | Notes |
49
+ | ------------------ | --------------------------- | --------------------------------- |
50
+ | `--json` | Request native JSON output. | Output retains the native schema. |
51
+ | `--registry <url>` | Select the registry. | |
52
+
53
+ ### `download`
54
+
55
+ Download a staged tarball. Requires a stage ID.
56
+
57
+ | Option | Description | Notes |
58
+ | ------------------ | -------------------- | ----- |
59
+ | `--registry <url>` | Select the registry. | |
60
+
61
+ ### `approve`
62
+
63
+ Promote a staged version to the live registry. Requires a stage ID.
64
+
65
+ | Option | Description | Notes |
66
+ | ------------------ | --------------------------- | ----- |
67
+ | `--otp <otp>` | Supply a one-time password. | |
68
+ | `--registry <url>` | Select the registry. | |
69
+
70
+ ### `reject`
71
+
72
+ Discard a staged version. Requires a stage ID.
73
+
74
+ | Option | Description | Notes |
75
+ | ------------------ | --------------------------- | ----- |
76
+ | `--otp <otp>` | Supply a one-time password. | |
77
+ | `--registry <url>` | Select the registry. | |
78
+
79
+ ## Compatibility
80
+
81
+ All npm paths, including fallbacks, require npm 11.15 or later and Node.js 22.14 or later.
82
+
83
+ ### `publish`
84
+
85
+ - **npm:** 11.15 or later: `npm stage publish`. Earlier versions warn and skip.
86
+ - **pnpm:** 11.3 or later: `pnpm stage publish`. Earlier versions warn and skip.
87
+ - **Yarn Classic:** Fallback: `npm stage publish`.
88
+ - **Yarn Modern:** 4.16.0 or later: `yarn npm publish --staged`. Earlier versions use `npm stage publish` as a fallback. Explicit targets use npm fallback.
89
+ - **Bun:** Fallback: `npm stage publish`.
90
+
91
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
92
+ | ------------------------------- | ----------------------- | ---- | ----------------------- | ----------------------------------------- | ----------------------- | ------------------------------------------------ |
93
+ | `--tag <tag>` | Yes | Yes | Yes | Yes | Yes | |
94
+ | `--access <public\|restricted>` | Yes | Yes | Yes | Yes | Yes | |
95
+ | `--otp <otp>` | Yes | Yes | Yes | Yes | Yes | |
96
+ | `--dry-run` | Yes | Yes | Yes | Yes | Yes | |
97
+ | `--json` | Yes | Yes | Yes | Yes | Yes | |
98
+ | `-r, --recursive` | No target or target `.` | Yes | No target or target `.` | Before 4.16 with no target, or target `.` | No target or target `.` | |
99
+ | `--filter <pattern>` | No target or target `.` | Yes | No target or target `.` | Before 4.16 with no target, or target `.` | No target or target `.` | |
100
+ | `--provenance` | Yes | Yes | Yes | Yes | Yes | |
101
+ | `--registry <url>` | Yes | Yes | Yes | Before 4.16, or an explicit target | Yes | Use Yarn registry settings on native Yarn paths. |
102
+
103
+ ### `list`
104
+
105
+ - **npm:** 11.15 or later: `npm stage list`. Earlier versions warn and skip.
106
+ - **pnpm:** 11.3 or later: `pnpm stage list`. Earlier versions warn and skip.
107
+ - **Yarn Classic:** Fallback: `npm stage list`.
108
+ - **Yarn Modern:** 4.16.0 or later: `yarn npm stage list`. Earlier versions use `npm stage list` as a fallback.
109
+ - **Bun:** Fallback: `npm stage list`.
110
+
111
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
112
+ | ------------------ | --- | ---- | ------------ | ------------- | --- | ------------------------------------------------ |
113
+ | `--json` | Yes | Yes | Yes | Yes | Yes | |
114
+ | `--registry <url>` | Yes | Yes | Yes | Before 4.16.0 | Yes | Use Yarn registry settings on native Yarn paths. |
115
+
116
+ ### `view`
117
+
118
+ - **npm:** 11.15 or later: `npm stage view`. Earlier versions warn and skip.
119
+ - **pnpm:** 11.3 or later: `pnpm stage view`. Earlier versions warn and skip.
120
+ - **Yarn Classic:** Fallback: `npm stage view`.
121
+ - **Yarn Modern:** Fallback: `npm stage view`.
122
+ - **Bun:** Fallback: `npm stage view`.
123
+
124
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
125
+ | ------------------ | --- | ---- | ------------ | ----------- | --- | ----- |
126
+ | `--json` | Yes | Yes | Yes | Yes | Yes | |
127
+ | `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
128
+
129
+ ### `download`
130
+
131
+ - **npm:** 11.15 or later: `npm stage download`. Earlier versions warn and skip.
132
+ - **pnpm:** 11.3 or later: `pnpm stage download`. Earlier versions warn and skip.
133
+ - **Yarn Classic:** Fallback: `npm stage download`.
134
+ - **Yarn Modern:** Fallback: `npm stage download`.
135
+ - **Bun:** Fallback: `npm stage download`.
136
+
137
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
138
+ | ------------------ | --- | ---- | ------------ | ----------- | --- | ----- |
139
+ | `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
140
+
141
+ ### `approve`
142
+
143
+ - **npm:** 11.15 or later: `npm stage approve`. Earlier versions warn and skip.
144
+ - **pnpm:** 11.3 or later: `pnpm stage approve`. Earlier versions warn and skip.
145
+ - **Yarn Classic:** Fallback: `npm stage approve`.
146
+ - **Yarn Modern:** 4.16.0 or later: `yarn npm stage approve`. Earlier versions use `npm stage approve` as a fallback.
147
+ - **Bun:** Fallback: `npm stage approve`.
148
+
149
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
150
+ | ------------------ | --- | ---- | ------------ | ------------- | --- | ------------------------------------------------ |
151
+ | `--otp <otp>` | Yes | Yes | Yes | Yes | Yes | |
152
+ | `--registry <url>` | Yes | Yes | Yes | Before 4.16.0 | Yes | Use Yarn registry settings on native Yarn paths. |
153
+
154
+ ### `reject`
155
+
156
+ - **npm:** 11.15 or later: `npm stage reject`. Earlier versions warn and skip.
157
+ - **pnpm:** 11.3 or later: `pnpm stage reject`. Earlier versions warn and skip.
158
+ - **Yarn Classic:** Fallback: `npm stage reject`.
159
+ - **Yarn Modern:** 4.16.0 or later: `yarn npm stage reject`. Earlier versions use `npm stage reject` as a fallback.
160
+ - **Bun:** Fallback: `npm stage reject`.
161
+
162
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
163
+ | ------------------ | --- | ---- | ------------ | ------------- | --- | ------------------------------------------------ |
164
+ | `--otp <otp>` | Yes | Yes | Yes | Yes | Yes | |
165
+ | `--registry <url>` | Yes | Yes | Yes | Before 4.16.0 | Yes | Use Yarn registry settings on native Yarn paths. |
166
+
167
+ Yarn fallback paths and Bun warn before invoking npm.
168
+
169
+ This command is unrelated to Yarn's version-control staging command or Vite+'s staged-file checks.
170
+
171
+ ## Native Options
172
+
173
+ For native options, see [npm stage](https://docs.npmjs.com/cli/v11/commands/npm-stage), [pnpm stage](https://pnpm.io/cli/stage), [Yarn npm publish](https://yarnpkg.com/cli/npm/publish), [Yarn npm stage list](https://yarnpkg.com/cli/npm/stage/list), [Yarn npm stage approve](https://yarnpkg.com/cli/npm/stage/approve), and [Yarn npm stage reject](https://yarnpkg.com/cli/npm/stage/reject). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
174
+
175
+ For the registry workflow, see [npm staged publishing](https://docs.npmjs.com/staged-publishing).
@@ -0,0 +1,140 @@
1
+ # vp pm team
2
+
3
+ Manage registry organization teams and their membership.
4
+
5
+ ```bash
6
+ vp pm team list my-org
7
+ vp pm team list my-org:developers --json
8
+ vp pm team create my-org:developers
9
+ vp pm team add my-org:developers alice
10
+ vp pm team rm my-org:developers alice
11
+ vp pm team destroy my-org:developers
12
+ ```
13
+
14
+ ## Options
15
+
16
+ - `create <scope:team>` creates a team.
17
+ - `destroy <scope:team>` deletes a team.
18
+ - `add <scope:team> <user>` adds a member.
19
+ - `rm <scope:team> <user>` removes a member. Alias: `remove`.
20
+ - `list <scope[:team]>` lists an organization's teams or a team's members. Alias: `ls`.
21
+
22
+ All subcommands accept `--registry <url>`, `--otp <code>`, and `--json`. JSON output retains the native manager's schema. Registry permissions determine which changes the authenticated account may make.
23
+
24
+ ### `create`
25
+
26
+ | Option | Description | Notes |
27
+ | ------------------ | --------------------------- | --------------------------------- |
28
+ | `--otp <otp>` | Supply a one-time password. | |
29
+ | `--json` | Request native JSON output. | Output retains the native schema. |
30
+ | `--registry <url>` | Select the registry. | |
31
+
32
+ ### `destroy`
33
+
34
+ | Option | Description | Notes |
35
+ | ------------------ | --------------------------- | --------------------------------- |
36
+ | `--otp <otp>` | Supply a one-time password. | |
37
+ | `--json` | Request native JSON output. | Output retains the native schema. |
38
+ | `--registry <url>` | Select the registry. | |
39
+
40
+ ### `add`
41
+
42
+ | Option | Description | Notes |
43
+ | ------------------ | --------------------------- | --------------------------------- |
44
+ | `--otp <otp>` | Supply a one-time password. | |
45
+ | `--json` | Request native JSON output. | Output retains the native schema. |
46
+ | `--registry <url>` | Select the registry. | |
47
+
48
+ ### `rm`
49
+
50
+ | Option | Description | Notes |
51
+ | ------------------ | --------------------------- | --------------------------------- |
52
+ | `--otp <otp>` | Supply a one-time password. | |
53
+ | `--json` | Request native JSON output. | Output retains the native schema. |
54
+ | `--registry <url>` | Select the registry. | |
55
+
56
+ ### `list`
57
+
58
+ | Option | Description | Notes |
59
+ | ------------------ | --------------------------- | --------------------------------- |
60
+ | `--otp <otp>` | Supply a one-time password. | |
61
+ | `--json` | Request native JSON output. | Output retains the native schema. |
62
+ | `--registry <url>` | Select the registry. | |
63
+
64
+ ## Compatibility
65
+
66
+ Fallbacks to npm emit warnings.
67
+
68
+ ### `create`
69
+
70
+ - **npm:** `npm team create`.
71
+ - **pnpm:** 11.13.0 or later: `pnpm team create`. Earlier versions use `npm team create` as a fallback.
72
+ - **Yarn Classic:** `yarn team create`.
73
+ - **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
74
+ - **Bun:** Fallback: `npm team create`.
75
+
76
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
77
+ | ------------------ | --- | ---- | --------------- | ----------- | --- | --------------------------------------------------------------------------- |
78
+ | `--otp <otp>` | Yes | Yes | 1.12.1 or later | No | Yes | Older Yarn Classic can ignore --otp. Vite+ does not check its version here. |
79
+ | `--json` | Yes | Yes | Yes | No | Yes | |
80
+ | `--registry <url>` | Yes | Yes | Yes | No | Yes | |
81
+
82
+ ### `destroy`
83
+
84
+ - **npm:** `npm team destroy`.
85
+ - **pnpm:** 11.13.0 or later: `pnpm team destroy`. Earlier versions use `npm team destroy` as a fallback.
86
+ - **Yarn Classic:** `yarn team destroy`.
87
+ - **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
88
+ - **Bun:** Fallback: `npm team destroy`.
89
+
90
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
91
+ | ------------------ | --- | ---- | --------------- | ----------- | --- | --------------------------------------------------------------------------- |
92
+ | `--otp <otp>` | Yes | Yes | 1.12.1 or later | No | Yes | Older Yarn Classic can ignore --otp. Vite+ does not check its version here. |
93
+ | `--json` | Yes | Yes | Yes | No | Yes | |
94
+ | `--registry <url>` | Yes | Yes | Yes | No | Yes | |
95
+
96
+ ### `add`
97
+
98
+ - **npm:** `npm team add`.
99
+ - **pnpm:** 11.13.0 or later: `pnpm team add`. Earlier versions use `npm team add` as a fallback.
100
+ - **Yarn Classic:** `yarn team add`.
101
+ - **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
102
+ - **Bun:** Fallback: `npm team add`.
103
+
104
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
105
+ | ------------------ | --- | ---- | --------------- | ----------- | --- | --------------------------------------------------------------------------- |
106
+ | `--otp <otp>` | Yes | Yes | 1.12.1 or later | No | Yes | Older Yarn Classic can ignore --otp. Vite+ does not check its version here. |
107
+ | `--json` | Yes | Yes | Yes | No | Yes | |
108
+ | `--registry <url>` | Yes | Yes | Yes | No | Yes | |
109
+
110
+ ### `rm`
111
+
112
+ - **npm:** `npm team rm`.
113
+ - **pnpm:** 11.13.0 or later: `pnpm team rm`. Earlier versions use `npm team rm` as a fallback.
114
+ - **Yarn Classic:** `yarn team remove`.
115
+ - **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
116
+ - **Bun:** Fallback: `npm team rm`.
117
+
118
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
119
+ | ------------------ | --- | ---- | --------------- | ----------- | --- | --------------------------------------------------------------------------- |
120
+ | `--otp <otp>` | Yes | Yes | 1.12.1 or later | No | Yes | Older Yarn Classic can ignore --otp. Vite+ does not check its version here. |
121
+ | `--json` | Yes | Yes | Yes | No | Yes | |
122
+ | `--registry <url>` | Yes | Yes | Yes | No | Yes | |
123
+
124
+ ### `list`
125
+
126
+ - **npm:** `npm team ls`.
127
+ - **pnpm:** 11.13.0 or later: `pnpm team ls`. Earlier versions use `npm team ls` as a fallback.
128
+ - **Yarn Classic:** `yarn team list`.
129
+ - **Yarn Modern:** No command. Warns and exits successfully without performing the operation.
130
+ - **Bun:** Fallback: `npm team ls`.
131
+
132
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
133
+ | ------------------ | --- | ---- | --------------- | ----------- | --- | --------------------------------------------------------------------------- |
134
+ | `--otp <otp>` | Yes | Yes | 1.12.1 or later | No | Yes | Older Yarn Classic can ignore --otp. Vite+ does not check its version here. |
135
+ | `--json` | Yes | Yes | Yes | No | Yes | |
136
+ | `--registry <url>` | Yes | Yes | Yes | No | Yes | |
137
+
138
+ ## Native Options
139
+
140
+ For native options, see [npm team](https://docs.npmjs.com/cli/v11/commands/npm-team), [pnpm team](https://pnpm.io/cli/team), and [Yarn Classic team](https://classic.yarnpkg.com/en/docs/cli/team). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,87 @@
1
+ # vp pm token
2
+
3
+ Manage registry authentication tokens.
4
+
5
+ ```bash
6
+ vp pm token list
7
+ vp pm token list --json
8
+ vp pm token revoke <token-id>
9
+ ```
10
+
11
+ ## Options
12
+
13
+ - `list`, also spelled `ls`, lists tokens. Supports `--json` and `--registry <url>`.
14
+ - `create` requests a new token. Supports `--json`, `--registry <url>`, `--readonly`, and repeatable `--cidr <range>` restrictions.
15
+ - `revoke <token-or-id>` revokes a token. Supports `--registry <url>`.
16
+
17
+ Treat tokens as secrets. Prefer a token ID for revocation rather than placing a raw token in shell history. Token creation and supported token types depend on the registry's current policy and the native package manager version; exposing `create` does not guarantee that a registry permits CLI token creation.
18
+
19
+ ### `list`
20
+
21
+ | Option | Description | Notes |
22
+ | ------------------ | --------------------------- | --------------------------------- |
23
+ | `--json` | Request native JSON output. | Output retains the native schema. |
24
+ | `--registry <url>` | Select the registry. | |
25
+
26
+ ### `create`
27
+
28
+ | Option | Description | Notes |
29
+ | ------------------ | ------------------------------------- | --------------------------------- |
30
+ | `--json` | Request native JSON output. | Output retains the native schema. |
31
+ | `--registry <url>` | Select the registry. | |
32
+ | `--cidr <cidr>` | CIDR ranges to restrict the token to. | Can be repeated. |
33
+ | `--readonly` | Create a read-only token. | |
34
+
35
+ ### `revoke`
36
+
37
+ | Option | Description | Notes |
38
+ | ------------------ | -------------------- | ----- |
39
+ | `--registry <url>` | Select the registry. | |
40
+
41
+ ## Compatibility
42
+
43
+ ### `list`
44
+
45
+ - **npm:** `npm token list`.
46
+ - **pnpm:** 12.13 or later: `pnpm token list`. Earlier versions use `npm token list` as a fallback.
47
+ - **Yarn Classic:** Fallback: `npm token list`.
48
+ - **Yarn Modern:** Fallback: `npm token list`.
49
+ - **Bun:** Fallback: `npm token list`.
50
+
51
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
52
+ | ------------------ | --- | ---- | ------------ | ----------- | --- | ----- |
53
+ | `--json` | Yes | Yes | Yes | Yes | Yes | |
54
+ | `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
55
+
56
+ ### `create`
57
+
58
+ - **npm:** `npm token create`.
59
+ - **pnpm:** 12.13 or later: `pnpm token create`. Earlier versions use `npm token create` as a fallback.
60
+ - **Yarn Classic:** Fallback: `npm token create`.
61
+ - **Yarn Modern:** Fallback: `npm token create`.
62
+ - **Bun:** Fallback: `npm token create`.
63
+
64
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
65
+ | ------------------ | --- | ---- | ------------ | ----------- | --- | ----- |
66
+ | `--json` | Yes | Yes | Yes | Yes | Yes | |
67
+ | `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
68
+ | `--cidr <cidr>` | Yes | Yes | Yes | Yes | Yes | |
69
+ | `--readonly` | Yes | Yes | Yes | Yes | Yes | |
70
+
71
+ ### `revoke`
72
+
73
+ - **npm:** `npm token revoke`.
74
+ - **pnpm:** 12.13 or later: `pnpm token revoke`. Earlier versions use `npm token revoke` as a fallback.
75
+ - **Yarn Classic:** Fallback: `npm token revoke`.
76
+ - **Yarn Modern:** Fallback: `npm token revoke`.
77
+ - **Bun:** Fallback: `npm token revoke`.
78
+
79
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
80
+ | ------------------ | --- | ---- | ------------ | ----------- | --- | ----- |
81
+ | `--registry <url>` | Yes | Yes | Yes | Yes | Yes | |
82
+
83
+ `revoke` accepts one token or ID. Authentication, password prompts, and token resolution follow the native command. Vite+ does not normalize token types or output schemas.
84
+
85
+ ## Native Options
86
+
87
+ For native options, see [npm token](https://docs.npmjs.com/cli/v11/commands/npm-token) and [pnpm token](https://pnpm.io/cli/token). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,33 @@
1
+ # vp unlink
2
+
3
+ Remove native package-manager links created for local development.
4
+
5
+ ```bash
6
+ vp unlink my-library
7
+ ```
8
+
9
+ ## Options
10
+
11
+ An optional package name or directory is forwarded to the manager. `-r, --recursive` requests unlinking across workspaces where supported.
12
+
13
+ | Option | Description | Notes |
14
+ | ----------------- | ---------------------------------- | ----- |
15
+ | `-r, --recursive` | Unlink in every workspace package. | |
16
+
17
+ ## Compatibility
18
+
19
+ - **npm:** `npm unlink`.
20
+ - **pnpm:** `pnpm unlink`.
21
+ - **Yarn Classic:** `yarn unlink`.
22
+ - **Yarn Modern:** 3 or later: `yarn unlink`. Earlier versions warn and skip.
23
+ - **Bun:** `bun unlink`.
24
+
25
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
26
+ | ----------------- | -------------- | ---- | ------------ | ----------- | --- | -------------------------------- |
27
+ | `-r, --recursive` | 8.1.0 or later | Yes | No | 3 or later | No | npm includes the workspace root. |
28
+
29
+ Operand and manifest-update behavior follow the native manager. This does not remove packages from Vite+'s [global store](./global-packages).
30
+
31
+ ## Native Options
32
+
33
+ For native options, see [npm unlink](https://docs.npmjs.com/cli/v11/commands/npm-uninstall), [pnpm unlink](https://pnpm.io/cli/unlink), [Yarn unlink](https://yarnpkg.com/cli/unlink), [Yarn Classic unlink](https://classic.yarnpkg.com/en/docs/cli/unlink), and [Bun unlink](https://bun.com/docs/pm/cli/link). To pass these options through Vite+, see [Native Arguments](./#native-arguments).