From e1ef44d23db7630c9d23df5a8f6b2d45343b2e45 Mon Sep 17 00:00:00 2001 From: Andrea B Date: Mon, 19 Nov 2018 20:06:15 +0100 Subject: [PATCH] restored versionBuild --- build | 1 + src/app.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 build diff --git a/build b/build new file mode 100644 index 00000000..baec8fcf --- /dev/null +++ b/build @@ -0,0 +1 @@ +development \ No newline at end of file diff --git a/src/app.ts b/src/app.ts index 103d02ae..18d68a53 100644 --- a/src/app.ts +++ b/src/app.ts @@ -16,7 +16,7 @@ declare const gc; // garbage collection if exposed. // tslint:disable-next-line const packageJson = require('../package.json'); -const versionBuild: string = ''; +const versionBuild: string = fs.readFileSync(`${__dirname}/../build`, 'utf8'); // if gc is exposed call it every minute if (typeof(gc) !== 'undefined') {