build: add postinstall-patches.js script suitable for postinstall patching of dependencies (#22669)

Because sometimes one has to do what one has to do...

PR Close #22669
This commit is contained in:
Igor Minar
2018-03-08 20:23:33 -08:00
committed by Kara Erickson
parent aa7dba244b
commit 129d1e0fb1
4 changed files with 19 additions and 6 deletions

View File

@ -37,7 +37,7 @@ travisFoldEnd "install-yarn"
# Install all npm dependencies according to yarn.lock
travisFoldStart "yarn-install"
(node tools/npm/check-node-modules --purge && yarn update-webdriver) || yarn install --frozen-lockfile --non-interactive
(node tools/npm/check-node-modules --purge && yarn postinstall) || yarn install --frozen-lockfile --non-interactive
travisFoldEnd "yarn-install"