build: disable postinstall-patch.js log output (#27619)

currently we have no patches so the logging only adds noise to our dev environment.

PR Close #27619
This commit is contained in:
Igor Minar 2018-12-11 22:49:14 -08:00 committed by Miško Hevery
parent e5c10c3d91
commit ffe1b4d819

View File

@ -24,21 +24,24 @@ const {set, cd, sed, rm} = require('shelljs');
const path = require('path'); const path = require('path');
const log = console.log; const log = console.log;
log('===== about to run the postinstall-patches.js script ====='); // COMMENTED OUT BECAUSE WE CURRENTLY REQUIRE NO PATCHES
// fail on first error // UNCOMMENT TO REENABLE PATCHING AND LOG OUTPUT
set('-e'); //
// print commands as being executed // log('===== about to run the postinstall-patches.js script =====');
set('-v'); // // fail on first error
// jump to project root // set('-e');
cd(path.join(__dirname, '../')); // // print commands as being executed
// set('-v');
// // jump to project root
// cd(path.join(__dirname, '../'));
/* EXAMPLE PATCH: // /* EXAMPLE PATCH:
// https://github.com/ReactiveX/rxjs/pull/3302 // // https://github.com/ReactiveX/rxjs/pull/3302
// make node_modules/rxjs compilable with Typescript 2.7 // // make node_modules/rxjs compilable with Typescript 2.7
// remove when we update to rxjs v6 // // remove when we update to rxjs v6
log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7'); // log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7');
sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))', // sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))',
'node_modules/rxjs/src/observable/dom/AjaxObservable.ts'); // 'node_modules/rxjs/src/observable/dom/AjaxObservable.ts');
*/ // */
log('===== finished running the postinstall-patches.js script ====='); // log('===== finished running the postinstall-patches.js script =====');