Skip to content

Commit

Permalink
chore(build): upgrade Angular peer dependency version
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Dec 28, 2020
1 parent f63d281 commit 111c0d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/update-version-numbers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function updateVersions(version: string) {
* Updates peerDependencies versions of NgRx packages in package.json files
*/
function createPackageJsonBuilder(version: string) {
const [major] = version.split('.');
return async () => {
glob
.sync('**/package.json', { ignore: '**/node_modules/**' })
Expand All @@ -71,6 +72,11 @@ function createPackageJsonBuilder(version: string) {
if (key.startsWith('@ngrx')) {
pkg.peerDependencies[key] = version;
saveFile = true;
} else if (key.startsWith('@angular')) {
// because the NgRx version is in sync with the Angular version
// we can also update the Angular dependencies
pkg.peerDependencies[key] = `^${major}.0.0`;
saveFile = true;
}
});
}
Expand Down

0 comments on commit 111c0d2

Please sign in to comment.