Skip to content

Commit

Permalink
fix: ignore yml files inside node_modules dir (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshanmugam committed Mar 10, 2023
1 parent 59fc649 commit 081e914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/push/monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ export async function createLightweightMonitors(
options: PushOptions
) {
const lwFiles = new Set<string>();
const ignore = /(node_modules|.github)/;
await totalist(workDir, (rel, abs) => {
if (/.(yml|yaml)$/.test(rel)) {
if (!ignore.test(rel) && /.(yml|yaml)$/.test(rel)) {
lwFiles.add(abs);
}
});
Expand Down

0 comments on commit 081e914

Please sign in to comment.