When generating a tsconfig with checkJs, make sure we also set allowJs
For #87972
This commit is contained in:
parent
f105af6007
commit
629a08ed62
1 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,9 @@ export function inferredProjectCompilerOptions(
|
||||||
|
|
||||||
if (serviceConfig.checkJs) {
|
if (serviceConfig.checkJs) {
|
||||||
projectConfig.checkJs = true;
|
projectConfig.checkJs = true;
|
||||||
|
if (isTypeScriptProject) {
|
||||||
|
projectConfig.allowJs = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (serviceConfig.experimentalDecorators) {
|
if (serviceConfig.experimentalDecorators) {
|
||||||
|
|
Loading…
Reference in a new issue