Skip to content

Can't run prod build using --omit=dev #283

@CharlesNadolski

Description

@CharlesNadolski

As a DevOps resource behind corporate firewall, npm install routinely times out due to test and dev dependencies (particularly cypress, which is a very large dependency). We would like to use npm install --omit=dev before running npm run build:prod to either build our own docker image or to deploy to a static web content PaaS.

The fix appears to be straightforward. In package.json move packages from devDependencies to (prod) dependencies which are not related to testing, linting, or dev tools.

I can provide a PR for this shortly, but I wanted to document the issue first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions