From 912f922f4ab7ad56af55a479a7d03e8b93ec0763 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Mon, 2 Dec 2024 09:19:21 +0900 Subject: [PATCH] chore: fix release script (#610) --- tools/lib/changesets-util.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lib/changesets-util.ts b/tools/lib/changesets-util.ts index 709fbead..823dcee8 100644 --- a/tools/lib/changesets-util.ts +++ b/tools/lib/changesets-util.ts @@ -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 { - const releasePlan = await getReleasePlan(path.resolve(__dirname, "../..")); + const releasePlan = await getReleasePlan(path.resolve(dirname, "../..")); return releasePlan.releases.find( ({ name }) => name === "svelte-eslint-parser",