packing migration files with the library

hey there, I'm trying to use migrate inside from a library consumer (i.e I have a @mycompany/db-lib that has doMigration and from my internal dev-app, I want to do something like:
import { doMigrate } from '@mycompany/db-lib'

export const onMigrateClick = () => {
doMigrate()
}
import { doMigrate } from '@mycompany/db-lib'

export const onMigrateClick = () => {
doMigrate()
}
how could I refer to the migration sql files and _meta files inside @mycompany/db-lib ? I guess I should also include them in the lib somehow... maybe use an import-like mechanism to include the folder in the built directory?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server