mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-28 09:46:39 +02:00
8 lines
287 B
JavaScript
8 lines
287 B
JavaScript
const { execSync } = require("child_process");
|
|
const packageJson = require("../package.json");
|
|
|
|
const version = packageJson.version;
|
|
const gitHash = execSync("git rev-parse --short HEAD").toString().trim();
|
|
const versionWithHash = `${version}-${gitHash}`;
|
|
|
|
console.log(versionWithHash);
|