@@ -2,7 +2,7 @@ import * as dotenv from 'dotenv';
2
2
import * as path from 'path' ;
3
3
4
4
import * as pkg from '../package.json' ;
5
- import { getOsEnv , getOsEnvArray , normalizePort , toBool , toNumber } from './lib/env' ;
5
+ import { getOsEnv , getOsPath , getOsPaths , normalizePort , toBool , toNumber } from './lib/env' ;
6
6
7
7
/**
8
8
* Load .env file or for tests the .env.test file.
@@ -27,15 +27,16 @@ export const env = {
27
27
port : normalizePort ( process . env . PORT || getOsEnv ( 'APP_PORT' ) ) ,
28
28
banner : toBool ( getOsEnv ( 'APP_BANNER' ) ) ,
29
29
dirs : {
30
- migrations : getOsEnvArray ( 'TYPEORM_MIGRATIONS' ) ,
31
- migrationsDir : getOsEnv ( 'TYPEORM_MIGRATIONS_DIR' ) ,
32
- entities : getOsEnvArray ( 'TYPEORM_ENTITIES' ) ,
33
- subscribers : getOsEnvArray ( 'TYPEORM_SUBSCRIBERS' ) ,
34
- controllers : getOsEnvArray ( 'CONTROLLERS' ) ,
35
- middlewares : getOsEnvArray ( 'MIDDLEWARES' ) ,
36
- interceptors : getOsEnvArray ( 'INTERCEPTORS' ) ,
37
- queries : getOsEnvArray ( 'QUERIES' ) ,
38
- mutations : getOsEnvArray ( 'MUTATIONS' ) ,
30
+ migrations : getOsPaths ( 'TYPEORM_MIGRATIONS' ) ,
31
+ migrationsDir : getOsPath ( 'TYPEORM_MIGRATIONS_DIR' ) ,
32
+ entities : getOsPaths ( 'TYPEORM_ENTITIES' ) ,
33
+ entitiesDir : getOsPath ( 'TYPEORM_ENTITIES_DIR' ) ,
34
+ controllers : getOsPaths ( 'CONTROLLERS' ) ,
35
+ middlewares : getOsPaths ( 'MIDDLEWARES' ) ,
36
+ interceptors : getOsPaths ( 'INTERCEPTORS' ) ,
37
+ subscribers : getOsPaths ( 'SUBSCRIBERS' ) ,
38
+ queries : getOsPaths ( 'QUERIES' ) ,
39
+ mutations : getOsPaths ( 'MUTATIONS' ) ,
39
40
} ,
40
41
} ,
41
42
log : {
0 commit comments