Skip to content

Commit 9ffe07d

Browse files
authored
fix: svelte.dev site scripts filepath generation (#9273)
1 parent e42b961 commit 9ffe07d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sites/svelte.dev/scripts/get_contributors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ try {
6565
await sprite
6666
.quality(80)
6767
.writeAsync(
68-
new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url).pathname
68+
fileURLToPath(
69+
new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url)
70+
)
6971
);
7072

7173
const str = `[\n\t${authors.map((a) => `'${a.login}'`).join(',\n\t')}\n]`;

sites/svelte.dev/scripts/get_donors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ try {
5959
await sprite
6060
.quality(80)
6161
.writeAsync(
62-
new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url).pathname
62+
fileURLToPath(new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url))
6363
);
6464

6565
const str = `[\n\t${included.map((a) => `${JSON.stringify(a.backer.name)}`).join(',\n\t')}\n]`;

0 commit comments

Comments
 (0)