Skip to content

Commit 6626fee

Browse files
authored
build: add peer dependency to rxjs (#22471)
Adds a peer dependency to `rxjs` to all packages since not having it can mess with Yarn 2's PnP feature.
1 parent 58b4ab6 commit 6626fee

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

packages.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
ANGULAR_PACKAGE_VERSION = "^12.0.0-0 || ^13.0.0-0"
55
MDC_PACKAGE_VERSION = "^11.0.0-canary.15604bd0d.0"
66
TSLIB_PACKAGE_VERSION = "^2.1.0"
7+
RXJS_PACKAGE_VERSION = "^6.5.3"
78

89
# Each placer holder is used to stamp versions during the build process, replacing the key with it's
910
# value pair. These replacements occur during building of `npm_package` and `ng_package` stamping in
@@ -17,6 +18,8 @@ VERSION_PLACEHOLDER_REPLACEMENTS = {
1718
"0.0.0-TSLIB": TSLIB_PACKAGE_VERSION,
1819
# Version of the local package being built, generated via the `--workspace_status_command` flag.
1920
"0.0.0-PLACEHOLDER": "{BUILD_SCM_VERSION}",
21+
# Version of `rxjs`
22+
"0.0.0-RXJS": RXJS_PACKAGE_VERSION,
2023
}
2124

2225
# List of default Angular library UMD bundles which are not processed by ngcc.

src/cdk/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"homepage": "https://github.com/angular/components#readme",
2121
"peerDependencies": {
2222
"@angular/core": "0.0.0-NG",
23-
"@angular/common": "0.0.0-NG"
23+
"@angular/common": "0.0.0-NG",
24+
"rxjs": "0.0.0-RXJS"
2425
},
2526
"dependencies": {
2627
"tslib": "0.0.0-TSLIB"

src/google-maps/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"peerDependencies": {
2424
"@angular/core": "0.0.0-NG",
25-
"@angular/common": "0.0.0-NG"
25+
"@angular/common": "0.0.0-NG",
26+
"rxjs": "0.0.0-RXJS"
2627
},
2728
"sideEffects": false,
2829
"publishConfig": {

src/material/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"@angular/cdk": "0.0.0-PLACEHOLDER",
2323
"@angular/core": "0.0.0-NG",
2424
"@angular/common": "0.0.0-NG",
25-
"@angular/forms": "0.0.0-NG"
25+
"@angular/forms": "0.0.0-NG",
26+
"rxjs": "0.0.0-RXJS"
2627
},
2728
"dependencies": {
2829
"tslib": "0.0.0-TSLIB"

src/youtube-player/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
},
2323
"peerDependencies": {
2424
"@angular/core": "0.0.0-NG",
25-
"@angular/common": "0.0.0-NG"
25+
"@angular/common": "0.0.0-NG",
26+
"rxjs": "0.0.0-RXJS"
2627
},
2728
"sideEffects": false,
2829
"publishConfig":{

0 commit comments

Comments
 (0)