Skip to content

Commit d77d668

Browse files
josephperrottjelbourn
authored andcommitted
build: delete rxjs d.ts files referencing rxjs-compat (#17695)
1 parent 5d19e05 commit d77d668

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

tools/bazel/postinstall-patches.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,37 @@ searchAndReplace(/angular_compiler_options = {/, `$&
105105
"strictAttributeTypes": False,
106106
"strictDomEventTypes": False,`, 'node_modules/@angular/bazel/src/ng_module.bzl');
107107

108+
// More info in https://github.com/angular/angular/pull/33786
109+
shelljs.rm('-rf', [
110+
'node_modules/rxjs/add/',
111+
'node_modules/rxjs/observable/',
112+
'node_modules/rxjs/operator/',
113+
// rxjs/operators is a public entry point that also contains files to support legacy deep import
114+
// paths, so we need to preserve index.* and package.json files that are required for module
115+
// resolution.
116+
'node_modules/rxjs/operators/!(index.*|package.json)',
117+
'node_modules/rxjs/scheduler/',
118+
'node_modules/rxjs/symbol/',
119+
'node_modules/rxjs/util/',
120+
'node_modules/rxjs/internal/Rx.d.ts',
121+
'node_modules/rxjs/AsyncSubject.*',
122+
'node_modules/rxjs/BehaviorSubject.*',
123+
'node_modules/rxjs/InnerSubscriber.*',
124+
'node_modules/rxjs/interfaces.*',
125+
'node_modules/rxjs/Notification.*',
126+
'node_modules/rxjs/Observable.*',
127+
'node_modules/rxjs/Observer.*',
128+
'node_modules/rxjs/Operator.*',
129+
'node_modules/rxjs/OuterSubscriber.*',
130+
'node_modules/rxjs/ReplaySubject.*',
131+
'node_modules/rxjs/Rx.*',
132+
'node_modules/rxjs/Scheduler.*',
133+
'node_modules/rxjs/Subject.*',
134+
'node_modules/rxjs/SubjectSubscription.*',
135+
'node_modules/rxjs/Subscriber.*',
136+
'node_modules/rxjs/Subscription.*',
137+
]);
138+
108139
/**
109140
* Reads the specified file and replaces matches of the search expression
110141
* with the given replacement. Throws if no changes were made.

0 commit comments

Comments
 (0)