fix: only check copyright years for TypeScript files

Fixes #25
This commit is contained in:
Karl-Philipp Wulfert
2019-06-04 15:20:55 +02:00
parent b995bb5c14
commit 1a4ec52712

View File

@@ -562,6 +562,10 @@ export function checkCopyrightYears(path: PathLike, subDir: PathLike): void {
const fileStats = lstatSync(fileSystemObjectPath);
if (fileStats.isFile()) {
if (fileSystemObject.match(/\.ts$/) === null) {
continue;
}
const content = readFileSync(fileSystemObjectPath)
.toString()
.split('\n');