Generates a flattened list of npm project dependencies.