Skip to content

Commit

Permalink
feat: show logs only when skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
revelt committed Jun 29, 2021
1 parent d29d329 commit c4af752
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ module.exports = new Resolver({
new RegExp(pattern).test(filePath)
);

console.log(filePath, shouldExcludeFile);
if (shouldExcludeFile) return { isExcluded: true };
if (shouldExcludeFile) {
console.log(`Skipped ${filePath}`);
return { isExcluded: true }
};
return null;
}
});

0 comments on commit c4af752

Please sign in to comment.