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

Support for TypeScript Project References / --build mode #150

Closed
bohdyone opened this issue Apr 12, 2022 · 6 comments
Closed

Support for TypeScript Project References / --build mode #150

bohdyone opened this issue Apr 12, 2022 · 6 comments

Comments

@bohdyone
Copy link

Hi,

I'm looking at integrating your groovy tool into my monorepo, but it seems like it doesn't yet support tsc --build --watch?

This is useful to pick up and reload based on changes to dependencies as well as the project under test.

See here for more info:
https://www.typescriptlang.org/docs/handbook/project-references.html#tsc--b-commandline

Cheers.

@gilamran
Copy link
Owner

Can you share an example? or just put some example code here?

@bohdyone
Copy link
Author

You can see an example of project references in action in the official TS repo: https://github.com/microsoft/TypeScript/blob/main/src/tsserver/tsconfig.json

In terms of the changes required in the watch step, it's pretty much just running tsc --build --watch instead of tsc --watch, at least in the simplest case.

@gilamran
Copy link
Owner

Why are you saying that it's not working?
can you share an example of the fail?

@bohdyone
Copy link
Author

bohdyone commented Apr 21, 2022 via email

@gilamran
Copy link
Owner

did you try to add --build?

@bohdyone
Copy link
Author

I'm sorry, I completely misunderstood how tsc-watch works with regards to the handling of arguments. I see now that you simply parse additional arguments and then pass through the rest to tsc, so adding --build does indeed work. Quite a future-proof design.

Apologies for the needless issue!

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

2 participants