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

Synchronize Dependencies Installed in Nested Modules with --no-workspaces to the Main Metapackage #24

Open
martyanovandrey opened this issue Oct 2, 2024 · 0 comments
Labels

Comments

@martyanovandrey
Copy link
Contributor

martyanovandrey commented Oct 2, 2024

Problem:
In the package architecture that uses gitmodules, when a new dependency is installed using --no-workspaces in a nested module (dependent repository without workspaces), the main metapackage is not updated with this new dependency. This leads to inconsistencies, causing the metapackage to use outdated dependencies while nested modules have newer versions.

Proposed solution:
Create a GitHub Action that detects when a new dependency has been installed with --no-workspaces in any nested module and then updates the same dependency in the main metapackage.

Steps to Implement:

  1. Create a GitHub Action workflow file (.github/workflows/sync-dependencies.yml).
  2. Set up triggers for the action when package.json files in the nested modules are updated.
  3. Define steps to update the dependencies in the main metapackage accordingly.
  4. Commit and push the changes to keep both the nested modules and the metapackage in sync.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

1 participant