Installing dependencies with only package.json (and lockfile) present fails #4366
Labels
bug
Something isn't working
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
Milestone
Describe the bug
As noted here, when dependencies are installed when only
package.json
(and a lockfile) are present results in a failure during@sveltejs/kit
'sprepare
script, which runssvelte-kit sync
, which expects a full app to be present. Installing in this way is common when using multi-stage Docker builds, to optimize layer caching.Reproduction
package.json
Logs
System Info
Severity
blocking an upgrade
Additional Information
Making
svelte-kit sync
a no-op when there's nosvelte.config.js
might be a step in the right direction, but I'm not positive that would be enough.Maybe, when using Docker, the next build stage would have to run
svelte-kit sync
before it runssvelte-kit build
? I'm not sure whethersync
does anything thatbuild
wouldn't.The text was updated successfully, but these errors were encountered: