inxilpro / node-app-root-path

Determine the root path to your project
MIT License
605 stars 29 forks source link

Need Yarn 2 monorepo support #51

Open AshishShanker opened 2 years ago

AshishShanker commented 2 years ago

Current resolver detects Yarn Plug 'N' Play but resolves app root path to repo root, but in the context of a monorepo structure, it may be desirable to have app root resolve to the workspace root.

I am no Yarn 2 API expert, but it seems findPackageLocator() or some such function might be useful.