Skip to content

Commit 697c64f

Browse files
committed
fixup!
1 parent c9729f1 commit 697c64f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.changeset/changeset-validate.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ import fs from "node:fs/promises";
33
import path from "node:path";
44
import { fileURLToPath } from "node:url";
55
import { simpleGit } from "simple-git";
6-
import pkgJson from "../package.json" with { type: "json" };
76

87
const __dirname = path.dirname(fileURLToPath(import.meta.url));
98
const rootPath = path.join(__dirname, "..");
109
const git = simpleGit(rootPath);
1110

11+
const pkgJson = JSON.parse(
12+
await fs.readFile(path.join(rootPath, "package.json"), "utf8"),
13+
);
14+
1215
const VALID_BUMPS = new Set(["major", "minor", "patch"]);
1316
const FRONTMATTER_RE = /^---\r?\n([\s\S]*?)\r?\n---(?:\r?\n|$)/;
1417
const ENTRY_RE = /^"([^"]+)"\s*:\s*([a-zA-Z]+)\s*$/;

0 commit comments

Comments
 (0)