Another cleaner version
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user