Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 2 commits into from
Oct 1, 2020
Merged

build(tsconfig): use @octokit/tsconfig preset in local tsconfig.json #290

merged 2 commits into from
Oct 1, 2020

Conversation

oscard0m
Copy link
Member

@oscard0m oscard0m commented Oct 1, 2020

πŸ“ Summary

Replace local tsconfig.json configuration by the one inherited from @octokit/tsconfig

β›± Motivation and Context

Adopt @octokit/tsconfig in all repos using TS
Fix #289

@oscard0m oscard0m added Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR typescript Relevant to TypeScript users only labels Oct 1, 2020
"target": "es2020",
"resolveJsonModule": true
},
"extends": "@octokit/tsconfig",
"include": ["src/**/*"]
Copy link
Member Author

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?

Copy link
Contributor

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?

Copy link
Member Author

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

@oscard0m oscard0m requested a review from gr2m October 1, 2020 23:09
@gr2m gr2m merged commit bdb21f5 into octokit:master Oct 1, 2020
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2020

πŸŽ‰ This PR is included in version 7.12.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR typescript Relevant to TypeScript users only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

To create octokit/tsconfig and consume it from local tsconfig.json of this repository
2 participants