diff --git a/compiler/build_declarations_file.js b/compiler/build_declarations_file.js index d983d7f..2f22203 100644 --- a/compiler/build_declarations_file.js +++ b/compiler/build_declarations_file.js @@ -33,7 +33,7 @@ const addTSAttributeSet = ['AlphabetIndexer', 'Animator', 'Badge', 'Blank', 'But generateTargetFile(process.argv[2], process.argv[3]); function generateTargetFile(filePath, output) { const files = []; - const globalTsFile = path.resolve(filePath, '../../global.d.ts'); + const globalTsFile = path.resolve(filePath, '../../ets/global.d.ts'); const featureAbilityPath = path.resolve(filePath, '../../../common/full/featureability.d.ts'); const middleTsFile = path.resolve(filePath, 'middle_class.d.ts'); if (fs.existsSync(globalTsFile)) {