Skip to content

emit

Files under @repobuddy/typescript/tsconfig/emit/ match the Emit category of the TSConfig reference.

File Sets
emit/buddy Extends the three files below
emit/declaration declaration, declarationMap
emit/sourcemap sourceMap
emit/line-endings newLine: "lf"

The recommended emit settings. Used by tsconfig/monorepo.

{
"extends": ["./declaration.json", "./sourcemap.json", "./line-endings.json"]
}

Resolved options (tsc --showConfig, TypeScript 7.0.2):

{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"newLine": "lf",
"sourceMap": true
}
}

Emits .d.ts files and a .d.ts.map for each, so editors jump from a declaration to the source.

{
"compilerOptions": {
"declaration": true,
"declarationMap": true
}
}

Emits a .js.map file next to each .js file.

{
"compilerOptions": {
"sourceMap": true
}
}

Writes LF line endings on every platform.

{
"compilerOptions": {
"newLine": "lf"
}
}