code: function normaliseDeps (deps) {
    if (Array.isArray(deps)) {
      deps = deps.reduce(function (d, depName) {
        d[depName] = '*'
        return d
      }, {})
    }
    return deps
  }
docs: Convert dependencies specified as an array to an object