@@ -27,39 +27,15 @@ export const env = {
2727 port : normalizePort ( process . env . PORT || getOsEnv ( 'APP_PORT' ) ) ,
2828 banner : toBool ( getOsEnv ( 'APP_BANNER' ) ) ,
2929 dirs : {
30- migrations : (
31- getOsEnvArray ( 'TYPEORM_MIGRATIONS' ) ||
32- [ path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'database/migrations/**/*.ts' ) ) ]
33- ) as string [ ] ,
34- migrationsDir : getOsEnv ( 'TYPEORM_MIGRATIONS_DIR' ) || path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'database/migrations' ) ) ,
35- entities : (
36- getOsEnvArray ( 'TYPEORM_ENTITIES' ) ||
37- [ path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'api/models/**/*{.js,.ts}' ) ) ]
38- ) as string [ ] ,
39- subscribers : (
40- getOsEnvArray ( 'TYPEORM_SUBSCRIBERS' ) ||
41- [ path . join ( __dirname , 'api/subscribers/**/*Subscriber{.js,.ts}' ) ]
42- ) as string [ ] ,
43- controllers : (
44- getOsEnvArray ( 'CONTROLLERS' ) ||
45- [ path . join ( __dirname , 'api/controllers/**/*Controller{.js,.ts}' ) ]
46- ) as string [ ] ,
47- middlewares : (
48- getOsEnvArray ( 'MIDDLEWARES' ) ||
49- [ path . join ( __dirname , 'api/middlewares/**/*Middleware{.js,.ts}' ) ]
50- ) as string [ ] ,
51- interceptors : (
52- getOsEnvArray ( 'INTERCEPTORS' ) ||
53- [ path . join ( __dirname , 'api/interceptors/**/*Interceptor{.js,.ts}' ) ]
54- ) as string [ ] ,
55- queries : (
56- getOsEnvArray ( 'QUERIES' ) ||
57- [ path . join ( __dirname , 'api/queries/**/*Query{.js,.ts}' ) ]
58- ) as string [ ] ,
59- mutations : (
60- getOsEnvArray ( 'MUTATIONS' ) ||
61- [ path . join ( __dirname , 'api/mutations/**/*Mutation{.js,.ts}' ) ]
62- ) as string [ ] ,
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' ) ,
6339 } ,
6440 } ,
6541 log : {
0 commit comments