Skip to content

[Feature] Support aliasing of workspace package #7016

@ha1fstack

Description

@ha1fstack
  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

Describe the user story

I want to use same names for different implementation of the same feature in my monorepo.
For example, there's @acme/somelib-foo and @acme/somelib-bar and I want to alias it as @acme/somelib in the packages who consumes them. the npm: protocol supports aliasing but sadly workspace: does not.

Describe the solution you'd like

Support aliasing similar to npm: protocol

ex)

"@acme/somelib": "workspace:@acme/somelib-foo@^"

Describe the drawbacks of your solution

Describe alternatives you've considered

I can alias the packages with bundler but handling types with compilerOptions.paths is not a great experience

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions