Skip to content

Commit

Permalink
Fix helper name
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 31, 2024
1 parent af61c96 commit e5c20dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/knip/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { getGitIgnoredHandler } from './util/globby.js';
import { getReferencedDependencyHandler } from './util/handle-dependency.js';
import { getHasStrictlyNsReferences, getType } from './util/has-strictly-ns-references.js';
import { getIsIdentifierReferencedHandler } from './util/is-identifier-referenced.js';
import { getEntryPathFromManifest, getPackageNameFromModuleSpecifier } from './util/modules.js';
import { getEntryPathsFromManifest, getPackageNameFromModuleSpecifier } from './util/modules.js';
import { dirname, join } from './util/path.js';
import { findMatch } from './util/regex.js';
import { getShouldIgnoreHandler, getShouldIgnoreTagHandler } from './util/tag.js';
Expand Down Expand Up @@ -176,7 +176,7 @@ export const main = async (unresolvedConfiguration: CommandLineOptions) => {
principal.addReferencedDependencies(name, new Set(dependenciesFromManifest.map(id => [manifestPath, id])));

// Add entry paths from package.json#main, #bin, #exports
const entryPathsFromManifest = await getEntryPathFromManifest(manifest, { ...sharedGlobOptions, ignore });
const entryPathsFromManifest = await getEntryPathsFromManifest(manifest, { ...sharedGlobOptions, ignore });
debugLogArray(name, 'Entry paths in package.json', entryPathsFromManifest);
principal.addEntryPaths(entryPathsFromManifest);

Expand Down
2 changes: 1 addition & 1 deletion packages/knip/src/util/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getPackageFromDefinitelyTyped = (typedDependency: string) => {
return typedDependency;
};

export const getEntryPathFromManifest = (
export const getEntryPathsFromManifest = (
manifest: PackageJson,
sharedGlobOptions: { cwd: string; workingDir: string; gitignore: boolean; ignore: string[] }
) => {
Expand Down

0 comments on commit e5c20dd

Please sign in to comment.