How to reuse a $lib
outside of the SvelteKit build?
#10985
-
Let's say that at the root of my project I have a "./scripts" folder. In this "./scripts" folder, I have a bunch of one-off scripts that I run via For instance, "./scripts/clear-db", could import one of my
This could be easily fixed by simply specifying the full relative path to the module: But then the problem is that if "./src/lib/server/db" itself, or any other file that it imports, or that those other files import, use a It seems like the only way to not have this issue is to never use What's the best way to reuse a Thanks for the help 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can use vite-node |
Beta Was this translation helpful? Give feedback.
You can use vite-node