Package - Peer Dependency

About

Peer Dependencies are dependency that are provided by a third party. ie

  • a framework
  • or a script in your HTML page

It indicates that:

  • your (module|package) cannot be used without this dependency.
  • the user should provide this dependency
  • the dependency will not be available in the distributed artifact.

Example

  • jQuery
  • Plugin.

Management

Declaration

Add

yarn add [package] --peer

Powered by ComboStrap