When I remove devDependencies everything deploys properly. However, when I include devDependencies it fails because two of my devDependencies are workspace:* dependencies (this is a documentation site as part of a monorepo). For example:
"@re-do/test": "workspace:*", "@re-do/configs": "workspace:*",
I am using the netlify.toml file to deploy and expected NODE_ENV = “production” to skip devDependencies but it doesn’t seem to skip them - or perhaps it notices them but doesn’t try to install them? Here’s my netlify.toml file (which works when I remove devDependencies):
[build.environment] NODE_ENV = "production" [build] command = "npm run build" publish = "build"