Skip to content

Commit

Permalink
Fix: Ignore type declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto authored Aug 17, 2022
1 parent 586c1dd commit ddae2a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/helper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ function getValue(entry, key) {
}

function checkFileExtension(type, filename) {
if (filename.endsWith(".d.ts")) {
return false;
}
return config.extensions[type].some((suffix) => filename.endsWith(suffix));
}

Expand Down

0 comments on commit ddae2a4

Please sign in to comment.