PackageTrack

npm · #4629 most downloaded on npm

@manypkg/get-packages

3.1.0Thinkmill/manypkg

> A simple utility to get the packages from a monorepo, whether they're using Yarn, npm, Lerna, pnpm, Bun or Rush

Release timeline

13 releases since 2020
2020202120222023202420252026

Releases

  1. 3.1.025 Jul 2025
    Release notes

    Minor Changes

    Patch Changes

    Open source →
  2. 3.0.01 May 2025
    Release notes

    Major Changes

    Patch Changes

    Open source →
  3. 2.2.227 Jun 2024
    Release notes

    Patch Changes

    Open source →
  4. 2.2.115 Mar 2024
    Release notes

    Patch Changes

    Open source →
  5. 2.2.09 Jun 2023
    Release notes

    Minor Changes

    Patch Changes

    Open source →
  6. 2.1.031 Jan 2023
    Release notes

    Minor Changes

    • #167 bf586f5 Thanks @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

    Open source →
  7. 2.0.023 Jan 2023
    Release notes

    Major Changes

    • #162 f046017 Thanks @Andarist! - Increased the transpilation target of the source files to [email protected]. At the same time added this as package.json#engines to explicitly declare the minimum node version supported by this package.
    • #151 a01efc9 Thanks @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

    Open source →
  8. 1.1.39 Nov 2021
    Release notes

    Patch Changes

    • #122 7bd4f34 Thanks @fz6m! - Fixed getting correct packages in pnpm workspaces with exclude rules.
    Open source →
  9. 1.1.228 Oct 2021
    Release notes

    Patch Changes

    Open source →
  10. 1.1.111 Aug 2020
    Release notes

    Patch Changes

    Open source →
  11. 1.1.025 Jun 2020
    Release notes

    Minor Changes

    Patch Changes

    Open source →
  12. 1.0.128 Mar 2020
    Release notes

    Patch Changes

    • 596d821 #55 Thanks @Andarist! - Ignore node_modules when glob searching for packages. This fixes an issue with package cycles.
    Open source →
  13. 1.0.07 Mar 2020
    Release notes

    Major Changes

    • 72a0112 #47 Thanks @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

    Open source →