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" |
emit/buddy
Section titled “emit/buddy”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 }}emit/declaration
Section titled “emit/declaration”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 }}emit/sourcemap
Section titled “emit/sourcemap”Emits a .js.map file next to each .js file.
{ "compilerOptions": { "sourceMap": true }}emit/line-endings
Section titled “emit/line-endings”Writes LF line endings on every platform.
{ "compilerOptions": { "newLine": "lf" }}