Yarn Workspaces Utils
Util commands for yarn workspaces. For now, working with flow and yarn workspaces is especially expected.
Features
ywu link
: create symlinks to modules into packages'node_modules
.ywu unlink
: unlink modules.ywu clean
: remove all modules undernode_modules
.
To see possible options, run like ywu link --help
.
Installation
In project root,
yarn add -D yarn-workspaces-utils -W
Using -W
option to supress the error below.
error Running this command will add the dependency to the workspace root rather than workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
Example
See /example
in detail.
Programatic Usage
const ywu = const cmdName = 'link'const rootDir = process