From c59398c0824a0bf86e39fdb1260ba81994eb4612 Mon Sep 17 00:00:00 2001 From: Bucky Schwarz Date: Tue, 29 Oct 2019 09:52:08 -0700 Subject: [PATCH] skip lib check for building typescript --- package.json | 2 +- tsconfig.json | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 3d94bb3a..d4c05e3e 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "test": "yarn run lint && yarn run typecheck", "lint": "eslint 'src/**/*.{ts,tsx}'", "lint:fix": "eslint --fix 'src/**/*.{ts,tsx}'", - "typecheck": "tsc --noEmit --pretty", + "typecheck": "tsc --noEmit --pretty --skipLibCheck", "storybook": "start-storybook -p 9001 -c .storybook", "publishStorybook": "storybook-to-ghpages --out=.out" }, diff --git a/tsconfig.json b/tsconfig.json index c5cf1e79..994922ee 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,25 +1,25 @@ { "compilerOptions": { - "outDir": "./dist", - "module": "es2015", - "target": "es5", - "lib": ["es5", "es2015", "es2016", "es2017", "es2018", "esnext", "dom"], - "sourceMap": true, "allowJs": false, + "allowSyntheticDefaultImports": true, + "declaration": true, + "esModuleInterop": true, + "experimentalDecorators": true, + "forceConsistentCasingInFileNames": true, "jsx": "react", + "lib": ["es5", "es2015", "es2016", "es2017", "es2018", "esnext", "dom"], + "module": "es2015", "moduleResolution": "node", - "rootDir": "src", - "forceConsistentCasingInFileNames": true, + "noImplicitAny": true, "noImplicitReturns": true, "noImplicitThis": true, - "noImplicitAny": true, + "noUnusedLocals": true, + "outDir": "./dist", + "rootDir": "src", + "sourceMap": true, "strictNullChecks": true, "suppressImplicitAnyIndexErrors": true, - "noUnusedLocals": true, - "declaration": true, - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "typeRoots": ["node_modules/@types", "./typings.d.ts"], - "esModuleInterop": true + "target": "es5", + "typeRoots": ["node_modules/@types", "./typings.d.ts"] } }