Skip to content

chore: remove the workspace cycle between void and @void/md - #991

Merged
cpojer merged 1 commit into
voidzero-dev:mainfrom
morinokami:fix/void-md-workspace-cycle
Dec 1, 2026
Merged

cpojer merged 1 commit into
voidzero-dev:mainfrom
morinokami:fix/void-md-workspace-cycle

Conversation

@morinokami

Copy link
Copy Markdown
Collaborator

vp install warns on every run:

[WARN] There are cyclic workspace dependencies: …/packages/md, …/packages/void

@void/md depends on void (its plugin imports void/pages), and void lists @void/md as an optional peer. For the same reason, vp run refuses to order the two builds (Cycle dependency detected: @void/md#build -> void#build -> @void/md#build), so the root build script built @void/md in a second run.

The peer was added in 74f7bb5, when void re-exported the Markdown theme CSS with @import "@void-x/md/theme". b41eafe removed that export, and void no longer imports @void/md: it finds the Markdown plugin by name in the Vite config. @void/md still declares void as a peer at its own version, so a mismatched pair is still reported.

This removes the peer and builds every package in one dependency-ordered run. If a cycle comes back, vp run build fails on it.

vpr test:all passes, and so does the full packed React suite with npm and pnpm, which installs @void/md from its tarball and serves a Markdown page.

🤖 Generated with Claude Code

`void` listed `@void/md` as an optional peer, and `@void/md` depends on
`void`, so pnpm warned about cyclic workspace dependencies on every
install and `vp run` refused to order the two builds. The root `build`
script worked around it by building `@void/md` in a second run.

The peer dates from when `void` re-exported the Markdown theme CSS
(74f7bb5); that export was removed in b41eafe. `void` no longer
imports `@void/md` and finds its plugin by name, and `@void/md`'s own
`void` peer still pins the two packages to the same version.

Remove the peer and build all packages in one dependency-ordered run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@morinokami
morinokami requested a review from a team as a code owner December 1, 2026 05:49
@cpojer
cpojer self-requested a review December 1, 2026 05:56

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oh nice, glad we could get rid of this now – iirc it wasn't possible before.

@cpojer
cpojer merged commit 601ce57 into voidzero-dev:main Dec 1, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants