Skip to content

Choosing tools and dependencies

Editor
Engineering leadership

Engineers and tech leads.

When you add, upgrade, or replace a dependency.

  • Must: New production dependencies are a decision, not a silent install. Name why this library, not another, on the PR or a decision record.
  • Must: Prefer maintained libraries. Do not add something unmaintained without a written exception.
  • Must: Do not commit lockfile churn unrelated to your change.
  • Should: Prefer the language’s standard library or what the repo already uses.
  • Should: Pin versions the way the repo already pins (lockfile).
  • Team decides: Allow-lists and upgrade cadence. Supply-chain scanning is Dependencies and supply chain.

The PR that adds a library explains the job it does and the cost of owning it.

  1. Check whether the repo already solves this.
  2. If you add something, say why on the PR.
  3. Run tests and lint.
  4. If the library will be hard to remove, write a short decision record.