-
Notifications
You must be signed in to change notification settings - Fork 465
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
[Feature] Make bsb watcher to also watch symlinks in node_modules #3521
Comments
Would this happen even if it's not in a monorepo? |
👍 This would be absolutely great to have! Our use case is a yarn workspaces monorepo with the following packages:
with both A and B depending on C. Currently, when running |
Any plans on this @bobzhang? I've also noticed that if you are building multiple apps that are sharing same symlinked package bs will warn about package name duplicates and that first one was picked. Another issue is parallel builds with shared packages. They are not possible because of race conditions, we are using concurrency 1 everywhere. |
Sorry for bumping this again, but this is very very annoying with mono repo setups :/ will this issue be prioritised at some point? |
Note @Coobaha raised several separate issues, watching dependent packages and shared packages |
@bobzhang Would you like me to provide an example repo with a monorepo setup as described above? |
Very naive implementation #4047 should add symlinks to watch list |
Adding to the request queue. monorepos have a lot of benefits for modern web development. |
Looks like it works on bs 8. @jchavarri maybe close? |
@BlueHotDog Do you have a working sample repo, by any chance? |
Actually, on second check, it still doesnt work :(((( but, it does behave a bit better. |
Also this: Error: Thanks. |
isnt this closed/fixed by pinned-deps thingie? |
Nope #4361 (comment) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
😞 |
If this does not get reopened, I still want to reference #6248 here so that it does not get forgotten. |
In Yarn workspaces, shared deps are "hoisted" to a parent folder. Workspaces are symlinked like.
Let's say I am working in a monorepo with two Yarn workspaces,
package-1
andpackage-2
, each one with their ownbsconfig.json
(image source):If
package-1
depends onpackage-2
there is no way at the moment (that I know of) to runbsb -w
frompackage-1
folder, and have the compiler pick up the changes onpackage-2
.I was thinking if the watcher could somehow detect if the folder in
node_modules
is a symlink, and in that case watch for changes in it as well?The text was updated successfully, but these errors were encountered: