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.
Files changed (89) hide show
  1. package/binding/index.cjs +117 -55
  2. package/binding/index.d.cts +9 -0
  3. package/dist/{agent-DkQD3xqe.js → agent-CTG3B-ec.js} +2 -2
  4. package/dist/bin.js +36 -7
  5. package/dist/{comparison-CmVirWIW-UlEf2maz.js → comparison-CmVirWIW-Z8p6CfWL.js} +4 -1
  6. package/dist/config/bin.js +2 -2
  7. package/dist/constants-DXqV1vWL.js +77 -0
  8. package/dist/create/bin.js +30 -35
  9. package/dist/{define-config-wR57OZG_.js → define-config-CeYkQCqG.js} +1 -1
  10. package/dist/{define-config-CwtQqYC1.cjs → define-config-jt2Hyhp2.cjs} +1 -1
  11. package/dist/define-config.cjs +1 -1
  12. package/dist/define-config.js +1 -1
  13. package/dist/{editor-aOy1T15H.js → editor-C0U0Ymqk.js} +213 -83
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.js +1 -1
  16. package/dist/lint-plugins.cjs +1 -1
  17. package/dist/migration/bin.js +9 -8
  18. package/dist/{oxlint-plugin-config-CHsI_zKo.js → oxlint-plugin-config-DvBRM_Se.js} +1 -1
  19. package/dist/oxlint-plugin.js +2 -2
  20. package/dist/pack-bin.js +1 -1
  21. package/dist/{package-DfFo6-E-.js → package-CK48ZXBV.js} +1 -1
  22. package/dist/{constants-D2P2aVKb.js → package-Cc9gI1u1.js} +2 -77
  23. package/dist/{package-overrides-Ci8GXouY.js → package-overrides-nw4zcITi.js} +1 -1
  24. package/dist/{prompts-C7DI63WP.js → prompts-JkuWOV60.js} +9 -5
  25. package/dist/{resolve-vite-config-33bzSaeT.js → resolve-vite-config-CfUvxuCo.js} +1 -1
  26. package/dist/{resolve-vite-config-Cx3cnVVI.js → resolve-vite-config-x5QVnaf4.js} +2 -2
  27. package/dist/staged/bin.js +1 -1
  28. package/dist/sync-versions/bin.js +1 -1
  29. package/dist/toolchain.js +9 -9
  30. package/dist/toolchain.json +9 -9
  31. package/dist/{tsconfig-BE3Wj9OX.js → tsconfig-CZlh956U.js} +1 -1
  32. package/dist/{tsconfig-shNmmCE_.js → tsconfig-DUR3fhIX.js} +2 -2
  33. package/dist/user-agent-CpEaSTwI.js +6 -0
  34. package/dist/version.js +3 -2
  35. package/dist/versions.js +5 -5
  36. package/dist/vpx-bin.js +2 -0
  37. package/docs/config/run.md +8 -7
  38. package/docs/guide/automatic-data-tracking.md +138 -0
  39. package/docs/guide/check.md +13 -0
  40. package/docs/guide/global-cli.md +13 -3
  41. package/docs/guide/index.md +4 -4
  42. package/docs/guide/local-cli.md +1 -1
  43. package/docs/guide/migrate-rules.md +3 -1
  44. package/docs/guide/migrate.md +4 -4
  45. package/docs/guide/package-management/add.md +84 -0
  46. package/docs/guide/package-management/approve-builds.md +48 -0
  47. package/docs/guide/package-management/audit.md +39 -0
  48. package/docs/guide/package-management/cache.md +53 -0
  49. package/docs/guide/package-management/ci.md +28 -0
  50. package/docs/guide/package-management/config.md +119 -0
  51. package/docs/guide/package-management/dedupe.md +32 -0
  52. package/docs/guide/package-management/deprecate.md +39 -0
  53. package/docs/guide/package-management/dist-tag.md +61 -0
  54. package/docs/guide/package-management/dlx.md +40 -0
  55. package/docs/guide/package-management/fund.md +32 -0
  56. package/docs/guide/package-management/global-packages.md +32 -0
  57. package/docs/guide/package-management/index.md +78 -0
  58. package/docs/guide/package-management/info.md +35 -0
  59. package/docs/guide/package-management/install.md +89 -0
  60. package/docs/guide/package-management/licenses.md +42 -0
  61. package/docs/guide/package-management/link.md +29 -0
  62. package/docs/guide/package-management/list.md +60 -0
  63. package/docs/guide/package-management/login.md +34 -0
  64. package/docs/guide/package-management/logout.md +34 -0
  65. package/docs/guide/package-management/outdated.md +60 -0
  66. package/docs/guide/package-management/owner.md +79 -0
  67. package/docs/guide/package-management/pack.md +40 -0
  68. package/docs/guide/package-management/package-manager-selection.md +60 -0
  69. package/docs/guide/package-management/patch-commit.md +27 -0
  70. package/docs/guide/package-management/patch.md +29 -0
  71. package/docs/guide/package-management/ping.md +32 -0
  72. package/docs/guide/package-management/pkg.md +88 -0
  73. package/docs/guide/package-management/prune.md +34 -0
  74. package/docs/guide/package-management/publish.md +61 -0
  75. package/docs/guide/package-management/rebuild.md +31 -0
  76. package/docs/guide/package-management/remove.md +47 -0
  77. package/docs/guide/package-management/search.md +38 -0
  78. package/docs/guide/package-management/stage.md +175 -0
  79. package/docs/guide/package-management/team.md +140 -0
  80. package/docs/guide/package-management/token.md +87 -0
  81. package/docs/guide/package-management/unlink.md +33 -0
  82. package/docs/guide/package-management/update.md +62 -0
  83. package/docs/guide/package-management/version.md +36 -0
  84. package/docs/guide/package-management/whoami.md +30 -0
  85. package/docs/guide/package-management/why.md +55 -0
  86. package/docs/guide/run.md +22 -0
  87. package/docs/guide/vpx.md +1 -1
  88. package/package.json +18 -18
  89. package/docs/guide/package-management.md +0 -269
@@ -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).
@@ -0,0 +1,62 @@
1
+ # vp update
2
+
3
+ Update project dependencies using the selected manager's update rules. Alias: `vp up`.
4
+
5
+ ```bash
6
+ vp update
7
+ vp update react
8
+ vp update --latest
9
+ vp update -g
10
+ ```
11
+
12
+ ## Options
13
+
14
+ | Option | Description | Notes |
15
+ | --------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
16
+ | `-L, --latest` | Update to latest version (ignore semver range). | Global mode clears recorded version ranges. |
17
+ | `-g, --global` | Update global packages. | Requires the global CLI. Uses the [global package store](./global-packages). |
18
+ | `--concurrency <number>` | Number of global package updates to run in parallel. | Requires --global. Must be a positive integer. |
19
+ | `--reinstall-node-mismatch` | Reinstall up-to-date global packages installed with a different Node.js version. | Requires --global. |
20
+ | `--ignore-node-mismatch` | Skip up-to-date global packages installed with a different Node.js version. | Requires --global. |
21
+ | `-r, --recursive` | Update recursively in all workspace packages. | |
22
+ | `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
23
+ | `-w, --workspace-root` | Include workspace root. | |
24
+ | `-D, --dev` | Select development dependencies. | |
25
+ | `-P, --prod` | Select production dependencies. | |
26
+ | `-i, --interactive` | Interactive mode. | |
27
+ | `--no-optional` | Exclude optionalDependencies. | |
28
+ | `--no-save` | Request native no-save behavior. | |
29
+ | `--workspace` | Update only dependencies available in the workspace. | |
30
+
31
+ ## Compatibility
32
+
33
+ The commands below describe project operations. Global mode is described under [Options](#options).
34
+
35
+ - **npm:** `npm update`.
36
+ - **pnpm:** `pnpm update`.
37
+ - **Yarn Classic:** `yarn upgrade` or `yarn upgrade-interactive`.
38
+ - **Yarn Modern:** `yarn up`.
39
+ - **Bun:** `bun update`.
40
+
41
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
42
+ | --------------------------- | ---------------- | ---- | ------------ | ---------------------------- | ------------ | ----- |
43
+ | `-L, --latest` | Global mode only | Yes | Yes | Yes | Yes | |
44
+ | `-g, --global` | Yes | Yes | Yes | Yes | Yes | |
45
+ | `--concurrency <number>` | Yes | Yes | Yes | Yes | Yes | |
46
+ | `--reinstall-node-mismatch` | Yes | Yes | Yes | Yes | Yes | |
47
+ | `--ignore-node-mismatch` | Yes | Yes | Yes | Yes | Yes | |
48
+ | `-r, --recursive` | 8.1.0 or later | Yes | No | Yes | 1.4 or later | |
49
+ | `--filter <pattern>` | 7.14.0 or later | Yes | One filter | No | 1.4 or later | |
50
+ | `-w, --workspace-root` | 8.1.0 or later | Yes | No | No | No | |
51
+ | `-D, --dev` | Yes | Yes | No | No | 1.4 or later | |
52
+ | `-P, --prod` | 7 or later | Yes | Yes | No | 1.4 or later | |
53
+ | `-i, --interactive` | No | Yes | Yes | Yes | Yes | |
54
+ | `--no-optional` | Yes | Yes | Yes | No | 1.4 or later | |
55
+ | `--no-save` | Yes | Yes | No | --recursive without --latest | Yes | |
56
+ | `--workspace` | No | Yes | No | No | No | |
57
+
58
+ To change a dependency's declared range on npm, use [add](./add) with a new version specification. Yarn Modern follows project-wide update semantics. Recursive mode without `--latest` re-resolves existing ranges without rewriting manifests; combining it with `--latest` uses ordinary `yarn up`.
59
+
60
+ ## Native Options
61
+
62
+ For native options, see [npm update](https://docs.npmjs.com/cli/v11/commands/npm-update), [pnpm update](https://pnpm.io/cli/update), [Yarn up](https://yarnpkg.com/cli/up), [Yarn Classic upgrade](https://classic.yarnpkg.com/en/docs/cli/upgrade), [Yarn Classic upgrade-interactive](https://classic.yarnpkg.com/en/docs/cli/upgrade-interactive), and [Bun update](https://bun.com/docs/pm/cli/update). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,36 @@
1
+ # vp pm version
2
+
3
+ Run the package manager's version command. This manages package versions, not the Vite+ version displayed by `vp --version`.
4
+
5
+ ```bash
6
+ vp pm version patch
7
+ vp pm version 2.0.0
8
+ ```
9
+
10
+ ## Options
11
+
12
+ Supply a version or increment strategy such as `major`, `minor`, or `patch`. Omitting it retains the manager's native behavior, which may display information, prompt, or require a strategy.
13
+
14
+ | Option | Description | Notes |
15
+ | -------- | --------------------------- | --------------------------------- |
16
+ | `--json` | Request native JSON output. | Output retains the native schema. |
17
+
18
+ ## Compatibility
19
+
20
+ - **npm:** `npm version`.
21
+ - **pnpm:** `pnpm version`.
22
+ - **Yarn Classic:** `yarn version`.
23
+ - **Yarn Modern:** `yarn version`.
24
+ - **Bun:** 1.2.18 or later: `bun pm version`. Earlier versions warn before the command is invoked.
25
+
26
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
27
+ | -------- | --- | ---- | ------------ | ----------- | --- | ----- |
28
+ | `--json` | Yes | Yes | Yes | No | No | |
29
+
30
+ Yarn Classic converts increment strategies to flags such as `--patch`. An explicit version becomes `--new-version <version>`. Other managers retain their native operand syntax.
31
+
32
+ Version commands can modify manifests and lockfiles and may create Git commits or tags. Vite+ preserves the selected manager's behavior.
33
+
34
+ ## Native Options
35
+
36
+ For native options, see [npm version](https://docs.npmjs.com/cli/v11/commands/npm-version), [pnpm version](https://pnpm.io/cli/version), [Yarn version](https://yarnpkg.com/cli/version), [Yarn Classic version](https://classic.yarnpkg.com/en/docs/cli/version), and [Bun pm version](https://bun.com/docs/pm/cli/pm). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,30 @@
1
+ # vp pm whoami
2
+
3
+ Show the account authenticated with the registry.
4
+
5
+ ```bash
6
+ vp pm whoami
7
+ vp pm whoami --registry https://registry.npmjs.org
8
+ ```
9
+
10
+ ## Options
11
+
12
+ | Option | Description | Notes |
13
+ | ------------------ | -------------------- | ----- |
14
+ | `--registry <url>` | Select the registry. | |
15
+
16
+ ## Compatibility
17
+
18
+ - **npm:** `npm whoami`.
19
+ - **pnpm:** 11 or later: `pnpm whoami`. Earlier versions use `npm whoami` as a fallback.
20
+ - **Yarn Classic:** No command. Warns and exits successfully without performing the operation.
21
+ - **Yarn Modern:** `yarn npm whoami`.
22
+ - **Bun:** `bun pm whoami`.
23
+
24
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
25
+ | ------------------ | --- | ---- | ------------ | ----------- | --- | ----------------------------------------------- |
26
+ | `--registry <url>` | Yes | Yes | No | No | Yes | Configure the registry in Yarn Modern settings. |
27
+
28
+ ## Native Options
29
+
30
+ For native options, see [npm whoami](https://docs.npmjs.com/cli/v11/commands/npm-whoami), [pnpm whoami](https://pnpm.io/cli/whoami), [Yarn npm whoami](https://yarnpkg.com/cli/npm/whoami), and [Bun pm whoami](https://bun.com/docs/pm/cli/pm). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
@@ -0,0 +1,55 @@
1
+ # vp why
2
+
3
+ Explain why a dependency is installed. Alias: `vp explain`.
4
+
5
+ ```bash
6
+ vp why react
7
+ vp why react --json
8
+ vp why react --filter web
9
+ ```
10
+
11
+ ## Options
12
+
13
+ | Option | Description | Notes |
14
+ | ------------------------- | ----------------------------------------------- | --------------------------------- |
15
+ | `--json` | Request native JSON output. | Output retains the native schema. |
16
+ | `--long` | Show extended information. | |
17
+ | `--parseable` | Show parseable output. | |
18
+ | `-r, --recursive` | Check recursively across all workspaces. | |
19
+ | `--filter <pattern>` | Select workspaces by pattern. | Can be repeated. |
20
+ | `-w, --workspace-root` | Check in workspace root. | |
21
+ | `-P, --prod` | Only production dependencies. | |
22
+ | `-D, --dev` | Only dev dependencies. | |
23
+ | `--depth <depth>` | Limit tree depth. | |
24
+ | `--no-optional` | Exclude optional dependencies. | |
25
+ | `--exclude-peers` | Exclude peer dependencies. | |
26
+ | `--find-by <finder_name>` | Use a finder function defined in .pnpmfile.cjs. | |
27
+
28
+ ## Compatibility
29
+
30
+ - **npm:** `npm explain`.
31
+ - **pnpm:** `pnpm why`.
32
+ - **Yarn Classic:** `yarn why`. With multiple package names, warns and checks only the first.
33
+ - **Yarn Modern:** `yarn why`. With multiple package names, warns and checks only the first.
34
+ - **Bun:** `bun why`.
35
+
36
+ | Option | npm | pnpm | Yarn Classic | Yarn Modern | Bun | Notes |
37
+ | ------------------------- | --------------- | ---------------- | ------------ | ----------- | --- | -------------------------------------- |
38
+ | `--json` | Yes | Yes | Yes | Yes | No | |
39
+ | `--long` | No | Yes | No | No | No | |
40
+ | `--parseable` | No | Yes | No | No | No | |
41
+ | `-r, --recursive` | 7.14.0 or later | Yes | No | Yes | No | |
42
+ | `--filter <pattern>` | 7.14.0 or later | Yes | No | No | No | |
43
+ | `-w, --workspace-root` | No | Yes | No | No | No | |
44
+ | `-P, --prod` | No | Yes | No | No | No | |
45
+ | `-D, --dev` | No | Yes | No | No | No | |
46
+ | `--depth <depth>` | No | Yes | No | No | Yes | |
47
+ | `--no-optional` | No | Yes | No | No | No | |
48
+ | `--exclude-peers` | No | Yes | No | Yes | No | Yarn Modern includes peers by default. |
49
+ | `--find-by <finder_name>` | No | 10.16.0 or later | No | No | No | |
50
+
51
+ The dependency graph does not include tools Vite+ bundles or compiles. For readable output, Vite+ shows a hint when it also provides the requested package. Use `vp toolchain [tool]` to inspect bundled tools.
52
+
53
+ ## Native Options
54
+
55
+ For native options, see [npm explain](https://docs.npmjs.com/cli/v11/commands/npm-explain), [pnpm why](https://pnpm.io/cli/why), [Yarn why](https://yarnpkg.com/cli/why), [Yarn Classic why](https://classic.yarnpkg.com/en/docs/cli/why), and [Bun why](https://bun.com/docs/pm/cli/why). To pass these options through Vite+, see [Native Arguments](./#native-arguments).
package/docs/guide/run.md CHANGED
@@ -354,12 +354,34 @@ Task Details:
354
354
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
355
355
  ```
