Commit 4704861
authored
chore(deps): dedupe vite to @voidzero-dev/vite-plus-core (#797)
## Problem
A redundant standalone `vite@8.0.0` was being installed even though the
Vite+ toolchain bundles its own vite via `@voidzero-dev/vite-plus-core`.
`vp why vite` showed real vite pulled in by
`@voidzero-dev/vite-plus-test`, `vite-plus`, and `@vitest/coverage-v8`.
The existing `pnpm-workspace.yaml` `overrides` entry could **not**
eliminate it: `vite` is only ever declared as a **peerDependency** (`^6
|| ^7 || ^8`) in this tree, and with `autoInstallPeers: true` pnpm
resolves that peer straight from its range — bypassing `overrides`,
which only rewrite *declared* dependency edges.
## Fix
- Declare `vite` as a direct `devDependency` aliased to
`@voidzero-dev/vite-plus-core`. This gives the toolchain peers a
root-level `vite` provider to **dedupe onto**, so no separate real vite
is auto-installed.
- The existing `peerDependencyRules.allowAny: [vite, vitest]` relaxes
the `^6||^7||^8` vs `0.1.x` range check so vite-plus-core is accepted.
- The `overrides` entry is kept as a safety net for any future *regular*
(non-peer) transitive dep on `vite`.
Also simplifies `minimumReleaseAgeExclude` from 11 enumerated entries to
the `@voidzero-dev/*` glob plus `vite-plus` (pnpm supports glob patterns
since 10.16).
## Verification
- `vp why vite` → resolves only to
`@voidzero-dev/vite-plus-core@0.1.23`; no standalone vite in the graph
- `grep -c "vite@8.0.0" pnpm-lock.yaml` → `0` (was a ~300-line subtree)
- Clean reinstall leaves no `node_modules/.pnpm/vite@8*` directory
- `vp check` (fmt + lint + typecheck): pass
- Smoke test `test/diagnostics_channel.test.ts`: 5/5 pass
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated development dependencies to latest versions for improved build
tooling performance.
* Streamlined workspace configuration to simplify package management.
<!-- review_stack_entry_start -->
[](https://app.coderabbit.ai/change-stack/node-modules/urllib/pull/797?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)
<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 9f1916e commit 4704861
3 files changed
Lines changed: 18 additions & 323 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| |||
0 commit comments