I am bundling a bunch of code using webpack esbuild to deploy as a lambda function. One of the functions does the migrations. However, because all of the code is bundled as a single file, the result is that node-pg-migrate cannot find the migration files.
E.g. TypeORM supports explicit array of migration classes.
Thanks.
I am bundling a bunch of code using
webpackesbuildto deploy as a lambda function. One of the functions does the migrations. However, because all of the code is bundled as a single file, the result is thatnode-pg-migratecannot find the migration files.E.g.
TypeORMsupports explicit array of migration classes.Thanks.