(id: string, options: resolve.AsyncOpts)
| 24 | * `require.resolve`. This variant will find the _root_ of a package. |
| 25 | */ |
| 26 | export async function resolvePkg(id: string, options: resolve.AsyncOpts) { |
| 27 | const resolvedPath = await resolveOrUndefined(`${id}/package.json`, options) |
| 28 | |
| 29 | return resolvedPath && path.dirname(resolvedPath) |
| 30 | } |
no test coverage detected