Skip to content

Commit

Permalink
refactor: simplify tsc compilation to one tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Mar 27, 2017
1 parent 5650754 commit 3e73f9b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -19,7 +19,7 @@
"scripts": {
"cleanup": "shx rm -rf umd lib lib-esm typings coverage",
"prebuild": "npm run cleanup && npm run verify",
"build": " tsc && tsc -p tsconfig.es6.json && webpack",
"build": " tsc && tsc --module es2015 --target es2015 --outDir lib-esm && webpack",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
Expand Down
30 changes: 0 additions & 30 deletions tsconfig.base.json

This file was deleted.

8 changes: 0 additions & 8 deletions tsconfig.es6.json

This file was deleted.

29 changes: 27 additions & 2 deletions tsconfig.json
@@ -1,7 +1,32 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"moduleResolution": "node",
"module": "commonjs",
"target": "es5",
"lib": [
"es2015",
"dom"
],
"noUnusedLocals": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noImplicitThis": true,
"allowSyntheticDefaultImports": true,
"suppressImplicitAnyIndexErrors": true,
"forceConsistentCasingInFileNames": true,
"pretty": true,
"jsx": "react",
"sourceMap": true,
"outDir": "lib",
"declaration": true,
"declarationDir": "typings"
}
},
"include": [
"./src"
],
"exclude": [
"node_modules"
],
"compileOnSave": false,
"buildOnSave": false
}

0 comments on commit 3e73f9b

Please sign in to comment.