javascript-typescript
Installation
SKILL.md
JavaScript & TypeScript
Modern JS/TS development covering project setup, TypeScript strict mode, React/Next.js patterns, state management, testing, linting, and production deployment. Targets Node.js 20+, TypeScript 5.5+, React 19+, pnpm, bun.
"Make invalid states unrepresentable." — The TypeScript Way
1. Project Setup
Package Manager
| Tool | Best For | Install | Speed | Lockfile |
|---|---|---|---|---|
| pnpm (recommended) | Monorepos, disk efficiency, strict dependency resolution | corepack enable && corepack prepare pnpm@latest --activate |
Fast | pnpm-lock.yaml |
| bun | Runtime + bundler + test runner in one, fastest install | curl -fsSL https://bun.sh/install | bash |
Fastest | bun.lockb |
| npm | Default, no setup needed | Built-in with Node.js | Slowest | package-lock.json |