From ffe1b4d819a2832c1732d535f00b27282e820ea7 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 11 Dec 2018 22:49:14 -0800 Subject: [PATCH] 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 --- tools/postinstall-patches.js | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/tools/postinstall-patches.js b/tools/postinstall-patches.js index a85b574462..82e9eb5a29 100644 --- a/tools/postinstall-patches.js +++ b/tools/postinstall-patches.js @@ -24,21 +24,24 @@ const {set, cd, sed, rm} = require('shelljs'); const path = require('path'); const log = console.log; -log('===== about to run the postinstall-patches.js script ====='); -// fail on first error -set('-e'); -// print commands as being executed -set('-v'); -// jump to project root -cd(path.join(__dirname, '../')); +// COMMENTED OUT BECAUSE WE CURRENTLY REQUIRE NO PATCHES +// UNCOMMENT TO REENABLE PATCHING AND LOG OUTPUT +// +// log('===== about to run the postinstall-patches.js script ====='); +// // fail on first error +// set('-e'); +// // print commands as being executed +// set('-v'); +// // jump to project root +// cd(path.join(__dirname, '../')); -/* EXAMPLE PATCH: -// https://github.com/ReactiveX/rxjs/pull/3302 -// make node_modules/rxjs compilable with Typescript 2.7 -// remove when we update to rxjs v6 -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))', - 'node_modules/rxjs/src/observable/dom/AjaxObservable.ts'); -*/ +// /* EXAMPLE PATCH: +// // https://github.com/ReactiveX/rxjs/pull/3302 +// // make node_modules/rxjs compilable with Typescript 2.7 +// // remove when we update to rxjs v6 +// 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))', +// 'node_modules/rxjs/src/observable/dom/AjaxObservable.ts'); +// */ -log('===== finished running the postinstall-patches.js script ====='); +// log('===== finished running the postinstall-patches.js script =====');