feat: adds support for workspace protocol
Currently, dependencies that live in another package within a monorepo workspace get treated as external, which causes a error.
This change adds support for monorepos using the workspace: protocol by treating workspace packages as notExternal.
This is done by checking the package.json for dependencies that are referenced using workspace: protocol
e.g. "foo": "workspace:*",
and adding them to the notExternal array that is passed to the externalPlugin.
- resolves #40
Info about workspaces
Just wanted to add that this change doesn't add support for NPM workspaces, since NPM doesn't use the workspace: protocol.
Unfortunately this change won't resolve this issue.
- eslint/config-inspector#95
Info about NPM workspaces