From ab4ef9cf5130bb30169e60444331352365f68ba6 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 4 Mar 2022 15:42:24 -0500 Subject: [PATCH 1/3] use src version locally --- sites/kit.svelte.dev/package.json | 6 +++--- sites/kit.svelte.dev/svelte-kit.js | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 sites/kit.svelte.dev/svelte-kit.js diff --git a/sites/kit.svelte.dev/package.json b/sites/kit.svelte.dev/package.json index 497427af6a9b..a542e35668fd 100644 --- a/sites/kit.svelte.dev/package.json +++ b/sites/kit.svelte.dev/package.json @@ -2,10 +2,10 @@ "name": "kit.svelte.dev", "version": "0.0.1", "scripts": { - "dev": "svelte-kit dev", - "build": "svelte-kit build --verbose", + "dev": "node ./svelte-kit.js dev", + "build": "node ./svelte-kit.js build --verbose", "prebuild": "test \"$CI\" = true && npx pnpm install --store=node_modules/.pnpm-store || echo skipping pnpm install", - "preview": "svelte-kit preview" + "preview": "node ./svelte-kit.js preview" }, "devDependencies": { "@sveltejs/adapter-auto": "workspace:*", diff --git a/sites/kit.svelte.dev/svelte-kit.js b/sites/kit.svelte.dev/svelte-kit.js new file mode 100644 index 000000000000..5f6cfa80fdf6 --- /dev/null +++ b/sites/kit.svelte.dev/svelte-kit.js @@ -0,0 +1,14 @@ +import { spawn } from 'child_process'; +import { fileURLToPath } from 'url'; + +const [node, , ...args] = process.argv; +const mode = process.env.CI ? 'dist' : 'src'; +const bin = fileURLToPath(new URL(`../../packages/kit/${mode}/cli.js`, import.meta.url)); + +const child = spawn(node, [bin, ...args], { + stdio: 'inherit' +}); + +if (child) { + child.on('exit', process.exit); +} From 96fe901988218553dcdd3a97ca6355de1c8139b9 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 4 Mar 2022 16:43:33 -0500 Subject: [PATCH 2/3] workaround #4216 --- .../kit.svelte.dev/src/routes/__layout.svelte | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sites/kit.svelte.dev/src/routes/__layout.svelte b/sites/kit.svelte.dev/src/routes/__layout.svelte index 0bd41e871f7e..b84b63815d9f 100644 --- a/sites/kit.svelte.dev/src/routes/__layout.svelte +++ b/sites/kit.svelte.dev/src/routes/__layout.svelte @@ -47,17 +47,6 @@ -
- {#if w < 830} - We stand with Ukraine. - Donate → - {:else} - We stand with Ukraine. - Petition your leaders. Show your support. - {/if} -
@@ -67,6 +56,18 @@ {/if}
+ +
+ {#if w < 830} + We stand with Ukraine. + Donate → + {:else} + We stand with Ukraine. + Petition your leaders. Show your support. + {/if} +
+
+