fix: correctly add scripts to manifest

This commit is contained in:
daimond113 2024-07-22 19:45:28 +02:00
parent 67d662939f
commit 7feb9055e7
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -146,12 +146,12 @@ impl InitCommand {
) )
.context("failed to write script file")?; .context("failed to write script file")?;
let mut scripts = manifest let scripts = manifest
.entry("scripts") .entry("scripts")
.or_insert(toml_edit::Item::Table(toml_edit::Table::new())) .or_insert(toml_edit::Item::Table(toml_edit::Table::new()))
.to_owned() .as_table_mut()
.into_table()
.unwrap(); .unwrap();
scripts[&ScriptName::RobloxSyncConfigGenerator.to_string()] = scripts[&ScriptName::RobloxSyncConfigGenerator.to_string()] =
toml_edit::value(format!( toml_edit::value(format!(
concat!(".", env!("CARGO_PKG_NAME"), "/{}.luau"), concat!(".", env!("CARGO_PKG_NAME"), "/{}.luau"),