-
Notifications
You must be signed in to change notification settings - Fork 80
build(tsconfig): use @octokit/tsconfig preset in local tsconfig.json #290
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
Conversation
"target": "es2020", | ||
"resolveJsonModule": true | ||
}, | ||
"extends": "@octokit/tsconfig", | ||
"include": ["src/**/*"] |
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.
We still need to use include
here because include
from the extends is resolved from the relative path where is extended from:
https://www.typescriptlang.org/tsconfig#extends
Do you know a way to make it work at "preset" level? If not, I guess we will need to remove that entry in @octokit/tsconfig
right?
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, it seems like it. There is an open discussion about it here: microsoft/TypeScript#25430
Let's remove the "include"
key from @octokit/tsconfig
. Do you want to send a PR?
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, it seems like it. There is an open discussion about it here: microsoft/TypeScript#25430
Let's remove the
"include"
key from@octokit/tsconfig
. Do you want to send a PR?
Done
π This PR is included in version 7.12.0 π The release is available on: Your semantic-release bot π¦π |
π Summary
Replace local
tsconfig.json
configuration by the one inherited from@octokit/tsconfig
β± Motivation and Context
Adopt
@octokit/tsconfig
in all repos using TSFix #289