We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
noEmit: true
tsconfig.json
1 parent 75f11ae commit 5c9f1a4Copy full SHA for 5c9f1a4
doc/api/typescript.md
@@ -81,6 +81,7 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
81
```json
82
{
83
"compilerOptions": {
84
+ "noEmit": true, // Optional - see note below
85
"target": "esnext",
86
"module": "nodenext",
87
"rewriteRelativeImportExtensions": true,
@@ -90,6 +91,10 @@ but we recommend version 5.8 or newer with the following `tsconfig.json` setting
90
91
}
92
```
93
94
+> \[!NOTE]
95
+> Use the `noEmit` option if you intend to only execute `*.ts` files, for example a build script.
96
+> You won't need this flag if you intend to distribute `*.js` files for performance reasons.
97
+
98
### Determining module system
99
100
Node.js supports both [CommonJS][] and [ES Modules][] syntax in TypeScript
0 commit comments