Load dependency sorted array of package objects. Built to assist with publishing a monorepo containing multiple publishable modules were those modules may depend on another module defined in the monorepo. This is critical when attempting to lock in cross-dependencies with lock files. Unfortuantly a solution such as lerna does not work well with accurantly genating package lock files.
npm install monodeps
const monodeps =/*where folder example contains 3 packages: a,b,c.c depends on b and a, b depends on a, a has no cross dependency.*/trylet packages = await depsconsole // -> 'a'console // -> 'b'console // -> 'c'console // -> /example/aconsole // -> /example/bconsole // -> /example/ccatcherrconsole // -> "Error: circular dependency