JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9657
  • Score
    100M100P100Q132381F
  • License MIT

CLI to install project's peerDependencies, without side effects.

Package Exports

  • install-peers-cli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (install-peers-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

install-peers-cli

CLI to install project's peerDependencies, without side effects. Works with npm, yarn. Supports yarn workspaces flow.

Install

yarn

$ yarn add --dev install-peers-cli

npm

$ npm install --save-dev install-peers-cli

Usage

Add package.json script:

{
  "scripts": {
    "install-peers": "install-peers"
  }
}

Then run yarn install-peers (or npm run install-peers) to install peer dependencies of your project. It won't update lock files or modify package.json, keeping your setup pure and clean. Any other lifecycle script could be used depending on your use case.

You still may see "unmet peer dependency" warnings during regular install phase, due to installation flow of npm/yarn.

License

Install-Peers-CLI is released under the MIT license.