yarn watch: save errors in separate files, make error regex multiline aware

This commit is contained in:
Martin Aeschlimann
2020-11-20 14:06:37 +01:00
parent 1273299f3d
commit 542a82754c
3 changed files with 67 additions and 50 deletions

View File

@@ -434,7 +434,7 @@ function createTscCompileTask(watch) {
// stdio: [null, 'pipe', 'inherit']
});
let errors = [];
let reporter = createReporter();
let reporter = createReporter('monaco');
let report;
// eslint-disable-next-line no-control-regex
let magic = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g; // https://stackoverflow.com/questions/25245716/remove-all-ansi-colors-styles-from-strings