|
| 1 | +currentDirectory:: /home/src/workspaces/project useCaseSensitiveFileNames:: false |
| 2 | +Input:: |
| 3 | +//// [/home/src/tslibs/TS/Lib/lib.d.ts] |
| 4 | +interface Boolean {} |
| 5 | +interface Function {} |
| 6 | +interface CallableFunction {} |
| 7 | +interface NewableFunction {} |
| 8 | +interface IArguments {} |
| 9 | +interface Number { toExponential: any; } |
| 10 | +interface Object {} |
| 11 | +interface RegExp {} |
| 12 | +interface String { charAt: any; } |
| 13 | +interface Array<T> { length: number; [n: number]: T; } |
| 14 | +interface ReadonlyArray<T> {} |
| 15 | +declare const console: { log(msg: any): void; }; |
| 16 | + |
| 17 | + |
| 18 | +/home/src/tslibs/TS/Lib/tsc.js |
| 19 | +Output:: |
| 20 | +Version FakeTSVersion |
| 21 | +tsc: The TypeScript Compiler - Version FakeTSVersion |
| 22 | + |
| 23 | +[1mCOMMON COMMANDS[22m |
| 24 | + |
| 25 | + [94mtsc[39m |
| 26 | + Compiles the current project (tsconfig.json in the working directory.) |
| 27 | + |
| 28 | + [94mtsc app.ts util.ts[39m |
| 29 | + Ignoring tsconfig.json, compiles the specified files with default compiler options. |
| 30 | + |
| 31 | + [94mtsc -b[39m |
| 32 | + Build a composite project in the working directory. |
| 33 | + |
| 34 | + [94mtsc --init[39m |
| 35 | + Creates a tsconfig.json with the recommended settings in the working directory. |
| 36 | + |
| 37 | + [94mtsc -p ./path/to/tsconfig.json[39m |
| 38 | + Compiles the TypeScript project located at the specified path. |
| 39 | + |
| 40 | + [94mtsc --help --all[39m |
| 41 | + An expanded version of this information, showing all possible compiler options |
| 42 | + |
| 43 | + [94mtsc --noEmit[39m |
| 44 | + [94mtsc --target esnext[39m |
| 45 | + Compiles the current project, with additional settings. |
| 46 | + |
| 47 | +[1mCOMMAND LINE FLAGS[22m |
| 48 | + |
| 49 | +[94m--help, -h[39m |
| 50 | +Print this message. |
| 51 | + |
| 52 | +[94m--watch, -w[39m |
| 53 | +Watch input files. |
| 54 | + |
| 55 | +[94m--all[39m |
| 56 | +Show all compiler options. |
| 57 | + |
| 58 | +[94m--version, -v[39m |
| 59 | +Print the compiler's version. |
| 60 | + |
| 61 | +[94m--init[39m |
| 62 | +Initializes a TypeScript project and creates a tsconfig.json file. |
| 63 | + |
| 64 | +[94m--project, -p[39m |
| 65 | +Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'. |
| 66 | + |
| 67 | +[94m--showConfig[39m |
| 68 | +Print the final configuration instead of building. |
| 69 | + |
| 70 | +[94m--ignoreConfig[39m |
| 71 | +Ignore the tsconfig found and build with commandline options and files. |
| 72 | + |
| 73 | +[94m--build, -b[39m |
| 74 | +Build one or more projects and their dependencies, if out of date |
| 75 | + |
| 76 | +[1mCOMMON COMPILER OPTIONS[22m |
| 77 | + |
| 78 | +[94m--pretty[39m |
| 79 | +Enable color and formatting in TypeScript's output to make compiler errors easier to read. |
| 80 | +type: boolean |
| 81 | +default: true |
| 82 | + |
| 83 | +[94m--declaration, -d[39m |
| 84 | +Generate .d.ts files from TypeScript and JavaScript files in your project. |
| 85 | +type: boolean |
| 86 | +default: `false`, unless `composite` is set |
| 87 | + |
| 88 | +[94m--declarationMap[39m |
| 89 | +Create sourcemaps for d.ts files. |
| 90 | +type: boolean |
| 91 | +default: false |
| 92 | + |
| 93 | +[94m--emitDeclarationOnly[39m |
| 94 | +Only output d.ts files and not JavaScript files. |
| 95 | +type: boolean |
| 96 | +default: false |
| 97 | + |
| 98 | +[94m--sourceMap[39m |
| 99 | +Create source map files for emitted JavaScript files. |
| 100 | +type: boolean |
| 101 | +default: false |
| 102 | + |
| 103 | +[94m--noEmit[39m |
| 104 | +Disable emitting files from a compilation. |
| 105 | +type: boolean |
| 106 | +default: false |
| 107 | + |
| 108 | +[94m--target, -t[39m |
| 109 | +Set the JavaScript language version for emitted JavaScript and include compatible library declarations. |
| 110 | +one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext |
| 111 | +default: es5 |
| 112 | + |
| 113 | +[94m--module, -m[39m |
| 114 | +Specify what module code is generated. |
| 115 | +one of: commonjs, es6/es2015, es2020, es2022, esnext, node16, node18, node20, nodenext, preserve |
| 116 | +default: undefined |
| 117 | + |
| 118 | +[94m--lib[39m |
| 119 | +Specify a set of bundled library declaration files that describe the target runtime environment. |
| 120 | +one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, 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.arraybuffer, 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.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, esnext.typedarrays, esnext.error, esnext.sharedmemory, decorators, decorators.legacy |
| 121 | +default: undefined |
| 122 | + |
| 123 | +[94m--allowJs[39m |
| 124 | +Allow JavaScript files to be a part of your program. Use the 'checkJs' option to get errors from these files. |
| 125 | +type: boolean |
| 126 | +default: `false`, unless `checkJs` is set |
| 127 | + |
| 128 | +[94m--checkJs[39m |
| 129 | +Enable error reporting in type-checked JavaScript files. |
| 130 | +type: boolean |
| 131 | +default: false |
| 132 | + |
| 133 | +[94m--jsx[39m |
| 134 | +Specify what JSX code is generated. |
| 135 | +one of: preserve, react, react-native, react-jsx, react-jsxdev |
| 136 | +default: undefined |
| 137 | + |
| 138 | +[94m--outFile[39m |
| 139 | +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. |
| 140 | + |
| 141 | +[94m--outDir[39m |
| 142 | +Specify an output folder for all emitted files. |
| 143 | + |
| 144 | +[94m--removeComments[39m |
| 145 | +Disable emitting comments. |
| 146 | +type: boolean |
| 147 | +default: false |
| 148 | + |
| 149 | +[94m--strict[39m |
| 150 | +Enable all strict type-checking options. |
| 151 | +type: boolean |
| 152 | +default: false |
| 153 | + |
| 154 | +[94m--types[39m |
| 155 | +Specify type package names to be included without being referenced in a source file. |
| 156 | + |
| 157 | +[94m--esModuleInterop[39m |
| 158 | +Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. |
| 159 | +type: boolean |
| 160 | +default: true |
| 161 | + |
| 162 | +You can learn about all of the compiler options at https://aka.ms/tsc |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | +exitCode:: ExitStatus.DiagnosticsPresent_OutputsSkipped |
0 commit comments