-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[1.4.2] Changes in npm linked modules no longer cause a rebuild #7978
Comments
Yes, starting watchers for files in |
Totally understand. And I'm willing to lose linked modules causing a rebuild for faster build speed. But I wonder if a child of I just tried to see if I could workaround this manually and trigger a rebuild by Another possibility is to expose in Meteor shell a way to invalidate a path so we can trigger a rebuild if we want. Also, just to complicate things, all our packages are npm scoped packages and so the actual package dir is not directly under |
I second the idea of 'deep watching' symlinks in node_modules. The only way that anything should be linked is if someone is intending on editing that module without having to reinstall or update every time they make a change. I think that is likely the simplest solution. |
the only problem with deep watching symlinks is that they often have their own node_modules inside them... so maybe that could be excluded. |
Yep, I think this would only apply to symlinks in the top-level |
Tldr; watch all symlinks and their subsequent symlinks in their node_modules, but don't watch the normal node_modules of the symlinked things. Well - there is theoretically the use case where A is symlinked to B, which is symlinked to project C, yes? In my specific use case, I only have devDependencies in the node_modules of the thing that is symlinked, because when I get around to publishing it, the dependencies will be installed. But I do believe it is in fact possible to have a linked module depend on another linked module. So maybe watch all symlinks to an arbitrary depth, but don't watch anything else? I understand the performance hit here, but the ability to have this use case may prove useful to someone? |
This should be fixed if you run |
Awesome I'm loving the quick release cycle with the betas. You guys rock! |
Just one thing. We use @Scoped packages. So the symlinks to our package are 2 levels deep. e.g. That's for the super quick update. Wow. |
FYI I'm not getting any rebuilds from updating my |
When you get a moment, please confirm whether this is fixed (especially for @Scoped packages) by |
Sweet! |
@benjamn With |
@benjamn with |
Good to know that e4c7b08 did the trick! |
My guess is in improving build speed this functionality may have been dropped intentionally, but maybe it's an oversight.
In 1.4.1 if I updated any of the several npm packages I am working on that are
npm link
ed to thenode_modules
of the Meteor project then Meteor would rebuild. This no longer happens in 1.4.2.Is this the way it's supposed to be?
MacOS 10.12.1
The text was updated successfully, but these errors were encountered: