Skip to content

Commit 6435d26

Browse files
author
Armando Aguirre
authored
Merge pull request microsoft#21505 from armanio123/SetNoEmitTrueJsConfig
Set noEmit = true on jsconfig.json file
2 parents e7ddb84 + 25b1d9d commit 6435d26

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ namespace ts {
17961796

17971797
function getDefaultCompilerOptions(configFileName?: string) {
17981798
const options: CompilerOptions = getBaseFileName(configFileName) === "jsconfig.json"
1799-
? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true }
1799+
? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true }
18001800
: {};
18011801
return options;
18021802
}

src/harness/unittests/convertCompilerOptionsFromJson.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ namespace ts {
457457
maxNodeModuleJsDepth: 2,
458458
allowSyntheticDefaultImports: true,
459459
skipLibCheck: true,
460+
noEmit: true,
460461
module: ModuleKind.CommonJS,
461462
target: ScriptTarget.ES5,
462463
noImplicitAny: false,
@@ -486,6 +487,7 @@ namespace ts {
486487
maxNodeModuleJsDepth: 2,
487488
allowSyntheticDefaultImports: true,
488489
skipLibCheck: true,
490+
noEmit: true,
489491
module: ModuleKind.CommonJS,
490492
target: ScriptTarget.ES5,
491493
noImplicitAny: false,
@@ -510,7 +512,8 @@ namespace ts {
510512
allowJs: true,
511513
maxNodeModuleJsDepth: 2,
512514
allowSyntheticDefaultImports: true,
513-
skipLibCheck: true
515+
skipLibCheck: true,
516+
noEmit: true
514517
},
515518
errors: [{
516519
file: undefined,
@@ -532,7 +535,8 @@ namespace ts {
532535
allowJs: true,
533536
maxNodeModuleJsDepth: 2,
534537
allowSyntheticDefaultImports: true,
535-
skipLibCheck: true
538+
skipLibCheck: true,
539+
noEmit: true
536540
},
537541
errors: []
538542
}

src/harness/unittests/telemetry.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ namespace ts.projectSystem {
185185
allowSyntheticDefaultImports: true,
186186
maxNodeModuleJsDepth: 2,
187187
skipLibCheck: true,
188+
noEmit: true
188189
};
189190

190191
it("sends telemetry for typeAcquisition settings", () => {

0 commit comments

Comments
 (0)