Skip to content

[Feature] Add --mode=skip-build to yarn workspaces focus --production #3524

@ai

Description

@ai
  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

Describe the user story

I have Docker image with my Node.js app. For performance and security reasons, I need:

  1. Install only dependencies, not devDependnecies.
  2. Do not run scripts like install

I found that I can use yarn workspaces focus --production to install production dependencies, but yarn workspaces focus have no support for --mode=skip-build.

Describe the solution you'd like

yarn workspaces focus --production --mode=skip-build

Describe the drawbacks of your solution

Do not see from my area of expertise.

Describe alternatives you've considered

My current solution is:

RUN yarn plugin import workspace-tools
RUN yarn install --mode=skip-build --immutable
RUN yarn workspaces focus --production

But it is slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions