feat(request): add watch option to request command#50
Merged
Conversation
Member
Author
|
Hi @yusukebe, how about something like this? |
Member
|
Hi @usualoma I like this feature! I think we can merge this immediately. Hey @ysknsid25 ! Before merging, can you review the implementation of this PR? We don't have to look at the small details. |
Contributor
|
Okay, Dokey 🫡 |
Member
Author
|
8cf858c |
Contributor
Member
|
@usualoma @ysknsid25 Thank you!! Let's go with this. I'll merge and release a new version. Regarding the next step of Hono CLI, I want to discuss this issue: #51 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this?
Adds the
--watchoption tohono request.When making changes while verifying detailed behavior using
$ hono request, it would be convenient to incrementally build and review results with each save.CleanShot.2025-11-24.at.14.25.53.mp4
Explanation of Changes
src/utils/build.ts
On the main branch, “.js” files were imported directly, but such cases are rare (most users likely use TypeScript). Since it's easier to let esbuild handle everything, including file monitoring, I've set it up to bundle and execute all files using esbuild.