Skip to content

Commit 3ef7727

Browse files
committed
fix: no import from json
fixes idrinth-api-bench/issues#1127
1 parent d5d065d commit 3ef7727

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import {
33
STATUSCODE_SUCCESS,
44
STATUSCODE_FAILURE,
5-
ONE,
5+
ONE, FRAMEWORK_ROOT,
66
} from '../constants.js';
77
import resultStore from '../store/result-store.js';
88
import run from '../main.js';
@@ -49,7 +49,7 @@ export default async(args: string[], cwd: string,): Promise<number> => {
4949
console.error('NOT YET IMPLEMENTED',);
5050
return STATUSCODE_FAILURE;
5151
default:
52-
const pkg = JSON.parse(readFileSync('../../package.json', 'utf8'));
52+
const pkg = JSON.parse(readFileSync(FRAMEWORK_ROOT + 'package.json', 'utf8'));
5353
console.log(
5454
`@idrinth-api-bench/framework v${ pkg.version }`,
5555
);

0 commit comments

Comments
 (0)