-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
transpileOnly
does not work with projectReferences
#1158
Comments
I believe this behaviour is expected. When you define a project reference, that sub-project is built in the same way as if you typed There is a need for documentation for project references as this is a relatively new feature. This behaviour could be part of the documentation. |
just to get the terminology right, I also just tested this, check #1173 (comment) and when... CASE A: I have
|
just read OP's issue again and he has another problem (his build fails) and he doesn't use fork-ts-checker. shall we still keep the discussion here for now (i closed that PR and that other multcompile issue might be also the wrong place)? |
fwiw CASE A1
CASE A2
CASE B1
CASE B2
|
fyi I found the problem: I needed to set context explicitly to the to be compiled project folder within the project references structure (in this case |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing as stale. Please reopen if you'd like to work on this further. |
Steps to Reproduce the Problem
Set up a project that uses
transpileOnly: true
andprojectReferences: true
. Something like this:Expected Behaviour
When a type error is introduced in either the root project or the sub-project, the build should work and emit the JS files despite the type error.
Actual Behaviour
When a type error is introduced in either the root project, the build would work and the JS files are emitted. However, when a type error is introduced in the sub-project(s), the build fails and no JS files are emitted.
Location of a Minimal Repository that Demonstrates the Issue.
https://github.com/emberjs/ember-debug/tree/d8ae4c9019f1fd673532c56575dc35898335d958 can be used to test this (by enabling
transpileOnly: true
which is not included in the repo yet)The text was updated successfully, but these errors were encountered: