fix(require-name): can now require files using either component name or repo name of dependency
fix(flatten): flatten the dependency tree