Locates a workspace package by name under an app repo's source directory (one level deep,
matching code.sourceDirectory), returning its directory. Used when the process runs inside
the app's own repository: the package is a workspace member there, but under pnpm's strict
layout nothing at the repo root can require.resolve it, so we find it on disk instead.
Locates a workspace package by name under an app repo's source directory (one level deep, matching
code.sourceDirectory), returning its directory. Used when the process runs inside the app's own repository: the package is a workspace member there, but under pnpm's strict layout nothing at the repo root canrequire.resolveit, so we find it on disk instead.