mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
fix: correctly add scripts to manifest
This commit is contained in:
parent
67d662939f
commit
7feb9055e7
1 changed files with 3 additions and 3 deletions
|
@ -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"),
|
||||||
|
|
Loading…
Reference in a new issue