🥕 mono-root
find the root path in monorepos
simple
const resolve = const monoRoot = const pkg = console
advanced
- the max
depth
it goes up can be customized - and it can be returned as an object (
asObj
) to see the paths it used
const resolve = const monoRoot = const nearest farthest attempt found =
more
- see fliphub-resolve for more verbose use that resolves objects, arrays, with multiple scopes.