File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @CheckmarxDev/ast-cli-javascript-wrapper-runtime-cli" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.0 " ,
4
4
"description" : " AST CLI Javascript wrapper runtime CLI" ,
5
5
"main" : " dist/main/wrapper/CxWrapper.js" ,
6
6
"typings" : " dist/main/wrapper/CxWrapper.d.ts" ,
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export class CxInstaller {
112
112
return this . cliVersion ;
113
113
}
114
114
try {
115
- const versionFilePath = path . join ( 'checkmarx-ast-cli.version' ) ;
115
+ const versionFilePath = this . getVersionFilePath ( ) ;
116
116
const versionContent = await fsPromises . readFile ( versionFilePath , 'utf-8' ) ;
117
117
return versionContent . trim ( ) ;
118
118
} catch ( error ) {
@@ -121,6 +121,10 @@ export class CxInstaller {
121
121
}
122
122
}
123
123
124
+ private getVersionFilePath ( ) : string {
125
+ return path . join ( __dirname , '../../../checkmarx-ast-cli.version' ) ;
126
+ }
127
+
124
128
private getCompressFolderName ( ) : string {
125
129
return `ast-cli.${ this . platform === 'win32' ? 'zip' : 'tar.gz' } ` ;
126
130
}
You can’t perform that action at this time.
0 commit comments