Lightweight coding agent that runs in your terminal
Rust
docs: update README to use pnpm commands (#390)
Benny Yenfd6f6c51c028
diff --git a/README.md b/README.mdindex e03fea202e..35eb0f6a26 100644--- a/README.md+++ b/README.md@@ -244,6 +244,8 @@ npm install -g @openai/codexyarn global add @openai/codex# orbun install -g @openai/codex+# or+pnpm add -g @openai/codex```</details>@@ -256,9 +258,12 @@ bun install -g @openai/codexgit clone https://github.com/openai/codex.gitcd codex/codex-cli+# Enable corepack+corepack enable+# Install dependencies and build-npm install-npm run build+pnpm install+pnpm build# Get the usage and the optionsnode ./dist/cli.js --help@@ -267,7 +272,7 @@ node ./dist/cli.js --helpnode ./dist/cli.js# Or link the command globally for convenience-npm link+pnpm link```</details>@@ -376,7 +381,7 @@ More broadly we welcome contributions – whether you are opening your very firs- Create a _topic branch_ from `main` – e.g. `feat/interactive-prompt`.- Keep your changes focused. Multiple unrelated fixes should be opened as separate PRs.-- Use `npm run test:watch` during development for super‑fast feedback.+- Use `pnpm test:watch` during development for super‑fast feedback.- We use **Vitest** for unit tests, **ESLint** + **Prettier** for style, and **TypeScript** for type‑checking.- Before pushing, run the full test/type/lint suite:@@ -403,14 +408,14 @@ npm test && npm run lint && npm run typecheck```bash# Watch mode (tests rerun on change)-npm run test:watch+pnpm test:watch# Type‑check without emitting files-npm run typecheck+pnpm typecheck# Automatically fix lint + prettier issues-npm run lint:fix-npm run format:fix+pnpm lint:fix+pnpm format:fix```#### Nix Flake Development@@ -500,13 +505,13 @@ To publish a new version of the CLI, run the release scripts defined in `codex-c1. Open the `codex-cli` directory2. Make sure you're on a branch like `git checkout -b bump-version`-3. Bump the version and `CLI_VERSION` to current datetime: `npm run release:version`+3. Bump the version and `CLI_VERSION` to current datetime: `pnpm release:version`4. Commit the version bump (with DCO sign-off):```bashgit add codex-cli/src/utils/session.ts codex-cli/package.jsongit commit -s -m "chore(release): codex-cli v$(node -p \"require('./codex-cli/package.json').version\")"```-5. Copy README, build, and publish to npm: `npm run release`+5. Copy README, build, and publish to npm: `pnpm release`6. Push to branch: `git push origin HEAD`---