inxilpro / node-app-root-path

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

Need Yarn 2 monorepo support #51

Open AshishShanker opened 3 years ago

AshishShanker commented 3 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.