зеркало из https://github.com/mozilla/treeherder.git
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:
Родитель
1ed4969df6
Коммит
a8eb52a633
7
.yarnrc
7
.yarnrc
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче