Skip to content

Commit 34bb57b

Browse files
alan-agius4filipesilva
authored andcommittedMay 20, 2020
fix(@schematics/angular): add tslib as a direct dependency for new libraries
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
1 parent ed40356 commit 34bb57b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎packages/schematics/angular/library/files/package.json.template

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"version": "0.0.1",
44
"peerDependencies": {
55
"@angular/common": "^<%= angularLatestVersion %>",
6-
"@angular/core": "^<%= angularLatestVersion %>",
6+
"@angular/core": "^<%= angularLatestVersion %>"
7+
},
8+
"dependencies": {
79
"tslib": "^<%= tsLibLatestVersion %>"
810
}
911
}

0 commit comments

Comments
 (0)
Please sign in to comment.