rush add
Adds one or more dependencies to the package.json and runs rush update
Options
Name | Description |
---|---|
-p, --package <PACKAGE> |
|
--exact | If specified, the SemVer specifier added to the package.json will be an exact version (e.g. without tilde or caret) |
--caret | If specified, the SemVer specifier added to the package.json will be a prepended with a "caret" specifier ("^") |
--dev | If specified, the package will be added to the "devDependencies" section of the package.json |
-m, --make-consistent | If specified, other packages with this dependency will have their package.json files updated to use the same version of the dependency |
-s, --skip-update | If specified, the "rush update" command will not be run after updating the package.json files |
--all | If specified, the dependency will be added to all projects |