!3212 add isFaMode get kits path

Merge pull request !3212 from 王曹宇/feature_add_isFaMode
This commit is contained in:
openharmony_ci 2024-03-30 10:48:03 +00:00 committed by Gitee
commit 7669fed6cf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -616,7 +616,10 @@ function filterWorker(workerPath) {
const apiDirPath = path.resolve(__dirname, '../../api');
const arktsDirPath = path.resolve(__dirname, '../../arkts');
const kitsDirPath = path.resolve(__dirname, '../../kits');
const systemModulePathArray = [apiDirPath, arktsDirPath, kitsDirPath];
const systemModulePathArray = [apiDirPath];
if (!process.env.isFaMode) {
systemModulePathArray.push(arktsDirPath, kitsDirPath);
}
systemModulePathArray.forEach(systemModulesPath => {
if (fs.existsSync(systemModulesPath)) {
globalModulePaths.push(systemModulesPath);