Skip to content

Commit

Permalink
chore: Remove duplicate ts configurations and instead extend (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: Quinn Hanam <hanquinn@amazon.com>
  • Loading branch information
maniator and qhanam committed May 6, 2022
1 parent 9ff95b7 commit 59947fc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 58 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ safaridriver.log
tests_output
app/smoke.html
logs
.idea
17 changes: 2 additions & 15 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
{
"compilerOptions": {
"baseUrl": "src",
"declaration": true,
"lib": ["dom", "es2018"],
"module": "commonjs",
"moduleResolution": "node",
"strict": false,
"target": "es5",
"outDir": "./dist/cjs"
},
"include": ["src/"],
"exclude": [
"**/__tests__",
"**/__integ__",
"**/__mocks__",
"src/index-browser.ts",
"src/loader",
"src/test-utils"
]
"include": ["src/index.ts"],
"extends": "./tsconfig"
}
18 changes: 2 additions & 16 deletions tsconfig.es.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
{
"compilerOptions": {
"baseUrl": "src",
"declaration": true,
"lib": ["dom", "es2018"],
"module": "esnext",
"moduleResolution": "node",
"strict": false,
"target": "es5",
"outDir": "./dist/es"
},
"include": ["src/"],
"exclude": [
"**/__tests__",
"**/__integ__",
"**/__mocks__",
"src/index-browser.ts",
"src/loader",
"src/test-utils"
]
"include": ["src/index.ts"],
"extends": "./tsconfig"
}
14 changes: 3 additions & 11 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,8 @@
"lib": ["dom", "es2018"],
"module": "esnext",
"moduleResolution": "node",
"strict": false
"strict": false,
"target": "es5"
},
"include": ["src/"],
"exclude": [
"**/__tests__",
"**/__integ__",
"**/__mocks__",
"**/__smoke-test__",
"src/index-browser.ts",
"src/loader",
"src/test-utils"
]
"include": ["src/**/*"]
}
18 changes: 2 additions & 16 deletions tsconfig.webpack.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
{
"compilerOptions": {
"baseUrl": "src",
"lib": ["dom", "es2018"],
"module": "es2020",
"moduleResolution": "node",
"sourceMap": true,
"strict": false,
"target": "es5",
"outDir": "./dist/webpack"
},
"include": ["src/"],
"exclude": [
"**/__tests__",
"**/__integ__",
"**/__mocks__",
"**/__smoke-test__",
"src/index.ts",
"src/loader",
"src/test-utils"
]
"include": ["src/index-browser.ts"],
"extends": "./tsconfig"
}

0 comments on commit 59947fc

Please sign in to comment.