Skip to content

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
Hamza65523 pushed a commit to Hamza65523/react-signature-canvas that referenced this pull request Nov 2, 2025
- 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
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.

2 participants