Skip to content

Commit

Permalink
fix: svelte.dev site scripts filepath generation (#9273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coronon committed Oct 4, 2023
1 parent e42b961 commit 9ffe07d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sites/svelte.dev/scripts/get_contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ try {
await sprite
.quality(80)
.writeAsync(
new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url).pathname
fileURLToPath(
new URL(`../src/routes/_components/Supporters/contributors.jpg`, import.meta.url)
)
);

const str = `[\n\t${authors.map((a) => `'${a.login}'`).join(',\n\t')}\n]`;
Expand Down
2 changes: 1 addition & 1 deletion sites/svelte.dev/scripts/get_donors.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ try {
await sprite
.quality(80)
.writeAsync(
new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url).pathname
fileURLToPath(new URL(`../src/routes/_components/Supporters/donors.jpg`, import.meta.url))
);

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

1 comment on commit 9ffe07d

@vercel
Copy link

@vercel vercel bot commented on 9ffe07d Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.