Skip to content

Commit d602df8

Browse files
committed
chore: migrate to hoistPattern and fix vitepress build
Switch from `hoist: false` to `hoistPattern: ['*', '!@types/bun']` and install packages that were missing due to shamefullyHoist being disabled, which broke the vitepress build in the previous commit.
1 parent 3f46436 commit d602df8

3 files changed

Lines changed: 42 additions & 6 deletions

File tree

apps/content/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@
3030
"@tanstack/svelte-query": "^6.1.34",
3131
"@tanstack/vue-query": "^5.101.0",
3232
"@types/node": "^26.0.1",
33+
"@vueuse/core": "^14.3.0",
3334
"effect": "4.0.0-beta.90",
3435
"markdown-it-task-lists": "^2.1.1",
3536
"mermaid": "^11.15.0",
3637
"openai": "^6.44.0",
38+
"pino": "^10.3.1",
3739
"superjson": "^2.2.6",
3840
"vitepress": "1.6.4",
3941
"vitepress-plugin-group-icons": "^1.7.5",

pnpm-lock.yaml

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ packages:
33
- 'packages/*'
44
- 'playgrounds/*'
55

6-
# Disable hoisting: @types/node and @types/bun, when installed in different
7-
# packages, both get hoisted into the same env. This conflicts and breaks
8-
# type checking when working on node.js types alongside a package that imports from 'bun'.
9-
# Alternative: use https://pnpm.io/settings#hoistpattern to exclude only
10-
# @types/bun instead of disabling hoisting entirely.
11-
hoist: false
6+
# Hoist everything (default) except @types/bun. When @types/node and @types/bun are
7+
# installed in different packages, hoisting both into the same env causes a
8+
# conflict and breaks type checking when working on Node.js types alongside
9+
# a package that imports from 'bun'. Excluding @types/bun from hoisting
10+
# avoids this while keeping hoisting enabled for everything else.
11+
hoistPattern:
12+
- '*'
13+
- '!@types/bun'
1214

1315
# Lets playgrounds/* resolve local packages without the 'workspace:' protocol
1416
# during development. When a playground is cloned standalone, the same

0 commit comments

Comments
 (0)