tools/update-repos/README.md
Automated system for updating multiple repositories with Nx migrations.
Update Individual Repository (setup handled automatically):
nx run update-repos:update-nx-repo
nx run update-repos:update-ocean-repo
nx run update-repos:update-nx-examples-repo
nx run update-repos:update-nx-console-repo
Update All Repositories:
nx run update-repos:update-all-repos
Or using the convenient npm script:
pnpm update-all-repos
Note: No separate setup step is required. Each update task automatically handles repository setup if needed.
Automatic Setup (if repository doesn't exist):
config/repos.jsonUpdate Process:
upnx) from remote main branchnx migrate next to update to latest Nx versionnx migrate --run-migrations --create-commits (auto-generates commits)migrations.json file after successful migrationpost-nx-update script if it exists in package.json (optional)nx reset to clear cache (prevents prepush hook issues)--no-verify to skip git hooks)Post-Update Hook:
post-nx-update script in their root package.jsonPR Management: