mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
fix: with-tailwind template download (#522)
This commit is contained in:
@@ -228,8 +228,10 @@ fn update_cargo_toml_version(folder_path: &Path) -> io::Result<()> {
|
|||||||
let cargo_toml_path = folder_path.join(PathBuf::from("Cargo.toml"));
|
let cargo_toml_path = folder_path.join(PathBuf::from("Cargo.toml"));
|
||||||
let cargo_toml = fs::read_to_string(&cargo_toml_path)
|
let cargo_toml = fs::read_to_string(&cargo_toml_path)
|
||||||
.unwrap_or_else(|err| exit_with_error(&format!("Failed to read Cargo.toml: {}", err)));
|
.unwrap_or_else(|err| exit_with_error(&format!("Failed to read Cargo.toml: {}", err)));
|
||||||
let cargo_toml =
|
let cargo_toml = cargo_toml.replace(
|
||||||
cargo_toml.replace("{ path = \"../../crates/tuono_lib/\"}", &format!("\"{v}\""));
|
"{ path = \"../../crates/tuono_lib/\" }",
|
||||||
|
&format!("\"{v}\""),
|
||||||
|
);
|
||||||
|
|
||||||
let mut file = OpenOptions::new()
|
let mut file = OpenOptions::new()
|
||||||
.write(true)
|
.write(true)
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ name = "tuono"
|
|||||||
path = ".tuono/main.rs"
|
path = ".tuono/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tuono_lib = { path = "../../crates/tuono_lib/"}
|
tuono_lib = { path = "../../crates/tuono_lib/" }
|
||||||
serde = { version = "1.0.202", features = ["derive"] }
|
serde = { version = "1.0.202", features = ["derive"] }
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ name = "tuono"
|
|||||||
path = ".tuono/main.rs"
|
path = ".tuono/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tuono_lib = { path = "../../crates/tuono_lib/"}
|
tuono_lib = { path = "../../crates/tuono_lib/" }
|
||||||
serde = { version = "1.0.202", features = ["derive"] }
|
serde = { version = "1.0.202", features = ["derive"] }
|
||||||
reqwest = "0.12.9"
|
reqwest = "0.12.9"
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ name = "tuono"
|
|||||||
path = ".tuono/main.rs"
|
path = ".tuono/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tuono_lib = { path = "../../crates/tuono_lib/"}
|
tuono_lib = { path = "../../crates/tuono_lib/" }
|
||||||
serde = { version = "1.0.202", features = ["derive"] }
|
serde = { version = "1.0.202", features = ["derive"] }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user