Skip to content

[Feature] Make bsb watcher to also watch symlinks in node_modules #3521

@jchavarri

Description

@jchavarri

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 and package-2, each one with their own bsconfig.json (image source):

image

If package-1 depends on package-2 there is no way at the moment (that I know of) to run bsb -w from package-1 folder, and have the compiler pick up the changes on package-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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions