Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)