We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30380b1 commit 59e2a38Copy full SHA for 59e2a38
1 file changed
src/index.ts
@@ -34,13 +34,15 @@ const readdirRecursively = (dir: string, files: string[] = []) => {
34
};
35
36
for (const file of readdirRecursively(".")) {
37
- console.log("looking ", file, ", deciding whether skip or not...");
+ console.log("looking", file, "deciding whether skip or not...");
38
39
- if (!file.match(/compilation.*\.log$/)) {
+ const res = file.match(/compilation.*\.log$/);
40
+
41
+ if (res === null || res.length === 0) {
42
continue;
43
}
44
- console.log("found ", file, ", detecting warnings...");
45
+ console.log("found", file, "detecting warnings...");
46
47
const compilation_output = readFileSync(file).toString();
48
0 commit comments