fix: 更新提交

This commit is contained in:
han_han9
2025-11-26 22:57:07 +08:00
parent 8a6620cf8f
commit 4c16bec13f
640 changed files with 70914 additions and 13327 deletions

View File

@@ -1,4 +1,4 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { BuildPlugin } from "@cocos/creator-types/editor/packages/builder/@types/public";

View File

@@ -7,7 +7,7 @@ let outputPath: string = '';
let i = 2;
while (i < process.argv.length) {
let arg = process.argv[i];
const arg = process.argv[i];
switch(arg) {
case '-configPath':
configs = require(process.argv[i + 1]) as GenPackageConfig[];
@@ -25,7 +25,7 @@ while (i < process.argv.length) {
i += 2
}
for (let item of configs) {
let src = assetRootDirPath;
for (const item of configs) {
const src = assetRootDirPath;
generator(src, outputPath, item);
}

View File

@@ -85,7 +85,7 @@ export const onAfterBuild: BuildHook.onAfterBuild = async function (
hotupdateConfig.outInput,
JSON.stringify(hotupdateConfig)
);
if (!!hotupdateConfig.hotupdatePluginCheck) {
if (hotupdateConfig.hotupdatePluginCheck) {
// 验证配置参数
if (!hotupdateConfig.configInput || !hotupdateConfig.outInput) {
console.error("热更新配置不完整configInput 和 outInput 不能为空");

View File

@@ -1,4 +1,4 @@
/* eslint-disable no-console */
/**
* @en Registration method for the main process of Extension
* @zh 为扩展的主进程的注册方法