Skip to content

Fix check command class named GenerateRoute instead of Check#3696

Open
J8118 wants to merge 1 commit intoShopify:mainfrom
J8118:fix/check-class-name-copypaste
Open

Fix check command class named GenerateRoute instead of Check#3696
J8118 wants to merge 1 commit intoShopify:mainfrom
J8118:fix/check-class-name-copypaste

Conversation

@J8118
Copy link
Copy Markdown

@J8118 J8118 commented Apr 10, 2026

Summary

In commands/hydrogen/check.ts, the class is named GenerateRoute but implements the check command. This is a copy-paste error from when the file was created based on generate/route.ts. While oclif uses file-based routing so the class name doesn't affect command resolution, it appears incorrectly in stack traces and causes confusion for developers maintaining the code.

File changed:

  • packages/cli/src/commands/hydrogen/check.ts (line 14)

Before:

export default class GenerateRoute extends Command {

After:

export default class Check extends Command {

The class was named GenerateRoute due to a copy-paste from the
generate/route.ts template. Renamed to Check to match the command.
@J8118 J8118 requested a review from a team as a code owner April 10, 2026 09:21
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