void 0.7.1 → 0.7.3

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 (167) hide show
  1. package/dist/agents-DqkFfc2c.mjs +151 -0
  2. package/dist/{auth-cmd-DVKi6dzh.mjs → auth-cmd-Dk0acCT5.mjs} +2 -2
  3. package/dist/{better-auth-shared-C9_GHSkR.d.mts → better-auth-shared-CZsIpjey.d.mts} +1 -1
  4. package/dist/{cache-B0BgSTZi.mjs → cache-DGSZ5Bh6.mjs} +2 -2
  5. package/dist/{cancel-deploy-D9OFt5gA.mjs → cancel-deploy-CrY3kt93.mjs} +1 -1
  6. package/dist/cli/cli.mjs +27 -174
  7. package/dist/{client-BUdfE3QJ.mjs → client-DCqnMpDt.mjs} +97 -11
  8. package/dist/{create-project-CN1pF-OQ.mjs → create-project-Bg88Kq_I.mjs} +3 -3
  9. package/dist/{db-BIP2kuEt.mjs → db-ClNu7vYQ.mjs} +13 -13
  10. package/dist/{delete-DJTvwbr-.mjs → delete-DXcX1yQZ.mjs} +2 -2
  11. package/dist/{deploy-BqXz1ycW.mjs → deploy-BkjqNk9U.mjs} +565 -161
  12. package/dist/{domain-B-fIU3VE.mjs → domain-CDQhvYNZ.mjs} +1 -1
  13. package/dist/{env-BwbZJd2x.mjs → env-CnrQY2b6.mjs} +1 -1
  14. package/dist/{env-helpers-Dr9Y7RnE.d.mts → env-helpers-CbeM_7-k.d.mts} +1 -1
  15. package/dist/{gen-U0Ktr4Zd.mjs → gen-C0EY2k27.mjs} +1 -1
  16. package/dist/{handler-B0ds0OHJ.d.mts → handler-dKQWyF-G.d.mts} +3 -3
  17. package/dist/index.d.mts +3 -3
  18. package/dist/index.mjs +13 -12
  19. package/dist/{init-Bb_Qsdq6.mjs → init-CPny6w9D.mjs} +63 -28
  20. package/dist/{link-D4d26PCm.mjs → link-eZ0aiHFK.mjs} +2 -2
  21. package/dist/{list-bQc1eQCZ.mjs → list-ztyEz4TW.mjs} +2 -2
  22. package/dist/{login-RWUDCfdx.mjs → login-B5HHT32i.mjs} +1 -1
  23. package/dist/{logs-DrkTklop.mjs → logs-J4BN0LXd.mjs} +1 -1
  24. package/dist/{mcp-kZ4zg13a.mjs → mcp-Bdu9bnjR.mjs} +1 -1
  25. package/dist/{node-DDfXj10V.mjs → node-DFqMcZR1.mjs} +3 -3
  26. package/dist/pages/client.d.mts +1 -1
  27. package/dist/pages/client.mjs +3 -0
  28. package/dist/pages/head-client.d.mts +1 -1
  29. package/dist/pages/head.d.mts +1 -1
  30. package/dist/pages/index.d.mts +2 -2
  31. package/dist/pages/index.mjs +1 -1
  32. package/dist/pages/islands-plugin.d.mts +1 -1
  33. package/dist/pages/protocol.d.mts +2 -2
  34. package/dist/pages/protocol.mjs +23 -18
  35. package/dist/{prepare-BAtWufvm.mjs → prepare-DKkx-2Kt.mjs} +1 -1
  36. package/dist/{project-cmd-ATFi3kRm.mjs → project-cmd-DKiQYdSd.mjs} +8 -8
  37. package/dist/{protocol-BWzXs2A2.d.mts → protocol-CK4OFwfR.d.mts} +2 -2
  38. package/dist/{rollback-BSyita3C.mjs → rollback-ZNvT8T54.mjs} +1 -1
  39. package/dist/{runner-6Ep3fNQu.mjs → runner-BUPRnMFN.mjs} +1 -1
  40. package/dist/runtime/ai.mjs +1 -1
  41. package/dist/runtime/auth.d.mts +1 -1
  42. package/dist/runtime/better-auth-pg.d.mts +1 -1
  43. package/dist/runtime/better-auth-pg.mjs +2 -2
  44. package/dist/runtime/better-auth.d.mts +1 -1
  45. package/dist/runtime/better-auth.mjs +2 -2
  46. package/dist/runtime/client.d.mts +2 -2
  47. package/dist/runtime/client.mjs +1 -1
  48. package/dist/runtime/env-helpers.d.mts +1 -1
  49. package/dist/runtime/env-public-client.d.mts +1 -1
  50. package/dist/runtime/env-public.d.mts +2 -2
  51. package/dist/runtime/env-public.mjs +1 -1
  52. package/dist/runtime/env.mjs +1 -1
  53. package/dist/runtime/fetch-stream.d.mts +1 -1
  54. package/dist/runtime/fetch-stream.mjs +1 -1
  55. package/dist/runtime/fetch.d.mts +1 -1
  56. package/dist/runtime/fetch.mjs +1 -1
  57. package/dist/runtime/handler.d.mts +1 -1
  58. package/dist/runtime/handler.mjs +1 -1
  59. package/dist/runtime/isr.mjs +1 -1
  60. package/dist/runtime/migration-handler.mjs +2 -2
  61. package/dist/runtime/validator.d.mts +1 -1
  62. package/dist/runtime/ws-server.d.mts +2 -2
  63. package/dist/runtime/ws.d.mts +3 -3
  64. package/dist/{secret-DmjBDxB1.mjs → secret-BXHx515u.mjs} +2 -2
  65. package/dist/{skills-ipldjlKE.mjs → skills-CbuYOthf.mjs} +1 -1
  66. package/package.json +13 -13
  67. package/skills/void/docs/guide/deployment.md +4 -6
  68. package/skills/void/docs/index.md +3 -3
  69. package/skills/void/docs/node_modules/void/AGENTS.md +1 -1
  70. package/skills/void/docs/node_modules/void/node_modules/@types/node/README.md +1 -1
  71. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/@types/node/README.md +1 -1
  72. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/AGENTS.md +15 -0
  73. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/README.md +208 -0
  74. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/build.md +21 -0
  75. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/fmt.md +18 -0
  76. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/index.md +31 -0
  77. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/lint.md +24 -0
  78. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/pack.md +17 -0
  79. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/run.md +249 -0
  80. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/staged.md +15 -0
  81. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/config/test.md +18 -0
  82. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/build.md +40 -0
  83. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/cache.md +119 -0
  84. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/check.md +44 -0
  85. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ci.md +64 -0
  86. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/commit-hooks.md +51 -0
  87. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/create.md +88 -0
  88. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/dev.md +24 -0
  89. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/env.md +102 -0
  90. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/fmt.md +41 -0
  91. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/ide-integration.md +101 -0
  92. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/implode.md +23 -0
  93. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/index.md +128 -0
  94. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/install.md +147 -0
  95. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/lint.md +50 -0
  96. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/migrate.md +173 -0
  97. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/pack.md +61 -0
  98. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/run.md +324 -0
  99. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/test.md +35 -0
  100. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/troubleshooting.md +132 -0
  101. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/upgrade.md +49 -0
  102. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/vpx.md +66 -0
  103. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/guide/why.md +39 -0
  104. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/index.md +12 -0
  105. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/docs/team.md +35 -0
  106. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/generator/README.md +35 -0
  107. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite-plus/templates/monorepo/README.md +29 -0
  108. package/skills/void/docs/node_modules/void/node_modules/vite-plus/AGENTS.md +15 -0
  109. package/skills/void/docs/node_modules/void/node_modules/vite-plus/README.md +208 -0
  110. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/build.md +21 -0
  111. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/fmt.md +18 -0
  112. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/index.md +31 -0
  113. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/lint.md +24 -0
  114. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/pack.md +17 -0
  115. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/run.md +249 -0
  116. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/staged.md +15 -0
  117. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/config/test.md +18 -0
  118. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/build.md +40 -0
  119. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/cache.md +119 -0
  120. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/check.md +44 -0
  121. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ci.md +64 -0
  122. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/commit-hooks.md +51 -0
  123. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/create.md +88 -0
  124. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/dev.md +24 -0
  125. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/env.md +102 -0
  126. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/fmt.md +41 -0
  127. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/ide-integration.md +101 -0
  128. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/implode.md +23 -0
  129. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/index.md +128 -0
  130. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/install.md +147 -0
  131. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/lint.md +50 -0
  132. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/migrate.md +173 -0
  133. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/pack.md +61 -0
  134. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/run.md +324 -0
  135. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/test.md +35 -0
  136. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/troubleshooting.md +132 -0
  137. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/upgrade.md +49 -0
  138. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/vpx.md +66 -0
  139. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/guide/why.md +39 -0
  140. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/index.md +12 -0
  141. package/skills/void/docs/node_modules/void/node_modules/vite-plus/docs/team.md +35 -0
  142. package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/generator/README.md +35 -0
  143. package/skills/void/docs/node_modules/void/node_modules/vite-plus/templates/monorepo/README.md +29 -0
  144. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/tsdown/README.md +0 -55
  145. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/LICENSE.md +0 -2230
  146. package/skills/void/docs/node_modules/void/node_modules/@void/md/node_modules/vite/README.md +0 -20
  147. package/skills/void/docs/node_modules/void/node_modules/tsdown/README.md +0 -55
  148. package/skills/void/docs/node_modules/void/node_modules/vite/LICENSE.md +0 -2230
  149. package/skills/void/docs/node_modules/void/node_modules/vite/README.md +0 -20
  150. /package/dist/{auth-BdsJ0Aff.d.mts → auth-DrfOTMmr.d.mts} +0 -0
  151. /package/dist/{auth-migrations-BAtAck2g.mjs → auth-migrations-BwLPwRgH.mjs} +0 -0
  152. /package/dist/{better-auth-shared-CdYmQGry.mjs → better-auth-shared-APuDaPqW.mjs} +0 -0
  153. /package/dist/{defer-DcxEsVH1.mjs → defer-2ARBu8Et.mjs} +0 -0
  154. /package/dist/{drizzle-NnudE_UN.mjs → drizzle-C-NRqGhx.mjs} +0 -0
  155. /package/dist/{env-raw-BDL4TvdN.mjs → env-raw-DtfQ9E31.mjs} +0 -0
  156. /package/dist/{fetch-error-BQ8sZ5Nd.mjs → fetch-error-CEr0ACTl.mjs} +0 -0
  157. /package/dist/{fetch-error-CVZ5CGA-.d.mts → fetch-error-DflegrF3.d.mts} +0 -0
  158. /package/dist/{head-P-egrtFE.d.mts → head-CZGAunBV.d.mts} +0 -0
  159. /package/dist/{headers-DCXc7mDs.mjs → headers-YVkHjOyq.mjs} +0 -0
  160. /package/dist/{preset-D4I73kT4.mjs → preset-DFvePt0l.mjs} +0 -0
  161. /package/dist/{project-slug-CKam8lF9.mjs → project-slug-KRvHQEQI.mjs} +0 -0
  162. /package/dist/{resolve-project-Br5BR03U.mjs → resolve-project-DdjLQ2tB.mjs} +0 -0
  163. /package/dist/{runner-pg-D0wWHYnr.mjs → runner-pg-BI6f6Ncm.mjs} +0 -0
  164. /package/dist/{standard-schema-9CRjx-uR.d.mts → standard-schema-BfGDWXff.d.mts} +0 -0
  165. /package/dist/{subcommand-prompt-BKjuNAPb.mjs → subcommand-prompt-BMS1TNG5.mjs} +0 -0
  166. /package/dist/{types-mHOEwpW4.d.mts → types-AdKzPp2C.d.mts} +0 -0
  167. /package/dist/{yarn-pnp-BFqMV_bl.mjs → yarn-pnp-6LD6_3Ej.mjs} +0 -0
@@ -0,0 +1,23 @@
1
+ # Removing Vite+
2
+
3
+ Use `vp implode` to remove `vp` and all related Vite+ data from your machine.
4
+
5
+ ## Overview
6
+
7
+ `vp implode` is the cleanup command for removing a Vite+ installation and its managed data. Use it if you no longer want Vite+ to manage your runtime, package manager, and related local tooling state.
8
+
9
+ ::: info
10
+ If you decide Vite+ is not for you, please [share your feedback with us](https://discord.gg/cAnsqHh5PX).
11
+ :::
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ vp implode
17
+ ```
18
+
19
+ Skip the confirmation prompt with:
20
+
21
+ ```bash
22
+ vp implode --yes
23
+ ```
@@ -0,0 +1,128 @@
1
+ # Getting Started
2
+
3
+ Vite+ is the unified toolchain and entry point for web development. It manages your runtime, package manager, and frontend toolchain in one place by combining [Vite](https://vite.dev/), [Vitest](https://vitest.dev/), [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), [Oxfmt](https://oxc.rs/docs/guide/usage/formatter.html), [Rolldown](https://rolldown.rs/), [tsdown](https://tsdown.dev/), and [Vite Task](https://github.com/voidzero-dev/vite-task).
4
+
5
+ Vite+ ships in two parts: `vp`, the global command-line tool, and `vite-plus`, the local package installed in each project. If you already have a Vite project, use [`vp migrate`](/guide/migrate) to migrate it to Vite+, or paste our [migration prompt](/guide/migrate#migration-prompt) into your coding agent.
6
+
7
+ ## Install `vp`
8
+
9
+ ### macOS / Linux
10
+
11
+ ```bash
12
+ curl -fsSL https://vite.plus | bash
13
+ ```
14
+
15
+ ### Windows
16
+
17
+ ```powershell
18
+ irm https://vite.plus/ps1 | iex
19
+ ```
20
+
21
+ Alternatively, download and run [`vp-setup.exe`](https://setup.viteplus.dev).
22
+
23
+ ::: tip SmartScreen warning
24
+ The `vp-setup.exe` is not yet code-signed. Your browser may show a warning when downloading. Click **"..."** → **"Keep"** → **"Keep anyway"** to proceed. If Windows Defender SmartScreen blocks the file when you run it, click **"More info"** → **"Run anyway"**.
25
+ :::
26
+
27
+ After installation, open a new shell and run:
28
+
29
+ ```bash
30
+ vp help
31
+ ```
32
+
33
+ ::: info
34
+ Vite+ will manage your global Node.js runtime and package manager. If you'd like to opt out of this behavior, run `vp env off`. If you realize Vite+ is not for you, type `vp implode`, but please [share your feedback with us](https://discord.gg/cAnsqHh5PX).
35
+ :::
36
+
37
+ ::: details Using a minor platform (CPU architecture, OS) ?
38
+
39
+ Prebuilt binaries are distributed for the following platforms (grouped by [Node.js v24 platform support tier](https://github.com/nodejs/node/blob/v24.x/BUILDING.md#platform-list)):
40
+
41
+ - Tier 1
42
+ - Linux x64 glibc (`x86_64-unknown-linux-gnu`)
43
+ - Linux arm64 glibc (`aarch64-unknown-linux-gnu`)
44
+ - Windows x64 (`x86_64-pc-windows-msvc`)
45
+ - macOS x64 (`x86_64-apple-darwin`)
46
+ - macOS arm64 (`aarch64-apple-darwin`)
47
+ - Tier 2
48
+ - Windows arm64 (`aarch64-pc-windows-msvc`)
49
+ - Experimental
50
+ - Linux x64 musl (`x86_64-unknown-linux-musl`)
51
+ - Other
52
+ - Linux arm64 musl (`aarch64-unknown-linux-musl`)
53
+
54
+ If a prebuilt binary is not available for your platform, installation will fail with an error.
55
+
56
+ On Alpine Linux (musl), you need to install `libstdc++` before using Vite+:
57
+
58
+ ```sh
59
+ apk add libstdc++
60
+ ```
61
+
62
+ This is required because the managed [unofficial-builds](https://unofficial-builds.nodejs.org/) Node.js runtime depends on the GNU C++ standard library.
63
+
64
+ :::
65
+
66
+ ## Quick Start
67
+
68
+ Create a project, install dependencies, and use the default commands:
69
+
70
+ ```bash
71
+ vp create # Create a new project
72
+ vp install # Install dependencies
73
+ vp dev # Start the dev server
74
+ vp check # Format, lint, type-check
75
+ vp test # Run JavaScript tests
76
+ vp build # Build for production
77
+ ```
78
+
79
+ You can also just run `vp` on its own and use the interactive command line.
80
+
81
+ ## Core Commands
82
+
83
+ Vite+ can handle the entire local frontend development cycle from starting a project, developing it, checking & testing, and building it for production.
84
+
85
+ ### Start
86
+
87
+ - [`vp create`](/guide/create) creates new apps, packages, and monorepos.
88
+ - [`vp migrate`](/guide/migrate) moves existing projects onto Vite+.
89
+ - [`vp config`](/guide/commit-hooks) configures commit hooks and agent integration.
90
+ - [`vp staged`](/guide/commit-hooks) runs checks on staged files.
91
+ - [`vp install`](/guide/install) installs dependencies with the right package manager.
92
+ - [`vp env`](/guide/env) manages Node.js versions.
93
+
94
+ ### Develop
95
+
96
+ - [`vp dev`](/guide/dev) starts the dev server powered by Vite.
97
+ - [`vp check`](/guide/check) runs format, lint, and type checks together.
98
+ - [`vp lint`](/guide/lint), [`vp fmt`](/guide/fmt), and [`vp test`](/guide/test) let you run those tools directly.
99
+
100
+ ### Execute
101
+
102
+ - [`vp run`](/guide/run) runs tasks across workspaces with caching.
103
+ - [`vp cache clean`](/guide/cache) clears task cache entries.
104
+ - [`vpx`](/guide/vpx) downloads and runs binaries globally.
105
+ - [`vp exec`](/guide/vpx) runs local project binaries.
106
+ - [`vp dlx`](/guide/vpx) downloads and runs package binaries without adding them as dependencies.
107
+
108
+ ### Build
109
+
110
+ - [`vp build`](/guide/build) builds apps.
111
+ - [`vp pack`](/guide/pack) builds libraries or standalone artifacts.
112
+ - [`vp preview`](/guide/build) previews the production build locally.
113
+
114
+ ### Manage Dependencies
115
+
116
+ - [`vp add`](/guide/install), [`vp remove`](/guide/install), [`vp update`](/guide/install), [`vp dedupe`](/guide/install), [`vp outdated`](/guide/install), [`vp why`](/guide/install), and [`vp info`](/guide/install) wrap package-manager workflows.
117
+ - [`vp pm <command>`](/guide/install) calls other package manager commands directly.
118
+
119
+ ### Maintain
120
+
121
+ - [`vp upgrade`](/guide/upgrade) updates the `vp` installation itself.
122
+ - [`vp implode`](/guide/implode) removes `vp` and related Vite+ data from your machine.
123
+
124
+ ::: info
125
+ Vite+ ships with many predefined commands such as `vp build`, `vp test`, and `vp dev`. These commands are built-in and cannot be changed. If you want to run a command from your `package.json` scripts, use `vp run <command>` or `vpr <command>`.
126
+
127
+ [Learn more about `vp run`.](/guide/run)
128
+ :::
@@ -0,0 +1,147 @@
1
+ # Installing Dependencies
2
+
3
+ `vp install` installs dependencies using the current workspace's package manager.
4
+
5
+ ## Overview
6
+
7
+ Use Vite+ to manage dependencies across pnpm, npm, Yarn, and Bun. Instead of switching between `pnpm install`, `npm install`, `yarn install`, and `bun install`, you can keep using `vp install`, `vp add`, `vp remove`, and the rest of the Vite+ package-management commands.
8
+
9
+ Vite+ detects the package manager from the workspace root in this order:
10
+
11
+ 1. `packageManager` in `package.json`
12
+ 2. `pnpm-workspace.yaml`
13
+ 3. `pnpm-lock.yaml`
14
+ 4. `yarn.lock` or `.yarnrc.yml`
15
+ 5. `package-lock.json`
16
+ 6. `bun.lock` or `bun.lockb`
17
+ 7. `.pnpmfile.cjs` or `pnpmfile.cjs`
18
+ 8. `bunfig.toml`
19
+ 9. `yarn.config.cjs`
20
+
21
+ If none of those files are present, `vp` falls back to `pnpm` by default. Vite+ automatically downloads the matching package manager and uses it for the command you ran.
22
+
23
+ ## Usage
24
+
25
+ ```bash
26
+ vp install
27
+ ```
28
+
29
+ Common install flows:
30
+
31
+ ```bash
32
+ vp install
33
+ vp install --frozen-lockfile
34
+ vp install --lockfile-only
35
+ vp install --filter web
36
+ vp install -w
37
+ ```
38
+
39
+ `vp install` maps to the correct underlying install behavior for the detected package manager, including the right lockfile flags for pnpm, npm, Yarn, and Bun.
40
+
41
+ ## Global Packages
42
+
43
+ Use the `-g` flag for installing, updating or removing globally installed packages:
44
+
45
+ - `vp install -g <pkg>` installs a package globally
46
+ - `vp uninstall -g <pkg>` removes a global package
47
+ - `vp update -g [pkg]` updates one global package or all of them
48
+ - `vp list -g [pkg]` lists global packages
49
+
50
+ ## Managing Dependencies
51
+
52
+ Vite+ provides all the familiar package management commands:
53
+
54
+ - `vp install` installs the current dependency graph for the project
55
+ - `vp add <pkg>` adds packages to `dependencies`, use `-D` for `devDependencies`
56
+ - `vp remove <pkg>` removes packages
57
+ - `vp update` updates dependencies
58
+ - `vp dedupe` reduces duplicate dependency entries where the package manager supports it
59
+ - `vp outdated` shows available updates
60
+ - `vp list` shows installed packages
61
+ - `vp why <pkg>` explains why a package is present
62
+ - `vp info <pkg>` shows registry metadata for a package
63
+ - `vp rebuild` rebuilds native modules (e.g. after switching Node.js versions)
64
+ - `vp link` and `vp unlink` manage local package links
65
+ - `vp dlx <pkg>` runs a package binary without adding it to the project
66
+ - `vp pm <command>` forwards a raw package-manager-specific command when you need behavior outside the normalized `vp` command set
67
+
68
+ ### Command Guide
69
+
70
+ #### Install
71
+
72
+ Use `vp install` when you want to install exactly what the current `package.json` and lockfile describe.
73
+
74
+ - `vp install` is the standard install command
75
+ - `vp install --frozen-lockfile` fails if the lockfile would need changes
76
+ - `vp install --no-frozen-lockfile` allows lockfile updates explicitly
77
+ - `vp install --lockfile-only` updates the lockfile without performing a full install
78
+ - `vp install --prefer-offline` and `vp install --offline` prefer or require cached packages
79
+ - `vp install --ignore-scripts` skips lifecycle scripts
80
+ - `vp install --filter <pattern>` scopes install work in monorepos
81
+ - `vp install -w` installs in the workspace root
82
+
83
+ #### Global Install
84
+
85
+ Use these commands when you want package-manager-managed tools available outside a single project.
86
+
87
+ - `vp install -g typescript`
88
+ - `vp uninstall -g typescript`
89
+ - `vp update -g`
90
+ - `vp list -g`
91
+
92
+ #### Add and Remove
93
+
94
+ Use `vp add` and `vp remove` for day-to-day dependency edits instead of editing `package.json` by hand.
95
+
96
+ - `vp add react`
97
+ - `vp add -D typescript vitest`
98
+ - `vp add -O fsevents`
99
+ - `vp add --save-peer react`
100
+ - `vp remove react`
101
+ - `vp remove --filter web react`
102
+
103
+ #### Update, Dedupe, and Outdated
104
+
105
+ Use these commands to maintain the dependency graph over time.
106
+
107
+ - `vp update` refreshes packages to newer versions
108
+ - `vp outdated` shows which packages have newer versions available
109
+ - `vp dedupe` asks the package manager to collapse duplicates where possible
110
+
111
+ #### Inspect
112
+
113
+ Use these when you need to understand the current state of dependencies.
114
+
115
+ - `vp list` shows installed packages
116
+ - `vp why react` explains why `react` is installed
117
+ - `vp info react` shows registry metadata such as versions and dist-tags
118
+
119
+ #### Rebuild
120
+
121
+ Use `vp rebuild` when native modules need to be recompiled, for example after switching Node.js versions or when a C/C++ addon fails to load.
122
+
123
+ - `vp rebuild` rebuilds all native modules
124
+ - `vp rebuild -- <args>` passes extra arguments to the underlying package manager
125
+
126
+ ```bash
127
+ vp rebuild
128
+ vp rebuild -- --update-binary
129
+ ```
130
+
131
+ `vp rebuild` is a shorthand for `vp pm rebuild`.
132
+
133
+ #### Advanced
134
+
135
+ Use these when you need lower-level package-manager behavior.
136
+
137
+ - `vp link` and `vp unlink` manage local development links
138
+ - `vp dlx create-vite` runs a package binary without saving it as a dependency
139
+ - `vp pm <command>` forwards directly to the resolved package manager
140
+
141
+ Examples:
142
+
143
+ ```bash
144
+ vp pm config get registry
145
+ vp pm cache clean --force
146
+ vp pm exec tsc --version
147
+ ```
@@ -0,0 +1,50 @@
1
+ # Lint
2
+
3
+ `vp lint` lints code with Oxlint.
4
+
5
+ ## Overview
6
+
7
+ `vp lint` is built on [Oxlint](https://oxc.rs/docs/guide/usage/linter.html), the Oxc linter. Oxlint is designed as a fast replacement for ESLint for most frontend projects and ships with built-in support for core ESLint rules and many popular community rules.
8
+
9
+ Use `vp lint` to lint your project, and `vp check` to format, lint and type-check all at once.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ vp lint
15
+ vp lint --fix
16
+ vp lint --type-aware
17
+ ```
18
+
19
+ ## Configuration
20
+
21
+ Put lint configuration directly in the `lint` block in `vite.config.ts` so all your configuration stays in one place. We do not recommend using `oxlint.config.ts` or `.oxlintrc.json` with Vite+.
22
+
23
+ For the upstream rule set, options, and compatibility details, see the [Oxlint docs](https://oxc.rs/docs/guide/usage/linter.html).
24
+
25
+ ```ts [vite.config.ts]
26
+ import { defineConfig } from 'vite-plus';
27
+
28
+ export default defineConfig({
29
+ lint: {
30
+ ignorePatterns: ['dist/**'],
31
+ options: {
32
+ typeAware: true,
33
+ typeCheck: true,
34
+ },
35
+ },
36
+ });
37
+ ```
38
+
39
+ ## Type-Aware Linting
40
+
41
+ We recommend enabling both `typeAware` and `typeCheck` in the `lint` block:
42
+
43
+ - `typeAware: true` enables rules that require TypeScript type information
44
+ - `typeCheck: true` enables full type checking during linting
45
+
46
+ This path is powered by [tsgolint](https://github.com/oxc-project/tsgolint) on top of the TypeScript Go toolchain. It gives Oxlint access to type information and allows type checking directly via `vp lint` and `vp check`.
47
+
48
+ ## JS Plugins
49
+
50
+ If you are migrating from ESLint and still depend on a few critical JavaScript-based ESLint plugins, Oxlint has [JS plugin support](https://oxc.rs/docs/guide/usage/linter/js-plugins) that can help you keep those plugins running while you complete the migration.
@@ -0,0 +1,173 @@
1
+ # Migrate to Vite+
2
+
3
+ `vp migrate` helps move existing projects onto Vite+.
4
+
5
+ ## Overview
6
+
7
+ This command is the starting point for consolidating separate Vite, Vitest, Oxlint, Oxfmt, ESLint, and Prettier setups into Vite+.
8
+
9
+ Use it when you want to take an existing project and move it onto the Vite+ defaults instead of wiring each tool by hand.
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ vp migrate
15
+ vp migrate <path>
16
+ vp migrate --no-interactive
17
+ ```
18
+
19
+ ## Target Path
20
+
21
+ The positional `PATH` argument is optional.
22
+
23
+ - If omitted, `vp migrate` migrates the current directory
24
+ - If provided, it migrates that target directory instead
25
+
26
+ ```bash
27
+ vp migrate
28
+ vp migrate my-app
29
+ ```
30
+
31
+ ## Options
32
+
33
+ - `--agent <name>` writes agent instructions into the project
34
+ - `--no-agent` skips agent instruction setup
35
+ - `--editor <name>` writes editor config files into the project
36
+ - `--no-editor` skips editor config setup
37
+ - `--hooks` sets up pre-commit hooks
38
+ - `--no-hooks` skips hook setup
39
+ - `--no-interactive` runs the migration without prompts
40
+
41
+ ## Migration Flow
42
+
43
+ The `migrate` command is designed to move existing projects onto Vite+ quickly. Here is what the command does:
44
+
45
+ - Updates project dependencies
46
+ - Rewrites imports where needed
47
+ - Merges tool-specific config into `vite.config.ts`
48
+ - Updates scripts to the Vite+ command surface
49
+ - Can set up commit hooks
50
+ - Can write agent and editor configuration files
51
+
52
+ Most projects will require further manual adjustments after running `vp migrate`.
53
+
54
+ ## Recommended Workflow
55
+
56
+ Before running the migration:
57
+
58
+ - Upgrade to Vite 8+ and Vitest 4.1+ first
59
+ - Make sure you understand any existing lint, format, or test setup that should be preserved
60
+
61
+ After running the migration:
62
+
63
+ - Run `vp install`
64
+ - Run `vp check`
65
+ - Run `vp test`
66
+ - Run `vp build`
67
+
68
+ ## Migration Prompt
69
+
70
+ If you want to hand this work to a coding agent (or the reader is a coding agent!), use this migration prompt:
71
+
72
+ ```md
73
+ Migrate this project to Vite+. Vite+ replaces the current split tooling around runtime management, package management, dev/build/test commands, linting, formatting, and packaging. Run `vp help` to understand Vite+ capabilities and `vp help migrate` before making changes. Use `vp migrate --no-interactive` in the workspace root. Make sure the project is using Vite 8+ and Vitest 4.1+ before migrating.
74
+
75
+ After the migration:
76
+
77
+ - Confirm `vite` imports were rewritten to `vite-plus` where needed
78
+ - Confirm `vitest` imports were rewritten to `vite-plus/test` where needed
79
+ - Remove old `vite` and `vitest` dependencies only after those rewrites are confirmed
80
+ - Move remaining tool-specific config into the appropriate blocks in `vite.config.ts`
81
+
82
+ Command mapping to keep in mind:
83
+
84
+ - `vp run <script>` is the equivalent of `pnpm run <script>`
85
+ - `vp test` runs the built-in test command, while `vp run test` runs the `test` script from `package.json`
86
+ - `vp install`, `vp add`, and `vp remove` delegate through the package manager declared by `packageManager`
87
+ - `vp dev`, `vp build`, `vp preview`, `vp lint`, `vp fmt`, `vp check`, and `vp pack` replace the corresponding standalone tools
88
+ - Prefer `vp check` for validation loops
89
+
90
+ Finally, verify the migration by running: `vp install`, `vp check`, `vp test`, and `vp build`
91
+
92
+ Summarize the migration at the end and report any manual follow-up still required.
93
+ ```
94
+
95
+ ## Tool-Specific Migrations
96
+
97
+ ### Vitest
98
+
99
+ Vitest is automatically migrated through `vp migrate`. If you are migrating manually, you have to update all the imports to `vite-plus/test` instead:
100
+
101
+ ```ts
102
+ // before
103
+ import { describe, expect, it, vi } from 'vitest';
104
+
105
+ const { page } = await import('@vitest/browser/context');
106
+
107
+ // after
108
+ import { describe, expect, it, vi } from 'vite-plus/test';
109
+
110
+ const { page } = await import('vite-plus/test/browser/context');
111
+ ```
112
+
113
+ ### tsdown
114
+
115
+ If your project uses a `tsdown.config.ts`, move its options into the `pack` block in `vite.config.ts`:
116
+
117
+ ```ts [tsdown.config.ts] {4-6}
118
+ import { defineConfig } from 'tsdown';
119
+
120
+ export default defineConfig({
121
+ entry: ['src/index.ts'],
122
+ dts: true,
123
+ format: ['esm', 'cjs'],
124
+ });
125
+ ```
126
+
127
+ ```ts [vite.config.ts] {4-8}
128
+ import { defineConfig } from 'vite-plus';
129
+
130
+ export default defineConfig({
131
+ pack: {
132
+ entry: ['src/index.ts'],
133
+ dts: true,
134
+ format: ['esm', 'cjs'],
135
+ },
136
+ });
137
+ ```
138
+
139
+ After merging, delete `tsdown.config.ts`. See the [Pack guide](/guide/pack) for the full configuration reference.
140
+
141
+ ### lint-staged
142
+
143
+ Vite+ replaces lint-staged with its own `staged` block in `vite.config.ts`. Only the `staged` config format is supported. Standalone `.lintstagedrc` in non-JSON format and `lint-staged.config.*` are not migrated automatically.
144
+
145
+ Move your lint-staged rules into the `staged` block:
146
+
147
+ ```ts [vite.config.ts]
148
+ import { defineConfig } from 'vite-plus';
149
+
150
+ export default defineConfig({
151
+ staged: {
152
+ '*.{js,ts,tsx,vue,svelte}': 'vp check --fix',
153
+ },
154
+ });
155
+ ```
156
+
157
+ After migrating, remove lint-staged from your dependencies and delete any lint-staged config files. See the [Commit hooks guide](/guide/commit-hooks) and [Staged config reference](/config/staged) for details.
158
+
159
+ ## Examples
160
+
161
+ ```bash
162
+ # Migrate the current project
163
+ vp migrate
164
+
165
+ # Migrate a specific directory
166
+ vp migrate my-app
167
+
168
+ # Run without prompts
169
+ vp migrate --no-interactive
170
+
171
+ # Write agent and editor setup during migration
172
+ vp migrate --agent claude --editor zed
173
+ ```
@@ -0,0 +1,61 @@
1
+ # Pack
2
+
3
+ `vp pack` builds libraries for production with [tsdown](https://tsdown.dev/guide/).
4
+
5
+ ## Overview
6
+
7
+ `vp pack` builds libraries and standalone executables with tsdown. Use it for publishable packages and binary outputs. If you want to build a web application, use `vp build`. `vp pack` covers everything you need for building libraries out of the box, including declaration file generation, multiple output formats, source maps, and minification.
8
+
9
+ For more information about how tsdown works, see the official [tsdown guide](https://tsdown.dev/guide/).
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ vp pack
15
+ vp pack src/index.ts --dts
16
+ vp pack --watch
17
+ ```
18
+
19
+ ## Configuration
20
+
21
+ Put packaging configuration directly in the `pack` block in `vite.config.ts` so all your configuration stays in one place. We do not recommend using `tsdown.config.ts` with Vite+.
22
+
23
+ See the [tsdown guide](https://tsdown.dev/guide/) and the [tsdown config file docs](https://tsdown.dev/options/config-file) to learn more about how to use and configure `vp pack`.
24
+
25
+ Use it for:
26
+
27
+ - [declaration files (`dts`)](https://tsdown.dev/options/dts)
28
+ - [output formats](https://tsdown.dev/options/output-format)
29
+ - [watch mode](https://tsdown.dev/options/watch-mode)
30
+ - [standalone executables](https://tsdown.dev/options/exe#executable)
31
+
32
+ ```ts [vite.config.ts]
33
+ import { defineConfig } from 'vite-plus';
34
+
35
+ export default defineConfig({
36
+ pack: {
37
+ dts: true,
38
+ format: ['esm', 'cjs'],
39
+ sourcemap: true,
40
+ },
41
+ });
42
+ ```
43
+
44
+ ## Standalone Executables
45
+
46
+ `vp pack` can also build standalone executables through tsdown's experimental [`exe` option](https://tsdown.dev/options/exe#executable).
47
+
48
+ Use this when you want to ship a CLI or other Node-based tool as a native executable that runs without requiring Node.js to be installed separately.
49
+
50
+ ```ts [vite.config.ts]
51
+ import { defineConfig } from 'vite-plus';
52
+
53
+ export default defineConfig({
54
+ pack: {
55
+ entry: ['src/cli.ts'],
56
+ exe: true,
57
+ },
58
+ });
59
+ ```
60
+
61
+ See the official [tsdown executable docs](https://tsdown.dev/options/exe#executable) for details about configuring custom file names, embedded assets, and cross-platform targets.