Closed alexgleason closed 6 months ago
We specifically removed sql
from the Kysely instance to make it a free function.
Kysely is not a dev dependency if you use it in the non-dev part of the project. It's a real dependency (or a peer dependency) if your package depends on it.
I'm building a project where Kysely is only a devDependency. Functions accept
Kysely
instances, whereKysely
is used only as a type.But since
sql
is a separate import, I have to make Kysely a peerDependency to use it:What I want is the ability to do this:
After a lot of digging this is the closest thing I've come up with... which I think works?? But is insane: