Recursively resolve the paths of dependent npm packages