Skip to content

"workspace:*" vs "*" in package.json's dependencies #7687

Closed Answered by anthonyshew
yamcodes asked this question in Help
Discussion options

You must be logged in to vote

workspace:* is a protocol specific to pnpm and later versions of yarn to reference Internal Packages. It will never reach out to npm for a package with the name being asked for.

* means "any version" and can reference either External Dependencies or Internal Packages in npm and early yarn. This makes it's usage somewhat murky so your confusion is understandable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants