Another cleaner version

This commit is contained in:
Zef Hemel
2025-09-03 09:06:10 +02:00
parent 978e037d98
commit 44ee821a6d
+1 -5
View File
@@ -1,5 +1,3 @@
import { version } from "../version.ts";
export async function updateVersionFile() {
const command = new Deno.Command("git", {
args: ["describe", "--tags", "--long"],
@@ -11,9 +9,7 @@ export async function updateVersionFile() {
const commitVersion = new TextDecoder().decode(stdout).trim();
const versionFilePath = "./public_version.ts";
const versionContent = `
export const publicVersion = "${version}-${commitVersion}";
`;
const versionContent = `export const publicVersion = "${commitVersion}";`;
await Deno.writeTextFile(versionFilePath, versionContent);
console.log(