-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Control TSC's noEmit or emitDeclarationOnly when using composite projects #8551
Comments
Not entirely sure if this is related but I'm using lerna with TypeScript projects. In the root directory, I watch all packages with the |
@CodingDive it is related. |
Options for incremental builds can look like this:
Adding support for the |
Same here, I want to add |
@slikts that seems like a good config for incremental builds indeed. Unfortunately, as reported by @plreerock even For anyone running into the same error: |
This is still a thing... I'm kinda getting annoyed by the fact, that some options are forced in such a way, without any explanation... |
@entropitor appears to have nailed this one with his PR. I checked it carefully and it fixes things for me 100% I attached a patch-package file over on the PR for anyone to use while waiting for the PR to settle: #10921 (comment) |
create-react-app
doesn't work in composite typescript projects, because for composite projectsemitDeclarationOnly
must be used instead ofnoEmit
(when using noEmit: true and composite: true typescript compiler throws an error). I suggest to add a check - if typescript project is composite-based, useemitDeclarationOnly
flag instead ofnoEmit
.See microsoft/TypeScript#36917 for more information.
The text was updated successfully, but these errors were encountered: