Skip to content

Commit 41166b7

Browse files
alan-agius4jelbourn
authored andcommitted
feat: change tslib from direct dependency to peerDependency (#17393)
BREAKING CHANGE: We no longer directly have a direct depedency on `tslib`. Instead it is now listed a `peerDependency`. Users not using the CLI will need to manually install `tslib` via; ``` yarn add tslib ``` or ``` npm install tslib --save ``` Reference: TOOL-836
1 parent f065977 commit 41166b7

File tree

6 files changed

+12
-24
lines changed

6 files changed

+12
-24
lines changed

src/cdk-experimental/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"homepage": "https://github.com/angular/components#readme",
2222
"peerDependencies": {
2323
"@angular/cdk": "0.0.0-PLACEHOLDER",
24-
"@angular/core": "0.0.0-NG"
25-
},
26-
"dependencies": {
27-
"tslib": "^1.7.1"
24+
"@angular/core": "0.0.0-NG",
25+
"tslib": "^1.9.0"
2826
}
2927
}

src/cdk/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
"homepage": "https://github.com/angular/components#readme",
2929
"peerDependencies": {
3030
"@angular/core": "0.0.0-NG",
31-
"@angular/common": "0.0.0-NG"
32-
},
33-
"dependencies": {
34-
"tslib": "^1.7.1"
31+
"@angular/common": "0.0.0-NG",
32+
"tslib": "^1.9.0"
3533
},
3634
"optionalDependencies": {
3735
"parse5": "^5.0.0"

src/material-examples/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
"@angular/common": "0.0.0-NG",
3434
"@angular/material": "0.0.0-PLACEHOLDER",
3535
"@angular/material-experimental": "0.0.0-PLACEHOLDER",
36-
"@angular/material-moment-adapter": "0.0.0-PLACEHOLDER"
37-
},
38-
"dependencies": {
39-
"tslib": "^1.7.1"
36+
"@angular/material-moment-adapter": "0.0.0-PLACEHOLDER",
37+
"tslib": "^1.9.0"
4038
}
4139
}

src/material-experimental/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
"peerDependencies": {
2323
"@angular/core": "0.0.0-NG",
2424
"@angular/material": "0.0.0-PLACEHOLDER",
25-
"material-components-web": "0.0.0-MDC"
26-
},
27-
"dependencies": {
28-
"tslib": "^1.7.1"
25+
"material-components-web": "0.0.0-MDC",
26+
"tslib": "^1.9.0"
2927
}
3028
}

src/material-moment-adapter/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@
2222
"peerDependencies": {
2323
"@angular/material": "0.0.0-PLACEHOLDER",
2424
"@angular/core": "0.0.0-NG",
25-
"moment": "^2.18.1"
26-
},
27-
"dependencies": {
28-
"tslib": "^1.7.1"
25+
"moment": "^2.18.1",
26+
"tslib": "^1.9.0"
2927
},
3028
"ng-update": {
3129
"packageGroup": [

src/material/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@
3030
"@angular/cdk": "0.0.0-PLACEHOLDER",
3131
"@angular/core": "0.0.0-NG",
3232
"@angular/common": "0.0.0-NG",
33-
"@angular/forms": "0.0.0-NG"
34-
},
35-
"dependencies": {
36-
"tslib": "^1.7.1"
33+
"@angular/forms": "0.0.0-NG",
34+
"tslib": "^1.9.0"
3735
},
3836
"schematics": "./schematics/collection.json",
3937
"ng-update": {

0 commit comments

Comments
 (0)