infra(crates.io): clear the correct directory in build.rs

This commit is contained in:
Brooks J Rady 2021-02-26 09:27:59 +00:00
parent a20e49d77e
commit b6ce24280f
3 changed files with 7 additions and 3 deletions

2
Cargo.lock generated
View file

@ -2238,7 +2238,7 @@ dependencies = [
[[package]]
name = "zellij"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"async-std",
"backtrace",

View file

@ -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)"

View file

@ -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());