Unverified Commit 283c6f57 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[next-upgrade] Force install of dev dependencies (#86119)

parent c43a4d12
......@@ -123,6 +123,13 @@ export function runInstallation(
try {
execa.sync(packageManager, ['install'], {
cwd: options.cwd,
env: {
...process.env,
// In case NODE_ENV=production is set, we still want dev dependencies to
// be installed. Otherwise we won't be able to check for peer dependencies.
// --production=false is not implemented by every package manager.
NODE_ENV: 'development',
},
stdio: 'inherit',
shell: true,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment