I have used this in the past and it seems related in the use cases it solves, so it might be useful to compare/mention in docs: https://github.com/mweststrate/relative-deps