Add a dependency
This project pins exact versions (no ^) for reproducibility. Only @types/node uses a caret.
Steps
- Install with an exact version:
If you don't pin a version, pnpm writes a caret — fix it inshpnpm add <pkg>@<version> # dependency pnpm add -D <pkg>@<version> # devDependencypackage.jsonafterward so the value is exact. - (Optional) use the context7 MCP to confirm current docs/API for the package before integrating.
- Commit the updated
package.jsonandpnpm-lock.yamltogether. - Run the gate:
sh
pnpm check && pnpm build
Conventions
- Runtime (
dependencies) vs build/test (devDependencies) — place correctly. - Keep the lockfile committed; the Docker build relies on
--frozen-lockfile. - Prefer exact pins matching the rest of the stack.


