Skip to content

Commit 912f922

Browse files
authored
chore: fix release script (#610)
1 parent cefd17a commit 912f922

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/lib/changesets-util.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import getReleasePlan from "@changesets/get-release-plan";
22
import path from "path";
33

4+
const dirname = path.dirname(new URL(import.meta.url).pathname);
5+
46
/** Get new version string from changesets */
57
export async function getNewVersion(): Promise<string> {
6-
const releasePlan = await getReleasePlan(path.resolve(__dirname, "../.."));
8+
const releasePlan = await getReleasePlan(path.resolve(dirname, "../.."));
79

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy