wrangler-action/node_modules/@manypkg/find-root
2023-08-07 15:11:15 -05:00
..
dist Temp fix for deps issue 2023-08-07 15:11:15 -05:00
node_modules Temp fix for deps issue 2023-08-07 15:11:15 -05:00
src Temp fix for deps issue 2023-08-07 15:11:15 -05:00
CHANGELOG.md Temp fix for deps issue 2023-08-07 15:11:15 -05:00
package.json Temp fix for deps issue 2023-08-07 15:11:15 -05:00
README.md Temp fix for deps issue 2023-08-07 15:11:15 -05:00

@manypkg/find-root

Find the root of a monorepo with Yarn workspaces, Bolt or pnpm

Install

yarn add @manypkg/find-root

Usage

import { findRoot, findRootSync } from "@manypkg/find-root";

let dir = await findRoot(process.cwd());
let dir = findRootSync(process.cwd());