Skip to content
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

How to watch a node_modules subdirectory? #1170

Open
bbenoist opened this issue Jul 24, 2024 · 2 comments
Open

How to watch a node_modules subdirectory? #1170

bbenoist opened this issue Jul 24, 2024 · 2 comments

Comments

@bbenoist
Copy link

bbenoist commented Jul 24, 2024

Because I work in a monorepo, I'd like to watch a node_modules subdirectory so that my bundle would rebuild automatically if I change one of my internal dependencies.

However, because of this line of code, it seems like my --watch node_modules/@my-company is not working as I would expect.

Do you have any idea of a workaround? Should I submit a PR with a fix it instead?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@lancej1022
Copy link

a PR with a fix would be great. I ran into a similar issue in our monorepo, where packages that used tsup would not recompile when one of the other packages in the monorepo workspace was changed. We wound up moving our packages to use vite since it does pick up changes in node_modules, but it'd a lot nicer if tsup supported optionally watching node_modules since its such a great toolchain for building libraries.

@unnoq
Copy link

unnoq commented Nov 21, 2024

Since devDependencies will be bundled, so I think tsup should watch linked dependencies inside devDependencies by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants