From b6ce24280f9935a692aca8500c3a577a489a4d58 Mon Sep 17 00:00:00 2001 From: Brooks J Rady Date: Fri, 26 Feb 2021 09:27:59 +0000 Subject: [PATCH] infra(crates.io): clear the correct directory in build.rs --- Cargo.lock | 2 +- Cargo.toml | 2 +- build.rs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7342b6aa..eb1b291e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2238,7 +2238,7 @@ dependencies = [ [[package]] name = "zellij" -version = "0.2.0" +version = "0.2.1" dependencies = [ "async-std", "backtrace", diff --git a/Cargo.toml b/Cargo.toml index 366842da..1d9ac68f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zellij" -version = "0.2.0" +version = "0.2.1" authors = ["Aram Drevekenin "] edition = "2018" description = "Terminal workspace (WIP)" diff --git a/build.rs b/build.rs index e7d2f36a..fdb7ab7a 100644 --- a/build.rs +++ b/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());