Replies: 2 comments 3 replies
-
I won't revert those changes, Example with yarn 2 --> https://github.com/ayush987goyal/verdaccio-service-construct/blob/main/src/assets/start.sh Updated: 5.x uses yarn2 with pnp enabled. While the master branch (future 6.x) uses pnpm. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hey @juanpicado, thanks for the clarification. If I find some time, I'll give Verdaccio 6 a spin to see if the problem goes away. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
The migration to Yarn2 causes our custom Docker build to install all
devDependencies
when adding Verdaccio plugins in a custom Dockerfile. Because Yarn2 removed the option--production
(and there is no apparent alternative), every subsequentyarn add
command installs all dependencies (including devDependencies) again.To Reproduce
Given this Dockerfile:
All
devDependencies
of Verdaccio are installed again taking a long time and downloading half of npm. 😄 I suppose this is because the final image of the multi-stage build of Verdaccio correctly doesn't include thedevDependencies
(used only in the builder stage) which are now installed again when we runyarn add
.Expected behavior
Only the necessary plugin modules are installed.
Beta Was this translation helpful? Give feedback.
All reactions