Open snebjorn opened 4 years ago
There is a strong use case for this in monorepos, which may have a structure such as: lib1/ lib2/ ../common
where common
folder contains code shared by both libs. If code in common
changes, its commits should be inspected for bumping dependent libs.
Looked into this a bit more and see that a single string path
is expected by all of the dependent conventional-changelog libs as well. Could add a PR for standard-version
that calls out to conventional-recommended-bump
and conventional-changelog
once for each item in path array, but the "correct" fix would be to add support for path array within each dependent lib.
Maybe another option would be to have a path
argument on the standard-version
command.
That way, there's no need to update the .versionrc
each time you add a new package.
Support multiple paths just as
packageFiles
andbumpFiles
.