2021-06-16 15:18:00 +02:00
|
|
|
|
Input::
|
|
|
|
|
//// [/lib/lib.d.ts]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Output::
|
|
|
|
|
/lib/tsc
|
|
|
|
|
Version FakeTSVersion
|
|
|
|
|
tsc: The TypeScript Compiler - Version FakeTSVersion
|
|
|
|
|
|
|
|
|
|
[1mCOMMON COMMANDS[22m
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Compiles the current project (tsconfig.json in the working directory.)
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc app.ts util.ts[39m
|
|
|
|
|
Ignoring tsconfig.json, compiles the specified files with default compiler options.
|
2021-06-16 15:18:00 +02:00
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc -b[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Build a composite project in the working directory.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc --init[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Creates a tsconfig.json with the recommended settings in the working directory.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc -p ./path/to/tsconfig.json[39m
|
|
|
|
|
Compiles the TypeScript project located at the specified path.
|
2021-06-16 15:18:00 +02:00
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc --help --all[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
An expanded version of this information, showing all possible compiler options
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94mtsc --noEmit[39m
|
|
|
|
|
[94mtsc --target esnext[39m
|
|
|
|
|
Compiles the current project, with additional settings.
|
2021-06-16 15:18:00 +02:00
|
|
|
|
|
|
|
|
|
[1mCOMMAND LINE FLAGS[22m
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--help, -h[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Print this message.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--watch, -w[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Watch input files.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--all[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Show all compiler options.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--version, -v[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Print the compiler's version.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--init[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Initializes a TypeScript project and creates a tsconfig.json file.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--project, -p[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--build, -b[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Build one or more projects and their dependencies, if out of date
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--showConfig[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Print the final configuration instead of building.
|
|
|
|
|
|
|
|
|
|
[1mCOMMON COMPILER OPTIONS[22m
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--pretty[39m
|
|
|
|
|
Enable color and formatting in TypeScript's output to make compiler errors easier to read
|
2021-06-16 15:18:00 +02:00
|
|
|
|
type: boolean
|
|
|
|
|
default: true
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--target, -t[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
|
|
|
|
one of: es3, es5, es6, es2015, es2016, es2017, es2018, es2019, es2020, es2021, esnext
|
|
|
|
|
default: ES3
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--module, -m[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Specify what module code is generated.
|
|
|
|
|
one of: none, commonjs, amd, system, umd, es6, es2015, es2020, esnext
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--lib[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Specify a set of bundled library declaration files that describe the target runtime environment.
|
2021-09-08 11:43:01 +02:00
|
|
|
|
one or more: es5, es6, es2015, es7, es2016, es2017, es2018, es2019, es2020, es2021, esnext, dom, dom.iterable, webworker, webworker.importscripts, webworker.iterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol, es2020.bigint, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2021.promise, es2021.string, es2021.weakref, es2021.intl, esnext.array, esnext.symbol, esnext.asynciterable, esnext.intl, esnext.bigint, esnext.string, esnext.promise, esnext.weakref
|
2021-06-16 15:18:00 +02:00
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--allowJs[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--checkJs[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Enable error reporting in type-checked JavaScript files.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--jsx[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Specify what JSX code is generated.
|
|
|
|
|
one of: preserve, react-native, react, react-jsx, react-jsxdev
|
|
|
|
|
default: undefined
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--declaration, -d[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Generate .d.ts files from TypeScript and JavaScript files in your project.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: `false`, unless `composite` is set
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--declarationMap[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Create sourcemaps for d.ts files.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--emitDeclarationOnly[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Only output d.ts files and not JavaScript files.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--sourceMap[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Create source map files for emitted JavaScript files.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--outFile[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--outDir[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Specify an output folder for all emitted files.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--removeComments[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Disable emitting comments.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--noEmit[39m
|
|
|
|
|
Disable emitting files from a compilation.
|
2021-06-16 15:18:00 +02:00
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--strict[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Enable all strict type-checking options.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--types[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Specify type package names to be included without being referenced in a source file.
|
|
|
|
|
|
2021-08-05 17:41:01 +02:00
|
|
|
|
[94m--esModuleInterop[39m
|
2021-06-16 15:18:00 +02:00
|
|
|
|
Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
|
|
|
|
|
|
|
|
|
You can learn about all of the compiler options at https://aka.ms/tsconfig-reference
|
|
|
|
|
|
|
|
|
|
exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped
|
|
|
|
|
|
|
|
|
|
|