Skip to content

Commit

Permalink
fix: ignore type
Browse files Browse the repository at this point in the history
  • Loading branch information
brenoepics committed May 9, 2024
1 parent 251a196 commit 6de1d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/ExtensionFilter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from "fs";
import path from "path";
import ignore from "ignore";
import ignore, { Ignore } from "ignore";
import * as core from "@actions/core";

/**
Expand All @@ -23,7 +23,7 @@ export function getFilesByExtension(params: GetFilesParams): string[] {
}
// Convert the wildcard pattern to a regular expression
const extensionRegex: RegExp = generateRegex(extension + ".*");
const ig = ignore().add(ignoredDir);
const ig: Ignore = ignore().add(ignoredDir);
const files: string[] = [];

const dirs: fs.Dirent[] = getSubItems();
Expand Down

0 comments on commit 6de1d62

Please sign in to comment.