From dcd630f733c24d3dd62b75dec42faa65d3df2169 Mon Sep 17 00:00:00 2001 From: Shinya Fujino Date: Tue, 1 Dec 2026 14:13:45 +0900 Subject: [PATCH] chore: remove the workspace cycle between `void` and `@void/md` `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 (74f7bb557); that export was removed in b41eafe23. `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 --- package.json | 2 +- packages/void/package.json | 4 ---- pnpm-lock.yaml | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/package.json b/package.json index 78108a855..454f3aece 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "type": "module", "scripts": { - "build": "vp run --filter './packages/**' --filter '!./packages/md' build && vp run --filter ./packages/md build", + "build": "vp run --filter './packages/**' build", "build:core": "vp run --filter ./packages/deploy-core --filter ./packages/deploy-cloudflare --filter ./packages/edge --filter ./packages/isr --filter ./packages/platform --filter ./packages/void build", "build:docs": "vp run --filter ./docs build", "build:platform": "vp run --filter './platform/packages/**' build", diff --git a/packages/void/package.json b/packages/void/package.json index 4dc612757..94a034eb8 100644 --- a/packages/void/package.json +++ b/packages/void/package.json @@ -423,16 +423,12 @@ "zod": "^4.6.7" }, "peerDependencies": { - "@void/md": "workspace:*", "arktype": ">=2.0.0", "valibot": ">=1.0.0-beta.7", "vite": "^8.0.0", "zod": "^3.25.0 || ^4.0.0" }, "peerDependenciesMeta": { - "@void/md": { - "optional": true - }, "arktype": { "optional": true }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4da416089..1401d64b1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -858,9 +858,6 @@ importers: '@void/isr': specifier: workspace:* version: link:../isr - '@void/md': - specifier: workspace:* - version: link:../md '@void/platform': specifier: workspace:* version: link:../platform