Skip to content

Commit bdc4c49

Browse files
authored
Merge pull request #1094 from guncha/tsconfig-options
Add skipLibCheck and declarationDir tsconfig options
2 parents 654f675 + e500b09 commit bdc4c49

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ var compilerOptionsValidation = {
1111
charset: { type: types.string },
1212
codepage: { type: types.number },
1313
declaration: { type: types.boolean },
14+
declarationDir: { type: types.string },
1415
diagnostics: { type: types.boolean },
1516
emitBOM: { type: types.boolean },
1617
experimentalAsyncFunctions: { type: types.boolean },
@@ -56,6 +57,7 @@ var compilerOptionsValidation = {
5657
removeComments: { type: types.boolean },
5758
rootDir: { type: types.string },
5859
skipDefaultLibCheck: { type: types.boolean },
60+
skipLibCheck: { type: types.boolean },
5961
sourceMap: { type: types.boolean },
6062
sourceRoot: { type: types.string },
6163
strictNullChecks: { type: types.boolean },
@@ -64,7 +66,7 @@ var compilerOptionsValidation = {
6466
suppressImplicitAnyIndexErrors: { type: types.boolean },
6567
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
6668
typeRoots: { type: types.array },
67-
types: { type: types.object },
69+
types: { type: types.array },
6870
version: { type: types.boolean },
6971
watch: { type: types.boolean },
7072
lib: { type: types.array }

lib/main/tsconfig/tsconfig.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface CompilerOptions {
2424
charset?: string;
2525
codepage?: number;
2626
declaration?: boolean;
27+
declarationDir?: string;
2728
diagnostics?: boolean;
2829
emitBOM?: boolean;
2930
experimentalAsyncFunctions?: boolean;
@@ -69,6 +70,7 @@ interface CompilerOptions {
6970
removeComments?: boolean; // Do not emit comments in output
7071
rootDir?: string;
7172
skipDefaultLibCheck?: boolean;
73+
skipLibCheck?: boolean;
7274
sourceMap?: boolean; // Generates SourceMaps (.map files)
7375
sourceRoot?: string; // Optionally specifies the location where debugger should locate TypeScript source files after deployment
7476
stripInternal?: boolean;
@@ -91,6 +93,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
9193
charset: { type: types.string },
9294
codepage: { type: types.number },
9395
declaration: { type: types.boolean },
96+
declarationDir: { type: types.string },
9497
diagnostics: { type: types.boolean },
9598
emitBOM: { type: types.boolean },
9699
experimentalAsyncFunctions: { type: types.boolean },
@@ -136,6 +139,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
136139
removeComments: { type: types.boolean },
137140
rootDir: { type: types.string },
138141
skipDefaultLibCheck: { type: types.boolean },
142+
skipLibCheck: { type: types.boolean },
139143
sourceMap: { type: types.boolean },
140144
sourceRoot: { type: types.string },
141145
strictNullChecks: { type: types.boolean },
@@ -144,7 +148,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
144148
suppressImplicitAnyIndexErrors: { type: types.boolean },
145149
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
146150
typeRoots: { type: types.array },
147-
types: { type: types.object },
151+
types: { type: types.array },
148152
version: { type: types.boolean },
149153
watch: { type: types.boolean },
150154
lib: { type: types.array }

0 commit comments

Comments
 (0)