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

@ -0,0 +1,13 @@
const {set, cd, sed} = require('shelljs');
const path = require('path');
console.log('===== about to run the postinstall.js script =====');
// fail on first error
set('-e');
// print commands as being executed
set('-v');
// jump to project root
cd(path.join(__dirname, '../'));
console.log('===== finished running the postinstall.js script =====');