René's URL Explorer Experiment


Title: lib: adding `--watch-pattern` to support watching files/dirs with glob by louiellan · Pull Request #59345 · nodejs/node · GitHub

Open Graph Title: lib: adding `--watch-pattern` to support watching files/dirs with glob by louiellan · Pull Request #59345 · nodejs/node

X Title: lib: adding `--watch-pattern` to support watching files/dirs with glob by louiellan · Pull Request #59345 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: Closes #45182 This adds the --watch-pattern cli option to Node.js, which allows to watch files and directories with the use of globs. This PR is a non-breaking change opposed to --watch-path option...

X Description: Closes #45182 This adds the --watch-pattern cli option to Node.js, which allows to watch files and directories with the use of globs. This PR is a non-breaking change opposed to --watch-path option...

Opengraph URL: https://github.com/nodejs/node/pull/59345

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1f00ebce-ebec-6742-6831-8b23eb780d11
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id817A:3C3A87:64B458:8A4DD9:6A4D41F4
html-safe-nonce06fa41ad5b1ba616c7c9d4965bfb6733331aabe82b95c548ffaf8cdbcab466e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTdBOjNDM0E4Nzo2NEI0NTg6OEE0REQ5OjZBNEQ0MUY0IiwidmlzaXRvcl9pZCI6IjcyODMwMzA2OTkwNjk0ODk2NTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8ef7ea53db16829c44ccfabf55a6d5d33546a7bf6cfc04102cf2a8d8bd04fd37
hovercard-subject-tagpull_request:2716983634
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/59345/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f22c648f710c50123743c20d249d6e1785ba152ea442cb8b12e686934fb442dd/nodejs/node/pull/59345
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f22c648f710c50123743c20d249d6e1785ba152ea442cb8b12e686934fb442dd/nodejs/node/pull/59345
og:image:altCloses #45182 This adds the --watch-pattern cli option to Node.js, which allows to watch files and directories with the use of globs. This PR is a non-breaking change opposed to --watch-path option...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelouiellan
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-cache
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/59345#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F59345
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F59345
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/59345
Reloadhttps://github.com/nodejs/node/pull/59345
Reloadhttps://github.com/nodejs/node/pull/59345
Please reload this pagehttps://github.com/nodejs/node/pull/59345
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/59345
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 958 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
louiellanhttps://github.com/louiellan
nodejs:mainhttps://github.com/nodejs/node/tree/main
louiellan:glob-on-watch-pathhttps://github.com/louiellan/node/tree/glob-on-watch-path
Conversationhttps://github.com/nodejs/node/pull/59345
Commits5 (5)https://github.com/nodejs/node/pull/59345/commits
Checkshttps://github.com/nodejs/node/pull/59345/checks
Files changedhttps://github.com/nodejs/node/pull/59345/files
lib: adding --watch-pattern to support watching files/dirs with globhttps://github.com/nodejs/node/pull/59345#top
louiellanhttps://github.com/louiellan
nodejs:mainhttps://github.com/nodejs/node/tree/main
louiellan:glob-on-watch-pathhttps://github.com/louiellan/node/tree/glob-on-watch-path
https://github.com/louiellan
louiellanhttps://github.com/louiellan
Aug 4, 2025https://github.com/nodejs/node/pull/59345#issue-3288325956
Please reload this pagehttps://github.com/nodejs/node/pull/59345
#45182https://github.com/nodejs/node/issues/45182
Please reload this pagehttps://github.com/nodejs/node/pull/59345
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
fs https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Afs
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
Aug 4, 2025https://github.com/nodejs/node/pull/59345#event-18963866041
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Aug 4, 2025https://github.com/nodejs/node/pull/59345#issuecomment-3149980509
Please reload this pagehttps://github.com/nodejs/node/pull/59345
Codecovhttps://app.codecov.io/gh/nodejs/node/pull/59345?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
55b7d28https://app.codecov.io/gh/nodejs/node/commit/55b7d2890dc32a445808ff695addb50e1029fd0a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
bf21496https://app.codecov.io/gh/nodejs/node/commit/bf21496400e5b96679f6e5ea746b7ea0e8b5d215?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
Files with missing lineshttps://app.codecov.io/gh/nodejs/node/pull/59345?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
lib/internal/fs/glob.jshttps://app.codecov.io/gh/nodejs/node/pull/59345?src=pr&el=tree&filepath=lib%2Finternal%2Ffs%2Fglob.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs#diff-bGliL2ludGVybmFsL2ZzL2dsb2IuanM=
115 files with indirect coverage changeshttps://app.codecov.io/gh/nodejs/node/pull/59345/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nodejs
Test Analyticshttps://docs.codecov.com/docs/test-analytics
JS Bundle Analysishttps://docs.codecov.com/docs/javascript-bundle-analysis
Please reload this pagehttps://github.com/nodejs/node/pull/59345
https://github.com/louiellan
lib: support glob on --watch-pathhttps://github.com/nodejs/node/pull/59345/commits/46be19d5ef3adaec1a527121d67c37b567861f73
46be19dhttps://github.com/nodejs/node/pull/59345/commits/46be19d5ef3adaec1a527121d67c37b567861f73
https://github.com/louiellan
louiellanhttps://github.com/louiellan
force-pushedhttps://github.com/nodejs/node/compare/0c53c428b5d1c9a2592c504b4e81661eccd96bb0..46be19d5ef3adaec1a527121d67c37b567861f73
0c53c42https://github.com/nodejs/node/commit/0c53c428b5d1c9a2592c504b4e81661eccd96bb0
46be19dhttps://github.com/nodejs/node/commit/46be19d5ef3adaec1a527121d67c37b567861f73
Compare https://github.com/nodejs/node/compare/0c53c428b5d1c9a2592c504b4e81661eccd96bb0..46be19d5ef3adaec1a527121d67c37b567861f73
August 5, 2025 03:14https://github.com/nodejs/node/pull/59345#event-18982156568
https://github.com/MoLow
MoLowhttps://github.com/MoLow
Aug 5, 2025 https://github.com/nodejs/node/pull/59345#pullrequestreview-3087205530
View reviewed changes https://github.com/nodejs/node/pull/59345/files/46be19d5ef3adaec1a527121d67c37b567861f73
lib/internal/main/watch_mode.jshttps://github.com/nodejs/node/pull/59345/files/46be19d5ef3adaec1a527121d67c37b567861f73#diff-61df471e4c313c778a503ae1a523d4839b71600b410e2c16b2f2d85101dbcda6
Please reload this pagehttps://github.com/nodejs/node/pull/59345
https://github.com/louiellan
https://github.com/MoLow
lib: filter modules when --watch-pattern is not passedhttps://github.com/nodejs/node/pull/59345/commits/bf21496400e5b96679f6e5ea746b7ea0e8b5d215
bf21496https://github.com/nodejs/node/pull/59345/commits/bf21496400e5b96679f6e5ea746b7ea0e8b5d215
https://github.com/louiellan
louiellanhttps://github.com/louiellan
August 12, 2025 02:02https://github.com/nodejs/node/pull/59345#event-19101236215
https://github.com/louiellan
src,lib: added --watch-pattern optionhttps://github.com/nodejs/node/pull/59345/commits/c29982b0fefc85f6250edad23c89c9ce4477b660
c29982bhttps://github.com/nodejs/node/pull/59345/commits/c29982b0fefc85f6250edad23c89c9ce4477b660
https://github.com/louiellan
louiellanhttps://github.com/louiellan
force-pushedhttps://github.com/nodejs/node/compare/1e1b8598d11caa69e4874777c486f15bcafab088..c29982b0fefc85f6250edad23c89c9ce4477b660
1e1b859https://github.com/nodejs/node/commit/1e1b8598d11caa69e4874777c486f15bcafab088
c29982bhttps://github.com/nodejs/node/commit/c29982b0fefc85f6250edad23c89c9ce4477b660
Compare https://github.com/nodejs/node/compare/1e1b8598d11caa69e4874777c486f15bcafab088..c29982b0fefc85f6250edad23c89c9ce4477b660
August 12, 2025 02:40https://github.com/nodejs/node/pull/59345#event-19101592163
louiellanhttps://github.com/louiellan
August 15, 2025 12:28https://github.com/nodejs/node/pull/59345#commits-pushed-3dd9c46
https://github.com/louiellan
lib: remove unused primordialshttps://github.com/nodejs/node/pull/59345/commits/3dd9c46730b5af5edd3b7abcc1ccb493e1c5b2e9
3dd9c46https://github.com/nodejs/node/pull/59345/commits/3dd9c46730b5af5edd3b7abcc1ccb493e1c5b2e9
https://github.com/louiellan
docs: added docs for --watch-patternhttps://github.com/nodejs/node/pull/59345/commits/549bae4b196ff2d5d193ad15d3f09b828f69ac57
549bae4https://github.com/nodejs/node/pull/59345/commits/549bae4b196ff2d5d193ad15d3f09b828f69ac57
https://github.com/louiellan
louiellanhttps://github.com/louiellan
Aug 15, 2025https://github.com/nodejs/node/pull/59345#event-19170953575
https://github.com/louiellan
louiellanhttps://github.com/louiellan
Aug 15, 2025 https://github.com/nodejs/node/pull/59345#ref-pullrequest-3324324232
lib: support glob on --watch-path #59478 https://github.com/nodejs/node/pull/59478
https://github.com/louiellan
louiellanhttps://github.com/louiellan
Aug 15, 2025https://github.com/nodejs/node/pull/59345#issuecomment-3190597353
#59478https://github.com/nodejs/node/pull/59478
Please reload this pagehttps://github.com/nodejs/node/pull/59345
https://github.com/louiellan
louiellanhttps://github.com/louiellan
August 15, 2025 04:45https://github.com/nodejs/node/pull/59345#event-19170998538
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Apr 19, 2026https://github.com/nodejs/node/pull/59345#issuecomment-4274948393
Please reload this pagehttps://github.com/nodejs/node/pull/59345
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
stale https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Astale
stale https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Astale
Apr 19, 2026https://github.com/nodejs/node/pull/59345#event-24644859665
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F59345
https://github.com/MoLow
MoLow https://github.com/MoLow
https://github.com/nodejs/node/pull/59345/files/46be19d5ef3adaec1a527121d67c37b567861f73
fs https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Afs
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
Support file globs with --watch-path https://github.com/nodejs/node/issues/45182
Please reload this pagehttps://github.com/nodejs/node/pull/59345
https://github.com/louiellan
https://github.com/MoLow
https://github.com/nodejs-github-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.