Skip to content

AlexHayton/list-monorepo-packages

 
 

Repository files navigation

list-monorepo-packages

CircleCI Prettier npm License

Get a list of packages from a monorepo. Upgraded to latest dependencies, modern ESM support (as at 2023-01-01) and adds Typescript and PNPM support.

Supports:

Install

npm install --save list-monorepo-packages

Usage

import listPackages from 'list-monorepo-packages';
await getPackages('/path/to/root');

Returns an array of objects containing:

  • location - The relative path to the package.
  • package - The package.json file for the package.

About

Get a list of packages from a monorepo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%