17 lines
431 B
Python
17 lines
431 B
Python
import re
|
|
from pathlib import Path
|
|
|
|
text = Path(__file__).resolve().parent.parent / "tsc-out.txt"
|
|
content = text.read_text(encoding="utf-8")
|
|
files = sorted(
|
|
{
|
|
m.group(1)
|
|
for line in content.splitlines()
|
|
if "Cannot find name 't'" in line
|
|
for m in [re.match(r"^(src/[^\(:]+\.tsx)", line)]
|
|
if m
|
|
}
|
|
)
|
|
for f in files:
|
|
print(f)
|
|
print("TOTAL", len(files), file=__import__("sys").stderr)
|