yarn install --production is checking for presence of devDependencies · Issue #4190 · yarnpkg/yarn · GitHub
yarn install --production` install devDependencies that is specified in dependencies package specified it as peerDependencies. · Issue #6810 · yarnpkg/yarn · GitHub