{"_id":"@manypkg/get-packages","_rev":"4180652","name":"@manypkg/get-packages","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm, Bun or Rush","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"time":{"modified":"2026-03-01T21:48:48.000Z","created":"2020-03-07T08:47:07.413Z","3.1.0":"2025-07-25T03:48:36.328Z","3.0.0":"2025-05-01T10:40:14.440Z","2.2.2":"2024-06-27T07:57:50.110Z","2.2.1":"2024-03-15T00:57:45.548Z","2.2.0":"2023-06-09T12:39:59.973Z","2.1.0":"2023-01-31T08:55:37.678Z","2.0.0":"2023-01-23T23:16:42.346Z","1.1.3":"2021-11-09T05:26:10.340Z","1.1.2":"2021-10-28T02:38:17.395Z","1.1.1":"2020-08-11T23:01:03.843Z","1.1.0":"2020-06-25T11:47:55.162Z","1.0.1":"2020-03-28T03:20:12.315Z","1.0.0":"2020-03-07T08:47:07.413Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/Thinkmill/manypkg.git","directory":"packages/get-packages"},"versions":{"3.1.0":{"name":"@manypkg/get-packages","version":"3.1.0","repository":{"type":"git","url":"git+https://github.com/Thinkmill/manypkg.git","directory":"packages/get-packages"},"license":"MIT","type":"module","exports":{".":"./dist/manypkg-get-packages.js","./package.json":"./package.json"},"dependencies":{"@manypkg/find-root":"^3.1.0","@manypkg/tools":"^2.1.0"},"devDependencies":{"fixturez":"^1.1.0","vitest":"^3.1.2"},"engines":{"node":">=20.0.0"},"_id":"@manypkg/get-packages@3.1.0","gitHead":"fc5d5e0be9496841f4e528532697e741c86a5ed5","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm, Bun or Rush","bugs":{"url":"https://github.com/Thinkmill/manypkg/issues"},"homepage":"https://github.com/Thinkmill/manypkg#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"c97510b6386cab9c4a59e4a7fc2757753ef18865","size":5560,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-3.1.0.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-packages_3.1.0_1753415316109_0.8275699853711935"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-25T03:48:36.328Z","publish_time":1753415316328,"_source_registry_name":"default","_cnpm_publish_time":1753415316328},"3.0.0":{"name":"@manypkg/get-packages","version":"3.0.0","repository":{"type":"git","url":"git+https://github.com/Thinkmill/manypkg.git","directory":"packages/get-packages"},"license":"MIT","type":"module","exports":{".":"./dist/manypkg-get-packages.js","./package.json":"./package.json"},"dependencies":{"@manypkg/find-root":"^3.0.0","@manypkg/tools":"^2.0.0"},"devDependencies":{"fixturez":"^1.1.0","vitest":"^3.1.2"},"engines":{"node":">=20.0.0"},"_id":"@manypkg/get-packages@3.0.0","gitHead":"734a9a8c52243e4e10a851b8dedf1016977a3b5e","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm or Rush","bugs":{"url":"https://github.com/Thinkmill/manypkg/issues"},"homepage":"https://github.com/Thinkmill/manypkg#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"29fe81fc43147981bbadd720ad0790dba0b24d83","size":5405,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-3.0.0.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/get-packages_3.0.0_1746096014254_0.610822749667816"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-01T10:40:14.440Z","publish_time":1746096014440,"_source_registry_name":"default","_cnpm_publish_time":1746096014440},"2.2.2":{"name":"@manypkg/get-packages","version":"2.2.2","repository":{"type":"git","url":"git+https://github.com/Thinkmill/manypkg.git","directory":"packages/get-packages"},"license":"MIT","main":"dist/manypkg-get-packages.cjs.js","dependencies":{"@manypkg/find-root":"^2.2.2","@manypkg/tools":"^1.1.1"},"devDependencies":{"jest-fixtures":"^0.6.0"},"engines":{"node":">=14.18.0"},"types":"./dist/manypkg-get-packages.cjs.d.ts","gitHead":"aec50960fbc3692dd0fb65ddb700a4adbdc92522","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt, Lerna, pnpm or Rush","bugs":{"url":"https://github.com/Thinkmill/manypkg/issues"},"homepage":"https://github.com/Thinkmill/manypkg#readme","_id":"@manypkg/get-packages@2.2.2","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"6eb16fc1ccf8c903aff5cde4e535c7574e965b0d","size":4893,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-2.2.2.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_2.2.2_1719475069955_0.4652966364588722"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-27T07:57:50.110Z","publish_time":1719475070110,"_source_registry_name":"default","maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_cnpm_publish_time":1719475070110},"2.2.1":{"name":"@manypkg/get-packages","version":"2.2.1","license":"MIT","main":"dist/manypkg-get-packages.cjs.js","dependencies":{"@manypkg/find-root":"^2.2.0","@manypkg/tools":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"engines":{"node":">=14.18.0"},"types":"./dist/manypkg-get-packages.cjs.d.ts","gitHead":"5883214e4964f6c28389b16bb597e5637675f210","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt, Lerna, pnpm or Rush","_id":"@manypkg/get-packages@2.2.1","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"shasum":"622f97aa39d7d89c1ba1c4f8aef5f64de9cdd8ba","size":4759,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-2.2.1.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_2.2.1_1710464265394_0.23437316999883429"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-15T00:57:45.548Z","publish_time":1710464265548,"_source_registry_name":"default","_cnpm_publish_time":1710464265548},"2.2.0":{"name":"@manypkg/get-packages","version":"2.2.0","license":"MIT","main":"dist/manypkg-get-packages.cjs.js","dependencies":{"@manypkg/find-root":"^2.2.0","@manypkg/tools":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"engines":{"node":">=14.18.0"},"types":"./dist/manypkg-get-packages.cjs.d.ts","gitHead":"44285d8a2a98504f5b51b97d2a740ae662240380","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt, Lerna, pnpm or Rush","_id":"@manypkg/get-packages@2.2.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"shasum":"268c918880f60146351e348380ab590460c1dcc4","size":4529,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-2.2.0.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_2.2.0_1686314399812_0.22154549541190738"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-09T12:39:59.973Z","publish_time":1686314399973,"_source_registry_name":"default","_cnpm_publish_time":1686314399973},"2.1.0":{"name":"@manypkg/get-packages","version":"2.1.0","license":"MIT","main":"dist/manypkg-get-packages.cjs.js","dependencies":{"@manypkg/find-root":"^2.1.0","@manypkg/tools":"^1.0.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"engines":{"node":">=14.18.0"},"types":"./dist/manypkg-get-packages.cjs.d.ts","gitHead":"6718c20d181d28efc05b3fce32223a44acf2405e","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Lerna, pnpm or Rush","_id":"@manypkg/get-packages@2.1.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"f7308e7b7c14c4a630256d3da73f2d0f75bfede2","size":4341,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-2.1.0.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_2.1.0_1675155337486_0.3192974194270328"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-31T08:55:37.678Z","publish_time":1675155337678,"_cnpm_publish_time":1675155337678},"2.0.0":{"name":"@manypkg/get-packages","version":"2.0.0","license":"MIT","main":"dist/manypkg-get-packages.cjs.js","dependencies":{"@manypkg/find-root":"^2.0.0","@manypkg/tools":"^1.0.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"engines":{"node":">=14.18.0"},"types":"./dist/manypkg-get-packages.cjs.d.ts","gitHead":"1bff0a2b58644ddae9f420288b00b98df0988519","description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Lerna, pnpm or Rush","_id":"@manypkg/get-packages@2.0.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"471eee24af61d3462cdeeb68a6ccf388adf4ac13","size":3879,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-2.0.0.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_2.0.0_1674515802144_0.29044325853299013"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-23T23:16:42.346Z","publish_time":1674515802346,"_cnpm_publish_time":1674515802346},"1.1.3":{"name":"@manypkg/get-packages","version":"1.1.3","license":"MIT","main":"dist/get-packages.cjs.js","dependencies":{"@babel/runtime":"^7.5.5","@changesets/types":"^4.0.1","@manypkg/find-root":"^1.1.0","fs-extra":"^8.1.0","globby":"^11.0.0","read-yaml-file":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt or pnpm","_id":"@manypkg/get-packages@1.1.3","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"shasum":"e184db9bba792fa4693de4658cfb1463ac2c9c47","size":6540,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-1.1.3.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_1.1.3_1636435569995_0.4910010438578156"},"_hasShrinkwrap":false,"publish_time":1636435570340,"_cnpm_publish_time":1636435570340},"1.1.2":{"name":"@manypkg/get-packages","version":"1.1.2","license":"MIT","main":"dist/get-packages.cjs.js","dependencies":{"@babel/runtime":"^7.5.5","@changesets/types":"^4.0.1","@manypkg/find-root":"^1.1.0","fs-extra":"^8.1.0","globby":"^11.0.0","read-yaml-file":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt or pnpm","_id":"@manypkg/get-packages@1.1.2","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"shasum":"d0af46018966dbe064103472b3dae9662bf2ea71","size":6343,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-1.1.2.tgz"},"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_1.1.2_1635388697243_0.1288481874713916"},"_hasShrinkwrap":false,"publish_time":1635388697395,"_cnpm_publish_time":1635388697395},"1.1.1":{"name":"@manypkg/get-packages","version":"1.1.1","license":"MIT","main":"dist/get-packages.cjs.js","dependencies":{"@babel/runtime":"^7.5.5","@manypkg/find-root":"^1.1.0","fs-extra":"^8.1.0","globby":"^11.0.0","read-yaml-file":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt or pnpm","_id":"@manypkg/get-packages@1.1.1","_nodeVersion":"10.22.0","_npmVersion":"6.14.6","dist":{"shasum":"7c7e72d0061ab2e61d2ce4da58ce91290a60ac8d","size":6255,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-1.1.1.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_1.1.1_1597186863316_0.3695742163723028"},"_hasShrinkwrap":false,"publish_time":1597186863843,"_cnpm_publish_time":1597186863843},"1.1.0":{"name":"@manypkg/get-packages","version":"1.1.0","main":"dist/get-packages.cjs.js","dependencies":{"@babel/runtime":"^7.5.5","@manypkg/find-root":"^1.1.0","fs-extra":"^8.1.0","globby":"^11.0.0","read-yaml-file":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt or pnpm","_id":"@manypkg/get-packages@1.1.0","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"ca3b2168728e3453083d3916e974efb25cbbce00","size":6174,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-1.1.0.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_1.1.0_1593085674987_0.5496440639042934"},"_hasShrinkwrap":false,"publish_time":1593085675162,"_cnpm_publish_time":1593085675162},"1.0.1":{"name":"@manypkg/get-packages","version":"1.0.1","main":"dist/get-packages.cjs.js","dependencies":{"@babel/runtime":"^7.5.5","@manypkg/find-root":"^1.0.0","fs-extra":"^8.1.0","globby":"^11.0.0","read-yaml-file":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt or pnpm","_id":"@manypkg/get-packages@1.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"0b46907555626ae773abb828e6c1cb313aa44777","size":5669,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-1.0.1.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_1.0.1_1585365612201_0.9996029086482228"},"_hasShrinkwrap":false,"publish_time":1585365612315,"_cnpm_publish_time":1585365612315},"1.0.0":{"name":"@manypkg/get-packages","version":"1.0.0","main":"dist/get-packages.cjs.js","dependencies":{"@babel/runtime":"^7.5.5","@manypkg/find-root":"^1.0.0","fs-extra":"^8.1.0","globby":"^11.0.0","read-yaml-file":"^1.1.0"},"devDependencies":{"jest-fixtures":"^0.6.0"},"description":"> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt or pnpm","_id":"@manypkg/get-packages@1.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"857f1a40661525cc188fc7379e96c59f2140b9ea","size":5487,"noattachment":false,"key":"/@manypkg/get-packages/-/@manypkg/get-packages-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@manypkg/get-packages/download/@manypkg/get-packages-1.0.0.tgz"},"maintainers":[{"name":"dcousens","email":"email@dcousens.com"},{"name":"emmatown","email":""}],"_npmUser":{"name":"manypkg-release-bot","email":"automation+manypkg@thinkmill.com.au"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-packages_1.0.0_1583570827311_0.38496836087789266"},"_hasShrinkwrap":false,"publish_time":1583570827413,"_cnpm_publish_time":1583570827413}},"readme":"# @manypkg/get-packages\n\n> A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm, Bun or Rush\n\nThis library exports `getPackages` and `getPackagesSync`. It is intended mostly for use of developers building tools that want to support different kinds of monorepos as an easy way to write tools without having to write tool-specific code. It supports Yarn, npm, Lerna, pnpm, Bun, Rush and single-package repos(where the only package is the the same as the root package). This library uses `@manypkg/find-root` to search up from the directory that's passed to `getPackages` or `getPackagesSync` to find the project root.\n\n```typescript\nimport { getPackages, getPackagesSync } from \"@manypkg/get-packages\";\n\nconst { tool, packages, rootPackage, rootDir } = await getPackages(\n  process.cwd()\n);\nconst { tool, packages, rootPackage, rootDir } = getPackagesSync(process.cwd());\n\n// From @manypkg/tools\n\ninterface Tool {\n  readonly type: string;\n  isMonorepoRoot(directory: string): Promise<boolean>;\n  isMonorepoRootSync(directory: string): boolean;\n  getPackages(directory: string): Promise<Packages>;\n  getPackagesSync(directory: string): Packages;\n}\n\ninterface Package {\n  packageJson: PackageJSON;\n  dir: string;\n  relativeDir: string;\n}\n\ninterface Packages {\n  tool: Tool;\n  packages: Package[];\n  rootPackage?: Package;\n  rootDir: string;\n}\n```\n","_attachments":{},"homepage":"https://github.com/Thinkmill/manypkg#readme","bugs":{"url":"https://github.com/Thinkmill/manypkg/issues"},"license":"MIT"}