Skip to content
Latchkey

Dev Dependency - CI/CD Glossary Definition

A dev dependency is a package needed only to build or test the project, not to run it, declared in devDependencies. Test frameworks, linters, and bundlers are typical examples.

In CI

CI installs dev dependencies to run tests, but production images should omit them (npm ci --omit=dev) to shrink the artifact and reduce attack surface.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →