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

Allow watching other folders with --watch #14183

Open
hyoretsu opened this issue Sep 26, 2024 · 2 comments
Open

Allow watching other folders with --watch #14183

hyoretsu opened this issue Sep 26, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hyoretsu
Copy link

What is the problem this feature would solve?

Using --watch in multi-folders projects in monorepos

$ bun run --watch ./index.ts
warn: File C:\Users\hyore\@Projects\enki\backend\domain\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\entities\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\types\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\errors\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\repositories\index.ts is not in the project directory and will not be watched      
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\media\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\users\index.ts is not in the project directory and will not be watched        
warn: File C:\Users\hyore\@Projects\enki\backend\domain\errors\HttpException.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\repositories\MediaRepository.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\repositories\UsersRepository.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\users\CreateUserDTO.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\users\TrackMediaUserDTO.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\users\GetStatisticsDTO.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\media\CreateMediaDTO.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\media\TrackMediaDTO.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\media\ListMediaDTO.ts is not in the project directory and will not be watched 
warn: File C:\Users\hyore\@Projects\enki\backend\domain\dtos\media\CreateVideoChannelDTO.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\index.ts is not in the project directory and will not be watched     
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\users\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\media\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\users\CreateUser.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\media\ListMedia.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\users\GetStatistics.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\media\CreateMedia.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\services\media\TrackMedia.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\clients\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\utils\index.ts is not in the project directory and will not be watched
warn: File C:\Users\hyore\@Projects\enki\backend\application\utils\getShortUrl.ts is not in the project directory and will not be watched
🦊 Elysia is running at localhost:3333

What is the feature you are proposing to solve the problem?

Something like --watch=folder_name instead of simply --watch

What alternatives have you considered?

No response

@hyoretsu hyoretsu added the enhancement New feature or request label Sep 26, 2024
@dkr8toha
Copy link

dkr8toha commented Oct 2, 2024

Have the same issue here, but watching the files in a linked or monorepo package is something i dont want to have.

I use bun link <package> and then include modules from my other packages.

My Question for that is: Is there any way to suppress these warnings? :-)

It would be better to only output one message for the linked package, not for every file...
Or even to not output a message at all?

Tried changing logLevel to error but this seems not to work for this kind of warning.

@MatheusGxx
Copy link

any update on this? I'm having the same problem here.. Image

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

No branches or pull requests

3 participants