List and run a command on changed workspaces and their dependents.
This plugin requires @yarnpkg/plugin-workspace-tools.
yarn plugin import workspace-tools
Install the latest plugin.
yarn plugin import https://github.com/Dcard/yarn-plugins/releases/latest/download/plugin-changed.js
List changed workspaces and their dependents.
Find changed files within a Git range.
Example:
yarn changed list --git-range master
yarn changed list --git-range 93a9ed8..4ef2c61
Look only at staged changes in git. Useful for local development.
Example:
yarn changed list --cached
Include workspaces.
Example:
yarn changed list --include @foo/a --include @foo/b
Exclude workspaces.
Example:
yarn changed list --exclude @foo/a --exclude @foo/b
Output in NDJSON format.
Example:
yarn changed list --json
# {"name":"@foo/a","location":"packages/a"}
# {"name":"@foo/b","location":"packages/b"}
Run a command on changed workspaces and their dependents. This command relies on yarn workspaces foreach
command. See more information about the options here.
See yarn changed list
.
See yarn changed list
.
See yarn changed list
.
See yarn changed list
.
Print more information.
Run tasks in parallel.
Print the lines from the output immediately. Otherwise, Yarn will print the output after the source processes have exited.
Limit the number of parallel tasks.