evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A utility for managing Nx workspace cache directory configuration and cached data.
/**
* Sets the workspace cache directory path
* @param workspaceRoot - Root directory of the workspace
* @param cacheDirectory - Path to the cache directory (relative or absolute)
* @returns The configured cache directory path
*/
export function setCacheDirectory(workspaceRoot: string, cacheDirectory: string): string;
/**
* Configures cacheable output patterns for a project target
* @param workspaceRoot - Root directory of the workspace
* @param projectName - Name of the project
* @param targetName - Name of the target (e.g., 'build', 'test')
* @param outputs - Array of output patterns to cache (e.g., ['{projectRoot}/dist'])
*/
export function setCacheableOutputs(
workspaceRoot: string,
projectName: string,
targetName: string,
outputs: string[]
): void;
/**
* Clears all cached data from the workspace cache directory
* @param workspaceRoot - Root directory of the workspace
* @returns Number of cache entries cleared
*/
export function clearCache(workspaceRoot: string): number;Provides workspace configuration and cache management capabilities.