From fad86a67cae808ba7cd267b85c60d362567ac256 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 20 Mar 2018 13:55:27 -0700 Subject: [PATCH] build: add rxjs patch to make bazel build work with rxjs@6.0.0-beta.0 (#22887) PR Close #22887 --- tools/postinstall-patches.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/postinstall-patches.js b/tools/postinstall-patches.js index db52f068fe..1d9cf96c2f 100644 --- a/tools/postinstall-patches.js +++ b/tools/postinstall-patches.js @@ -27,9 +27,9 @@ sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))', 'node_modules/rxjs/src/observable/dom/AjaxObservable.ts'); */ -// workaround to make our closure compiler integration tests in integration/i18n pass -// https://github.com/ReactiveX/rxjs/pull/3431 -rm('-f', 'node_modules/rxjs/_esm2015/internal/umd.js'); -rm('-f', 'node_modules/rxjs/_esm5/internal/umd.js'); +// fixes rxjs bazel build: https://github.com/ReactiveX/rxjs/pull/3454 +sed('-i', /^ srcs = glob.*/, + 'srcs = glob(["*.ts", "**/*.ts"], exclude = ["internal/Rx.ts", "internal-compatibility/**", "internal/patching/**", "umd.ts"]),', + 'node_modules/rxjs/src/BUILD.bazel'); log('===== finished running the postinstall-patches.js script =====');