-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
theme/js-dependency-mgmttype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
@netlify/build runs yarn on two instances, which are both opt-in behavior:
- When the
@netlify/plugin-functions-install-coreplugin is used, we runyarnin the functions directory - When the
@netlify/plugin-local-install-coreplugin is used, we runyarnin any local plugins directory
In both cases, we detect yarn by looking for the presence of a yarn.lock. This does not work in many cases, which is why we might want to also check for the presence of a USE_YARN environment, as suggested in netlify/build-image#440
Also, the command we are running is yarn install --no-progress --non-interactive --cache-folder=/opt/buildhome/.yarn_cache. According to netlify/build-image#440, this has few issues:
--cache-folderwas replaced with the environment variableYARN_GLOBAL_FOLDERin Yarn v2--no-progressand--non-interactivedo not exist anymore
mauriciabad, chrisirhc, sheldonhull, himself65, kachkaev and 4 more
Metadata
Metadata
Assignees
Labels
theme/js-dependency-mgmttype: bugcode to address defects in shipped codecode to address defects in shipped code