yarn-install-peers
v0.0.2
Published
CLI command to install peerDependencies by yarn or npm
Downloads
5
Maintainers
Readme
yarn-install-peers
CLI command to install peerDependencies by yarn or npm. This can be useful when developing modules
https://github.com/xxxxst/yarn-install-peers
Consider the following dependencies:
{
"dependencies": {
"vue": "^2.6.11"
},
"devDependencies": {},
"peerDependencies": {
"vue-class-component": "^7.2.3"
},
}
Install
install global
$ npm i -g yarn-install-peers
or install local
$ yarn add -d yarn-install-peers
$ # or
$ npm i -d yarn-install-peers
Usage
$ # use yarn
$ yarn-install-peers
$ # use npm
$ yarn-install-peers-npm
This will read out your package.json
file and install all of its peerDependencies. There are no other options.
Usage(local)
//pacakge.json
{
"scripts": {
// use yarn
"yarn-install-peers": "yarn-install-peers",
// use npm
"yarn-install-peers-npm": "yarn-install-peers-npm"
},
"devDependencies": {
"yarn-install-peers": "^0.0.1"
},
}
run in project directory
$ yarn yarn-install-peers
$ # or
$ npm run yarn-install-peers-npm
License
MIT