Skip to content

RFC: Bit version control for pnpm workspaces - #33

Draft
zkochan wants to merge 10 commits into
mainfrom
rfc-pnpm-version-control
Draft

zkochan wants to merge 10 commits into
mainfrom
rfc-pnpm-version-control

Conversation

@zkochan

@zkochan zkochan commented Aug 29, 2026

Copy link
Copy Markdown
Member

Draft proposal for a pnpm workspace to use Bit as its only VCS, with no Git repository or Git executable.

The design builds directly on Bit's existing model:

  • each pnpm workspace project is a component;
  • unclaimed files belong to a root component;
  • one snap batch is the workspace commit;
  • lanes are branches and scopes are remotes;
  • portable component dependencies use pnpm catalogs and Bit's snapped dependency graph;
  • a workspace selects one concrete toolchain profile while components declare compatible requirements.

The public workflow is Bit-native. bit pnpm sync adopts a raw pnpm workspace and normal Bit commands handle status, snaps, lanes, import, export, checkout, and merge. pnpm remains responsible for installation, lockfiles, and generic catalog semantics; it does not wrap or invoke Bit.

pnpm-workspace.yaml#vcs is the authoritative version-free path-to-component map. The root component stores a normalized projection so Bit can fetch it first; .bitmap is generated from imported heads. Root-first and lane-aware clone were validated during prototyping, and the discarded Rust wrapper is now explicitly documented as evidence for a future Bit-native clone command rather than proposed product architecture.

Current implementation drafts:

Related CI source-provider draft: pnpm/rfcs#25.

@coderabbitai

coderabbitai Bot commented Aug 29, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zkochan zkochan changed the title RFC: pnpm as a version control system RFC: Bit version control for pnpm workspaces Aug 29, 2026
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.

1 participant