Optional Dependency - CI/CD Glossary Definition
An optional dependency is a package whose installation failure does not fail the overall install, declared in optionalDependencies. The consuming code is expected to handle its absence.
Where it appears
Platform-specific native binaries are often optional, so installing on Linux does not fail just because a macOS-only variant could not build.
Related guides
Peer Dependency - CI/CD Glossary DefinitionPeer Dependency: A peer dependency is a package that a library expects its host project to provide rather tha…
Dev Dependency - CI/CD Glossary DefinitionDev Dependency: A dev dependency is a package needed only to build or test the project, not to run it, declar…
Runtime Dependency - CI/CD Glossary DefinitionRuntime Dependency: A runtime dependency is a package the application needs to execute in production, not jus…