bunx
Bun's command for running a tool from an npm package without installing it globally, like npx.
In more detail
bunx tsc --version runs the TypeScript compiler from the project's dependencies, or downloads it temporarily if it is missing. It keeps the tool version tied to the project instead of the machine.
Examples
bunx tsc --versionbunx tsc --noEmitRelated terms
- Bun — A fast all-in-one JavaScript toolkit: a runtime that runs JavaScript and TypeScript directly, plus a package manager and test runner.
- tsc — The command-line TypeScript compiler, which type-checks a project and writes JavaScript and declaration files.
- npm — The package manager that comes with Node.js, plus the public registry where JavaScript packages are published.
Taught in
- Verify Your Environment: Running tsc And Bun TypeScript — Production TypeScript