Skip to content

Commit

Permalink
Don't add ignored files as entry paths (resolves #734)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Jul 20, 2024
1 parent f6b0058 commit f5680fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
const workspace = chief.findWorkspaceByName(workspaceName);
if (workspace) {
const specifierFilePath = handleReferencedDependency(specifier, containingFilePath, workspace);
if (specifierFilePath) principal.addEntryPath(specifierFilePath);
if (specifierFilePath && !isGitIgnored(specifierFilePath)) principal.addEntryPath(specifierFilePath);
}
}

Expand Down

0 comments on commit f5680fb

Please sign in to comment.