From 7d094547ec238c14fc3558d634e2cbf94f111858 Mon Sep 17 00:00:00 2001 From: James Hugman Date: Mon, 9 Dec 2024 20:40:50 +0000 Subject: [PATCH] Make first run more informative while compiling --- bin/cli.cjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/cli.cjs b/bin/cli.cjs index 0119510c..cf151f0b 100644 --- a/bin/cli.cjs +++ b/bin/cli.cjs @@ -39,6 +39,12 @@ if (args.length === 1 && args[0] === "--path") { // Construct the path to the Cargo.toml file const manifestPath = path.join(rootDir, "crates/ubrn_cli/Cargo.toml"); +if (!fs.existsSync(path.join(rootDir, "target"))) { + console.log( + "🤖 Building the uniffi-bindgen-react-native command… this is only needed first time", + ); +} + // Run the cargo command const command = `cargo run --quiet --manifest-path "${manifestPath}" -- ${args.join(" ")}`; try {