diff --git a/compiler/src/fast_build/ark_compiler/common/process_ark_config.ts b/compiler/src/fast_build/ark_compiler/common/process_ark_config.ts index acd4feae..f99b71d4 100644 --- a/compiler/src/fast_build/ark_compiler/common/process_ark_config.ts +++ b/compiler/src/fast_build/ark_compiler/common/process_ark_config.ts @@ -97,6 +97,7 @@ export function initArkConfig(projectConfig: Object): ArkConfig { export function initArkProjectConfig(share: Object): Object { let projectConfig: Object = share.projectConfig; let arkProjectConfig: Object = {}; + arkProjectConfig.projectRootPath = share.projectConfig.projectTopDir; if (projectConfig.aceBuildJson && fs.existsSync(projectConfig.aceBuildJson)) { const buildJsonInfo = JSON.parse(fs.readFileSync(projectConfig.aceBuildJson).toString()); arkProjectConfig.projectRootPath = buildJsonInfo.projectRootPath;