From b03b3ee4dc3bfe5d448d7fdc3ea8dc214cdfc2d4 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 6 Nov 2023 14:03:34 +0800 Subject: [PATCH] fix(build): rerun if cli version changed (#1789) - Close https://github.com/napi-rs/napi-rs/issues/1719 --- crates/build/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/build/src/lib.rs b/crates/build/src/lib.rs index b3c477e6..f6940ac6 100644 --- a/crates/build/src/lib.rs +++ b/crates/build/src/lib.rs @@ -5,6 +5,7 @@ mod wasi; pub fn setup() { println!("cargo:rerun-if-env-changed=DEBUG_GENERATED_CODE"); println!("cargo:rerun-if-env-changed=TYPE_DEF_TMP_PATH"); + println!("cargo:rerun-if-env-changed=CARGO_CFG_NAPI_RS_CLI_VERSION"); match std::env::var("CARGO_CFG_TARGET_OS").as_deref() { Ok("macos") => { macos::setup();