mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
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:
parent
8d892160d3
commit
a384a983fa
@ -3,6 +3,7 @@
|
||||
"version": "0.0.1",
|
||||
"peerDependencies": {
|
||||
"@angular/common": "^<%= angularLatestVersion %>",
|
||||
"@angular/core": "^<%= angularLatestVersion %>"
|
||||
"@angular/core": "^<%= angularLatestVersion %>",
|
||||
"tslib": "^<%= tsLibLatestVersion %>"
|
||||
}
|
||||
}
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user