Skip to content

Fix global tsci install requiring Bun at runtime#3318

Open
mohan-bee wants to merge 4 commits into
tscircuit:mainfrom
mohan-bee:fix-2828
Open

Fix global tsci install requiring Bun at runtime#3318
mohan-bee wants to merge 4 commits into
tscircuit:mainfrom
mohan-bee:fix-2828

Conversation

@mohan-bee

Copy link
Copy Markdown
Contributor

Fixes tscircuit/tscircuit#2828

This fixes tsci failing after npm install -g tscircuit on machines without Bun installed.
Previously, the CLI entrypoint selected bun or tsx to run the built CLI. That meant a globally installed tsci command could still fail with:

env: bun: No such file or directory

image

The entrypoint now runs the built CLI with the current Node executable using process.execPath, so npm global installs only require Node at runtime.

Screenshot 2026-06-16 at 1 30 24 PM

Motivation
Users installing with npm should not need to install Bun separately just to run tsci.

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.

npm install -g tscircuit > env: bun: No such file or directory

1 participant