File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ This document describes how to create a new release of SBB Angular.
66
77### Major release preparation
88
9- - See the TODO in file ` bazel-additional-stamp.mjs `
109- Update Angular packages to align with new angular major version.
1110- Update ng-update schematics.
1211- Update stackblitz assets.
Original file line number Diff line number Diff line change @@ -155,4 +155,19 @@ export const UPDATE_STEPS: UpdateStep[] = [
155155 <pre>ng update @sbb-esta/angular@21</pre>` ,
156156 ] ,
157157 } ,
158+ {
159+ from : 2100 ,
160+ to : 2200 ,
161+ actions : [
162+ `Update your Angular dependencies to version 22.x.x with "--force" flag (due to unmet peer dependencies).<br/>
163+ See <a href='https://update.angular.io'>update.angular.io</a> for a step-by-step guide for updating Angular.<br/>
164+ <pre>npx @angular/cli@22 update @angular/core@22 @angular/cli@22 --force</pre>` ,
165+
166+ `Update Angular CDK in a separate step to avoid dependency version resolving problems.<br/>
167+ <pre>npx @angular/cli@22 update @angular/cdk@22 --force</pre>` ,
168+
169+ `Finally, update SBB Angular.
170+ <pre>ng update @sbb-esta/angular@22</pre>` ,
171+ ] ,
172+ } ,
158173] ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export default async function (mode) {
1616 const scriptDir = path . dirname ( url . fileURLToPath ( import . meta. url ) ) ;
1717 const projectDir = path . join ( scriptDir , '../' ) ;
1818 const packageJsonRaw = await fs . promises . readFile ( path . join ( projectDir , 'package.json' ) ) ;
19- const { version : versionRaw } = JSON . parse ( packageJsonRaw ) ;
19+ const { version : versionRaw } = JSON . parse ( packageJsonRaw ) ;
2020 const version = semver . parse ( versionRaw ) ;
2121
2222 console . info ( `STABLE_FRAMEWORK_PEER_DEP_RANGE ${ computeFrameworkPeerDependency ( version ) } ` ) ;
@@ -50,7 +50,5 @@ function computeFrameworkPeerDependency(version) {
5050 ) ;
5151 }
5252
53- // TODO(mhaertwig): undo this change when releasing `@sbb-esta/angular` 22
54- // return `^${version.major}.0.0 || ^${version.major + 1}.0.0`;
55- return `^${ version . major } .1.0 || ^${ version . major + 1 } .0.0` ;
53+ return `^${ version . major } .0.0 || ^${ version . major + 1 } .0.0` ;
5654}
You can’t perform that action at this time.
0 commit comments