Skip to content

Commit

Permalink
chore: build standalone-ext-apis sort
Browse files Browse the repository at this point in the history
  • Loading branch information
StrivingRabbit committed Dec 27, 2024
1 parent 9344c26 commit 8e231bb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
24 changes: 12 additions & 12 deletions packages/uni-app-harmony/dist/uni.compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
];

Expand Down
5 changes: 3 additions & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 8e231bb

Please sign in to comment.