Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CharlesNadolski opened this issue Oct 20, 2022 · 0 comments
Open

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

CharlesNadolski opened this issue Oct 20, 2022 · 0 comments

Comments

@CharlesNadolski
Copy link

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.

CharlesNadolski added a commit to CharlesNadolski/build-your-own-radar that referenced this issue Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant