You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding internal package to another package in Yarn, Turbo documentation recommends to add it as wildcard version ("@repo/math": "*"). Yarn docs on the other hand recommend to use workspace: protocol ("@repo/math": "workspace:^") which seems safer and more readable.
Is there any difference in these two ways for Turborepo?
Why doesn't Turbo recommend the Yarn recommended way in its documentation?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
When adding internal package to another package in Yarn, Turbo documentation recommends to add it as wildcard version (
"@repo/math": "*"
). Yarn docs on the other hand recommend to useworkspace:
protocol ("@repo/math": "workspace:^"
) which seems safer and more readable.Is there any difference in these two ways for Turborepo?
Why doesn't Turbo recommend the Yarn recommended way in its documentation?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions