Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
chore: add --out flag to build_Cross.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Oct 20, 2024
1 parent 659f6c5 commit 7e5acf1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/build/build_cross.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env -S deno run -A

import { parseArgs } from "jsr:@std/cli/parse-args";
import { resolve } from "jsr:@std/path";
import { ensureDir } from "jsr:@std/fs";

Expand Down Expand Up @@ -221,7 +222,11 @@ export async function buildCross(outDir: string, packages: string[] = []) {
}

if (import.meta.main) {
const dir = await Deno.makeTempDir();
console.log(dir);
await buildCross(dir);
const flags = parseArgs(Deno.args, { string: ["out"] });
const outDir = flags.out;
if (!outDir) {
console.error("Missing --out");
Deno.exit(1);
}
await buildCross(outDir);
}
4 changes: 4 additions & 0 deletions scripts/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e5acf1

Please sign in to comment.