Refactor transformation into a class
The transformation now needs some context information throughout its execution, so it makes sense to turn it into a class.
This commit is contained in:
parent
aa51bda2d0
commit
35fce68e37
|
@ -67,8 +67,8 @@ export async function compile(path: string, options?: ts.CompilerOptions): Promi
|
|||
options.declaration = false;
|
||||
|
||||
if (log.v(5)) {
|
||||
log.out(5).infof(`files: ${JSON.stringify(files)}`);
|
||||
log.out(5).infof(`options: ${JSON.stringify(options, null, 4)}`);
|
||||
log.out(5).info(`files: ${JSON.stringify(files)}`);
|
||||
log.out(5).info(`options: ${JSON.stringify(options, null, 4)}`);
|
||||
}
|
||||
if (log.v(7)) {
|
||||
options.traceResolution = true;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue