total-typescript / tsconfig

The simplest way to set up your tsconfig.json
https://www.totaltypescript.com/tsconfig-cheat-sheet
874 stars 17 forks source link

Docs need to be updated for Bundler monorepo #8

Closed joel-daros closed 5 months ago

joel-daros commented 5 months ago

The README is referring to the "extends": "@total-typescript/tsconfig/bundler/dom/library-monorepo", // For a library in a monorepo but this file seems to have been deleted from the repository.

mattpocock commented 5 months ago

This is an alias:

https://github.com/total-typescript/tsconfig/blob/main/package.json#L33

haydn commented 3 months ago

FYI, I've defaulted to using "@total-typescript/tsconfig/bundler/dom" in my projects because I've run into two places where tooling doesn't respect the app/library/library-monorepo aliases:

  1. VSCode's option-click to follow link when viewing the tsconfig.json.
  2. Both of these TypeScript coverage reporters hit errors:
    1. https://github.com/alexcanessa/typescript-coverage-report
    2. https://github.com/plantain-00/type-coverage

Maybe it's worthwhile just having duplicate files instead of aliases to maximise compatibility with tooling?