@sgt-build/tsconfig
v0.15.0
Published
Explicit TypeScript runtime presets for Sergeant monorepos
Readme
@sgt-build/tsconfig
Explicit TypeScript runtime presets for Sergeant monorepos. Shared defaults (es2024, "module": "preserve", "moduleResolution": "bundler", "customConditions": ["@sgt-build/source", "source"], "noEmit": true, and "isolatedDeclarations": true).
Presets
@sgt-build/tsconfig/base— Strictness floor and bundler resolution defaults@sgt-build/tsconfig/neutral— Runtime-neutral libraries (es2024, zero runtime globals)@sgt-build/tsconfig/bun— Bun services, CLIs, and workers@sgt-build/tsconfig/node— Node.js services, AWS Lambda, and build scripts@sgt-build/tsconfig/browser— Browser UI, Vite, Rsbuild, Tauri frontend, and Storybook@sgt-build/tsconfig/nextjs— Next.js App/Pages Router (jsx: "preserve",nextplugin)@sgt-build/tsconfig/wxt— WXT browser extensions (.wxt/wxt.d.ts,entrypoints)@sgt-build/tsconfig/cloudflare— Cloudflare Workers (webworkerlib,worker-configuration.d.ts)@sgt-build/tsconfig/astro? Astro 7 and Starlight sites (browser libs,astro/client, and generated.astro/types.d.ts). Site code can infer exports such as Starlight?scollections.@sgt-build/tsconfig/worker? Web Worker modules (es2024andWebWorkerlibs, with no implicit@typespackages). Keep browser code in a separate TS project.@sgt-build/tsconfig/react-native— React Native and Expo (react-nativecustom condition)@sgt-build/tsconfig/bun-test— Bun test lane@sgt-build/tsconfig/vitest— Vitest Node lane@sgt-build/tsconfig/vitest-dom— Vitest DOM / browser lane
