Skip to content

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

@martyanovandrey

Description

@martyanovandrey

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions