File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
packages/automatic-versioning Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @sliit-foss/automatic-versioning" ,
3
- "version" : " 3.0.1 " ,
3
+ "version" : " 3.0.2 " ,
4
4
"description" : " A script which will automatically increment your app package version in accordance with conventional commits" ,
5
5
"main" : " dist/index.js" ,
6
6
"bin" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -23,14 +23,9 @@ const getCurrentVersion = async () =>
23
23
24
24
const getPackageVersion = ( name : string , disableAutoSync : boolean ) => {
25
25
if ( ! disableAutoSync ) {
26
- try {
27
- return run ( `npm view ${ name } version` ) ;
28
- } catch ( e ) {
29
- return getCurrentVersion ( ) ;
30
- }
31
- } else {
32
- return getCurrentVersion ( ) ;
26
+ return run ( `npm view ${ name } version` ) . catch ( getCurrentVersion ) ;
33
27
}
28
+ return getCurrentVersion ( ) ;
34
29
} ;
35
30
36
31
const runner = (
You can’t perform that action at this time.
0 commit comments