diff --git a/src/main.ts b/src/main.ts index 7e5f2c1..9ef6ff4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ export * from './ioc'; export * from './logger'; export * from './utils'; -export const __appRootDirName: string = process.env.APP_ROOT_DIR_NAME || +export const __appRootDir: string = process.env.APP_ROOT_DIR || (process.env.NODE_ENV === 'production' ? path.join(require.main!.filename, '..') : process.cwd()); export {