| name | toolchain-node |
| description | Node.js/TypeScript project toolchain -- npm/pnpm/yarn, testing, linting, building, and debugging. |
| metadata | {"thinkfleetbot":{"emoji":"🟢","requires":{"bins":["node"]}}} |
Node.js / TypeScript Toolchain
Common commands for Node.js and TypeScript projects.
Package managers
[ -f pnpm-lock.yaml ] && echo "pnpm" || ([ -f yarn.lock ] && echo "yarn" || echo "npm")
npm install
npm ci
npm install lodash
npm install -D vitest
Run scripts
npm run build
npm run dev
npm test
npm run lint
Testing
npx jest --coverage
npx jest --watch
npx jest path/to/test.ts
npx vitest run
npx vitest run --coverage
npx vitest path/to/test.ts
node --test src/**/*.test.ts
Linting & formatting
npx eslint . --fix
npx prettier --write .
npx biome check --write .
TypeScript
npx tsc --noEmit
npx tsc --noEmit --watch
npx tsc --showConfig
npx tsx src/script.ts
Debugging
node --inspect-brk dist/index.js
node --enable-source-maps dist/index.js
Dependencies
npm outdated
npm audit
npm ls --depth=0
npx depcheck
Monorepo (Turborepo / Nx)
npx turbo run build
npx turbo run test --filter=my-package
npx nx run my-app:build
Notes
- Check
package.json scripts section for project-specific commands.
- Use
npx to run locally-installed binaries without global install.
- Prefer
npm ci over npm install in CI environments.