Skip to content

Commit 4704861

Browse files
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 --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](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

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"tshy": "^4.0.0",
100100
"tshy-after": "^1.4.1",
101101
"typescript": "^6.0.0",
102+
"vite": "npm:@voidzero-dev/vite-plus-core@^0.1.23",
102103
"vite-plus": "^0.1.23",
103104
"vitest": "npm:@voidzero-dev/vite-plus-test@^0.1.23"
104105
},

0 commit comments

Comments
 (0)