-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Verify canary release
- I verified that the issue exists in the latest Turborepo canary release.
Link to code that reproduces this issue
https://github.com/juliusmarminge/turbo-respect-pnpm-configs
Which canary version will you have in your reproduction?
2.5.2-canary.0
Environment information
Expected behavior
Sometimes it's not beneficial to use workspace:
protocol (e.g. for example apps you want anyone to be able to clone down and just run, you can't have references to workspace
dependencies. But when developing inside your monorepo, you still want to use the local version.
pnpm allows this through preferWorkspacePackages
which let's you specify the version without workspace: protocol and still use the local package instead of pulling from npm.
Actual behavior
unfortunately, it seems like turbo doesn't respect this. Possible a regression with PNPM 10 cause I believe this has worked before?
lint
has a dependency on ^lint
, and @repo/ui
lint fails, but the other ones still runs:
lockfile inspection shows that it is using a local link:
dry run:
To Reproduce
Run pnpm lint
in project root
Additional context
No response