@@ -27,15 +27,39 @@ export const env = {
2727 port : normalizePort ( process . env . PORT || getOsEnv ( 'APP_PORT' ) ) ,
2828 banner : toBool ( getOsEnv ( 'APP_BANNER' ) ) ,
2929 dirs : {
30- migrations : getOsEnvArray ( 'TYPEORM_MIGRATIONS' ) || [ path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'database/migrations/**/*.ts' ) ) ] ,
30+ migrations : (
31+ getOsEnvArray ( 'TYPEORM_MIGRATIONS' ) ||
32+ [ path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'database/migrations/**/*.ts' ) ) ]
33+ ) as string [ ] ,
3134 migrationsDir : getOsEnv ( 'TYPEORM_MIGRATIONS_DIR' ) || path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'database/migrations' ) ) ,
32- entities : getOsEnvArray ( 'TYPEORM_ENTITIES' ) || [ path . relative ( path . join ( process . cwd ( ) ) , path . join ( __dirname , 'api/models/**/*{.js,.ts}' ) ) ] ,
33- subscribers : getOsEnvArray ( 'TYPEORM_SUBSCRIBERS' ) || [ path . join ( __dirname , 'api/subscribers/**/*Subscriber{.js,.ts}' ) ] ,
34- controllers : getOsEnvArray ( 'CONTROLLERS' ) || [ path . join ( __dirname , 'api/controllers/**/*Controller{.js,.ts}' ) ] ,
35- middlewares : getOsEnvArray ( 'MIDDLEWARES' ) || [ path . join ( __dirname , 'api/middlewares/**/*Middleware{.js,.ts}' ) ] ,
36- interceptors : getOsEnvArray ( 'INTERCEPTORS' ) || [ path . join ( __dirname , 'api/interceptors/**/*Interceptor{.js,.ts}' ) ] ,
37- queries : getOsEnvArray ( 'QUERIES' ) || [ path . join ( __dirname , 'api/queries/**/*Query{.js,.ts}' ) ] ,
38- mutations : getOsEnvArray ( 'MUTATIONS' ) || [ path . join ( __dirname , 'api/mutations/**/*Mutation{.js,.ts}' ) ] ,
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 [ ] ,
3963 } ,
4064 } ,
4165 log : {
0 commit comments