mirror of
https://github.com/codeaashu/claude-code.git
synced 2026-04-08 14:18:50 +03:00
1.4 KiB
1.4 KiB
Prompt 01: Install Bun Runtime & Dependencies
Context
You are working in /workspaces/claude-code, which contains the leaked source code of Anthropic's Claude Code CLI. It's a TypeScript/TSX project that uses Bun as its runtime (not Node.js). The package.json specifies "engines": { "bun": ">=1.1.0" }.
There is no bun.lockb lockfile — it was not included in the leak.
Task
-
Install Bun (if not already installed):
curl -fsSL https://bun.sh/install | bashThen ensure
bunis on the PATH. -
Run
bun installin the project root (/workspaces/claude-code) to install all dependencies. This will generate abun.lockblockfile. -
Verify the install — confirm that:
node_modules/exists and has the major packages:@anthropic-ai/sdk,react,chalk,@commander-js/extra-typings,ink(may not exist separately — check@anthropic-ai/sdk,zod,@modelcontextprotocol/sdk)bun --versionreturns 1.1.0+
-
Run the typecheck to see current state:
bun run typecheckReport any errors — don't fix them yet, just capture the output.
-
Also install deps for the mcp-server sub-project:
cd mcp-server && npm install && cd ..
Verification
bun --versionoutputs >= 1.1.0ls node_modules/@anthropic-ai/sdksucceedsbun run typecheckruns (errors are expected at this stage, just report them)