1
NodeJS Buildpack on App Platform
Chris Short
This article recommends using the flag --production=false to install devDependencies, however this flag is deprecated and gives a warning message in the DO deploy logs. The only way I've found how to do this that isn't deprecated is by doing an npm install --include=dev
Chris Short
It would be nice to be able to pass in flags in to the install command for Digital Ocean App Platform, or even a custom install command. What I ended up doing in my build script was npm ci --include=dev && myscripts
But going this route means I do an install once with only production deps (default in the DO build), and then an additional time when I need to install my dev deps for the build itself.