Skip to content

Commit d5c7141

Browse files
committed
fix: no import from json
fixes idrinth-api-bench/issues#1127
1 parent 82903d0 commit d5c7141

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@idrinth-api-bench/framework",
33
"description": "A library to benchmark apis, no matter if rest or soap",
44
"license": "MIT",
5-
"version": "1.0.7",
5+
"version": "1.0.8",
66
"type": "module",
77
"main": "index.js",
88
"homepage": "https://idrinth-api-ben.ch",

src/cli/cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import {
33
STATUSCODE_SUCCESS,
44
STATUSCODE_FAILURE,
5-
ONE, FRAMEWORK_ROOT,
5+
ONE,
6+
FRAMEWORK_ROOT,
67
} from '../constants.js';
78
import resultStore from '../store/result-store.js';
89
import run from '../main.js';
@@ -49,7 +50,7 @@ export default async(args: string[], cwd: string,): Promise<number> => {
4950
console.error('NOT YET IMPLEMENTED',);
5051
return STATUSCODE_FAILURE;
5152
default:
52-
const pkg = JSON.parse(readFileSync(FRAMEWORK_ROOT + 'package.json', 'utf8'));
53+
const pkg = JSON.parse(readFileSync(FRAMEWORK_ROOT + '/package.json', 'utf8'));
5354
console.log(
5455
`@idrinth-api-bench/framework v${ pkg.version }`,
5556
);

0 commit comments

Comments
 (0)