Skip to content
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

deps: use @agilgur5/tsconfig to simplify tsconfig #87

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

agilgur5
Copy link
Owner

Summary

Simplify tsconfig.json by using my own tsconfig, @agilgur5/tsconfig.

Details

- this is my own tsconfig base built on top of @tsconfig/strictest
  - as you can see, it just reduces all the non-type-checking related config that @tsconfig/strictest doesn't cover

- TS doesn't yet support package `exports` for tsconfigs yet, hence the longer path into the package

- Relative paths in tsconfig bases are also relative _within_ node_modules, so have to repeat any relative paths here
  - And due to this, I think it's better right now for `build` to extend the base here instead of the `build` tsconfig in `@agilgur5/tsconfig`
    - I didn't fully think that one through when I made it tbh, though it still serves as a good example tsconfig
    - Maybe that will be different in the future if TS changes or otherwise comes up with a solution to this
@agilgur5 agilgur5 added kind: internal Changes only affect the internals and not the API or usage scope: dependencies Pull requests that update a dependency file labels Jun 13, 2022
Copy link
Owner Author

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, been using this for a bit, just got around to PR'ing it

@agilgur5 agilgur5 merged commit cc6cce9 into main Jun 13, 2022
@agilgur5 agilgur5 deleted the deps-use-my-tsconfig branch June 13, 2022 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: internal Changes only affect the internals and not the API or usage scope: dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant