1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

Use pkginfo to resolve unleash-server version

closes #268
This commit is contained in:
Ivar 2017-11-03 23:14:31 +01:00 committed by Ivar Conradi Østhus
parent 6642978fc7
commit f093d609ae
4 changed files with 8752 additions and 10 deletions

View File

@ -1,7 +1,10 @@
'use strict';
const { Router } = require('express');
const version = require('project-version');
// export module version
require('pkginfo')(module, 'version');
const version = module.exports.version;
const adminApi = require('./admin-api');
const clientApi = require('./client-api');

8745
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -73,7 +73,7 @@
"moment": "^2.15.2",
"parse-database-url": "^0.3.0",
"pg": "^6.4.2",
"project-version": "^1.0.0",
"pkginfo": "^0.4.1",
"prom-client": "^10.0.4",
"prometheus-gc-stats": "^0.5.0",
"response-time": "^2.3.2",

View File

@ -184,7 +184,7 @@ anymatch@^1.3.0:
micromatch "^2.1.5"
normalize-path "^2.0.0"
app-root-path@^2.0.0, app-root-path@^2.0.1:
app-root-path@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/app-root-path/-/app-root-path-2.0.1.tgz#cd62dcf8e4fd5a417efc664d2e5b10653c651b46"
@ -3726,7 +3726,7 @@ pkginfo@0.3.x:
version "0.3.1"
resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.3.1.tgz#5b29f6a81f70717142e09e765bbeab97b4f81e21"
pkginfo@0.x.x, pkginfo@^0.4.0:
pkginfo@0.x.x, pkginfo@^0.4.0, pkginfo@^0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.4.1.tgz#b5418ef0439de5425fc4995042dced14fb2a84ff"
@ -3811,12 +3811,6 @@ progress@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
project-version@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/project-version/-/project-version-1.0.0.tgz#544f973d3c09a83419d71c7ffe038861b4f280f1"
dependencies:
app-root-path "^2.0.1"
prom-client@^10.0.4:
version "10.2.1"
resolved "https://registry.yarnpkg.com/prom-client/-/prom-client-10.2.1.tgz#cfb4d7724d6c3288e8774e795138cf4ae298fd00"