Allow --incremental from command line#30513
Conversation
| } | ||
|
|
||
| if (options.incremental && !options.configFilePath) { | ||
| programDiagnostics.add(createCompilerDiagnostic(Diagnostics.Option_incremental_can_only_be_specified_when_using_tsconfig)); |
There was a problem hiding this comment.
Why does this restriction exist? Is it to determine the name of the .tsbuildinfo file based on the path of the tsconfig.json?
That would make it impossible for API users to use the incremental option if they don't use parseJsonConfigFileContent (or one of the countless similar functions) to create their compilerOptions because configFilePath is typically not set.
Would it make sense to allow incremental if either configFilePath or tsBuildInfoFile is defined?
There was a problem hiding this comment.
Agree - would be very nice to just specify a metadata location and then not need a tsconfig. Actually, we probably need that capability to support --incremental in Visual Studio.
There was a problem hiding this comment.
@RyanCavanaugh @DanielRosenwasser What do you think. In that case we would want to make tsBuildInfoFile as command line argument.
There was a problem hiding this comment.
The release announcement made it look like there was already a --tsBuildInfoFile CLI option
weswigham
left a comment
There was a problem hiding this comment.
Needs a test with incremental and tsBuildInfoFile set, but not out and no config file.
…anges between compilation
|
@sheetalkamat are we planning on porting this to a |
|
@RyanCavanaugh @DanielRosenwasser Do we want this for 3.4.2 ? |
|
I think it can wait for 3.5 |
@RyanCavanaugh @DanielRosenwasser Please see if this is something we want to do.