This commit introduces a new `/core:sync` command that syncs changes across dependent modules. The command reads a `repos.yaml` file to determine the dependency graph. When a base module is changed, the command will: - Update the `composer.json` file of each dependent module to the latest version of the base module. - Run `composer update` to install the new dependency version. - Run tests in each dependent module to ensure that the changes have not introduced any regressions. The command also includes a `--dry-run` option that allows users to see what changes would be made without actually modifying any files.
34 lines
774 B
JSON
34 lines
774 B
JSON
{
|
|
"name": "core",
|
|
"description": "Core commands for the Host UK federated monorepo.",
|
|
"commands": [
|
|
{
|
|
"name": "/core:sync",
|
|
"description": "Sync changes across dependent modules."
|
|
}
|
|
]
|
|
"description": "Laravel migration helpers for the Host UK monorepo",
|
|
"version": "0.1.0",
|
|
"author": {
|
|
"name": "Host UK",
|
|
"email": "hello@host.uk.com"
|
|
},
|
|
"homepage": "https://github.com/host-uk/core-agent",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/host-uk/core-agent.git"
|
|
},
|
|
"license": "EUPL-1.2",
|
|
"keywords": [
|
|
"devops",
|
|
"monorepo",
|
|
"php",
|
|
"laravel",
|
|
"migrations"
|
|
]
|
|
"description": "Core functionality - release management",
|
|
"version": "0.1.0",
|
|
"author": {
|
|
"name": "Host UK"
|
|
}
|
|
}
|