bundle-require icon indicating copy to clipboard operation
bundle-require copied to clipboard

feat: adds support for workspace protocol

Open EdRW opened this issue 1 year ago • 2 comments

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

EdRW avatar Jan 17 '25 07:01 EdRW

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Jan 17 '25 07:01 codesandbox[bot]

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

EdRW avatar Jan 17 '25 07:01 EdRW