Skip to content

Commit a0539a1

Browse files
princjefbasarat
authored andcommitted
Update compiler options validation for tsconfig (#930)
1 parent 57ab105 commit a0539a1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var compilerOptionsValidation = {
1616
experimentalAsyncFunctions: { type: types.boolean },
1717
experimentalDecorators: { type: types.boolean },
1818
emitDecoratorMetadata: { type: types.boolean },
19+
forceConsistentCasingInFileNames: { type: types.boolean },
1920
help: { type: types.boolean },
2021
inlineSourceMap: { type: types.boolean },
2122
inlineSources: { type: types.boolean },
@@ -42,6 +43,9 @@ var compilerOptionsValidation = {
4243
outFile: { type: types.string },
4344
outDir: { type: types.string },
4445
preserveConstEnums: { type: types.boolean },
46+
pretty: { type: types.boolean },
47+
project: { type: types.string },
48+
reactNamespace: { type: types.string },
4549
removeComments: { type: types.boolean },
4650
rootDir: { type: types.string },
4751
skipDefaultLibCheck: { type: types.boolean },

lib/main/tsconfig/tsconfig.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ interface CompilerOptions {
2929
experimentalAsyncFunctions?: boolean;
3030
experimentalDecorators?: boolean; // Experimental. Needed for the next option `emitDecoratorMetadata` see : https://github.com/Microsoft/TypeScript/pull/3330
3131
emitDecoratorMetadata?: boolean; // Experimental. Emits addition type information for this reflection API https://github.com/rbuckton/ReflectDecorators
32+
forceConsistentCasingInFileNames?: boolean;
3233
help?: boolean;
3334
isolatedModules?: boolean;
3435
inlineSourceMap?: boolean;
@@ -51,10 +52,13 @@ interface CompilerOptions {
5152
noLib?: boolean;
5253
noLibCheck?: boolean;
5354
noResolve?: boolean;
54-
out?: string;
55+
out?: string; // Deprecated. Use outFile instead
5556
outFile?: string; // new name for out
5657
outDir?: string; // Redirect output structure to this directory
5758
preserveConstEnums?: boolean;
59+
pretty?: boolean; // Experimental
60+
project?: string;
61+
reactNamespace?: string;
5862
removeComments?: boolean; // Do not emit comments in output
5963
rootDir?: string;
6064
skipDefaultLibCheck?: boolean;
@@ -82,6 +86,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
8286
experimentalAsyncFunctions: { type: types.boolean },
8387
experimentalDecorators: { type: types.boolean },
8488
emitDecoratorMetadata: { type: types.boolean },
89+
forceConsistentCasingInFileNames: { type: types.boolean },
8590
help: { type: types.boolean },
8691
inlineSourceMap: { type: types.boolean },
8792
inlineSources: { type: types.boolean },
@@ -108,6 +113,9 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
108113
outFile: { type: types.string },
109114
outDir: { type: types.string },
110115
preserveConstEnums: { type: types.boolean },
116+
pretty: { type: types.boolean },
117+
project: { type: types.string },
118+
reactNamespace: { type: types.string },
111119
removeComments: { type: types.boolean },
112120
rootDir: { type: types.string },
113121
skipDefaultLibCheck: { type: types.boolean },
@@ -233,7 +241,7 @@ var defaultFilesGlob = [
233241
"!node_modules/**",
234242
];
235243
/**
236-
* This is what we use when the user doens't specify a files / filesGlob
244+
* This is what we use when the user doesn't specify a files / filesGlob
237245
*/
238246
var invisibleFilesGlob = '{**/*.ts,**/*.tsx}';
239247

0 commit comments

Comments
 (0)