Skip to content

Commit 608746a

Browse files
committed
Add skipLibCheck tsconfig option
1 parent 654f675 commit 608746a

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

dist/main/tsconfig/tsconfig.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
var fsu = require("../utils/fsUtil");
3-
var simpleValidator = require("./simpleValidator");
3+
var simpleValidator = require('./simpleValidator');
44
var types = simpleValidator.types;
55
var compilerOptionsValidation = {
66
allowJs: { type: types.boolean },
@@ -56,6 +56,7 @@ var compilerOptionsValidation = {
5656
removeComments: { type: types.boolean },
5757
rootDir: { type: types.string },
5858
skipDefaultLibCheck: { type: types.boolean },
59+
skipLibCheck: { type: types.boolean },
5960
sourceMap: { type: types.boolean },
6061
sourceRoot: { type: types.string },
6162
strictNullChecks: { type: types.boolean },
@@ -64,7 +65,7 @@ var compilerOptionsValidation = {
6465
suppressImplicitAnyIndexErrors: { type: types.boolean },
6566
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
6667
typeRoots: { type: types.array },
67-
types: { type: types.object },
68+
types: { type: types.array },
6869
version: { type: types.boolean },
6970
watch: { type: types.boolean },
7071
lib: { type: types.array }
@@ -84,13 +85,13 @@ function errorWithDetails(error, details) {
8485
error.details = details;
8586
return error;
8687
}
87-
var fs = require("fs");
88-
var path = require("path");
89-
var tsconfig = require("tsconfig");
90-
var os = require("os");
91-
var detectIndent = require("detect-indent");
92-
var detectNewline = require("detect-newline");
93-
var formatting = require("./formatting");
88+
var fs = require('fs');
89+
var path = require('path');
90+
var tsconfig = require('tsconfig');
91+
var os = require('os');
92+
var detectIndent = require('detect-indent');
93+
var detectNewline = require('detect-newline');
94+
var formatting = require('./formatting');
9495
var projectFileName = 'tsconfig.json';
9596
var defaultFilesGlob = [
9697
"**/*.ts",

lib/main/tsconfig/tsconfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ interface CompilerOptions {
6969
removeComments?: boolean; // Do not emit comments in output
7070
rootDir?: string;
7171
skipDefaultLibCheck?: boolean;
72+
skipLibCheck?: boolean;
7273
sourceMap?: boolean; // Generates SourceMaps (.map files)
7374
sourceRoot?: string; // Optionally specifies the location where debugger should locate TypeScript source files after deployment
7475
stripInternal?: boolean;
@@ -136,6 +137,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
136137
removeComments: { type: types.boolean },
137138
rootDir: { type: types.string },
138139
skipDefaultLibCheck: { type: types.boolean },
140+
skipLibCheck: { type: types.boolean },
139141
sourceMap: { type: types.boolean },
140142
sourceRoot: { type: types.string },
141143
strictNullChecks: { type: types.boolean },
@@ -144,7 +146,7 @@ var compilerOptionsValidation: simpleValidator.ValidationInfo = {
144146
suppressImplicitAnyIndexErrors: { type: types.boolean },
145147
target: { type: types.string, validValues: ['es3', 'es5', 'es6', 'es2015'] },
146148
typeRoots: { type: types.array },
147-
types: { type: types.object },
149+
types: { type: types.array },
148150
version: { type: types.boolean },
149151
watch: { type: types.boolean },
150152
lib: { type: types.array }

0 commit comments

Comments
 (0)