Peer Dependency - CI/CD用語集の定義
peer dependency とは、ライブラリが自身で同梱するのではなくホストプロジェクトに提供させることを期待するパッケージで、peerDependencies に宣言されます。React のような共有パッケージが二重に存在するのを避けます。
CIにおいて
満たされない peer は、インストール中に npm の ERESOLVE エラーを引き起こします。ホストプロジェクトを必要な peer のバージョンに揃えるか、意図的に --legacy-peer-deps を使うことで解決します。
関連ガイド
Optional Dependency - CI/CD Glossary DefinitionOptional Dependency: An optional dependency is a package whose installation failure does not fail the overall…
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…
Diamond Dependency - CI/CD Glossary DefinitionDiamond Dependency: A diamond dependency occurs when two of your dependencies both require a third package bu…