Skip to content

Commit

Permalink
fix(@schematics/angular): add tslib as a direct dependency for new li…
Browse files Browse the repository at this point in the history
…braries

Tslib version is bound to the TypeScript version used to comopile 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
  • Loading branch information
alan-agius4 authored and filipesilva committed May 20, 2020
1 parent ed40356 commit 34bb57b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^<%= angularLatestVersion %>",
"@angular/core": "^<%= angularLatestVersion %>",
"@angular/core": "^<%= angularLatestVersion %>"
},
"dependencies": {
"tslib": "^<%= tsLibLatestVersion %>"
}
}

0 comments on commit 34bb57b

Please sign in to comment.