-
-
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
Should allow apps that are in subdirectories #2022
Comments
you could do it with |
Thanks for the suggestion. If I get too annoyed with constantly doing the alternative steps I mentioned in my OP and if svelte kit has not implemented this feature, I'll definitely give it a try. For now I'll just wait. I do think it should be a built-in feature as it seems pretty basic to me (I don't know about the implementation though). |
You could also set all the |
Describe the problem
We should be able to run
svelte-kit dev
from the root level and have the app in a subdirectory. E.g./package.json
and/my-app/src
This assumes that at a minimum
package.json
is at the root level so that packages are installed in the rootnode_modules
and that you can run npm scripts when the root dir is your cwd.The
kit.paths.base
and thekit.vite.root
configurations do not accomplish this per my testing.Describe the proposed solution
There should be a cli option or
svelte.config.js
param that would allow apps in subdirectories.Alternatives considered
The alternative is:
cd
ing in the subdirectory when you need to run commandsnode_modules
/package.json
in your project (1 at root level and 1 in the subdir)Importance
Would make my life easier
Additional Information
The context of this request is when you just want to supplement your current project with a svelte component.
Let's say I have an electron app and would like a svelte component to reside in a subdir at the root of the project.
The text was updated successfully, but these errors were encountered: