Skip to content

Commit

Permalink
chore: fix release script (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi authored Dec 2, 2024
1 parent cefd17a commit 912f922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/lib/changesets-util.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import getReleasePlan from "@changesets/get-release-plan";
import path from "path";

const dirname = path.dirname(new URL(import.meta.url).pathname);

/** Get new version string from changesets */
export async function getNewVersion(): Promise<string> {
const releasePlan = await getReleasePlan(path.resolve(__dirname, "../.."));
const releasePlan = await getReleasePlan(path.resolve(dirname, "../.."));

return releasePlan.releases.find(
({ name }) => name === "svelte-eslint-parser",
Expand Down

0 comments on commit 912f922

Please sign in to comment.