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

resolutions not working in monorepo #6636

Closed
Innei opened this issue Jun 4, 2023 · 3 comments · Fixed by #6658
Closed

resolutions not working in monorepo #6636

Innei opened this issue Jun 4, 2023 · 3 comments · Fixed by #6658

Comments

@Innei
Copy link

Innei commented Jun 4, 2023

pnpm version:

8.6.0

Code to reproduce the issue:

https://github.com/Innei/pnpm-resolution-reproduction

Expected behavior:

Monorepo package's field resolutions should work behavior like the root package is, setting overrides in pnpm-lock.ymal.

Actual behavior:

Only overrides the root package's resolutions.
CleanShot 2023-06-04 at 12 04 01@2x

CleanShot 2023-06-04 at 12 04 41@2x

But monorepo not working.

CleanShot 2023-06-04 at 12 05 00@2x

Additional information:

 v18.15.0
macOS

@Innei Innei added the type: bug label Jun 4, 2023
@await-ovo
Copy link
Member

Hi, this is as expected, we can only set resolutions field at the root of project ~

@zkochan
Copy link
Member

zkochan commented Jun 8, 2023

Yes, it is expected. I think we need to print a warning when someone puts resolutions to a non-root package.json.

zkochan added a commit that referenced this issue Jun 9, 2023
…gured in a non-root workspace project (#6658)

close #6636

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
@reubenayres
Copy link

Any plans to support package-specific "resolutions": { ... } or "pnpm": { "overrides": { ... } } at the package level in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants