-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure output directory (currently fixed to ".svelte-kit") #4052
Comments
I couldn't find any existing bug report/feature request for this, which surprises me. I hope I am not duplicating things here. Feel free to close if there's already a similar issue. |
The directory is used for more than Vite builds, so we can't use |
Can't we use |
I have a preference for |
Figuring the same issue for adding sveltekit to https://github.com/jhipster, as a monorepo project generator, while we can't change the output dir, we can't merge the sveltekit pr |
It would be a great help to create a better Nx integration |
Finaly found a workarround using adapter-static
|
@Rich-Harris You wanted to keep this open until the case of |
I did, yeah — closed by accident. An |
FYI it doesn't work for me, with this config
it throws a warning, runs for a bit, then dies with
|
I'm also getting |
A basic svelte example. Replaces #1184 and #244 **NOTE**: There is no shared `ts-config` package here because of how svelte sets up it's ts-config inheritance. The base config is auto generated in a set location (`.svelte-kit`). There are a few open issues about adjusting this for better monorepo support (relevant issues: sveltejs/kit#4052, microsoft/TypeScript#29118 (comment))
Getting the same error as reported by @gotofritz when setting the I guess a possible workaround for now would be to extend the build command under the E.g. directly move the output after the build with something like: rm -rf ../custom/outside/out/* && mv build/* ../custom/outside/out/ && rm -rf build Which clears the output directory, moves over all build files and then removes the real build folder. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
A basic svelte example. Replaces vercel/turborepo#1184 and vercel/turborepo#244 **NOTE**: There is no shared `ts-config` package here because of how svelte sets up it's ts-config inheritance. The base config is auto generated in a set location (`.svelte-kit`). There are a few open issues about adjusting this for better monorepo support (relevant issues: sveltejs/kit#4052, microsoft/TypeScript#29118 (comment))
Is this still not resolved, because the docs said it should work but the link to I'm guessing @flcarre & @devidw solutions are still the winners until this becomes more priority? I will say the svelte and Vite config files have multiple output directory properties and none of them work when you try it which is extremely frustrating for new comers. |
This comment was marked as off-topic.
This comment was marked as off-topic.
https://kit.svelte.dev/docs/configuration#outdir The If you are looking to change where your final build is output to, see the |
Describe the problem
In monorepos, builds are often centralized into a single top-level build directory.
Is there anything that prevents that change from being innocent and simple?
Describe the proposed solution
In order for svelte-kit to support that, the
SVELTE_KIT
constant inconstants.js
should be replaced by a configuration option.setting the
kit.vite.build.outDir
options prints an error:should the vite option be used, or should there be svelte-kit specific option?
Importance
nice to have
The text was updated successfully, but these errors were encountered: