Skip to content

feat(mpc): ship an mpcdev twin pointed at the checkout - #12

Merged
JeffreyJYZ merged 1 commit into
mainfrom
feat/mpcdev
Nov 9, 2026
Merged

JeffreyJYZ merged 1 commit into
mainfrom
feat/mpcdev

Conversation

@jyzbot

@jyzbot jyzbot commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

The mpcdev bin entry already existed in package.json, but nothing ever pointed it at the checkout: bun link links both names at the global install, so mpcdev --version just echoed the published mpc.

Measured before:

$ readlink ~/.bun/bin/mpcdev
../install/global/node_modules/@jeffreyjyz/mpc/src/index.ts

Fix

bun run dev:link writes the dev twin straight at the working copy, leaving the published mpc untouched:

"dev:link": "ln -sfn \"$PWD/src/index.ts\" \"$HOME/.bun/bin/mpcdev\""

Measured after:

$ readlink ~/.bun/bin/mpcdev
/Users/jyz/dev/cmdcode-tools/oc-cmd-compare/src/index.ts
$ mpcdev --version
mpc/0.1.8
$ mpc --version
mpc/0.1.7

README's Install section says when to use it; AGENTS.md in the global memory records that this twin is relinked by its own package rather than the root dev-link.ts script, which only knows the Rust CLIs.

Version 0.1.8.

The bin entry existed but bun link points both names at the global install, so
mpcdev --version just echoed the published mpc and no dev twin existed in
practice. dev:link now writes ~/.bun/bin/mpcdev straight at src/index.ts, which
leaves the published mpc untouched.

Version 0.1.8.
@vercel

vercel Bot commented Nov 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cmdcode-tools-site Ready Ready Preview Nov 9, 2026 2:07pm UTC

@JeffreyJYZ
JeffreyJYZ merged commit 7d9f9dd into main Nov 9, 2026
10 checks passed
@JeffreyJYZ
JeffreyJYZ deleted the feat/mpcdev branch November 9, 2026 14:18

This branch was successfully deployed

1 active deployment
Preview — 6ca0566b Deployed Nov 9, 2026 by vercel[bot]
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