Skip to content

Latest commit

 

History

History

changed

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

yarn-plugin-changed

List and run a command on changed workspaces and their dependents.

Installation

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

CLI

yarn changed list

List changed workspaces and their dependents.

--git-range

Find changed files within a Git range.

Example:

yarn changed list --git-range master
yarn changed list --git-range 93a9ed8..4ef2c61

--cached

Look only at staged changes in git. Useful for local development.

Example:

yarn changed list --cached

--include

Include workspaces.

Example:

yarn changed list --include @foo/a --include @foo/b

--exclude

Exclude workspaces.

Example:

yarn changed list --exclude @foo/a --exclude @foo/b

--json

Output in NDJSON format.

Example:

yarn changed list --json
# {"name":"@foo/a","location":"packages/a"}
# {"name":"@foo/b","location":"packages/b"}

yarn changed foreach

Run a command on changed workspaces and their dependents. This command relies on yarn workspaces foreach command. See more information about the options here.

--git-range

See yarn changed list.

--cached

See yarn changed list.

--include

See yarn changed list.

--exclude

See yarn changed list.

-v,--verbose

Print more information.

-p,--parallel

Run tasks in parallel.

-i,--interlaced

Print the lines from the output immediately. Otherwise, Yarn will print the output after the source processes have exited.

-j,--jobs

Limit the number of parallel tasks.