1 const fs = require('fs');
3 exports.setVersion = function() {
4 let revision = require('child_process')
5 .execSync('git describe --tags --long')
7 let line = `export let version: string = "${revision}";`;
8 fs.writeFileSync("./src/version.ts", line);