356
356
 
357
+ When a task misses the cache, the summary lists every change that caused the miss. Use `-vv` (or `--verbose --verbose`) to also list each cached run's unchanged inputs, under `Unchanged:`, and the files a cache hit restores, under `Outputs:`. If a run hits the cache when you expected a miss, `-vv` shows whether the file you edited is an input at all.
358
+
357
359
  Use `--last-details` to show the summary from the last run without running tasks again:
358
360
 
359
361
  ```bash
360
362
  vp run --last-details
361
363
  ```
362
364
 
365
+ ## Dry Runs And JSON Output
366
+
367
+ `--dry-run` shows what a run would do without running anything. It prints each command with its cache status, then the summary. Vite Task checks the cache as a real run would, but writes nothing:
368
+
369
+ ```bash
370
+ vp run --dry-run -r build
371
+ ```
372
+
373
+ `--json` prints JSON instead of text, for scripts and agents:
374
+
375
+ - `vp run --json`, with no task or other flags, prints every package and task in the workspace, with each task's `dependsOn` resolved, and runs nothing. See the [task graph schema](https://github.com/voidzero-dev/vite-task/blob/cb1ea8d214b26a0f3ca2b2ef3b6bc471b18ffacb/crates/vt/schemas/task-graph.json).
376
+ - `vp run --dry-run --json build` prints the plan for a run: each task it would run, the tasks each one waits for, each step's command, and whether each step would hit the cache. With a task, `--json` only works together with `--dry-run`. See the [run plan schema](https://github.com/voidzero-dev/vite-task/blob/cb1ea8d214b26a0f3ca2b2ef3b6bc471b18ffacb/crates/vt/schemas/run-plan.json).
377
+
378
+ Add `-v` or `-vv` for more detail:
379
+
380
+ - On its own, `--dry-run` shows the first change it finds behind each miss. With `-v`, the summary lists every change.
381
+ - `-vv` with `--dry-run --json` adds each step's `baseline.fingerprint` and `baseline.outputs`: the inputs its cached run recorded, and the outputs a hit would restore.
382
+
383
+ Put these flags before the task name. Anything after the task name is passed to the task.
384
+
363
385
  ## Concurrency
