-
Notifications
You must be signed in to change notification settings - Fork 9
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
07051b9
Renamed ./lib to ./dist in download-url
kraenhansen 92a69fb
Removed unneeded special case in build-info
kraenhansen b3a012c
Removed unused exclude in native-machine-id
kraenhansen 70b03a1
Moved include, exclude and outDir to base tsconfig.
kraenhansen 2434055
Removed unneeded overrides of defaults
kraenhansen fabfc19
Extend react instead of setting "jsx"
kraenhansen cfd91c8
Updated the create-workspace script
kraenhansen 4215f7f
Remove unused "allowJs": true
kraenhansen a7a314a
Remove empty compilerOptions objects
kraenhansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Moved include, exclude and outDir to base tsconfig.
- Loading branch information
commit 70b03a1720ab8ec89c06e9073f6a538f09210be7
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "target": "es2019", | ||
| "lib": ["es2019"], | ||
| "moduleResolution": "node" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "compilerOptions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "compilerOptions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,9 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "target": "es2020", | ||
| "lib": ["es2020"] | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "compilerOptions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "compilerOptions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "esModuleInterop": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,9 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "target": "es2020", | ||
| "lib": ["es2020"] | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| "compilerOptions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true, | ||
| "jsx": "react" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,7 @@ | ||
| { | ||
| "extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json", | ||
| "compilerOptions": { | ||
| "outDir": "dist", | ||
| "allowJs": true, | ||
| "strict": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["./src/**/*.spec.*"] | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
^ 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - it never worked 🙃 Just tested by reverting this change and
tsc --listFiles. Also - even when in theexcludethe package source files pull them in.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.
yes I probably just messed up.
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.
Well, it all seems to work 🤷♀️ Basically just checking whether we should start to explicitly exclude these files now