@cosyte/tsconfig
v0.0.2
Published
Shared TypeScript configuration for @cosyte/* packages.
Readme
@cosyte/tsconfig
Shared TypeScript configuration for the @cosyte/* packages — strict, ES2023, NodeNext, with the
full rigor set (noUncheckedIndexedAccess, exactOptionalPropertyTypes,
noPropertyAccessFromIndexSignature, and more).
Two configs:
base.json— the type-check baseline (no emit). Extend this fortsc --noEmit.library.json—base.jsonplus declaration/sourcemap emit, for building a publishable library.
Install
pnpm add -D @cosyte/tsconfig typescriptUse
tsconfig.json (type-check — set your own outDir / noEmit / include):
{
"extends": "@cosyte/tsconfig/base.json",
"compilerOptions": { "noEmit": true },
"include": ["src", "test"],
}tsconfig.build.json (emit a library):
{
"extends": "@cosyte/tsconfig/library.json",
"compilerOptions": { "outDir": "dist", "rootDir": "src" },
"include": ["src"],
}Part of cosyte/config — one enforced toolchain for the @cosyte/*
suite.
