Skip to content

chore: remove JS-first migration residuals#931

Merged
jackwener merged 1 commit intomainfrom
chore/migration-cleanup
Apr 10, 2026
Merged

chore: remove JS-first migration residuals#931
jackwener merged 1 commit intomainfrom
chore/migration-cleanup

Conversation

@jackwener
Copy link
Copy Markdown
Owner

Summary

Clean up dead code left behind by the adapter JS-first migration (#928):

  • Remove mapDistToSource() from diagnostic.ts — this function mapped dist/clis/ paths back to clis/, but dist/clis/ no longer exists. It always returned null
  • Simplify resolveAdapterSourcePath() — remove the dead dist→source mapping detour, check candidates directly
  • Delete scripts/clean-yaml.cjs — walked dist/clis/ to delete YAML files, but dist/clis/ no longer exists
  • Remove clean-yaml script from package.json

Note: copy-yaml.cjs is kept — it still copies src/external-clis.yaml to dist/src/ which is used at runtime by external.ts.

Test plan

  • src/diagnostic.test.ts — 30 tests passed
  • No remaining dist/clis references in *.ts/*.js/*.cjs/*.json

- Remove mapDistToSource() from diagnostic.ts — mapped dist/clis/
  paths back to clis/ but dist/clis/ no longer exists after JS-first
  migration. The function always returned null.
- Simplify resolveAdapterSourcePath() to check candidates directly
  without the dead dist→source mapping detour.
- Delete scripts/clean-yaml.cjs — walked dist/clis/ to delete YAML
  files, but dist/clis/ no longer exists.
- Remove clean-yaml script entry from package.json.
@jackwener jackwener merged commit 2457002 into main Apr 10, 2026
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant