Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Extract.exe
Binary file not shown.
Binary file added Ppx.exe
Binary file not shown.
25 changes: 20 additions & 5 deletions bin/Ppx.re
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
open Migrate_parsetree;

let mapper = Mapper.getMapper(_ => ());
let mapper = (_, _) => Mapper.getMapper(_ => ());

let _ =
Driver.register(~name="ReactIntl", ~args=[], Versions.ocaml_current, (_, _) =>
mapper
);
Driver.register(~name="ReactIntl", ~args=[], Versions.ocaml_409, mapper);

let _ = Driver.run_as_ppx_rewriter();
// Source: https://github.com/reasonml-community/graphql_ppx/blob/master/src/bucklescript_bin/Bin.re
let argv =
switch (Sys.argv |> Array.to_list) {
| [program, ...rest] =>
switch (List.rev(rest)) {
| [output_file, input_file, ...args] =>
List.concat([
[program],
List.rev(args),
[input_file, "-o", output_file, "--dump-ast", "--embed-errors"],
])
|> Array.of_list
| _ => Sys.argv
}
| _ => Sys.argv
};

let () = Driver.run_main(~argv, ());
46 changes: 0 additions & 46 deletions esy.json

This file was deleted.

3 changes: 0 additions & 3 deletions esy.lock/.gitattributes

This file was deleted.

3 changes: 0 additions & 3 deletions esy.lock/.gitignore

This file was deleted.

Loading