Skip to content

Commit

Permalink
Merge pull request #942 from thefrontside/tm/fix-missing-version
Browse files Browse the repository at this point in the history
Read version of args
  • Loading branch information
taras authored Dec 20, 2024
2 parents 004989b + 584173f commit 9d9dc7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tasks/build-jsr.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import jsonDeno from "../deno.json" with { type: "json" };

let [version] = Deno.args;
if (!version) {
throw new Error("a version argument is required to build the npm package");
}

await Deno.writeTextFile(
new URL("../deno.json", import.meta.url),
JSON.stringify({
...jsonDeno,
version: Deno.env.get("VERSION"),
version,
}),
);

0 comments on commit 9d9dc7c

Please sign in to comment.