From 8aa477f6a15ba6e138e9db9fd0907654ab138e81 Mon Sep 17 00:00:00 2001 From: "alex.zhang" Date: Thu, 31 Dec 2020 20:53:52 +0800 Subject: [PATCH] fix: fix app dir --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {