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

Please add a --no-watch option #154

Open
miningape opened this issue Oct 19, 2022 · 9 comments
Open

Please add a --no-watch option #154

miningape opened this issue Oct 19, 2022 · 9 comments

Comments

@miningape
Copy link

tsc-watch is often used to create run scripts because it makes it so convenient to programmatically run the compiler and connect/start multiple sources. In my case I have a really slow computer and 10+ NestJS microservices and a React frontend get recompiled every single time I save a file which causes massive slowdown. I would really like the option to pass a --no-watch flag to disable the watch behaviour because the API exposed by tsc-watch to interact with tsc is so nice but watch mode slowing down my computer makes me want to die.

I would be happy to add this in a PR myself, I just need a bit of direction on where to get started.

@gilamran
Copy link
Owner

How about creating a script that uses tsc-watch programmatically, there's an example on the repo.

@miningape
Copy link
Author

Taking a look, thank you

@gilamran
Copy link
Owner

hmm, thinking about it... you can't disable the recompile, tsc-watch always adds --watch.
so maybe a PR is a good idea :-)

@miningape
Copy link
Author

I think the example you were referring to is very similar to the script I am using currently so it would be nice with that option :)

@gilamran
Copy link
Owner

PR?

@gilamran
Copy link
Owner

Closing as there's no activity

@gilamran
Copy link
Owner

gilamran commented Apr 7, 2024

Consider implementing

@gilamran gilamran reopened this Apr 7, 2024
@adrian-gierakowski
Copy link

I found myself needing this feature today.

@gilamran
Copy link
Owner

Added on version 6.3.0@beta please test and let me know.

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