Skip to content

Commit 06a636f

Browse files
t3dotggclaude
andcommitted
fix(deps): one vite-plus-core with the tsc-rs drop-in
@tsc-rs/typescript has the tsc-rs npm version (0.8.x), which is outside vite-plus-core's typescript peer range. pnpm then gave the vite-plus that @effect/vitest imports apps/marketing's [email protected], and the tests loaded a second vitest ("failed to find the current suite"). A readPackage hook widens that one peer range. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent bc0c5e4 commit 06a636f

2 files changed

Lines changed: 78 additions & 669 deletions

File tree

‎.pnpmfile.cjs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
// Release scripts stage their own installs with explicit architectures.
66
module.exports = {
77
hooks: {
8+
// `typescript` is @tsc-rs/typescript (the catalog entry). Its npm version (0.8.x) is outside
9+
// vite-plus-core's typescript peer range, so pnpm gave the vite-plus that @effect/vitest
10+
// imports apps/marketing's [email protected] instead, and tests loaded a second vitest.
11+
readPackage(pkg) {
12+
if (pkg.name === "@voidzero-dev/vite-plus-core" && pkg.peerDependencies?.typescript) {
13+
pkg.peerDependencies.typescript = "*";
14+
}
15+
return pkg;
16+
},
817
updateConfig(config) {
918
// oxlint-disable-next-line t3code/no-global-process-runtime -- pnpm loads this file before any Effect runtime exists.
1019
if (process.platform !== "win32") return config;

0 commit comments

Comments
 (0)