vite-plugin-node icon indicating copy to clipboard operation
vite-plugin-node copied to clipboard

How to handle the migration folder with vite config

Open mtt-artis opened this issue 2 years ago • 0 comments

I'm very interested in the repo. How do you handle the migration for the dB with vite ?

I use the kysely FileMigrationProvider which only require the path folder.

In dev mode, path.resolve() resolves on typescript files and cannot be properly handled by the migrator.

In the dist folder, the migration folder is not included because there is no direct import.

mtt-artis avatar Mar 08 '23 22:03 mtt-artis