Skip to content

Commit

Permalink
Fix metafile location for cargo workspaces (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Natoandro authored Sep 1, 2022
1 parent 1cc5d34 commit 79855b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { codegen } from "./codegen.ts";
const flags = parse(Deno.args, { "--": true });
const release = !!flags.release;

const metafile = join(Deno.env.get("OUT_DIR") || "", "bindings.json");
const metafile = join(Deno.env.get("OUT_DIR") || await findRelativeTarget(), "bindings.json");

function build() {
const cmd = ["cargo", "build"];
Expand Down

0 comments on commit 79855b5

Please sign in to comment.