refactor: update to tslib 2.0 and move to direct dependencies (#37198)

Tslib version is bound to the TypeScript version used to compile the library. Thus, we shouldn't list `tslib` as a  `peerDependencies`. This is because, a user can install libraries which have been compiled with older versions of TypeScript and thus require multiple `tslib` versions to be installed.

Reference: TOOL-1374 and TOOL-1375

Closes: #37188

PR Close #37198
This commit is contained in:
Alan Agius
2020-05-19 14:35:37 +02:00
committed by Kara Erickson
parent 8f1d0c317e
commit 772c5b8f64
24 changed files with 250 additions and 144 deletions

View File

@ -4,8 +4,8 @@
"description": "Angular - the compiler library",
"author": "angular",
"license": "MIT",
"peerDependencies": {
"tslib": "^1.10.0"
"dependencies": {
"tslib": "^2.0.0"
},
"repository": {
"type": "git",