-
Notifications
You must be signed in to change notification settings - Fork 8
chore: refactor tsconfigs in packages to reuse "include", "exclude" and "outDir" #582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
07051b9
92a69fb
b3a012c
70b03a1
2434055
fabfc19
cfd91c8
4215f7f
a7a314a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,4 @@ ignores: | |
| - '@types/sinon-chai' | ||
| - 'sinon' | ||
| ignore-patterns: | ||
| - 'lib' | ||
| - 'dist' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| .nyc-output | ||
| lib | ||
| dist |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,6 @@ npm-debug.log | |
| coverage/ | ||
|
|
||
| package-lock.json | ||
| .esm-wrapper.mjs | ||
| lib/ | ||
| dist/ | ||
| .nyc_output | ||
| tmp-*/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| .nyc_output | ||
| lib | ||
| dist | ||
| coverage |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| #!/usr/bin/env node | ||
| require('../lib/bin.js'); | ||
| require('../dist/bin.js'); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| { | ||
| "extends": "./tsconfig.json", | ||
| "include": ["**/*"], | ||
| "exclude": ["node_modules", "lib"] | ||
| "exclude": ["node_modules", "dist"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "./lib", | ||
| "target": "es2019", | ||
| "lib": ["es2019"], | ||
| "moduleResolution": "node" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*", "test/**/*"], | ||
| "exclude": ["./src/**/*.spec.*", "./test/**/*.ts"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "target": "es2020", | ||
| "lib": ["es2020"] | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "esModuleInterop": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "target": "es2020", | ||
| "lib": ["es2020"] | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,12 +2,6 @@ | |
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "module": "NodeNext", | ||
| "moduleResolution": "NodeNext", | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/types/*"], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ^ This exclude isn't kept, right? I'm a bit confused though, I don't think this worked previously as intended, with two keys of the same name in this file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah - it never worked 🙃 Just tested by reverting this change and There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes I probably just messed up. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, it all seems to work 🤷♀️ Basically just checking whether we should start to explicitly exclude these files now |
||
| "exclude": ["./src/**/*.spec.*"] | ||
| "moduleResolution": "NodeNext" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*", "scripts/benchmark.ts"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "jsx": "react" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.react.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,3 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moving the esm-wrapper into the dist directory like every other package.