Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 27 days 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:21:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-28T07:35:13.221Z (about 1 month ago)
- Topics: monorepo, multi-package, root, workspaces, yarn
- Language: TypeScript
- Size: 1.01 MB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# find-workspace-root
[![Build Status](https://travis-ci.org/hupe1980/find-workspace-root.svg?branch=master)](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)