{"id":15767937,"url":"https://github.com/bubkoo/find-monorepo-root","last_synced_at":"2025-10-29T02:44:44.416Z","repository":{"id":62883655,"uuid":"563147789","full_name":"bubkoo/find-monorepo-root","owner":"bubkoo","description":"Find the root directory of a monorepo using Yarn workspaces, Bolt, Lerna or pnpm","archived":false,"fork":false,"pushed_at":"2022-12-16T08:19:47.000Z","size":108,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T00:09:18.573Z","etag":null,"topics":["lerna-monorepo","monorepo","pnpm-workspaces","workspaces","yarn-workspaces"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bubkoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-08T02:09:39.000Z","updated_at":"2025-09-17T06:16:29.000Z","dependencies_parsed_at":"2023-01-29T11:47:20.267Z","dependency_job_id":null,"html_url":"https://github.com/bubkoo/find-monorepo-root","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bubkoo/find-monorepo-root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Ffind-monorepo-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Ffind-monorepo-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Ffind-monorepo-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Ffind-monorepo-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bubkoo","download_url":"https://codeload.github.com/bubkoo/find-monorepo-root/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bubkoo%2Ffind-monorepo-root/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281549728,"owners_count":26520515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lerna-monorepo","monorepo","pnpm-workspaces","workspaces","yarn-workspaces"],"created_at":"2024-10-04T13:41:51.041Z","updated_at":"2025-10-29T02:44:44.400Z","avatar_url":"https://github.com/bubkoo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cstrong\u003efind-monorepo-root\u003c/strong\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003eFind the root directory of a monorepo using Yarn workspaces, Bolt, Lerna or pnpm\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/bubkoo/find-monorepo-root?style=flat-square\" alt=\"MIT License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.typescriptlang.org\"\u003e\u003cimg alt=\"Language\" src=\"https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/bubkoo/find-monorepo-root/pulls\"\u003e\u003cimg alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/bubkoo/find-monorepo-root/actions/workflows/release.yml\"\u003e\u003cimg alt=\"build\" src=\"https://img.shields.io/github/actions/workflow/status/bubkoo/find-monorepo-root/release.yml?branch=master\u0026logo=github\u0026style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://app.codecov.io/gh/bubkoo/find-monorepo-root\"\u003e\u003cimg alt=\"coverage\" src=\"https://img.shields.io/codecov/c/gh/bubkoo/find-monorepo-root?logo=codecov\u0026style=flat-square\u0026token=15CO54WYUV\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/find-monorepo-root\"\u003e\u003cimg alt=\"NPM Package\" src=\"https://img.shields.io/npm/v/find-monorepo-root.svg?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/find-monorepo-root\"\u003e\u003cimg alt=\"NPM Downloads\" src=\"https://img.shields.io/npm/dm/find-monorepo-root?logo=npm\u0026style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n## Install\n```shell\n$ npm install find-monorepo-root\n```\n\n## Usage\n\n```ts\nimport { findMonorepoRoot } from 'find-monorepo-root';\nconst cwd = process.cwd();\n\nconsole.log(await findMonorepoRoot(cwd));\n// {\n//   client: 'pnpm', // the monorepo client(pnpm, lerna, yarn, bolt)\n//   dir: 'xxx',     // the monorepo root directory\n// }\n\n\n// sync method\nimport { findMonorepoRootSync } from 'find-monorepo-root/sync';\nconsole.log(findMonorepoRootSync(cwd));\n```\n\n\n## Contributing\n\nPlease let us know how can we help. Do check out [issues](https://github.com/bubkoo/find-monorepo-root/issues) for bug reports or suggestions first.\n\nTo become a contributor, please follow our [contributing guide](/CONTRIBUTING.md).\n\n\u003c!-- \u003ca href=\"https://github.com/bubkoo/find-monorepo-root/graphs/contributors\"\u003e\n  \u003cimg src=\"/CONTRIBUTORS.svg\" alt=\"Contributors\" width=\"740\" /\u003e\n\u003c/a\u003e --\u003e\n\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Ffind-monorepo-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubkoo%2Ffind-monorepo-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubkoo%2Ffind-monorepo-root/lists"}