update compiler/main.js.

Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
卡哥
2022-08-25 03:37:03 +00:00
committed by Gitee
parent c5f7177af1
commit e8a035a928
+4 -4
View File
@@ -66,7 +66,7 @@ function initProjectConfig(projectConfig) {
path.resolve(__dirname, 'node_modules/.cache');
projectConfig.aceSoPath = projectConfig.aceSoPath || process.env.aceSoPath;
projectConfig.xtsMode = /ets_loader_ark$/.test(__dirname);
projectConfig.localProertiesPath = projectConfig.localProertiesPath || process.env.localProertiesPath
projectConfig.localPropertiesPath = projectConfig.localPropertiesPath || process.env.localPropertiesPath
projectConfig.projectProfilePath = projectConfig.projectProfilePath || process.env.projectProfilePath
}
@@ -372,9 +372,9 @@ function saveAppResourcePath(appResourcePath, appResourcePathSavePath) {
}
function addSDKBuildDependencies(config) {
if (projectConfig.localProertiesPath &&
fs.existsSync(projectConfig.localProertiesPath) && config.cache) {
config.cache.buildDependencies.config.push(projectConfig.localProertiesPath)
if (projectConfig.localPropertiesPath &&
fs.existsSync(projectConfig.localPropertiesPath) && config.cache) {
config.cache.buildDependencies.config.push(projectConfig.localPropertiesPath)
}
if (projectConfig.projectProfilePath &&
fs.existsSync(projectConfig.projectProfilePath) && config.cache) {