Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add additional-paths property to manifest releaser #2336

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jack-lewin
Copy link

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1921 🦕


This PR adds an additional-paths property to the manifest releaser.

Additional paths are useful for monorepos where a package might depend files from other directories.

For example, if we want to trigger a release in apps/my-app-2 when commits are found in libs/my-lib:

apps/
    my-app-1
    my-app-2
libs/
    my-lib
{
  "packages": {
    "apps/my-app-1": {},
    "apps/my-app-2": {
      "additional-paths": ["libs/my-lib"] // additional-paths would be a new config option
    }
  }
}

Best reviewed commit-by-commit.

Before, packagePaths was an array of strings, i.e. the name of each package.

Now, packagePaths is a Record<string, string[]>, with the key being the name of each package,
and the value being an aray of additionalPaths for that package.
@jack-lewin jack-lewin requested review from a team as code owners July 13, 2024 13:37
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Jul 13, 2024
@jack-lewin
Copy link
Author

Hi @chingor13, sorry for the nudge - are you still maintaining this project?
If not, is there anyone else I should reach out to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to define multiple paths
2 participants