mirror of
https://gitee.com/openharmony/developtools_ace_ets2bundle
synced 2024-11-27 02:30:55 +00:00
!3234 Fix the problem that the projectRootPath field is undefined in FA mode
Merge pull request !3234 from 吴海龙/bugfix
This commit is contained in:
commit
b5eeb77b38
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user