How to Drizzle Migrate?

You cannot run ts files without compiling them first, technically. But there are many tools that allow you to do it with a bit of magic in the background. My favourite is to use tsx for that. I personally setup my programmatic migrations with mjs to avoid this exact compilation problem
tsx
tsx (TypeScript Execute) - The easiest way to run TypeScript in Node.js
Was this page helpful?