@block65/tsconfig
v0.3.1
Published
Opinionated TypeScript configurations for Block65 projects
Maintainers
Readme
@block65/tsconfig
Shared TypeScript configs for Block65 projects
Usage
{
"extends": "@block65/tsconfig/nodejs26",
"compilerOptions": { "types": ["node"] },
"include": ["src"]
}include and types are yours to set.
| Config | For |
| ----------------------- | ------------------------------------------ |
| vanilla | runtime-agnostic ESM (nodenext/es2024) |
| nodejs26 | Node.js 26 |
| nodejs24 | Node.js 24 |
| cloudflare-worker | Cloudflare Workers |
| cloudflare-worker-ssr | server-rendered React on Workers |
| vite-react | Vite + React |
| nextjs | Next.js |
Tweaks
They do what they say on the tin
| Tweak | Effect |
| ----------- | ------------------------------------------- |
| ts-only | emitDeclarationOnly |
| projref | composite |
| emit | also emit JavaScript, set your own outDir |
| noprojref | clears both, sets noEmit |
{ "extends": ["@block65/tsconfig/nodejs26", "@block65/tsconfig/noprojref"] }