Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support workspace: dependencies with an alias in a package.json #26247

Open
saravanan10393 opened this issue Oct 14, 2024 · 2 comments
Open

Support workspace: dependencies with an alias in a package.json #26247

saravanan10393 opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working correctly workspaces

Comments

@saravanan10393
Copy link

Version: Deno 2.0.0

I thought try out new Deno2.0 in my project where i have configured the workspace with local package aliasing like the following i have been using with pnpm.

"eslint-config-standard-kf": "workspace:eslint-config-standard-kf@latest",

But it did not work as expected throwing following error in console

error: Failed to install from package.json

Caused by:
    0: Invalid version requirement
    1: Unexpected character.
         eslint-config-standard-kf@latest
         ~

@dsherret
Copy link
Member

dsherret commented Oct 14, 2024

Maybe try?

"eslint-config-standard-kf": "workspace:*",

Looks like Deno doesn't support workspace: specifiers with an alias atm https://pnpm.io/workspaces#referencing-workspace-packages-through-aliases

@dsherret

This comment was marked as outdated.

@dsherret dsherret added bug Something isn't working correctly workspaces labels Oct 14, 2024
@dsherret dsherret changed the title workspace package name alias is not working as expected in Deno 2.0 Support workspace: dependencies with an alias in a package.json Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly workspaces
Projects
None yet
Development

No branches or pull requests

2 participants