infra(crates.io): clear the correct directory in build.rs
This commit is contained in:
parent
a20e49d77e
commit
b6ce24280f
3 changed files with 7 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -2238,7 +2238,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "zellij"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
dependencies = [
|
||||
"async-std",
|
||||
"backtrace",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "zellij"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
authors = ["Aram Drevekenin <aram@poor.dev>"]
|
||||
edition = "2018"
|
||||
description = "Terminal workspace (WIP)"
|
||||
|
|
|
|||
6
build.rs
6
build.rs
|
|
@ -32,7 +32,11 @@ fn main() {
|
|||
}
|
||||
|
||||
// Rerun on plugin change
|
||||
for entry in WalkDir::new("target") {
|
||||
#[cfg(not(feature = "publish"))]
|
||||
let plugin_dir = "target";
|
||||
#[cfg(feature = "publish")]
|
||||
let plugin_dir = "assets/plugins";
|
||||
for entry in WalkDir::new(plugin_dir) {
|
||||
let entry = entry.unwrap();
|
||||
if entry.path().extension() == Some(OsStr::new("wasm")) {
|
||||
println!("cargo:rerun-if-changed={}", entry.path().to_string_lossy());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue