Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make first run more informative while compiling #185

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading