astryx icon indicating copy to clipboard operation
astryx copied to clipboard

fix(cli): remove dead @xds/theme-default collapse from the v0.1.0 upgrade codemods

Open ejhammond opened this issue 3 months ago • 1 comments

What

Removes the @xds/theme-default → @astryxdesign/theme-neutral collapse from all three v0.1.0 upgrade codemods:

  • migrate-xds-module-specifiers.mjs — dropped the @xds/theme-default entry from PACKAGE_RENAMES and from the collapsed-theme export-remap set.
  • migrate-xds-css-surfaces.mjs — dropped the @xds/theme-default/* → @astryxdesign/theme-neutral/* @import rewrite.
  • migrate-xds-declare-module.mjs — dropped the @xds/theme-default entry from its PACKAGE_RENAMES map.

Why

We have a different migration path for internal vs external "theme-default" usages (internal maps to an internal theme, external maps to the "neutral" theme) and these were fighting one another--the external codemod ran first with default->neutral, then the internal codemod would not find any "default" references to migrate.

Rather than solve the (harder) sequencing issue, we noticed that there are no external consumers using the default theme in the first place. It was never published in OSS. So we can "cheat" here and just remove the external facing codemod leaving "default" references alone for the internal codemod to migrate.

Changes

  • Three codemods: removed the theme-default collapse; comments / meta.description updated to say theme-daily -> theme-neutral only.
  • Tests: removed the theme-default-specific module-specifiers case; converted shared theme-default assertions in the module-specifiers and css-surfaces suites to @xds/theme-daily so the collapse + alias behavior stays covered. declare-module had no theme-default-specific test.

Testing

vitest run on the v0.1.0 codemod suite — 50 tests pass across all five files. ESLint clean on the changed files.

ejhammond avatar Aug 04 '26 12:08 ejhammond

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 4, 2026 8:19pm

Request Review

vercel[bot] avatar Aug 04 '26 12:08 vercel[bot]

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

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


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

github-actions[bot] avatar Aug 04 '26 20:08 github-actions[bot]