Skip to content

Commit

Permalink
Configure for rollup plugin typescript build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Steam committed May 21, 2020
1 parent 8662493 commit 732983e
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 16 deletions.
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export default [
'rxjs',
'rxjs/operators',
],
plugins: [typescript(), json()],
plugins: [
typescript({
tsconfig: './tsconfig.base.json',
}),
json(),
],
},
]
20 changes: 20 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"lib": ["es2017", "dom", "esnext.array"],
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitReturns": true,
"noUnusedLocals": true,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"target": "es2017"
},
"exclude": ["lib", "playground"],
"typeAcquisition": {
"enable": true
}
}
2 changes: 1 addition & 1 deletion tsconfig.d.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"declaration": true,
"declarationDir": "types",
Expand Down
15 changes: 2 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"lib": ["es2017", "dom", "esnext.array"],
"module": "CommonJS",
"moduleResolution": "node",
"noImplicitReturns": true,
"noUnusedLocals": true,
"outDir": "dist",
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"target": "es2017"
},
"exclude": ["lib"],
"exclude": ["lib", "playground"],
"typeAcquisition": {
"enable": true
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.tests.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noUnusedLocals": false
},
Expand Down

0 comments on commit 732983e

Please sign in to comment.