fix: svelte.dev site scripts filepath generation (#9273)

pull/9296/head
Rubin Raithel 10 months ago committed by GitHub
parent e42b961bd2
commit 9ffe07da2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,7 +65,9 @@ try {
await sprite await sprite
.quality(80) .quality(80)
.writeAsync( .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]`; const str = `[\n\t${authors.map((a) => `'${a.login}'`).join(',\n\t')}\n]`;

@ -59,7 +59,7 @@ try {
await sprite await sprite
.quality(80) .quality(80)
.writeAsync( .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]`; const str = `[\n\t${included.map((a) => `${JSON.stringify(a.backer.name)}`).join(',\n\t')}\n]`;

Loading…
Cancel
Save