This plugin is only supported on Yarn V3 compatible version will be soon.
yarn plugin import https://raw.githubusercontent.com/RuBAN-GT/yarn-plugin-enhanced-workspaces/master/bundles/%40yarnpkg/plugin-enhanced-workspaces.js
yarn workspaces graph
- prints monitored workspaces graph.-o, --output-format
can bejson
ortree
yarn workspaces changed list
- prints changed workspaces with related chunks.--extra
- a list of additional workspaces outside change detection gathering-a, --ancestors/--no-ancestors
- performs the operation over ancestors. Default isfalse
. More priority thanpreserveAncestors
.--ignored-ancestors-markers
- the same asignoredAncestorsMarkers
--private/--no-private
- includes private workspaces into affected list. Default istrue
. More priority thandetectPrivates
.--change-detection-strategy
- which source the plugin should use in order to determine workspaces changes. Can bebase-ref
,prev-ref
ornone
. Default isbase-ref
. More priority thanchangeDetectionStrategy
.
yarn workspaces changed chunks
- prints changed workspaces in topological order grouped by chunks.--extra
- a list of additional workspaces outside change detection gathering-g, --group-by
the count of chunks, default is available machine cores-a, --ancestors/--no-ancestors
- performs the operation over ancestors. Default isfalse
. More priority thanpreserveAncestors
.--ignored-ancestors-markers
- the same asignoredAncestorsMarkers
--private/--no-private
- includes private workspaces into affected list. Default istrue
. More priority thandetectPrivates
.--change-detection-strategy
- which source the plugin should use in order to determine workspaces changes. Can bebase-ref
,prev-ref
ornone
. Default isbase-ref
. More priority thanchangeDetectionStrategy
.
yarn workspaces changed foreach
- a simple wrapper overforeach
command working only with changed workspaces. Required to have installed@yarnpkg/plugin-workspace-tools
plugin.--include
- a list of included workspaces--exclude
- a list of excluded workspaces--extra
- a list of additional workspaces outside change detection gathering-p, --parallel
- run the commands in parallel-a, --ancestors/--no-ancestors
- performs the operation over ancestors. Default isfalse
. More priority thanpreserveAncestors
.--ignored-ancestors-markers
- the same asignoredAncestorsMarkers
--private/--no-private
- includes private workspaces into affected list. Default istrue
. More priority thandetectPrivates
.--change-detection-strategy
- which source the plugin should use in order to determine workspaces changes. Can bebase-ref
,prev-ref
ornone
. Default isbase-ref
. More priority thanchangeDetectionStrategy
.
The plugin provides the next configurable options:
changeDetectionStrategy
- Which source the plugin should use in order to determine workspaces changes. Can bebase-ref
,prev-ref
ornone
. Default isbase-ref
.ignoredAncestorsMarkers
- If ancestor workspace contains these files/directories it will be excluded from execution list. Should be defined a string list.preserveAncestors
- Preserve ancestors of changed workspaces. Should be defined as a boolean flag. Default isfalse
.detectPrivates
- Gather private workspaces into changed list. Should be defined as a boolean flag. Default istrue
.extraWorkspaces
- a list of additional workspaces outside change detection gathering. Default is empty list.
New operations from the plugin have configurable changeDetectionStrategy
option
helping them to identify which workspaces should be utilized. Acceptable options:
base-ref
- only changed workspaces fromchangesetBaseRefs
refs should be utilized.prev-ref
- only changed workspaces from previous commit should be utilized.none
- technical option returning all workspaces.