Skip to content

Add CLI option to specify directory or file to watch in watch mode - #794

Merged
mcollina merged 5 commits into
fastify:mainfrom
gafreax:feat-watch-follow
Mar 2, 2026
Merged

mcollina merged 5 commits into
fastify:mainfrom
gafreax:feat-watch-follow

Conversation

@gafreax

@gafreax gafreax commented Jan 28, 2025 •

Copy link
Copy Markdown
Contributor

This PR introduces a new option to the CLI watch mode that allows users to specify a directory or file to watch for changes. This enhancement addresses issue #787.

The option are --follow-watch for example

fastify start --followWatch plugins/support.js --watch .

Checklist

@mcollina

Copy link
Copy Markdown
Member

Can you add a test that actually verifies the added behavior?

Sorry for the long wait - this slipped through the notifications :(.

@gafreax

gafreax commented Jun 23, 2025

Copy link
Copy Markdown
Contributor Author

Don't worry, I understand. For sure I'll add it as soon as possible.
Thanks for your reply!

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
mcollina merged commit 1da1ad7 into fastify:main Mar 2, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants