Skip to content

Cache parent package directories #2

@neocotic

Description

@neocotic

Currently, only available package.json file paths are cached per scanned directory. However, it would be good to all cache resolved parent package directories for when the includeParents option is enabled. This would help to avoid needless FS traversals to resolve parent package directories for repeat callers and should therefore boost performance.

I suspect that this cache should also be cleared when clearCache is called. It will probably need to be in order to meet our code coverage metrics.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions