Dependencies of Dependency management

Given three packages:

  • App - Your rescript application
  • Direct Dependency - A dependency you install to your app
  • Indirect Dependency - A dependency that “direct” uses

What’s kind of the guidelines around what needs to be installed and configured? If the App wants to use the direct dependency, is it expected to also need to install the indirect dependency and include it in their rescript.json ? If so, should the direct dependency then define the indirect as a peer dependency?