feat(@schematics/angular): add tslib as a peerDependencies in library package.json

This is to align with https://github.com/angular/angular/pull/32167
This commit is contained in:
Alan Agius 2019-10-22 15:23:13 +02:00 committed by vikerman
parent 8d892160d3
commit a384a983fa
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^<%= angularLatestVersion %>",
"@angular/core": "^<%= angularLatestVersion %>"
"@angular/core": "^<%= angularLatestVersion %>",
"tslib": "^<%= tsLibLatestVersion %>"
}
}

View File

@ -211,6 +211,7 @@ export default function (options: LibraryOptions): Rule {
relativePathToWorkspaceRoot: relativePathToWorkspaceRoot(projectRoot),
prefix,
angularLatestVersion: latestVersions.Angular.replace('~', '').replace('^', ''),
tsLibLatestVersion: latestVersions.TsLib.replace('~', '').replace('^', ''),
folderName,
}),
move(projectRoot),