Skip to content

Ability to run codemods from the Hypermod App #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2025
Merged

Conversation

danieldelcore
Copy link
Contributor

https://www.hypermod.io/dashboard/explore/migrate-expressjs-v5

We want the ability to be able to run codemods on the explore registry via npx.

This implementation enables this by:

  • detecting a special prefix hm-
  • pinging an api endpoint to fetch the source files
  • writing them to a special directory in the CLI
  • running the transform

Example command: npx @hypermod/cli --packages @compiled/codemods test-file.tsx

Copy link

changeset-bot bot commented Apr 17, 2025

🦋 Changeset detected

Latest commit: 55bc230

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hypermod/cli Minor
@codeshift/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@danieldelcore danieldelcore merged commit 9625154 into main Apr 17, 2025
4 checks passed
@danieldelcore danieldelcore deleted the hm-app-runner branch April 17, 2025 02:03
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