Skip to content

Commit

Permalink
build(tsconfig): add separate tsconfig for build
Browse files Browse the repository at this point in the history
Create a separate tsconfig for building which ignores
test files
  • Loading branch information
Sean Hamilton committed Jul 1, 2019
1 parent 4004817 commit 618dfcb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"start": "rollup -c -w",
"build:clean": "rm -rf ./dist",
"build:js": "rollup -c",
"build:types": "tsc --emitDeclarationOnly",
"build:types": "tsc --p tsconfig.build.json --emitDeclarationOnly",
"build": "npm-run-all build:clean build:js build:types",
"test": "jest",
"test:watch": "npm test -- --watch",
Expand Down
7 changes: 7 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"src/__tests__"
]
}
7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,5 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"declarationDir": "dist"
},
"exclude": [
"node_modules",
"dist",
"src/__tests__"
]
}
}

0 comments on commit 618dfcb

Please # to comment.