Skip to content

Commit

Permalink
Revert "Add/fix getPluginEntryFilePatterns helper" (resolves #804)
Browse files Browse the repository at this point in the history
This reverts commit 573ec9c.
  • Loading branch information
webpro committed Oct 8, 2024
1 parent 617a06a commit 3ee0476
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions packages/knip/src/WorkspaceWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ export class WorkspaceWorker {
].flat();
}

getPluginEntryFilePatterns(patterns: string[]) {
return [patterns, this.negatedWorkspacePatterns].flat();
}

getPluginProjectFilePatterns() {
const patterns: string[] = [];
for (const [pluginName, plugin] of Object.entries(plugins) as PluginEntries) {
Expand Down
2 changes: 1 addition & 1 deletion packages/knip/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
}

{
const patterns = worker.getPluginEntryFilePatterns([...entryFilePatterns, ...productionEntryFilePatterns]);
const patterns = [...entryFilePatterns, ...productionEntryFilePatterns];
const pluginWorkspaceEntryPaths = await _glob({ ...sharedGlobOptions, patterns });
debugLogArray(name, 'Plugin entry paths', pluginWorkspaceEntryPaths);
principal.addEntryPaths(pluginWorkspaceEntryPaths, { skipExportsAnalysis: true });
Expand Down

0 comments on commit 3ee0476

Please sign in to comment.