fix: 更新提交
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
|
||||
|
||||
import { BuildPlugin } from "@cocos/creator-types/editor/packages/builder/@types/public";
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 不能为空");
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
/**
|
||||
* @en Registration method for the main process of Extension
|
||||
* @zh 为扩展的主进程的注册方法
|
||||
|
||||
Reference in New Issue
Block a user