Don't run preinstall/install/postinstall hooks during yarn install (#4432)

Since:
- most are not actually required
- they often don't work with --no-bin-links (the bin scripts called may not exist)
- they cause Yarn to "unplug" the package when using the "Plug and Play" feature
- it's more secure to not run arbitrary code during package installation

Fixes the failures seen in #4418.
This commit is contained in:
Ed Morley 2019-01-08 18:15:01 +00:00 коммит произвёл GitHub
Родитель 1ed4969df6
Коммит a8eb52a633
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -9,5 +9,12 @@ ignore-engines true
# https://github.com/yarnpkg/yarn/issues/4925
--*.no-bin-links true
# Don't run preinstall/install/postinstall hooks during yarn install, since:
# - most are not actually required
# - they often don't work with --no-bin-links (the bin scripts called may not exist)
# - they cause Yarn to "unplug" the package when using the "Plug and Play" feature
# - it's more secure to not run arbitrary code during package installation
--ignore-scripts true
# Default to saving the exact package version in package.json and not a tilde version range.
save-exact true