feat: change tslib from direct dependency to peerDependency (#32167)

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
```

PR Close #32167
This commit is contained in:
Alan Agius 2019-10-09 16:08:16 +02:00 committed by Miško Hevery
parent 868b3f9463
commit e2d5bc2514
16 changed files with 31 additions and 55 deletions

View File

@ -12,11 +12,9 @@
"typings": "./animations.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER"
"@angular/core": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,13 +12,11 @@
"typings": "./common.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"locales": "locales",
"peerDependencies": {
"rxjs": "^6.5.3",
"@angular/core": "0.0.0-PLACEHOLDER"
"@angular/core": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -20,11 +20,11 @@
"magic-string": "^0.25.0",
"semver": "^6.3.0",
"source-map": "^0.6.1",
"tslib": "^1.9.0",
"yargs": "13.1.0"
},
"peerDependencies": {
"@angular/compiler": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0",
"typescript": ">=3.4 <3.6"
},
"engines": {

View File

@ -12,7 +12,7 @@
"typings": "./compiler.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"peerDependencies": {
"tslib": "^1.9.0"
},
"repository": {

View File

@ -12,11 +12,9 @@
"typings": "./core.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"rxjs": "^6.5.3",
"tslib": "^1.9.0",
"zone.js": "~0.10.2"
},
"repository": {

View File

@ -12,13 +12,11 @@
"typings": "./elements.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"rxjs": "^6.5.3"
"rxjs": "^6.5.3",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,14 +12,12 @@
"typings": "./forms.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"rxjs": "^6.5.3",
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER"
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"rxjs": "^6.5.3",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,13 +12,11 @@
"typings": "./http.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"rxjs": "^6.5.3",
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER"
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"rxjs": "^6.5.3",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,14 +12,12 @@
"typings": "./platform-browser-dynamic.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/compiler": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER"
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,12 +12,10 @@
"typings": "./platform-browser.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER"
"@angular/common": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -18,11 +18,11 @@
"@angular/compiler": "0.0.0-PLACEHOLDER",
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"@angular/platform-browser-dynamic": "0.0.0-PLACEHOLDER"
"@angular/platform-browser-dynamic": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"dependencies": {
"domino": "^2.1.2",
"tslib": "^1.9.0",
"xhr2": "^0.1.4"
},
"repository": {

View File

@ -12,15 +12,13 @@
"typings": "./platform-webworker-dynamic.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/compiler": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"@angular/platform-webworker": "0.0.0-PLACEHOLDER"
"@angular/platform-webworker": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,13 +12,11 @@
"typings": "./platform-webworker.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER"
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -25,13 +25,13 @@
},
"homepage": "https://github.com/angular/angular/tree/master/packages/router",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"rxjs": "^6.5.3"
"rxjs": "^6.5.3",
"tslib": "^1.9.0"
},
"ng-update": {
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"

View File

@ -12,12 +12,10 @@
"typings": "./service-worker.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/common": "0.0.0-PLACEHOLDER"
"@angular/common": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",

View File

@ -12,14 +12,12 @@
"typings": "./upgrade.d.ts",
"author": "angular",
"license": "MIT",
"dependencies": {
"tslib": "^1.9.0"
},
"peerDependencies": {
"@angular/core": "0.0.0-PLACEHOLDER",
"@angular/compiler": "0.0.0-PLACEHOLDER",
"@angular/platform-browser": "0.0.0-PLACEHOLDER",
"@angular/platform-browser-dynamic": "0.0.0-PLACEHOLDER"
"@angular/platform-browser-dynamic": "0.0.0-PLACEHOLDER",
"tslib": "^1.9.0"
},
"repository": {
"type": "git",