From cbac12aa310848c2ce6da0decd5b38e657b0d7cb Mon Sep 17 00:00:00 2001 From: Nic Polumeyv <162764842+Nic-Polumeyv@users.noreply.github.com> Date: Mon, 21 Sep 2026 10:32:07 -0400 Subject: [PATCH] chore: let Netlify's bundler resolve Kit in the platform tests --- .github/workflows/platform-test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/platform-test.yml b/.github/workflows/platform-test.yml index be98e791dcf9..f7bce2859bfa 100644 --- a/.github/workflows/platform-test.yml +++ b/.github/workflows/platform-test.yml @@ -67,6 +67,13 @@ jobs: EDGE: ${{ inputs.variant == 'split-edge' }} run: pnpm build + # the Netlify CLI bundles the functions in the deploy job, which has no `node_modules` + - name: Copy Kit next to the Netlify functions + if: inputs.platform == 'netlify' + run: | + mkdir -p "$APP/.netlify/v1/node_modules/@sveltejs/kit" + cp -r packages/kit/package.json packages/kit/src "$APP/.netlify/v1/node_modules/@sveltejs/kit" + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: ${{ inputs.platform }}-${{ inputs.variant }}