364
386
 
365
387
  By default, up to 4 tasks run at the same time. Use `--concurrency-limit` to change this:
package/docs/guide/vpx.md CHANGED
@@ -253,7 +253,7 @@ vp exec tsc --noEmit
253
253
 
254
254
  ## `vp dlx`
255
255
 
256
- Use `vp dlx` for one-off package execution without adding the package to your project dependencies.
256
+ Use `vp dlx` for one-off package execution without adding the package to your project dependencies. See the [dlx command reference](/guide/package-management/dlx) for options and package-manager compatibility.
257
257
 
258
258
  ```bash
259
259
  vp dlx <package> [args...]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plus",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "The Unified Toolchain for the Web",
5
5
  "homepage": "https://viteplus.dev/guide",
6
6
  "bugs": {
@@ -345,9 +345,9 @@
345
345
  }
346
346
  },
347
347
  "dependencies": {
348
- "@oxc-project/runtime": "=0.157.0",
349
- "@oxc-project/types": "=0.157.0",
350
- "@oxlint/plugins": "=1.91.0",
348
+ "@oxc-project/runtime": "=0.158.0",
349
+ "@oxc-project/types": "=0.158.0",
350
+ "@oxlint/plugins": "=1.93.0",
351
351
  "@vitest/browser": "5.1.0",
352
352
  "@vitest/browser-preview": "5.1.0",
353
353
  "@vitest/mocker": "5.1.0",
@@ -355,22 +355,22 @@
355
355
  "@vitest/snapshot": "5.1.0",
356
356
  "@vitest/spy": "5.1.0",
357
357
  "@vitest/utils": "5.1.0",
358
- "oxfmt": "=0.76.0",
359
- "oxlint": "=1.91.0",
360
- "oxlint-tsgolint": "=7.0.2005",
361
- "vite": "npm:@voidzero-dev/vite-plus-core@1.5.0",
358
+ "oxfmt": "=0.78.0",
359
+ "oxlint": "=1.93.0",
360
+ "oxlint-tsgolint": "=7.0.2006",
361
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
362
362
  "vitest": "5.1.0"
363
363
  },
364
364
  "devDependencies": {
365
365
  "@emnapi/core": "2.0.0-beta.2",
366
366
  "@emnapi/runtime": "2.0.0-beta.2",
367
- "@napi-rs/cli": "^3.10.0",
367
+ "@napi-rs/cli": "^3.10.12",
368
368
  "@nkzw/safe-word-list": "^3.1.0",
369
369
  "@types/cross-spawn": "^6.0.6",
370
370
  "@types/validate-npm-package-name": "^4.0.2",
371
371
  "@vitest/browser-playwright": "5.1.0",
372
372
  "@vitest/browser-webdriverio": "5.0.0",
373
- "@voidzero-dev/vite-plus-prompts": "1.5.0",
373
+ "@voidzero-dev/vite-plus-prompts": "1.6.0",
374
374
  "@voidzero-dev/vite-task-client": "0.2.0",
375
375
  "bingo": "^0.13.2",
376
376
  "cac": "^7.1.0",
@@ -424,14 +424,14 @@
424
424
  "node": "^22.18.0 || ^24.11.0 || >=26.0.0"
425
425
  },
426
426
  "optionalDependencies": {
427
- "@voidzero-dev/vite-plus-darwin-arm64": "1.5.0",
428
- "@voidzero-dev/vite-plus-darwin-x64": "1.5.0",
429
- "@voidzero-dev/vite-plus-linux-arm64-gnu": "1.5.0",
430
- "@voidzero-dev/vite-plus-linux-arm64-musl": "1.5.0",
431
- "@voidzero-dev/vite-plus-linux-x64-gnu": "1.5.0",
432
- "@voidzero-dev/vite-plus-linux-x64-musl": "1.5.0",
433
- "@voidzero-dev/vite-plus-win32-x64-msvc": "1.5.0",
434
- "@voidzero-dev/vite-plus-win32-arm64-msvc": "1.5.0"
427
+ "@voidzero-dev/vite-plus-darwin-arm64": "1.6.0",
428
+ "@voidzero-dev/vite-plus-darwin-x64": "1.6.0",
429
+ "@voidzero-dev/vite-plus-linux-arm64-gnu": "1.6.0",
430
+ "@voidzero-dev/vite-plus-linux-arm64-musl": "1.6.0",
431
+ "@voidzero-dev/vite-plus-linux-x64-gnu": "1.6.0",
432
+ "@voidzero-dev/vite-plus-linux-x64-musl": "1.6.0",
433
+ "@voidzero-dev/vite-plus-win32-x64-msvc": "1.6.0",
434
+ "@voidzero-dev/vite-plus-win32-arm64-msvc": "1.6.0"
435
435
  },
436
436
  "scripts": {
437
437
  "build": "oxnode -C dev ./build.ts",