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,17 +6,15 @@ export async function overrideAngularVersions(
66 angularVersions : PackageJsonVersion ,
77 path : string
88) : Promise < void > {
9- try {
10- const rawData = fs . readFileSync ( path ) ;
11- let packageJson : PackageJsonVersion = JSON . parse ( rawData . toString ( ) ) ;
12- packageJson = { ...packageJson , ...angularVersions } ;
13- core . debug (
14- `Depedencies merge in package.json: \nr ${ JSON . stringify (
15- packageJson ,
16- null ,
17- 2
18- ) } `
19- ) ;
20- fs . writeFileSync ( path , JSON . stringify ( packageJson ) ) ;
21- } catch ( error ) { }
9+ const rawData = fs . readFileSync ( path ) ;
10+ let packageJson : PackageJsonVersion = JSON . parse ( rawData . toString ( ) ) ;
11+ packageJson = { ...packageJson , ...angularVersions } ;
12+ core . debug (
13+ `Depedencies merge in package.json: \n ${ JSON . stringify (
14+ packageJson ,
15+ null ,
16+ 2
17+ ) } `
18+ ) ;
19+ fs . writeFileSync ( path , JSON . stringify ( packageJson ) ) ;
2220}
You can’t perform that action at this time.
0 commit comments