Skip to content

Commit

Permalink
fix: 修复鸿蒙x编译结果错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Wangyaqi committed Jan 7, 2025
1 parent 44cc99e commit 4016d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/uni-uts-v1/src/arkts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function getArkTSAutoImports(isX = false): AutoImportOptions {
['UTSHarmony'],
],
},
require(process.env.UNI_APP_X === 'true'
require(isX
? '../lib/arkts/ext-api-export-x.json'
: '../lib/arkts/ext-api-export.json')
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async function postBuildArkTS (isUniAppX = false) {
isUniAppX ? 'ext-api-export-x.json' : 'ext-api-export.json'
)
const extApiExport = genHarmonyExtApiExport(isUniAppX)
fs.outputJSON(extApiExportJsonPath, extApiExport, { spaces: 2 })
fs.outputJSONSync(extApiExportJsonPath, extApiExport, { spaces: 2 })

const harBuildJson = require(path.resolve(
projectDir,
Expand Down

0 comments on commit 4016d1f

Please sign in to comment.