Implementation:A5c ai Babysitter sync workspace versions
| Knowledge Sources | |
|---|---|
| Domains | Release_Pipeline, Version_Management |
| Last Updated | 2026-10-23 00:00 GMT |
Overview
CLI tool for synchronizing all workspace package.json versions and plugin manifests to a target semver version.
Description
The sync-workspace-versions.mjs script updates every package.json in packages/ and plugins/ to a single target version. It also synchronizes internal dependency pins (packages referencing other @a5c-ai/* packages), plugin manifest versions (plugin.json), versions.json files, and marketplace manifests via syncBabysitterMarketplaceManifestVersions.
Skip directories include: .git, .a5c, node_modules, dist, build, coverage, artifacts, generated, examples.
Usage
- Release pipeline Step 2: After resolving the target version, run this script to synchronize all manifests before building and publishing.
Code Reference
Source Location
- Repository: Babysitter
- File: scripts/sync-workspace-versions.mjs:L1-130
Signature
node scripts/sync-workspace-versions.mjs --version <semver>
Import
# CLI script — run directly
node scripts/sync-workspace-versions.mjs --version 6.0.4
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| --version | string | Yes | Target semver version |
Outputs
| Name | Type | Description |
|---|---|---|
| package.json files | modified files | All workspace package.json versions updated |
| plugin.json | modified files | Plugin manifest versions updated |
| versions.json | modified files | Plugin versions.json updated |
| marketplace manifests | modified files | Marketplace manifest versions synced |
Usage Examples
Synchronize Workspace Versions
# Sync all packages to version 6.0.4
node scripts/sync-workspace-versions.mjs --version 6.0.4