dependency-cruiser
Version:
Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
23 lines (21 loc) • 639 B
TypeScript
export type cacheStrategyType = "metadata" | "content";
export interface ICacheOptions {
/**
* The folder to store the cache in.
*
* Defaults to node_modules/.cache/dependency-cruiser/
*/
folder: string;
/**
* The strategy to use for caching.
* - 'metadata': use git metadata to detect changes;
* - 'content': use (a checksum of) the contents of files to detect changes.
*
* 'content'is useful if you're not on git or work on partial clones
* (which is typical on CI's). Trade-of: the 'content' strategy is typically
* slower.
*
* Defaults to 'metadata'
*/
strategy: cacheStrategyType;
}