workspace-tools
Version:
A collection of utilities that are useful in a git-controlled monorepo managed by one of these tools:
17 lines • 741 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCatalogs = void 0;
const implementations_1 = require("./implementations");
/**
* Get version catalogs, if supported by the manager (only pnpm and yarn v4 as of writing).
* Returns undefined if no catalogs are present or the manager doesn't support them.
* @see https://pnpm.io/catalogs
* @see https://yarnpkg.com/features/catalogs
* @param cwd - Current working directory. It will search up from here to find the root, with caching.
*/
function getCatalogs(cwd) {
const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
return utils?.getCatalogs?.(cwd);
}
exports.getCatalogs = getCatalogs;
//# sourceMappingURL=getCatalogs.js.map