-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat(remix-dev): add watchPaths
config option
#3188
feat(remix-dev): add watchPaths
config option
#3188
Conversation
Welcome, and thank you for contributing to Remix! Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once. You may review the CLA and sign it by adding your name to contributors.yml. Once the CLA is signed, the If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at hello@remix.run. Thanks! - The Remix team |
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
a5416e2
to
70dc300
Compare
watchDirectories
config option
dbc3038
to
eefdfb4
Compare
eefdfb4
to
2a262d7
Compare
2a262d7
to
c150d05
Compare
Thanks for your contribution mate! |
c150d05
to
7c81fa6
Compare
7c81fa6
to
20c62eb
Compare
0b799bc
to
52cb83f
Compare
Thanks for that we really need it :) |
52cb83f
to
15e26e6
Compare
watchDirectories
config optionwatchPaths
config option
@@ -151,7 +151,10 @@ export interface AppConfig { | |||
/** | |||
* A function for defining custom directories to watch while running `remix dev`, in addition to `appDirectory`. | |||
*/ | |||
watchPaths?: () => Promise<string | string[]>; | |||
watchPaths?: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even better!
Thanks for the contribution @christophertrudel |
🤖 Hello there, We just published version Thanks! |
Work has expected |
Working as expected from my Nx monorepo with RemixJS using libraries, this is my remix.config: /**
* @type {import('@remix-run/dev').AppConfig}
*/
module.exports = {
ignoredRouteFiles: ['**/.*'],
watchPaths: [
'../../libs/**/*',
],
}; Thanks for your help folks, Remix live-reload is amazing now! <3 |
Support to watch directories other then remixes default directories. Will help integration with mono repos like NX/TurboRepo.
Closes: #2983
Agreed upon replacement of: #2985
Testing Strategy: