vite-plus 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +7 -0
- package/LICENSE +5 -1
- package/README.md +9 -3
- package/bin/vpr +3 -2
- package/binding/index.cjs +193 -80
- package/binding/index.d.cts +106 -11
- package/dist/agent-DQU8uS6P.js +416 -0
- package/dist/bin.js +1388 -23
- package/dist/{cli-truncate-BVOlIIPy.js → cli-truncate-Bg3RDXpi.js} +0 -2
- package/dist/client/bundledDevClient.mjs +1 -0
- package/dist/config/bin.js +32 -133
- package/dist/{constants-BsuzPowC.js → constants-CG513DRa.js} +10 -2
- package/dist/create/bin.js +255 -268
- package/dist/{define-config-C2KfLHpC.js → define-config-CV4bQG_8.js} +3 -3
- package/dist/{define-config-eLQH9us2.d.ts → define-config-DWoAkNdp.d.ts} +16 -0
- package/dist/{define-config-DLh9fE95.cjs → define-config-DyNLA_f0.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-CKz3vcoG.js → dist-BDYZP12R.js} +196 -157
- package/dist/dist-Dqv1-Clg.js +3 -0
- package/dist/{agent-CPwWJ4qf.js → editor-g4PosU99.js} +819 -628
- package/dist/hooks/bin.d.ts +1 -0
- package/dist/hooks/bin.js +130 -0
- package/dist/hooks-pNCBWtFT.js +570 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-DiRs8ceZ.js → json-qlK6UH0r.js} +40 -38
- package/dist/migration/bin.js +65 -58
- package/dist/{oxlint-plugin-config-Bxgc4cwF.js → oxlint-plugin-config-BEZ9IUf7.js} +1 -1
- package/dist/oxlint-plugin.js +1 -1
- package/dist/pack-bin.js +1 -1
- package/dist/{package-Ds3uThLb.js → package-B4T8RGMG.js} +2 -2
- package/dist/{tsconfig-Jia2vgMG.js → prompts-CHz_98bJ.js} +169 -219
- package/dist/{resolve-vite-config-BiuLZnn8.js → resolve-vite-config-Dmeyeyj-.js} +2 -9
- package/dist/{rolldown-runtime-C7HZzL1F.js → rolldown-runtime-CMFfr-1z.js} +1 -1
- package/dist/staged/bin.js +241 -226
- package/dist/terminal-Bz-ps6rJ.js +128 -0
- package/dist/test/browser/providers/playwright/context.d.ts +1 -1
- package/dist/test/browser/providers/playwright.d.ts +6 -6
- package/dist/test/browser/providers/preview/context.d.ts +1 -1
- package/dist/test/browser/providers/preview.d.ts +4 -4
- package/dist/test/browser/providers/webdriverio/context.d.ts +1 -1
- package/dist/test/browser/providers/webdriverio.d.ts +6 -6
- package/dist/test/browser-playwright/context.d.ts +1 -1
- package/dist/test/browser-playwright.d.ts +6 -6
- package/dist/test/browser-preview/context.d.ts +1 -1
- package/dist/test/browser-preview.d.ts +4 -4
- package/dist/test/browser-webdriverio/context.d.ts +1 -1
- package/dist/test/browser-webdriverio.d.ts +6 -6
- package/dist/test/context.d.ts +3 -3
- package/dist/test/locators.d.ts +1 -1
- package/dist/toolchain.d.ts +25 -0
- package/dist/toolchain.js +194 -0
- package/dist/toolchain.json +193 -0
- package/dist/tsconfig-7v_BHagU.js +151 -0
- package/dist/{tsgolint-path-B-yOos8p.js → tsgolint-path-CbDReEOx.js} +5 -3
- package/dist/tsgolint-path.js +1 -1
- package/dist/version.js +6 -6
- package/dist/versions.d.ts +3 -3
- package/dist/versions.js +6 -6
- package/docs/config/index.md +13 -0
- package/docs/config/staged.md +2 -1
- package/docs/guide/ci.md +37 -4
- package/docs/guide/commit-hooks.md +112 -21
- package/docs/guide/create.md +7 -4
- package/docs/guide/env.md +8 -4
- package/docs/guide/fmt.md +2 -2
- package/docs/guide/github-actions-cache.md +5 -1
- package/docs/guide/ide-integration.md +61 -2
- package/docs/guide/index.md +4 -2
- package/docs/guide/install.md +27 -0
- package/docs/guide/installer-env-vars.md +14 -3
- package/docs/guide/lint.md +3 -1
- package/docs/guide/migrate.md +49 -4
- package/docs/guide/monorepo.md +98 -10
- package/docs/guide/troubleshooting.md +12 -3
- package/docs/guide/upgrade.md +27 -4
- package/docs/package.json +1 -1
- package/docs/pnpm-workspace.yaml +7 -0
- package/docs/vite.config.ts +3 -0
- package/package.json +21 -23
- package/rules/vite-tools.yml +0 -7
- package/dist/dist-CtM2JRbM.js +0 -3
- package/dist/editor-BbT1lTNc.js +0 -675
- package/dist/help-YP84FSEz.js +0 -61
- package/dist/terminal-uTv0ZaMr.js +0 -33
- package/dist/{log-update-DHZRyJ2m.js → log-update-CoW8Z4Dl.js} +1 -1
package/docs/guide/monorepo.md
CHANGED
|
@@ -24,7 +24,7 @@ export default defineConfig({
|
|
|
24
24
|
overrides: [
|
|
25
25
|
{
|
|
26
26
|
files: ['apps/web/**', 'packages/ui/**'],
|
|
27
|
-
plugins: ['
|
|
27
|
+
plugins: ['react'],
|
|
28
28
|
rules: {
|
|
29
29
|
'react/self-closing-comp': 'error',
|
|
30
30
|
},
|
|
@@ -40,9 +40,9 @@ export default defineConfig({
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
files: ['**/*.test.ts', '**/*.spec.ts'],
|
|
43
|
-
plugins: ['
|
|
43
|
+
plugins: ['vitest'],
|
|
44
44
|
rules: {
|
|
45
|
-
'
|
|
45
|
+
'typescript/no-explicit-any': 'off',
|
|
46
46
|
'vitest/no-disabled-tests': 'error',
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -54,7 +54,7 @@ export default defineConfig({
|
|
|
54
54
|
Globs are resolved from the root `vite.config.ts`, so use workspace paths such as `apps/web/**`, `apps/api/**`, and `packages/ui/**`.
|
|
55
55
|
|
|
56
56
|
::: tip
|
|
57
|
-
When a `lint.overrides` entry sets `plugins`, that list
|
|
57
|
+
When a `lint.overrides` entry sets `plugins`, that list will be merged with the base `lint.plugins` list for matched files. Omit `plugins` only when the override should inherit the base list unchanged.
|
|
58
58
|
:::
|
|
59
59
|
|
|
60
60
|
## Format Overrides
|
|
@@ -145,16 +145,104 @@ This keeps the behavior centralized while letting each team or package own the p
|
|
|
145
145
|
|
|
146
146
|
## App Commands
|
|
147
147
|
|
|
148
|
-
The root `vite.config.ts` is most valuable for shared linting, formatting, staged checks, and task definitions.
|
|
148
|
+
The root `vite.config.ts` is most valuable for shared linting, formatting, staged checks, and task definitions. Development, build, preview, and packaging still act on a single app, so Vite+ makes the built-in commands monorepo-aware instead of forcing you to `cd` between packages.
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
### Running at the workspace root
|
|
151
|
+
|
|
152
|
+
`vp dev`, `vp build`, `vp preview`, and `vp pack` never silently act on the workspace root, which usually has no app of its own. Run them at the top of the monorepo and Vite+ works out which app you mean.
|
|
153
|
+
|
|
154
|
+
When exactly one package looks like an app, vp runs it and shows you the direct command for next time:
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
$ vp dev
|
|
158
|
+
Selected package: web (apps/web)
|
|
159
|
+
Tip: run this directly with `vp -C apps/web dev`
|
|
160
|
+
|
|
161
|
+
VITE+ v0.2.2
|
|
162
|
+
|
|
163
|
+
➜ Local: http://localhost:5173/
|
|
164
|
+
➜ Network: use --host to expose
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
When several packages could be the target, vp opens a fuzzy package picker (the same selector as `vp run`); typing filters, Enter runs the selection:
|
|
168
|
+
|
|
169
|
+
```
|
|
170
|
+
$ vp build
|
|
171
|
+
Select a package to build (↑/↓, Enter to run, type to search):
|
|
172
|
+
|
|
173
|
+
› admin apps/admin
|
|
174
|
+
web apps/web
|
|
175
|
+
ui packages/ui
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
Selected package: web (apps/web)
|
|
180
|
+
Tip: run this directly with `vp -C apps/web build`
|
|
181
|
+
|
|
182
|
+
✓ built in 187ms
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
In non-interactive shells (CI, pipes, redirection), vp prints the same packages as a plain listing with ready-to-copy commands and exits 1:
|
|
186
|
+
|
|
187
|
+
```
|
|
188
|
+
$ vp build | cat
|
|
189
|
+
error: `vp build` at the workspace root needs a target package.
|
|
190
|
+
|
|
191
|
+
Packages in this workspace:
|
|
192
|
+
admin apps/admin
|
|
193
|
+
web apps/web
|
|
194
|
+
@shop/ui packages/ui
|
|
195
|
+
|
|
196
|
+
Pass a directory: vp -C apps/admin build
|
|
197
|
+
Or run every package's build script: vp run -r build
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
vp ranks packages that look runnable for the command first in both the picker and the listing: a `vite.config.*` or root `index.html` for `dev` / `build` / `preview`, and a `pack` config block or tsdown's default `src/index.ts` entry for `pack`.
|
|
201
|
+
|
|
202
|
+
### Targeting a package with `-C`
|
|
203
|
+
|
|
204
|
+
The global `-C` flag runs any vp command as if you had `cd`'d into the package first, identical to `cd <dir> && vp <command>`:
|
|
151
205
|
|
|
152
206
|
```bash
|
|
153
|
-
vp
|
|
154
|
-
vp
|
|
207
|
+
vp -C apps/web dev
|
|
208
|
+
vp -C apps/web build
|
|
209
|
+
vp -C packages/ui pack
|
|
155
210
|
```
|
|
156
211
|
|
|
157
|
-
|
|
212
|
+
Passing a folder as a positional (`vp dev apps/web`) still works, but keeps upstream Vite semantics: it sets Vite's `root` option without changing the working directory, so `process.cwd()` reads in configs and plugins resolve from where you ran vp. Prefer `-C` when the package should behave as if you had `cd`'d into it. When a directory positional is used, vp prints a one-line note pointing at the `-C` form.
|
|
213
|
+
|
|
214
|
+
### A fixed default with `defaultPackage`
|
|
215
|
+
|
|
216
|
+
To always target one directory and skip the resolution above, set [`defaultPackage`](/config/#defaultpackage) in the root config:
|
|
217
|
+
|
|
218
|
+
```ts [vite.config.ts]
|
|
219
|
+
export default {
|
|
220
|
+
defaultPackage: './apps/web',
|
|
221
|
+
};
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
$ vp dev
|
|
226
|
+
note: vp dev: using ./apps/web (defaultPackage in vite.config.ts)
|
|
227
|
+
|
|
228
|
+
VITE+ v0.2.2
|
|
229
|
+
|
|
230
|
+
➜ Local: http://localhost:5173/
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
This is the right choice for framework monorepos that are not JavaScript workspaces, such as a Laravel or Rails app with a `frontend/` directory: there is no package list to resolve, so `defaultPackage` points vp straight at the app. Because vp reads it without executing the config, it works even when `vite-plus` is installed only inside that subdirectory.
|
|
234
|
+
|
|
235
|
+
An object form maps commands individually, so `vp pack` can target a library while `vp dev` targets an app; a command absent from the object falls through to the resolution above:
|
|
236
|
+
|
|
237
|
+
```ts [vite.config.ts]
|
|
238
|
+
export default {
|
|
239
|
+
defaultPackage: { dev: './apps/web', pack: './packages/ui' },
|
|
240
|
+
};
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Package scripts and workspace-wide tasks
|
|
244
|
+
|
|
245
|
+
Keep package-specific scripts in each package when the command differs per app:
|
|
158
246
|
|
|
159
247
|
```json [apps/api/package.json]
|
|
160
248
|
{
|
|
@@ -165,7 +253,7 @@ vp build apps/web
|
|
|
165
253
|
}
|
|
166
254
|
```
|
|
167
255
|
|
|
168
|
-
|
|
256
|
+
Run scripts across the whole workspace with `vp run`:
|
|
169
257
|
|
|
170
258
|
```bash
|
|
171
259
|
vp run -r build
|
|
@@ -15,6 +15,9 @@ Vite+ expects modern upstream tool versions.
|
|
|
15
15
|
|
|
16
16
|
If you are migrating an existing project and it still depends on older Vite or Vitest versions, upgrade those first before adopting Vite+.
|
|
17
17
|
|
|
18
|
+
Run `vp toolchain` to show the versions from the local Vite+ package.
|
|
19
|
+
Run `vp toolchain --global` to show the versions from the global Vite+ release.
|
|
20
|
+
|
|
18
21
|
## `vp check` does not run type-aware lint rules or type checks
|
|
19
22
|
|
|
20
23
|
- Confirm that `lint.options.typeAware` and `lint.options.typeCheck` are enabled in `vite.config.ts`
|
|
@@ -53,8 +56,14 @@ You can also run custom tasks defined in `vite.config.ts` and migrate away from
|
|
|
53
56
|
If `vp staged` fails or your pre-commit hook does not run:
|
|
54
57
|
|
|
55
58
|
- make sure `vite.config.ts` contains a `staged` block
|
|
56
|
-
-
|
|
57
|
-
-
|
|
59
|
+
- make sure the project-owned pre-commit hook runs `vp staged` (for example `.vite-hooks/pre-commit`)
|
|
60
|
+
- run `vp hooks status` to see preference, `core.hooksPath`, and whether the dispatcher is installed
|
|
61
|
+
- run `vp hooks enable` (or `vp config`) to install the hook dispatcher
|
|
62
|
+
- if status shows `Preference: disabled (local)`, re-enable with `vp hooks enable`
|
|
63
|
+
- check whether hooks were skipped intentionally through `VP_GIT_HOOKS=0`
|
|
64
|
+
|
|
65
|
+
To stop hooks in this clone without deleting project policy files, run `vp hooks disable`.
|
|
66
|
+
See the [Commit hooks guide](/guide/commit-hooks) for the full workflow.
|
|
58
67
|
|
|
59
68
|
A minimal staged config looks like this:
|
|
60
69
|
|
|
@@ -105,7 +114,7 @@ If you are stuck, please reach out:
|
|
|
105
114
|
|
|
106
115
|
When reporting a problem, please include:
|
|
107
116
|
|
|
108
|
-
- The full output of `vp env current` and `vp
|
|
117
|
+
- The full output of `vp env current`, `vp --version`, and `vp toolchain`
|
|
109
118
|
- The package manager used by the project
|
|
110
119
|
- The exact steps needed to reproduce the problem and your `vite.config.ts`
|
|
111
120
|
- A minimal reproduction repository or runnable sandbox
|
package/docs/guide/upgrade.md
CHANGED
|
@@ -11,6 +11,29 @@ There are two parts to upgrading Vite+:
|
|
|
11
11
|
|
|
12
12
|
You can upgrade both of them independently.
|
|
13
13
|
|
|
14
|
+
## Show the Toolchain
|
|
15
|
+
|
|
16
|
+
Run `vp toolchain` to show the components for the current directory:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
vp toolchain
|
|
20
|
+
vp toolchain vite
|
|
21
|
+
vp toolchain vite rolldown oxc
|
|
22
|
+
vp toolchain --json
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The command uses the local `vite-plus` package when the project has one. Use
|
|
26
|
+
`--global` to show the release for the global `vp` command:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
vp toolchain --global
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`vp why <package>` shows the dependency graph from the package manager. It
|
|
33
|
+
cannot show code bundled into `@voidzero-dev/vite-plus-core`. It also cannot
|
|
34
|
+
show engines compiled into Vite+. Use `vp toolchain` to show those versions and
|
|
35
|
+
relationships.
|
|
36
|
+
|
|
14
37
|
## Global `vp`
|
|
15
38
|
|
|
16
39
|
```bash
|
|
@@ -53,7 +76,7 @@ A Vite+ release can bump the bundled Vitest. Because that pin also applies to `v
|
|
|
53
76
|
After upgrading `vite-plus`, re-pin `vitest` to the version Vite+ now bundles. Check that version with:
|
|
54
77
|
|
|
55
78
|
```bash
|
|
56
|
-
vp
|
|
79
|
+
vp toolchain vitest
|
|
57
80
|
```
|
|
58
81
|
|
|
59
82
|
Then set the `vitest` override to that exact version, or rerun `vp migrate` to update the pin for you.
|
|
@@ -86,7 +109,7 @@ irm https://vite.plus/ps1 | iex
|
|
|
86
109
|
Remove-Item Env:\VP_PR_VERSION
|
|
87
110
|
```
|
|
88
111
|
|
|
89
|
-
The installer
|
|
112
|
+
The installer uses the registry bridge to resolve the ref to a `0.0.0-commit.<sha>` build. It installs this build like other versions. Run `vp toolchain --global` to show the active build and tool versions. After testing, run `vp upgrade --force` to restore the published release. You can also run the installer without `VP_PR_VERSION`.
|
|
90
113
|
|
|
91
114
|
### Local `vite-plus` Preview
|
|
92
115
|
|
|
@@ -96,6 +119,6 @@ After installing the preview global CLI above, run migrate in the project to mov
|
|
|
96
119
|
vp migrate
|
|
97
120
|
```
|
|
98
121
|
|
|
99
|
-
Migrate
|
|
122
|
+
Migrate writes the bridge registry to `.npmrc`. For Yarn Berry, it writes the registry to `.yarnrc.yml`. It pins `vite-plus` and the `vite` alias to the matching `0.0.0-commit.<sha>` version. The `vite` alias points to `@voidzero-dev/vite-plus-core`. Commit the registry line if the project CI must test the preview.
|
|
100
123
|
|
|
101
|
-
After
|
|
124
|
+
After the install, run `vp toolchain` to show the selected versions. After testing, set `vite-plus` to `latest`. Remove the bridge `registry` line from `.npmrc` or `.yarnrc.yml`. Then run `vp install`.
|
package/docs/package.json
CHANGED
package/docs/pnpm-workspace.yaml
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
packages:
|
|
2
2
|
- .
|
|
3
3
|
|
|
4
|
+
# pnpm 11 fails installs on unreviewed dependency build scripts
|
|
5
|
+
# (ERR_PNPM_IGNORED_BUILDS). These scripts were already skipped under
|
|
6
|
+
# pnpm 10; keep them skipped explicitly.
|
|
7
|
+
allowBuilds:
|
|
8
|
+
esbuild: false
|
|
9
|
+
vue-demi: false
|
|
10
|
+
|
|
4
11
|
peerDependencyRules:
|
|
5
12
|
allowAny:
|
|
6
13
|
- vitepress
|
package/docs/vite.config.ts
CHANGED
|
@@ -3,6 +3,9 @@ export default {
|
|
|
3
3
|
tasks: {
|
|
4
4
|
'build:site': {
|
|
5
5
|
command: 'vitepress build',
|
|
6
|
+
// The install-URL rewrite in .vitepress/config.mts depends on this
|
|
7
|
+
// variable, so different deploy targets must not share cached output.
|
|
8
|
+
env: ['DOCS_SITE_ORIGIN'],
|
|
6
9
|
input: [
|
|
7
10
|
{ auto: true },
|
|
8
11
|
'!.vitepress/.temp/**',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plus",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -62,11 +62,6 @@
|
|
|
62
62
|
"./bin": {
|
|
63
63
|
"import": "./dist/bin.js"
|
|
64
64
|
},
|
|
65
|
-
"./binding": {
|
|
66
|
-
"types": "./binding/index.d.cts",
|
|
67
|
-
"import": "./binding/index.cjs",
|
|
68
|
-
"require": "./binding/index.cjs"
|
|
69
|
-
},
|
|
70
65
|
"./fmt": {
|
|
71
66
|
"types": "./dist/fmt.d.ts",
|
|
72
67
|
"import": "./dist/fmt.js"
|
|
@@ -90,6 +85,10 @@
|
|
|
90
85
|
"./pack/client": {
|
|
91
86
|
"types": "./dist/pack-client.d.ts"
|
|
92
87
|
},
|
|
88
|
+
"./toolchain": {
|
|
89
|
+
"types": "./dist/toolchain.d.ts",
|
|
90
|
+
"default": "./dist/toolchain.js"
|
|
91
|
+
},
|
|
93
92
|
"./versions": {
|
|
94
93
|
"types": "./dist/versions.d.ts",
|
|
95
94
|
"default": "./dist/versions.js"
|
|
@@ -352,7 +351,7 @@
|
|
|
352
351
|
}
|
|
353
352
|
},
|
|
354
353
|
"dependencies": {
|
|
355
|
-
"@oxc-project/types": "=0.
|
|
354
|
+
"@oxc-project/types": "=0.143.0",
|
|
356
355
|
"@oxlint/plugins": "=1.73.0",
|
|
357
356
|
"@vitest/browser": "4.1.10",
|
|
358
357
|
"@vitest/browser-preview": "4.1.10",
|
|
@@ -363,16 +362,17 @@
|
|
|
363
362
|
"@vitest/snapshot": "4.1.10",
|
|
364
363
|
"@vitest/spy": "4.1.10",
|
|
365
364
|
"@vitest/utils": "4.1.10",
|
|
366
|
-
"oxfmt": "=0.
|
|
367
|
-
"oxlint": "=1.
|
|
365
|
+
"oxfmt": "=0.62.0",
|
|
366
|
+
"oxlint": "=1.77.0",
|
|
368
367
|
"oxlint-tsgolint": "=7.0.2001",
|
|
369
368
|
"vitest": "4.1.10",
|
|
370
|
-
"@voidzero-dev/vite-plus-core": "0.2.
|
|
369
|
+
"@voidzero-dev/vite-plus-core": "0.2.9"
|
|
371
370
|
},
|
|
372
371
|
"devDependencies": {
|
|
373
|
-
"@
|
|
372
|
+
"@emnapi/core": "2.0.0-alpha.3",
|
|
373
|
+
"@emnapi/runtime": "2.0.0-alpha.3",
|
|
374
|
+
"@napi-rs/cli": "^3.8.2",
|
|
374
375
|
"@nkzw/safe-word-list": "^3.1.0",
|
|
375
|
-
"@oxc-node/core": "^0.1.0",
|
|
376
376
|
"@types/cross-spawn": "^6.0.6",
|
|
377
377
|
"@types/semver": "^7.7.1",
|
|
378
378
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
@@ -390,15 +390,13 @@
|
|
|
390
390
|
"mri": "^1.2.0",
|
|
391
391
|
"nanotar": "^0.3.0",
|
|
392
392
|
"picocolors": "^1.1.1",
|
|
393
|
-
"rolldown-plugin-dts": "^0.27.0",
|
|
394
393
|
"semver": "^7.8.0",
|
|
395
394
|
"tsdown": "^0.22.14",
|
|
396
395
|
"validate-npm-package-name": "^7.0.2",
|
|
397
396
|
"yaml": "^2.8.1",
|
|
398
397
|
"zod": "^3.25.76",
|
|
399
398
|
"@voidzero-dev/vite-plus-prompts": "0.0.0",
|
|
400
|
-
"
|
|
401
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.7"
|
|
399
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.9"
|
|
402
400
|
},
|
|
403
401
|
"peerDependencies": {
|
|
404
402
|
"@vitest/browser-playwright": "4.1.10",
|
|
@@ -430,14 +428,14 @@
|
|
|
430
428
|
"node": "^20.19.0 || ^22.18.0 || >=24.11.0"
|
|
431
429
|
},
|
|
432
430
|
"optionalDependencies": {
|
|
433
|
-
"@voidzero-dev/vite-plus-darwin-arm64": "0.2.
|
|
434
|
-
"@voidzero-dev/vite-plus-darwin-x64": "0.2.
|
|
435
|
-
"@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.
|
|
436
|
-
"@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.
|
|
437
|
-
"@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.
|
|
438
|
-
"@voidzero-dev/vite-plus-linux-x64-musl": "0.2.
|
|
439
|
-
"@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.
|
|
440
|
-
"@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.
|
|
431
|
+
"@voidzero-dev/vite-plus-darwin-arm64": "0.2.9",
|
|
432
|
+
"@voidzero-dev/vite-plus-darwin-x64": "0.2.9",
|
|
433
|
+
"@voidzero-dev/vite-plus-linux-arm64-gnu": "0.2.9",
|
|
434
|
+
"@voidzero-dev/vite-plus-linux-arm64-musl": "0.2.9",
|
|
435
|
+
"@voidzero-dev/vite-plus-linux-x64-gnu": "0.2.9",
|
|
436
|
+
"@voidzero-dev/vite-plus-linux-x64-musl": "0.2.9",
|
|
437
|
+
"@voidzero-dev/vite-plus-win32-x64-msvc": "0.2.9",
|
|
438
|
+
"@voidzero-dev/vite-plus-win32-arm64-msvc": "0.2.9"
|
|
441
439
|
},
|
|
442
440
|
"scripts": {
|
|
443
441
|
"build": "oxnode -C dev ./build.ts",
|
package/rules/vite-tools.yml
CHANGED
|
@@ -10,7 +10,6 @@ rule:
|
|
|
10
10
|
regex: 'vite\s+(-v|--version)'
|
|
11
11
|
fix: vp
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
# vite => vp dev (handles all cases: with/without env var prefix and flag args)
|
|
15
14
|
# Match command_name to preserve env var prefix and arguments
|
|
16
15
|
# Excludes subcommands like "vite build", "vite test", etc.
|
|
@@ -27,7 +26,6 @@ rule:
|
|
|
27
26
|
regex: 'vite\s+[^-]'
|
|
28
27
|
fix: vp dev
|
|
29
28
|
|
|
30
|
-
|
|
31
29
|
# vite <subcommand> => vp <subcommand> (handles vite build, vite test, vite dev, etc.)
|
|
32
30
|
# Match command_name when followed by a subcommand, replace only the command name
|
|
33
31
|
---
|
|
@@ -41,7 +39,6 @@ rule:
|
|
|
41
39
|
regex: 'vite\s+[^-]'
|
|
42
40
|
fix: vp
|
|
43
41
|
|
|
44
|
-
|
|
45
42
|
# oxlint => vp lint (handles all cases: with/without env var prefix and args)
|
|
46
43
|
# Match command_name to preserve env var prefix and arguments
|
|
47
44
|
---
|
|
@@ -52,7 +49,6 @@ rule:
|
|
|
52
49
|
regex: '^oxlint$'
|
|
53
50
|
fix: vp lint
|
|
54
51
|
|
|
55
|
-
|
|
56
52
|
# oxfmt => vp fmt
|
|
57
53
|
---
|
|
58
54
|
id: replace-oxfmt
|
|
@@ -62,7 +58,6 @@ rule:
|
|
|
62
58
|
regex: '^oxfmt$'
|
|
63
59
|
fix: vp fmt
|
|
64
60
|
|
|
65
|
-
|
|
66
61
|
# vitest => vp test
|
|
67
62
|
---
|
|
68
63
|
id: replace-vitest
|
|
@@ -72,7 +67,6 @@ rule:
|
|
|
72
67
|
regex: '^vitest$'
|
|
73
68
|
fix: vp test
|
|
74
69
|
|
|
75
|
-
|
|
76
70
|
# lint-staged => vp staged
|
|
77
71
|
---
|
|
78
72
|
id: replace-lint-staged
|
|
@@ -82,7 +76,6 @@ rule:
|
|
|
82
76
|
regex: '^lint-staged$'
|
|
83
77
|
fix: vp staged
|
|
84
78
|
|
|
85
|
-
|
|
86
79
|
# tsdown => vp pack
|
|
87
80
|
---
|
|
88
81
|
id: replace-tsdown
|
package/dist/dist-CtM2JRbM.js
DELETED