TypeScript Compiler Options
listEmittedFiles — TypeScript compiler diagnostics
Prints paths of files written by the compiler, with TSFILE prefixes in the pinned CLI. Unlike listFiles, this reports output rather than program inputs. With noEmit enabled in a non-incremental project there are no program artifacts to list. Baseline: TypeScript 5.8.3. Default: false. Create the labeled files in an isolated directory and run the commands below. The compiler prints the paths of the JavaScript, declaration and source-map files it creates.
Formal Syntax & Structure
typescript syntaxtypescript
{ "compilerOptions": { "listEmittedFiles": true }}Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| listEmittedFiles | boolean | Compiler option; default: false. |
Working Example
Example Snippettypescript
// File: tsconfig.json (omit this label){ "compilerOptions": { "target": "ES5", "module": "CommonJS", "lib": [ "ES5" ], "strict": true, "types": [], "outDir": "dist", "noEmitOnError": true, "listEmittedFiles": true, "declaration": true, "sourceMap": true }, "files": [ "index.ts" ]}// File: index.ts (omit this label)export const count: number = 7;
// Run these commands in order in an isolated project:// tsc -p . --pretty false