mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +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",
|
"version": "0.0.1",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^<%= angularLatestVersion %>",
|
"@angular/common": "^<%= angularLatestVersion %>",
|
||||||
"@angular/core": "^<%= angularLatestVersion %>"
|
"@angular/core": "^<%= angularLatestVersion %>",
|
||||||
|
"tslib": "^<%= tsLibLatestVersion %>"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -211,6 +211,7 @@ export default function (options: LibraryOptions): Rule {
|
|||||||
relativePathToWorkspaceRoot: relativePathToWorkspaceRoot(projectRoot),
|
relativePathToWorkspaceRoot: relativePathToWorkspaceRoot(projectRoot),
|
||||||
prefix,
|
prefix,
|
||||||
angularLatestVersion: latestVersions.Angular.replace('~', '').replace('^', ''),
|
angularLatestVersion: latestVersions.Angular.replace('~', '').replace('^', ''),
|
||||||
|
tsLibLatestVersion: latestVersions.TsLib.replace('~', '').replace('^', ''),
|
||||||
folderName,
|
folderName,
|
||||||
}),
|
}),
|
||||||
move(projectRoot),
|
move(projectRoot),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user