@nxworker/workspace
Version:
Nx plugin providing generators for managing workspace files, including the move-file generator for safely moving files between projects while updating all imports
21 lines (20 loc) • 555 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "cachedTreeExists", {
enumerable: true,
get: function() {
return cachedTreeExists;
}
});
function cachedTreeExists(tree, filePath, fileExistenceCache) {
const cached = fileExistenceCache.get(filePath);
if (cached !== undefined) {
return cached;
}
const exists = tree.exists(filePath);
fileExistenceCache.set(filePath, exists);
return exists;
}
//# sourceMappingURL=cached-tree-exists.js.map