Replies: 2 comments 18 replies
-
You can try specifying which packages to build in
|
Beta Was this translation helpful? Give feedback.
3 replies
-
I just remembered it would be nice to allow The |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using PNPM with NX to manage a TypeScript monorepo. We're using Webpack to compile backend applications into their own distributable, with Webpack generating a
package.json
that is used to install only the required dependencies in a Docker container.The problem is that starting with v10, PNPM requires specifying
onlyBuiltDependencies
for dependencies that run post-build scripts. However, thepackage.json
files generated by Webpack don't contain these directives, and the Docker container fails since the post-build scripts are not executed as part of its creation.The way I see it, there are several ways to solve this:
package.json
in the monorepo.I would prefer option 3, but I haven't found a way to achieve this. Ideally, it would include a command like
pnpm install --build-all-dependencies
.Does anyone have any thoughts or ideas? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions