@zgeoff/tsconfig
v2.0.0
Published
Shared strict TypeScript configs for Bun repos: a bundler-mode base and a React variant
Readme
@zgeoff/tsconfig
Shared strict TypeScript configs for Bun repos. Both configs extend
@tsconfig/strictest and type-check only (noEmit): Bun or a
bundler runs the TypeScript, so module is Preserve and moduleResolution is bundler.
| Config | For | Adds to the base |
| ------------ | -------------------- | ------------------------------------------ |
| base.json | CLIs, services, libs | — |
| react.json | React apps and libs | the DOM libs and the automatic JSX runtime |
Usage
bun add -d @zgeoff/tsconfig typescript{
"extends": "@zgeoff/tsconfig/base.json",
"compilerOptions": {
"types": ["bun"],
},
"include": ["src/**/*.ts"],
}Keep include, exclude, rootDir and types in the repo's own config: TypeScript resolves those
paths relative to the file that sets them, so a shared config cannot set them for you.
