Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexindigo/install-peers-cli
CLI to install project's peerDependencies, without side effects
https://github.com/alexindigo/install-peers-cli
dependencies file install lock npm peer pure workspaces yarn
Last synced: 10 days ago
JSON representation
CLI to install project's peerDependencies, without side effects
- Host: GitHub
- URL: https://github.com/alexindigo/install-peers-cli
- Owner: alexindigo
- License: mit
- Created: 2018-10-27T21:43:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-25T12:44:56.000Z (over 4 years ago)
- Last Synced: 2024-10-10T00:12:42.260Z (27 days ago)
- Topics: dependencies, file, install, lock, npm, peer, pure, workspaces, yarn
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/install-peers-cli
- Size: 18.6 KB
- Stars: 34
- Watchers: 3
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.