$ npm install @manypkg/find-root
Find the root of a monorepo with Yarn workspaces, Bolt, Lerna, pnpm or Rush
yarn add @manypkg/find-root
import { findRoot, findRootSync } from "@manypkg/find-root";
let dir = await findRoot(process.cwd());
let dir = findRootSync(process.cwd());
© 2010 - cnpmjs.org x YWFE | Home | YWFE