mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-01 15:40:16 +00:00
dae66517aa
- Fixes #51
10 lines
280 B
JavaScript
10 lines
280 B
JavaScript
const fs = require('fs');
|
|
|
|
exports.setVersion = function() {
|
|
let revision = require('child_process')
|
|
.execSync('git describe --tags --long')
|
|
.toString().trim();
|
|
let line = `export let version: string = "${revision}";`;
|
|
fs.writeFileSync("./src/version.ts", line);
|
|
}
|