Skip to content

fix(docs): align shiki with fumadocs to restore the docs build - #736

Open
emmanuel-musau wants to merge 1 commit into
mainfrom
fix/docs-shiki-dedupe
Open

emmanuel-musau wants to merge 1 commit into
mainfrom
fix/docs-shiki-dedupe

Conversation

@emmanuel-musau

Copy link
Copy Markdown
Collaborator

The docs build has failed on main since #733. That PR bumped fumadocs-core to 16.19.0, which uses shiki 4.6.0, but the docs workspace also depends on shiki and @shikijs/twoslash directly, and the lockfile kept both at 4.5.0. With two copies of @shikijs/types installed, source.config.ts fails to type-check:

source.config.ts(27,9): error TS2322: Type 'ShikiTransformer | ShikiTransformer' is not assignable to type 'ShikiTransformer'.

#733's own Build check failed with this error, but the PR was auto-merged. The release workflow runs pnpm turbo run build, docs included, before changeset publish, so merging the version PR (#728) as things stand would fail before publishing.

This raises both to ^4.6.0, which leaves one copy of @shikijs/types (4.6.0). The lockfile change only touches shiki-related entries, and no published package depends on them.

Checked locally: pnpm install --frozen-lockfile accepts the lockfile, the full pnpm turbo run build and check:dts pass, and the built site serves with the twoslash type popups working.

@emmanuel-musau emmanuel-musau added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file labels Nov 19, 2026
@emmanuel-musau emmanuel-musau self-assigned this Nov 19, 2026

@solidsnakedev solidsnakedev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is the right fix. The same TS2322 is on main now: #739 and #740 also failed Build on it and merged anyway.

LGTM once rebased. #739 and #734 changed the lockfile, so the PR conflicts with main. Please rebase and regenerate the lockfile; I'll approve when CI is green.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants