diff --git a/src/voodoo-prep/jsoo_toplevel.ml b/src/voodoo-prep/jsoo_toplevel.ml index 96010759..3ccadb56 100644 --- a/src/voodoo-prep/jsoo_toplevel.ml +++ b/src/voodoo-prep/jsoo_toplevel.ml @@ -52,4 +52,8 @@ let to_yojson t = let cma = ("cma", `String (js_name t)) in let dep_cmas = ("dep_cmas", `List (List.map Jsoo_cma.to_yojson t.dep_cmas)) in let cmis = ("cmis", `List (List.map Jsoo_cmi.to_yojson t.cmis)) in - `Assoc [ package; cma; dep_cmas; cmis ] + let js_files = + ( "js_files", + `List (List.map (fun s -> `String (Fpath.to_string s)) t.js_files) ) + in + `Assoc [ package; cma; dep_cmas; cmis; js_files ] diff --git a/test/toplevel.t b/test/toplevel.t index 3052fdcd..4f825a4d 100644 --- a/test/toplevel.t +++ b/test/toplevel.t @@ -10,6 +10,7 @@ Generate the toplevel documentation Ignoring jsoo option passed: -linkall $ voodoo-prep jsoo -p $PKG + voodoo-prep: [INFO] Built jsoo/universes/88/toplevel/1.0/toplevel.cma.js ✅ $ voodoo-do -p $PKG -b 2> /dev/null @@ -453,7 +454,8 @@ Generates a toplevels.json file "/toplevels/jsoo/universes/45/ocaml-base-compiler/5.0.0/lib/ocaml/stdlib__Uchar.cmi", "/toplevels/jsoo/universes/45/ocaml-base-compiler/5.0.0/lib/ocaml/stdlib__Option.cmi", "/toplevels/jsoo/universes/45/ocaml-base-compiler/5.0.0/lib/ocaml/stdlib__Effect.cmi" - ] + ], + "js_files": [] } ]