mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 00:43:59 +00:00
11 lines
299 B
JavaScript
Executable file
Vendored
11 lines
299 B
JavaScript
Executable file
Vendored
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);
|
|
}
|
|
|
|
this.setVersion()
|