File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,15 @@ export async function overrideAngularVersions(
6
6
angularVersions : PackageJsonVersion ,
7
7
path : string
8
8
) : 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 ) ) ;
22
20
}
You can’t perform that action at this time.
0 commit comments