Retrieves all workspace packages from a monorepo based on the workspace patterns defined in the root package.json file.
The directory containing the root package.json file
A promise that resolves to an array of Package objects containing package metadata
Retrieves all workspace packages from a monorepo based on the workspace patterns defined in the root package.json file.