Report editor open and save events to Amplitude

Co-authored-by: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Nathan Sobo 2022-09-26 18:18:34 -06:00
parent f0c50c1e0a
commit 824fdb54e6
8 changed files with 137 additions and 35 deletions

View file

@ -3,6 +3,10 @@ use std::process::Command;
fn main() {
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.14");
if let Ok(api_key) = std::env::var("AMPLITUDE_API_KEY") {
println!("cargo:rustc-env=AMPLITUDE_API_KEY={api_key}");
}
let output = Command::new("npm")
.current_dir("../../styles")
.args(["install", "--no-save"])