Skip to content

Commit

Permalink
Don't git-ignore user configured entry files
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 8, 2024
1 parent ba39caa commit 5e07bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/knip/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {

{
const patterns = worker.getProductionEntryFilePatterns(negatedEntryPatterns);
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns });
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns, gitignore: false });
debugLogArray(name, 'Entry paths', workspaceEntryPaths);
principal.addEntryPaths(workspaceEntryPaths);
}
Expand All @@ -212,7 +212,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
} else {
{
const patterns = worker.getEntryFilePatterns();
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns });
const workspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns, gitignore: false });
debugLogArray(name, 'Entry paths', workspaceEntryPaths);
principal.addEntryPaths(workspaceEntryPaths);
}
Expand Down

0 comments on commit 5e07bbc

Please sign in to comment.