workspace-tools
Version:
A collection of tools that are useful in a git-controlled monorepo that is managed by one of these tools:
11 lines • 394 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findWorkspacePath = void 0;
function findWorkspacePath(workspaces, packageName) {
const workspace = workspaces.find(({ name }) => name === packageName);
if (workspace) {
return workspace.path;
}
}
exports.findWorkspacePath = findWorkspacePath;
//# sourceMappingURL=findWorkspacePath.js.map