The backend project contains all the pg-migrate stuff.
Npm defaultly installs all node_modules into the root project and only duplicates into the single project folders.
This makes the load of plugin fail if pg-migrate is started from within the backend project, because of this line:
I'm submitting a...
Current behavior
I have a npm monorepo like:
The
backend
project contains all the pg-migrate stuff. Npm defaultly installs all node_modules into the root project and only duplicates into the single project folders.This makes the load of plugin fail if pg-migrate is started from within the
backend
project, because of this line:https://github.com/db-migrate/node-db-migrate/blob/6acaf40e116463275f77419e69f2dbcdc80a3c61/index.js#L48
Expected behavior
It should work in a monorepo context as well. Maybe by recursively looking into the
node_modules
folder until reached the root of the project.Environment