Install in dist folder to prepare packaging and deployment #3591
Unanswered
HeneryHawk
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Why don't you write the built package to dist and then publish from there using the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have the following setup and a question about it.
My monorepo contains several packages, including a core package, which is used by the others. Each package creates a
dist
folder during the build, in which the package.json of the respective package is copied. Now apnpm install --prod --shamefully-hoist
should be executed in this dist folder to install all dependencies so that this folder can be packaged and deployed.Since I have excluded the dist folders in the
pnpm-workspace.yaml
, the install will not run in the dist folder.However, I don't want to not exclude the dist folder in
pnpm-workspace.yaml
as it is actually only relevant to the build and also has the same package name as the origin package.Is there a solution for this?
Regards
Beta Was this translation helpful? Give feedback.
All reactions