fix: error when an adapter tries to delete the SvelteKit build output - #16595
fix: error when an adapter tries to delete the SvelteKit build output#16595Nic-Polumeyv wants to merge 3 commits into
Conversation
|
Install the latest version of pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/265bc04c579a364bb4894b96ceac25e28d27481cOpen in Note This PR is from a fork. A maintainer must approve approve each commit before it can be built and installed. |
🦋 Changeset detectedLatest commit: 265bc04 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
969815d to
a68237b
Compare
|
This feels like overkill to me to be honest. Setting |
Fixes #16592
Setting
publish = ".svelte-kit/output/client"makes adapter-netlify delete the directory it then copies the client assets from, so the build exits 0 and deploys nothing. I originally guarded thepublishvalue inside adapter-netlify, then noticed adapter-node (out), adapter-static (pages/assets) and adapter-cloudflare (wranglerassets.directory/pages_build_output_dir) can be pointed at the same footgun, so the guard now lives onbuilder.rimrafinstead: it refuses to delete anything overlapping${outDir}/output, the directory adapters copy the build from.