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