Skip to content

Commit a384a98

Browse files
alan-agius4vikerman
authored andcommitted
feat(@schematics/angular): add tslib as a peerDependencies in library package.json
This is to align with angular/angular#32167
1 parent 8d89216 commit a384a98

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.1",
44
"peerDependencies": {
55
"@angular/common": "^<%= angularLatestVersion %>",
6-
"@angular/core": "^<%= angularLatestVersion %>"
6+
"@angular/core": "^<%= angularLatestVersion %>",
7+
"tslib": "^<%= tsLibLatestVersion %>"
78
}
89
}

packages/schematics/angular/library/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export default function (options: LibraryOptions): Rule {
211211
relativePathToWorkspaceRoot: relativePathToWorkspaceRoot(projectRoot),
212212
prefix,
213213
angularLatestVersion: latestVersions.Angular.replace('~', '').replace('^', ''),
214+
tsLibLatestVersion: latestVersions.TsLib.replace('~', '').replace('^', ''),
214215
folderName,
215216
}),
216217
move(projectRoot),

0 commit comments

Comments
 (0)