How to run migrations that is inside node_modules?
I have created a package for my application that I can install for my main application, the package has it's own schema and migrations. If I install the package in my application how would I run the migration if it is inside the node_modules?
1 Reply
what worked for me, but still needs a review from people who know what they are doing is I had to manually copy the migrations to the dist/ folder before packaging the library and configure migrationsFolder to be like
./node_modules/@company/my-library/dist/db/drizzle