yarn remove
Remove dependencies from the project.
Usage
$> yarn remove [-A,--all] ...
Examples
Remove a dependency from the current project :
yarn remove lodash
Remove a dependency from all workspaces at once :
yarn remove lodash --all
Remove all dependencies starting with eslint-
:
yarn remove 'eslint-*'
Remove all dependencies with the @babel
scope
:
yarn remove '@babel/*'
Remove all dependencies matching react-dom
or react-helmet
:
yarn remove 'react-{dom,helmet}'
Details
This command will remove the packages matching the specified patterns from the current workspace.
If the -A,--all
option is set, the operation will be applied to all workspaces
from the current project.
This command accepts glob patterns as arguments (if valid Idents and supported by micromatch). Make sure to escape the patterns, to prevent your own shell from trying to expand them.