Skip to content

Commit

Permalink
cleanup build/bin.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
traviskuhl committed Oct 24, 2024
1 parent 9d95fad commit 4abae60
Show file tree
Hide file tree
Showing 3 changed files with 2,051 additions and 1,970 deletions.
2 changes: 2 additions & 0 deletions bin/ffr.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
console.log("poop");

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

import { main } from "../src/cli/ffr/main.ts";
Expand Down
5 changes: 3 additions & 2 deletions build/bin.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { basename, join } from "node:path";
import * as zip from "jsr:@zip-js/zip-js";
import { increment, parse } from "jsr:@std/semver";
import { format, increment, parse } from "jsr:@std/semver";

const __dirname = new URL(".", import.meta.url).pathname;

async function compile(src: string, dest: string) {
console.log(`Compiling ${src} to ${dest}`);

const cmd = new Deno.Command(Deno.execPath(), {
cwd: join(__dirname, "../"),
args: [
"compile",
"-A",
Expand Down Expand Up @@ -66,6 +67,6 @@ await Promise.all([

const currentVersion =
await (await fetch("https://elwood.run/ffremote/release/latest.txt")).text();
const nextVersion = increment(parse(currentVersion), "patch");
const nextVersion = format(increment(parse(currentVersion), "patch"));

console.log(`new_version=${nextVersion}`);
Loading

0 comments on commit 4abae60

Please sign in to comment.