From a225b484821ae0bb334a44ffc558093536783350 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 8 Mar 2018 20:39:41 -0800 Subject: [PATCH] build: introduce a temporary patch to make node_modules/rxjs compile with typescript 2.7 (#22669) This patch can be removed once we update to rxjs v6. See #22573. PR Close #22669 --- tools/postinstall-patches.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/postinstall-patches.js b/tools/postinstall-patches.js index 4638fff435..ba5509510e 100644 --- a/tools/postinstall-patches.js +++ b/tools/postinstall-patches.js @@ -9,5 +9,11 @@ set('-v'); // jump to project root cd(path.join(__dirname, '../')); +// https://github.com/ReactiveX/rxjs/pull/3302 +// make node_modules/rxjs compilable with Typescript 2.7 +// remove when we update to rxjs v6 +console.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") + console.log('===== finished running the postinstall.js script =====');