fix: read monorepo root pkg json

This commit is contained in:
zkldi
2022-08-18 04:07:37 +01:00
parent 27c920bb01
commit 1dd065cfcd
+2 -1
View File
@@ -51,8 +51,9 @@ const PORTISHEAD_DUMMY = [
const logger = CreateLogCtx(__filename);
// we want to read the monorepo root package.json.
const packageJSON = JSON.parse(
fs.readFileSync(path.join(__dirname, "../../../package.json"), "utf-8")
fs.readFileSync(path.join(__dirname, "../../../../package.json"), "utf-8")
) as { version: string };
const semverInfo = semver.parse(packageJSON.version);