Consolidate redundant dependencies in built binary #7965
Labels
process: build
Related to our internal build process
stage: ready for work
The issue is reproducible and in scope
Current behavior:
During prod builds,
yarn
is run in each subpackage individually:cypress/scripts/binary/util/packages.js
Lines 180 to 199 in ffa8c9e
Desired behavior:
Run
yarn
in the root to take advantage of dependency hoisting. This will help reduce the overall binary sizeThis will require some reworking of the existing build process. Only production dependencies should be installed in the final .zip, but some dev dependencies are needed for the build process.
Related: #5977
The text was updated successfully, but these errors were encountered: