Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 948 Bytes

File metadata and controls

26 lines (19 loc) · 948 Bytes

CLI

Oddly, the TS Config is probably best described by the CLI which you can find in src/compiler/commandLineParser.ts.

The CLI starts after parsing tsc.ts which triggers executeCommandLine. This function handles going from an arg list to structured data in the form of ParsedCommandLine.

The actual work occurs in [parseCommandLineWorker][] which sets up some variables:

const options = {} as OptionsBase;
const fileNames: string[] = [];
const errors: Diagnostic[] = [];

Then it starts If the letter is a - then start looking forwards to see if the arg is available in the optionmap

function executeCommandLine