node_modules/lit-analyzer/lib/index.cjs.js
/**
 * Compiles an array of file paths using typescript.
 * @param filePaths
 */
Compiles an array of file paths using typescript.
@param filePaths
Compiles an array of file paths using typescript . @param filePaths
function compileTypescript(filePaths) {
    var options = defaultOptions;
    filePaths = Array.isArray(filePaths) ? filePaths : [filePaths];
    var program = tsModuleType.createProgram(filePaths, options);
    var diagnostics = tsModuleType.getPreEmitDiagnostics(program);
    var files = program.getSourceFiles().filter(function (sf) { return filePaths.includes(sf.fileName); });
    return { diagnostics: diagnostics, program: program, files: files };
}
function compileTypescript ( filePaths ) { var options = defaultOptions ; filePaths = Array . isArray ( filePaths ) ? filePaths : [ filePaths ] ; var program = tsModuleType . createProgram ( filePaths , options ) ; var diagnostics = tsModuleType . getPreEmitDiagnostics ( program ) ; var files = program . getSourceFiles ( ) . filter ( function ( sf ) { return filePaths . includes ( sf . fileName ) ; } ) ; return { diagnostics : diagnostics , program : program , files : files } ; }
Compiles an array of file paths using typescript.
Compiles an array of file paths using typescript .
//const options2 = readTsConfig() || defaultOptions;