refactor(config): derive APP_NAME and APP_VERSION defaults from package.json
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { IsInt, IsString, Min, Max } from 'class-validator';
|
||||
|
||||
import pkg from '../../package.json';
|
||||
|
||||
export class AppConfig {
|
||||
@IsString()
|
||||
NODE_ENV: string = 'development';
|
||||
@@ -10,8 +12,8 @@ export class AppConfig {
|
||||
PORT: number = 3000;
|
||||
|
||||
@IsString()
|
||||
APP_NAME: string = 'liquio-qa-bot';
|
||||
APP_NAME: string = pkg.name;
|
||||
|
||||
@IsString()
|
||||
APP_VERSION: string = '1.0.0';
|
||||
APP_VERSION: string = pkg.version;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user