yarn-reinstall
Yarn Package Reinstaller¶
Reinstalls a yarn package by removing and re-adding it.
Usage¶
Options¶
| Option | Description |
|---|---|
--dev, -D |
Add as dev dependency |
--peer, -P |
Add as peer dependency |
--optional, -O |
Add as optional dependency |
Description¶
- Checks if the package is currently installed before removing
- Runs
yarn remove <packageName>thenyarn add <packageName> [flags] - Skips removal if the package is not installed