https://github.com/hupe1980/find-workspace-root
Find the root of a multi-package repo with Yarn workspaces
https://github.com/hupe1980/find-workspace-root
monorepo multi-package root workspaces yarn
Last synced: about 1 year ago
JSON representation
Find the root of a multi-package repo with Yarn workspaces
- Host: GitHub
- URL: https://github.com/hupe1980/find-workspace-root
- Owner: hupe1980
- License: mit
- Created: 2019-12-17T11:46:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:21:26.000Z (over 3 years ago)
- Last Synced: 2025-04-16T00:18:27.026Z (about 1 year ago)
- Topics: monorepo, multi-package, root, workspaces, yarn
- Language: TypeScript
- Size: 1.01 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find-workspace-root
[](https://travis-ci.org/hupe1980/find-workspace-root)
> Find the root of a multi-package repo with Yarn workspaces
## Installation
```bash
yarn add find-workspace-root
```
## How to use
```javascript
import findWorkspaceRoot from 'find-workspace-root';
const rootDir = await findWorkspaceRoot(/** intialDir [default=process.cwd()]**/);
```
## License
[MIT](LICENSE)