-
Notifications
You must be signed in to change notification settings - Fork 17
/
tsc.sh
32 lines (30 loc) · 3.69 KB
/
tsc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Automatic generated, DON'T MODIFY IT.
# @flag -h --help Print this message.
# @flag -w --watch Watch input files.
# @flag --all Show all compiler options.
# @flag -v --version Print the compiler's version.
# @flag --init Initializes a TypeScript project and creates a tsconfig.json file.
# @flag -p --project Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
# @flag -b --build Build one or more projects and their dependencies, if out of date
# @flag --showConfig Print the final configuration instead of building.
# @flag --pretty Enable color and formatting in TypeScript's output to make compiler errors easier to read.
# @flag -d --declaration Generate .d.ts files from TypeScript and JavaScript files in your project.
# @flag --declarationMap Create sourcemaps for d.ts files.
# @flag --emitDeclarationOnly Only output d.ts files and not JavaScript files.
# @flag --sourceMap Create source map files for emitted JavaScript files.
# @option -t --target[es5|es6/es2015|es2016|es2017|es2018|es2019|es2020|es2021|es2022|es2023|esnext] Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
# @option -m --module[none|commonjs|amd|umd|system|es6/es2015|es2020|es2022|esnext|node16|nodenext|preserve] Specify what module code is generated.
# @option --lib[es5|es6/es2015|es7/es2016|es2017|es2018|es2019|es2020|es2021|es2022|es2023|esnext|dom|dom.iterable|dom.asynciterable|webworker|webworker.importscripts|webworker.iterable|webworker.asynciterable|scripthost|es2015.core|es2015.collection|es2015.generator|es2015.iterable|es2015.promise|es2015.proxy|es2015.reflect|es2015.symbol|es2015.symbol.wellknown|es2016.array.include|es2016.intl|es2017.date|es2017.object|es2017.sharedmemory|es2017.string|es2017.intl|es2017.typedarrays|es2018.asyncgenerator|es2018.asynciterable/esnext.asynciterable|es2018.intl|es2018.promise|es2018.regexp|es2019.array|es2019.object|es2019.string|es2019.symbol/esnext.symbol|es2019.intl|es2020.bigint/esnext.bigint|es2020.date|es2020.promise|es2020.sharedmemory|es2020.string|es2020.symbol.wellknown|es2020.intl|es2020.number|es2021.promise|es2021.string|es2021.weakref/esnext.weakref|es2021.intl|es2022.array|es2022.error|es2022.intl|es2022.object|es2022.sharedmemory|es2022.string|es2022.regexp|es2023.array|es2023.collection|es2023.intl|esnext.array|esnext.collection|esnext.intl|esnext.disposable|esnext.string|esnext.promise|esnext.decorators|esnext.object|esnext.regexp|decorators|decorators.legacy] Specify a set of bundled library declaration files that describe the target runtime environment.
# @flag --allowJs Allow JavaScript files to be a part of your program.
# @flag --checkJs Enable error reporting in type-checked JavaScript files.
# @option --jsx[preserve|react|react-native|react-jsx|react-jsxdev] Specify what JSX code is generated.
# @flag --outFile Specify a file that bundles all outputs into one JavaScript file.
# @flag --outDir Specify an output folder for all emitted files.
# @flag --removeComments Disable emitting comments.
# @flag --noEmit Disable emitting files from a compilation.
# @flag --strict Enable all strict type-checking options.
# @flag --types Specify type package names to be included without being referenced in a source file.
# @flag --esModuleInterop Emit additional JavaScript to ease support for importing CommonJS modules.
# @arg paths*
command eval "$(argc --argc-eval "$0" "$@")"