https://github.com/azz/get-monorepo-packages
Get a list of packages from a monorepo
https://github.com/azz/get-monorepo-packages
lerna workspaces yarn
Last synced: about 1 year ago
JSON representation
Get a list of packages from a monorepo
- Host: GitHub
- URL: https://github.com/azz/get-monorepo-packages
- Owner: azz
- License: mit
- Created: 2018-01-05T00:47:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T21:16:32.000Z (about 5 years ago)
- Last Synced: 2024-04-25T12:21:56.835Z (about 2 years ago)
- Topics: lerna, workspaces, yarn
- Language: JavaScript
- Size: 64.5 KB
- Stars: 19
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `get-monorepo-packages`
[](https://github.com/prettier/prettier)
[](https://npmjs.org/get-monorepo-packages)
[](LICENSE)
Get a list of packages from a monorepo. Supports:
* [Lerna](https://github.com/lerna/lerna)
* [Yarn workspaces](https://yarnpkg.com/lang/en/docs/workspaces/)
* [Bolt](http://boltpkg.com/)
## Install
```bash
npm install --save get-monorepo-packages
```
## Usage
```js
import getPackages from 'get-monorepo-packages';
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.