@manypkg/get-packages
Version:
> A simple utility to get the packages from a monorepo, whether they're using Yarn, Bolt, Lerna, pnpm or Rush
111 lines (62 loc) • 6.35 kB
Markdown
# @manypkg/get-packages
## 2.2.2
### Patch Changes
- [#208](https://github.com/Thinkmill/manypkg/pull/208) [`361a34f`](https://github.com/Thinkmill/manypkg/commit/361a34faac94f7a954bbe00321647fc99ae76c17) Thanks [@benmccann](https://github.com/benmccann)! - Add git repository info to `package.json`
- Updated dependencies [[`361a34f`](https://github.com/Thinkmill/manypkg/commit/361a34faac94f7a954bbe00321647fc99ae76c17)]:
- @manypkg/find-root@2.2.2
- @manypkg/tools@1.1.1
## 2.2.1
### Patch Changes
- [#201](https://github.com/Thinkmill/manypkg/pull/201) [`3c9641c`](https://github.com/Thinkmill/manypkg/commit/3c9641c94980a887fdb4366698ad69199883ff84) Thanks [@manzoorwanijk](https://github.com/manzoorwanijk)! - Fixed the error for getPackages when given a non-root directory
## 2.2.0
### Minor Changes
- [#174](https://github.com/Thinkmill/manypkg/pull/174) [`de0fff3`](https://github.com/Thinkmill/manypkg/commit/de0fff37af9e6dc21b75b7115381483c1e85b8a7) Thanks [@steve-taylor](https://github.com/steve-taylor)! - Restored support for Bolt monorepos.
### Patch Changes
- Updated dependencies [[`de0fff3`](https://github.com/Thinkmill/manypkg/commit/de0fff37af9e6dc21b75b7115381483c1e85b8a7)]:
- @manypkg/find-root@2.2.0
- @manypkg/tools@1.1.0
## 2.1.0
### Minor Changes
- [#167](https://github.com/Thinkmill/manypkg/pull/167) [`bf586f5`](https://github.com/Thinkmill/manypkg/commit/bf586f56f14f213ac7d3e4c1ee85ef8456872c3c) Thanks [@elliot-nelson](https://github.com/elliot-nelson)! - The `getPackages` and `getPackagesSync` methods now take an optional list of `Tool` implementations, allowing the caller to restrict the desired types of monorepo discovered, or provide a custom monorepo tool implementation.
### Patch Changes
- Updated dependencies [[`bf586f5`](https://github.com/Thinkmill/manypkg/commit/bf586f56f14f213ac7d3e4c1ee85ef8456872c3c)]:
- @manypkg/find-root@2.1.0
## 2.0.0
### Major Changes
- [#165](https://github.com/Thinkmill/manypkg/pull/165) [`7b9c4f6`](https://github.com/Thinkmill/manypkg/commit/7b9c4f6d9a73de8b3cc45af5abc8af47f6b9206c) Thanks [@Andarist](https://github.com/Andarist)! - Removed support for Bolt monorepos.
* [#162](https://github.com/Thinkmill/manypkg/pull/162) [`f046017`](https://github.com/Thinkmill/manypkg/commit/f046017af2349f0c1bbc5b25224da0ede8ddc2d6) Thanks [@Andarist](https://github.com/Andarist)! - Increased the transpilation target of the source files to `node@14.x`. At the same time added this as `package.json#engines` to explicitly declare the minimum node version supported by this package.
- [#151](https://github.com/Thinkmill/manypkg/pull/151) [`a01efc9`](https://github.com/Thinkmill/manypkg/commit/a01efc9c25900b7d21b6d517a2021b021f8b3922) Thanks [@elliot-nelson](https://github.com/elliot-nelson)! - The `get-packages` package now returns a slightly different structure. The old `tool` string has been replaced with a `tool` object, using the new `Tool` interface provided by `@manypkg/tools`. Each `Package` now contains both the absolute directory and relative directory path. Last, the `root` package has been renamed `rootPackage` and is optional, to support monorepos that do not contain a root package.
### Patch Changes
- Updated dependencies [[`a01efc9`](https://github.com/Thinkmill/manypkg/commit/a01efc9c25900b7d21b6d517a2021b021f8b3922), [`a01efc9`](https://github.com/Thinkmill/manypkg/commit/a01efc9c25900b7d21b6d517a2021b021f8b3922), [`7b9c4f6`](https://github.com/Thinkmill/manypkg/commit/7b9c4f6d9a73de8b3cc45af5abc8af47f6b9206c), [`f046017`](https://github.com/Thinkmill/manypkg/commit/f046017af2349f0c1bbc5b25224da0ede8ddc2d6)]:
- @manypkg/find-root@2.0.0
- @manypkg/tools@1.0.0
## 1.1.3
### Patch Changes
- [#122](https://github.com/Thinkmill/manypkg/pull/122) [`7bd4f34`](https://github.com/Thinkmill/manypkg/commit/7bd4f344e1024e880a2de6b571d556adf200f0b6) Thanks [@fz6m](https://github.com/fz6m)! - Fixed getting correct packages in pnpm workspaces with exclude rules.
## 1.1.2
### Patch Changes
- [#110](https://github.com/Thinkmill/manypkg/pull/110) [`c521941`](https://github.com/Thinkmill/manypkg/commit/c52194151630eb56cd21af471afe877cf42c6884) Thanks [@maraisr](https://github.com/maraisr)! - Includes types dependencies for PackageJson type
## 1.1.1
### Patch Changes
- [`35fcc9c`](https://github.com/Thinkmill/manypkg/commit/35fcc9cba7ccec6667826da84ed02dff166c50a3) [#70](https://github.com/Thinkmill/manypkg/pull/70) Thanks [@jesstelford](https://github.com/jesstelford)! - Add missing license field
## 1.1.0
### Minor Changes
- [`a4db72a`](https://github.com/Thinkmill/manypkg/commit/a4db72a8b272f1b642fa751639d7840f4fa3658c) [#63](https://github.com/Thinkmill/manypkg/pull/63) Thanks [@evocateur](https://github.com/evocateur)! - Add support for Lerna monorepos
### Patch Changes
- Updated dependencies [[`a4db72a`](https://github.com/Thinkmill/manypkg/commit/a4db72a8b272f1b642fa751639d7840f4fa3658c)]:
- @manypkg/find-root@1.1.0
## 1.0.1
### Patch Changes
- [`596d821`](https://github.com/Thinkmill/manypkg/commit/596d82108bfb2debdfd6c82569ae5efb5b5ed587) [#55](https://github.com/Thinkmill/manypkg/pull/55) Thanks [@Andarist](https://github.com/Andarist)! - Ignore `node_modules` when glob searching for packages. This fixes an issue with package cycles.
## 1.0.0
### Major Changes
- [`72a0112`](https://github.com/Thinkmill/manypkg/commit/72a01127a5804cc8b881ab1a67e83a6149944ade) [#47](https://github.com/Thinkmill/manypkg/pull/47) Thanks [@tarang9211](https://github.com/tarang9211)! - Initial release of `@manypkg/get-packages`. If you're migrating from `get-workspaces`, the most important changes are:
- getPackages is a named export
- getPackages only accepts a single argument which is the directory to search from
- getPackages returns an object which has `tool`, `packages` and `root`
- getPackages will search up from the directory passed in to find a project root rather than requiring the project root to be passed in
- the package objects no longer have a `name` field and the `config` property has been renamed to `packageJson`
See the README for more information on the new API
### Patch Changes
- Updated dependencies [[`72a0112`](https://github.com/Thinkmill/manypkg/commit/72a01127a5804cc8b881ab1a67e83a6149944ade)]:
- @manypkg/find-root@1.0.0