-
Notifications
You must be signed in to change notification settings - Fork 26
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
devDependencies are installed by default #89
Comments
Hello, to give more insights, the dev dependencies are pruned at the end of the installation. Also, my 2 cents, allowing dev dependencies to be installed when |
- on deploy (on scalingo), the project is built. So it uses the build scripts using concurrently, vite and all. We make sure those deps are available anytime we use `npm install` - now we can set up scalingo to not install devDeps while still succeeding in installing the project. Actually, following their docs, scalingo shouldn't install devDeps by default but it actually does. We should be able to use an env var to force it bypassing devDeps (Scalingo/nodejs-buildpack#89)
- on deploy (on scalingo), the project is built. So it uses the build scripts using concurrently, vite and all. We make sure those deps are available anytime we use `npm install` - now we can set up scalingo to not install devDeps while still succeeding in installing the project. Actually, following their docs, scalingo shouldn't install devDeps by default but it actually does. We should be able to use an env var to force it bypassing devDeps (Scalingo/nodejs-buildpack#89)
- on deploy (on scalingo), the project is built. So it uses the build scripts using concurrently, vite and all. We make sure those deps are available anytime we use `npm install` - now we can set up scalingo to not install devDeps while still succeeding in installing the project. Actually, following their docs, scalingo shouldn't install devDeps by default but it actually does. We should be able to use an env var to force it bypassing devDeps (Scalingo/nodejs-buildpack#89)
Describe the bug
The documentation (https://doc.scalingo.com/languages/nodejs/start#install-devdependencies) say that devDependencies are not installed by default unless the NPM_CONFIG_PRODUCTION environment variable is set to false. However, they seem to be installed anyway if the env var is not defined at all.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: