From 06f74a233b3672c6593b2cd2f0bfa0e9ec5c0a8c Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Tue, 31 Jan 2023 15:42:47 +0800 Subject: [PATCH] =?UTF-8?q?cli=20=E8=B0=83=E6=95=B4paths=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8Coak-general-business=20=E6=A0=B9=E6=8D=AE=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=BC=95=E5=85=A5src=E6=88=96lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/mp/paths.js | 3 ++- config/web/paths.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/mp/paths.js b/config/mp/paths.js index 9aa5396..a995875 100644 --- a/config/mp/paths.js +++ b/config/mp/paths.js @@ -66,7 +66,8 @@ module.exports = { appRootPath: resolveRoot('.'), oakConfigJson: resolveApp('src/oak.config.json'), oakGeneralBusinessAppPath: resolveRoot( - 'node_modules/oak-general-business/lib' + 'node_modules/oak-general-business/' + + (process.env.NODE_ENV !== 'production' ? 'src' : 'lib') ), oakAppDomainAppPath: resolveRoot('src/oak-app-domain'), }; diff --git a/config/web/paths.js b/config/web/paths.js index 514f634..342eb44 100644 --- a/config/web/paths.js +++ b/config/web/paths.js @@ -98,7 +98,8 @@ module.exports = { appRootPath: resolveRoot('.'), oakConfigJson: resolveApp('src/oak.config.json'), oakGeneralBusinessAppPath: resolveRoot( - 'node_modules/oak-general-business/lib' + 'node_modules/oak-general-business/' + + (process.env.NODE_ENV !== 'production' ? 'src' : 'lib') ), oakAppDomainAppPath: resolveRoot('src/oak-app-domain'), };