Check that the monorepo workspace globs find dirs with package.json files.
This rule aims to ensure the workspace globs find dirs with package.json files.
Examples of incorrect code for this rule:
{
"workspace": [
"packages/*/missing-dir"
]
}
Examples of correct code for this rule:
{
"workspace": [
"packages/*/dir-with-package-json"
]
}
{
"workspace": [
"packages/dir-with-package-json"
]
}
{
"workspace": {
"packages": [
"packages/*/dir-with-package-json"
]
}
}
If workspace globs are placeholders for future packages.
https://docs.npmjs.com/cli/v10/configuring-npm/package-json#workspaces