What is difference between "@repo/math": "*"
and "@repo/math": "workspace:^"
?
#9523
-
SummaryWhen adding internal package to another package in Yarn, Turbo documentation recommends to add it as wildcard version ( Is there any difference in these two ways for Turborepo? Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
They both do the same thing, but are for different Yarn versions. We show the For Yarn 1, you could also pin a version and update that as needed, but you'll notice it also doesn't have any |
Beta Was this translation helpful? Give feedback.
They both do the same thing, but are for different Yarn versions. We show the
*
version in the docs because that's how Yarn 1 works, and way more Turborepo users use Yarn 1 compared to Yarn 2+.For Yarn 1, you could also pin a version and update that as needed, but you'll notice it also doesn't have any
workspace
moniker in the docs: https://classic.yarnpkg.com/en/docs/workspaces