feat(cli): print Export json to stdout

Co-authored-by: Kasey White <kwhitemsg@gmail.com>
This commit is contained in:
rvcas 2024-04-03 19:18:47 -04:00 committed by Lucas
parent dac3308620
commit 79ccc55499
1 changed files with 4 additions and 2 deletions

View File

@ -26,9 +26,11 @@ pub fn exec(
with_project(directory.as_deref(), false, |p| {
p.compile(Options::default())?;
let raw_uplc = p.export(&module, &name)?;
let export = p.export(&module, &name)?;
println!("{}", raw_uplc);
let json = serde_json::to_string_pretty(&export).unwrap();
println!("{}", json);
Ok(())
})