rush add

Adds one or more dependencies to the package.json and runs rush update

Options

NameDescription
-p, --package <PACKAGE>
  • Required ✳
  • Repeatable ♾
--exactIf specified, the SemVer specifier added to the package.json will be an exact version (e.g. without tilde or caret)
--caretIf specified, the SemVer specifier added to the package.json will be a prepended with a "caret" specifier ("^")
--devIf specified, the package will be added to the "devDependencies" section of the package.json
-m, --make-consistentIf specified, other packages with this dependency will have their package.json files updated to use the same version of the dependency
-s, --skip-updateIf specified, the "rush update" command will not be run after updating the package.json files
--allIf specified, the dependency will be added to all projects