Skip to content

Commit ffe1b4d

Browse files
IgorMinarmhevery
authored andcommitted
build: disable postinstall-patch.js log output (angular#27619)
currently we have no patches so the logging only adds noise to our dev environment. PR Close angular#27619
1 parent e5c10c3 commit ffe1b4d

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

tools/postinstall-patches.js

+19-16
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,24 @@ const {set, cd, sed, rm} = require('shelljs');
2424
const path = require('path');
2525
const log = console.log;
2626

27-
log('===== about to run the postinstall-patches.js script =====');
28-
// fail on first error
29-
set('-e');
30-
// print commands as being executed
31-
set('-v');
32-
// jump to project root
33-
cd(path.join(__dirname, '../'));
27+
// COMMENTED OUT BECAUSE WE CURRENTLY REQUIRE NO PATCHES
28+
// UNCOMMENT TO REENABLE PATCHING AND LOG OUTPUT
29+
//
30+
// log('===== about to run the postinstall-patches.js script =====');
31+
// // fail on first error
32+
// set('-e');
33+
// // print commands as being executed
34+
// set('-v');
35+
// // jump to project root
36+
// cd(path.join(__dirname, '../'));
3437

35-
/* EXAMPLE PATCH:
36-
// https://github.com/ReactiveX/rxjs/pull/3302
37-
// make node_modules/rxjs compilable with Typescript 2.7
38-
// remove when we update to rxjs v6
39-
log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7');
40-
sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))',
41-
'node_modules/rxjs/src/observable/dom/AjaxObservable.ts');
42-
*/
38+
// /* EXAMPLE PATCH:
39+
// // https://github.com/ReactiveX/rxjs/pull/3302
40+
// // make node_modules/rxjs compilable with Typescript 2.7
41+
// // remove when we update to rxjs v6
42+
// log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7');
43+
// sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))',
44+
// 'node_modules/rxjs/src/observable/dom/AjaxObservable.ts');
45+
// */
4346

44-
log('===== finished running the postinstall-patches.js script =====');
47+
// log('===== finished running the postinstall-patches.js script =====');

0 commit comments

Comments
 (0)