@@ -22,52 +22,68 @@ Compiler options can be specified using MSBuild properties within an MSBuild pro
22
22
23
23
Compiler Option | MSBuild Property Name | Allowed Values
24
24
---------------------------------------------|--------------------------------------------|-----------------
25
- ` --declaration ` | TypeScriptGeneratesDeclarations | boolean
26
- ` --module ` | TypeScriptModuleKind | ` AMD ` , ` CommonJs ` , ` UMD ` , or ` System `
27
- ` --target ` | TypeScriptTarget | ` ES3 ` , ` ES5 ` , or ` ES6 `
25
+ ` --allowJs ` | * Not supported in MSBuild* |
26
+ ` --allowSyntheticDefaultImports ` | TypeScriptAllowSyntheticDefaultImports | boolean
27
+ ` --allowUnreachableCode ` | TypeScriptAllowUnreachableCode | boolean
28
+ ` --allowUnusedLabels ` | TypeScriptAllowUnusedLabels | boolean
29
+ ` --baseUrl ` | TypeScriptBaseUrl | File path
28
30
` --charset ` | TypeScriptCharset |
31
+ ` --declaration ` | TypeScriptGeneratesDeclarations | boolean
32
+ ` --declarationDir ` | TypeScriptDeclarationDir | File path
33
+ ` --diagnostics ` | * Not supported in MSBuild* |
29
34
` --emitBOM ` | TypeScriptEmitBOM | boolean
30
35
` --emitDecoratorMetadata ` | TypeScriptEmitDecoratorMetadata | boolean
36
+ ` --experimentalAsyncFunctions ` | TypeScriptExperimentalAsyncFunctions | boolean
31
37
` --experimentalDecorators ` | TypeScriptExperimentalDecorators | boolean
38
+ ` --forceConsistentCasingInFileNames ` | TypeScriptForceConsistentCasingInFileNames | boolean
39
+ ` --help ` | * Not supported in MSBuild* |
32
40
` --inlineSourceMap ` | TypeScriptInlineSourceMap | boolean
33
41
` --inlineSources ` | TypeScriptInlineSources | boolean
42
+ ` --init ` | * Not supported in MSBuild* |
43
+ ` --isolatedModules ` | TypeScriptIsolatedModules | boolean
44
+ ` --jsx ` | TypeScriptJSXEmit | ` React ` or ` Preserve `
45
+ ` --lib ` | TypeScriptLib | Comma-separated list of strings
46
+ ` --listEmittedFiles ` | * Not supported in MSBuild* |
47
+ ` --listFiles ` | * Not supported in MSBuild* |
34
48
` --locale ` | * automatic* | Automatically set to PreferredUILang value
35
49
` --mapRoot ` | TypeScriptMapRoot | File path
50
+ ` --module ` | TypeScriptModuleKind | ` AMD ` , ` CommonJs ` , ` UMD ` , ` System ` or ` ES6 `
51
+ ` --moduleResolution ` | TypeScriptModuleResolution | ` Classic ` or ` Node `
36
52
` --newLine ` | TypeScriptNewLine | ` CRLF ` or ` LF `
37
- ` --noEmitOnError ` | TypeScriptNoEmitOnError | boolean
53
+ ` --noEmit ` | * Not supported in MSBuild * |
38
54
` --noEmitHelpers ` | TypeScriptNoEmitHelpers | boolean
55
+ ` --noEmitOnError ` | TypeScriptNoEmitOnError | boolean
56
+ ` --noFallthroughCasesInSwitch ` | TypeScriptNoFallthroughCasesInSwitch | boolean
39
57
` --noImplicitAny ` | TypeScriptNoImplicitAny | boolean
58
+ ` --noImplicitReturns ` | TypeScriptNoImplicitReturns | boolean
59
+ ` --noImplicitThis ` | TypeScriptNoImplicitThis | boolean
60
+ ` --noImplicitUseStrict ` | TypeScriptNoImplicitUseStrict | boolean
40
61
` --noLib ` | TypeScriptNoLib | boolean
41
62
` --noResolve ` | TypeScriptNoResolve | boolean
42
63
` --out ` | TypeScriptOutFile | File path
43
64
` --outDir ` | TypeScriptOutDir | File path
65
+ ` --outFile ` | TypeScriptOutFile | File path
66
+ ` --paths ` | * Not supported in MSBuild* |
44
67
` --preserveConstEnums ` | TypeScriptPreserveConstEnums | boolean
68
+ ` --listEmittedFiles ` | * Not supported in MSBuild* |
69
+ ` --pretty ` | * Not supported in MSBuild* |
70
+ ` --reactNamespace ` | TypeScriptReactNamespace | string
45
71
` --removeComments ` | TypeScriptRemoveComments | boolean
46
72
` --rootDir ` | TypeScriptRootDir | File path
47
- ` --isolatedModules ` | TypeScriptIsolatedModules | boolean
73
+ ` --rootDirs ` | * Not supported in MSBuild* |
74
+ ` --skipLibCheck ` | TypeScriptSkipLibCheck | boolean
75
+ ` --skipDefaultLibCheck ` | TypeScriptSkipDefaultLibCheck | boolean
48
76
` --sourceMap ` | TypeScriptSourceMap | File path
49
77
` --sourceRoot ` | TypeScriptSourceRoot | File path
50
- ` --suppressImplicitAnyIndexErrors ` | TypeScriptSuppressImplicitAnyIndexErrors | boolean
78
+ ` --strictNullChecks ` | TypeScriptStrictNullChecks | File path
51
79
` --suppressExcessPropertyErrors ` | TypeScriptSuppressExcessPropertyErrors | boolean
52
- ` --moduleResolution ` | TypeScriptModuleResolution | ` Classic ` or ` Node `
53
- ` --experimentalAsyncFunctions ` | TypeScriptExperimentalAsyncFunctions | boolean
54
- ` --jsx ` | TypeScriptJSXEmit | ` React ` or ` Preserve `
55
- ` --reactNamespace ` | TypeScriptReactNamespace | string
56
- ` --skipDefaultLibCheck ` | TypeScriptSkipDefaultLibCheck | boolean
57
- ` --allowUnusedLabels ` | TypeScriptAllowUnusedLabels | boolean
58
- ` --noImplicitReturns ` | TypeScriptNoImplicitReturns | boolean
59
- ` --noFallthroughCasesInSwitch ` | TypeScriptNoFallthroughCasesInSwitch | boolean
60
- ` --allowUnreachableCode ` | TypeScriptAllowUnreachableCode | boolean
61
- ` --forceConsistentCasingInFileNames ` | TypeScriptForceConsistentCasingInFileNames | boolean
62
- ` --allowSyntheticDefaultImports ` | TypeScriptAllowSyntheticDefaultImports | boolean
63
- ` --noImplicitUseStrict ` | TypeScriptNoImplicitUseStrict | boolean
64
- ` --project ` | * Not supported in VS* |
65
- ` --watch ` | * Not supported in VS* |
66
- ` --diagnostics ` | * Not supported in VS* |
67
- ` --listFiles ` | * Not supported in VS* |
68
- ` --noEmit ` | * Not supported in VS* |
69
- ` --allowJs ` | * Not supported in VS* |
70
- * VS only option* | TypeScriptAdditionalFlags | * Any compiler option*
80
+ ` --suppressImplicitAnyIndexErrors ` | TypeScriptSuppressImplicitAnyIndexErrors | boolean
81
+ ` --target ` | TypeScriptTarget | ` ES3 ` , ` ES5 ` , or ` ES6 `
82
+ ` --traceResolution ` | * Not supported in MSBuild* |
83
+ ` --types ` | TypeScriptTypes | Comma-separated list of strings
84
+ ` --typeRoots ` | TypeScriptTypeRoots | Comma-separated list of file path
85
+ ` --watch ` | * Not supported in MSBuild* |
86
+ * MSBuild only option* | TypeScriptAdditionalFlags | * Any compiler option*
71
87
72
88
## What is supported in my version of Visual Studio?
73
89
0 commit comments