   (spit data-file (core-ext/safe-pr-str bundle-info)))
 
 (defn generate
-  [build-id {:keys [tag print-table report-file data-file] :or {tag "latest"} :as opts}]
+  [{:keys [build-id] :as build-config} {:keys [tag print-table report-file data-file] :or {tag "latest"} :as opts}]
   {:pre [(keyword? build-id)
+         (map? build-config)
          (string? tag)
          (seq tag)]}
   (api/with-runtime

          (keyword (str (name build-id) "-release-snapshot"))

          build-config
          (-> (api/get-build-config build-id)
              (assoc
                :build-id build-id-alias
                ;; not required, the files are never going to be used

      )

  (generate
    (api/get-build-config :ui)
    {:report-file ".shadow-cljs/build-report/index.html"
     :inline false})
  )
