@here.build/tsconfig
v0.9.0
Published
Shared TypeScript configuration for Here.build packages
Readme
@here.build/tsconfig
Shared TypeScript config bases for Here.build. Compose one purpose with one environment in your tsconfig.json extends array.
Install
pnpm add -D @here.build/tsconfig typescriptUsage
// tsconfig.json
{
"extends": [
"@here.build/tsconfig/purpose/lib",
"@here.build/tsconfig/env/node"
],
"compilerOptions": { "rootDir": "./src", "outDir": "./dist" }
}- purpose (compilation intent):
purpose/lib— NodeNext libraries that emit declarations.purpose/app— bundler/ESNext applications.
- env (target + lib):
env/node,env/cf(Cloudflare Workers),env/browser,env/browser-widespread(ES2022),env/consumer(ES2017).
