Skip to content

Commit 81d3d09

Browse files
committed
fix package.json
1 parent 12427d5 commit 81d3d09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"files": [
88
"dist/main/**/*",
99
"README.md",
10-
"dist/checkmarx-ast-cli.version"
10+
"checkmarx-ast-cli.version"
1111
],
1212
"dependencies": {
1313
"async-mutex": "^0.5.0",
@@ -19,7 +19,7 @@
1919
},
2020
"scripts": {
2121
"build": "tsc",
22-
"postbuild": "copyfiles -u 1 src/main/wrapper/resources/cx* dist/;copyfiles -u 1 src/tests/data/* dist/;copyfiles -u 0 checkmarx-ast-cli.version dist/",
22+
"postbuild": "copyfiles -u 1 src/tests/data/* dist/;",
2323
"lint": "eslint . --ext .ts",
2424
"lint-and-fix": "eslint . --ext .ts --fix",
2525
"test": "copyfiles -u 1 src/tests/data/* dist/; tsc && jest --runInBand"

src/main/osinstaller/CxInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class CxInstaller {
111111
return this.cliVersion;
112112
}
113113
try {
114-
const versionFilePath = path.join(process.cwd(), 'checkmarx-ast-cli.version');
114+
const versionFilePath = path.join('checkmarx-ast-cli.version');
115115
const versionContent = await fsPromises.readFile(versionFilePath, 'utf-8');
116116
return versionContent.trim();
117117
} catch (error) {

0 commit comments

Comments
 (0)