Adding support for idl.json (#2114)
This commit is contained in:
parent
98f26ce8cf
commit
11af9a6624
|
@ -588,6 +588,7 @@ fn deser_programs(
|
|||
path: None,
|
||||
idl: None,
|
||||
},
|
||||
|
||||
serde_json::Value::Object(_) => {
|
||||
serde_json::from_value(program_id.clone())
|
||||
.map_err(|_| anyhow!("Unable to read toml"))?
|
||||
|
|
|
@ -2916,6 +2916,10 @@ fn publish(
|
|||
println!("PACKING: README.md");
|
||||
tar.append_path("README.md")?;
|
||||
}
|
||||
if Path::new("idl.json").exists() {
|
||||
println!("PACKING: idl.json");
|
||||
tar.append_path("idl.json")?;
|
||||
}
|
||||
|
||||
// All workspace programs.
|
||||
for path in cfg.get_program_list()? {
|
||||
|
|
Loading…
Reference in New Issue