Skip to content

feat(cli): add explicit upgrade integrations#3092

Merged
ejhammond merged 1 commit into
mainfrom
navi/feat/explicit-cli-integrations
Jun 25, 2026
Merged

feat(cli): add explicit upgrade integrations#3092
ejhammond merged 1 commit into
mainfrom
navi/feat/explicit-cli-integrations

Conversation

@ejhammond

@ejhammond ejhammond commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds explicit integration support to astryx upgrade and simplifies the public upgrade contract:

  • --from <version> is required for upgrades
  • the target version is inferred from the installed @astryxdesign/core (or legacy @xds/core) package
  • dependency bumping and package-manager installs are no longer part of the public upgrade command
  • integrations are explicit via repeatable --integration <package-or-file>
  • integration codemods run in the same codemod sequence as core codemods
  • integration post-codemod hooks can run after all codemods receive {packageDir, codemodDir, changedFiles, absoluteChangedFiles, packageChangedFiles, apply, run}

This lets downstream packages register their own codemods and post-processing without baking package-manager-specific behavior into the public Astryx CLI.

Test Plan

  • pnpm -F @astryxdesign/cli typecheck:json-api
  • pnpm lint
  • pnpm test
  • pnpm test packages/cli/src/commands/upgrade.test.mjs packages/cli/src/commands/json-contract.test.mjs
  • smoke-tested a local integration file:
    • astryx upgrade --from 0.0.14 --path src --integration /tmp/test-astryx-integration.mjs --codemod replace-token --apply --install-deps
    • verified the integration transform rewrote the source file
  • astryx upgrade --list works without --from
  • commit hook repo checks passed (check:sync, check:package-boundaries, check:changesets)

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
astryx Ignored Ignored Jun 25, 2026 1:42pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 24, 2026
@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

🚀 Vercel Preview Deployment

Status ✅ Deployed
Preview Open Preview
Commit 3f293df
Inspect Vercel Dashboard
Workflow View Logs

No authentication required — anyone with the link can view the preview.

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jun 24, 2026
@cixzhang

Copy link
Copy Markdown
Contributor

Could be helpful to add a test for this and probably a change set for the cli

@ejhammond ejhammond force-pushed the navi/feat/explicit-cli-integrations branch from b50aacb to 3f293df Compare June 25, 2026 13:42
github-actions Bot added a commit that referenced this pull request Jun 25, 2026
@ejhammond ejhammond merged commit d150e45 into main Jun 25, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants