diff --git a/packages/uni-app-harmony/dist/uni.compiler.js b/packages/uni-app-harmony/dist/uni.compiler.js index bf9dd2a4f9..919239c61b 100644 --- a/packages/uni-app-harmony/dist/uni.compiler.js +++ b/packages/uni-app-harmony/dist/uni.compiler.js @@ -20,18 +20,6 @@ var StandaloneExtApis = [ ], version: "1.0.2" }, - { - type: "extapi", - plugin: "uni-push", - apis: [ - "getPushClientId", - "onPushMessage", - "offPushMessage", - "createPushMessage", - "setAppBadgeNumber" - ], - version: "1.0.2" - }, { type: "provider", plugin: "uni-oauth-huawei", @@ -52,6 +40,18 @@ var StandaloneExtApis = [ provider: "huawei", service: "payment", version: "1.0.0" + }, + { + type: "extapi", + plugin: "uni-push", + apis: [ + "getPushClientId", + "onPushMessage", + "offPushMessage", + "createPushMessage", + "setAppBadgeNumber" + ], + version: "1.0.2" } ]; diff --git a/scripts/build.js b/scripts/build.js index bfba4bd992..dcf6c359b2 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -229,7 +229,8 @@ async function build(target) { if (hasArkTSBundler) { let shouldBuildArkTS = true if (target === 'uni-app-harmony') { - shouldBuildArkTS = !!(process.env.UNI_APP_EXT_API_DIR && + shouldBuildArkTS = !!( + process.env.UNI_APP_EXT_API_DIR && process.env.UNI_APP_EXT_API_INTERNAL_DIR ) } @@ -411,7 +412,7 @@ async function buildArkTS(target, buildJson) { } fs.outputJSON( path.resolve(projectDir, 'src/compiler/standalone-ext-apis.json'), - standaloneExtApis, + standaloneExtApis.sort((a, b) => a.plugin.localeCompare(b.plugin)), { spaces: 2 } ) const extApiExportWithHar = genHarmonyExtApiExport()