Skip to content

Commit 50441e8

Browse files
chore: use absolute path for package.json
1 parent 63f2752 commit 50441e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/mockTests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { execSync } from 'child_process'
22
import { readFileSync } from 'fs'
3+
import {join} from "node:path";
34

4-
const pkg = JSON.parse(readFileSync('./package.json', 'utf8'))
5+
const pkg = JSON.parse(readFileSync(join(process.cwd(), 'package.json'), 'utf8'))
56

67
function getEnv(name: string) {
78
const value = process.env[name]

0 commit comments

Comments
 (0)