Feature Request (changed): Ignore changes to certain workspaces when computing dependency tree
mhassan1 opened this issue · 0 comments
Thanks for the awesome plugins!
This is a feature request for the changed
plugin for ignoring certain workspaces so that changes to any of those workspaces doesn't trigger any dependent workspaces to be included in the changed
output.
We have a monorepo with a structure like this:
packages
- build-utils
- frontend-1 (has devDependency on build-utils)
- frontend-2 (has devDependency on build-utils)
We are using yarn changed
to determine which workspaces should have their tests run. When someone modifies build-utils
, the frontend-*
workspaces have their tests run because they have a development dependency on it. In this scenario, the fact that the build of frontend-*
workspaces passed is good enough for us; we don't need to run tests.
It would be useful to be able to exclude certain workspaces from the dependency tree computation, in any of these ways:
- Allow a
--ignore <workspace>
option which means "ignore changes made to these workspaces when computing dependents" - Allow a
--production
flag which means "ignore development dependencies when computing dependents"