Skip to content

Commit 4abae60

Browse files
committed
cleanup build/bin.ts
1 parent 9d95fad commit 4abae60

File tree

3 files changed

+2051
-1970
lines changed

3 files changed

+2051
-1970
lines changed

bin/ffr.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
console.log("poop");
2+
13
import { parseArgs } from "jsr:@std/cli/parse-args";
24

35
import { main } from "../src/cli/ffr/main.ts";

build/bin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { basename, join } from "node:path";
22
import * as zip from "jsr:@zip-js/zip-js";
3-
import { increment, parse } from "jsr:@std/semver";
3+
import { format, increment, parse } from "jsr:@std/semver";
44

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

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

1010
const cmd = new Deno.Command(Deno.execPath(), {
11+
cwd: join(__dirname, "../"),
1112
args: [
1213
"compile",
1314
"-A",
@@ -66,6 +67,6 @@ await Promise.all([
6667

6768
const currentVersion =
6869
await (await fetch("https://elwood.run/ffremote/release/latest.txt")).text();
69-
const nextVersion = increment(parse(currentVersion), "patch");
70+
const nextVersion = format(increment(parse(currentVersion), "patch"));
7071

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

0 commit comments

Comments
 (0)