Skip to content

Commit 86ec885

Browse files
authored
Merge pull request microsoft#28772 from r7kamura/feature/tsconfig-newline
Add terminating newline to generated tsconfig.json
2 parents b34c73f + 0f5121d commit 86ec885

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ namespace ts {
18931893
}
18941894
result.push(`}`);
18951895

1896-
return result.join(newLine);
1896+
return result.join(newLine) + newLine;
18971897
}
18981898
}
18991899

tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@
6262
"declarationDir": "lib", /* Output directory for generated declaration files. */
6363
"skipLibCheck": true /* Skip type checking of declaration files. */
6464
}
65-
}
65+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@
6262
"file1.ts",
6363
"file2.ts"
6464
]
65-
}
65+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
5858
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
5959
}
60-
}
60+
}

0 commit comments

Comments
 (0)