diff --git a/ets2panda/driver/build_system/src/build/base_mode.ts b/ets2panda/driver/build_system/src/build/base_mode.ts index 9ed6c17273a458ebb3394744cfd0b0489743505b..0117bdc06b3a32b303592f64bc6539c3f918c377 100644 --- a/ets2panda/driver/build_system/src/build/base_mode.ts +++ b/ets2panda/driver/build_system/src/build/base_mode.ts @@ -187,7 +187,7 @@ export abstract class BaseMode { const declEtsOutputDir = path.dirname(declEtsOutputPath); const staticRecordRelativePath = changeFileExtension( path.relative(declEtsOutputDir, staticRecordPath).replace(/\\/g, '\/'), - "", + '', DECL_TS_SUFFIX ); createFileIfNotExists(staticRecordPath, STATIC_RECORD_FILE_CONTENT); diff --git a/ets2panda/driver/build_system/src/build/declgen_worker.ts b/ets2panda/driver/build_system/src/build/declgen_worker.ts index c5eedcbdff0715632b508a2d95ccf3c77e06b062..12d16c66a5e95c2e0f091b8d7296ebf5cae19a8a 100644 --- a/ets2panda/driver/build_system/src/build/declgen_worker.ts +++ b/ets2panda/driver/build_system/src/build/declgen_worker.ts @@ -80,7 +80,7 @@ process.on('message', (message: { const declEtsOutputDir = path.dirname(declEtsOutputPath); const staticRecordRelativePath = changeFileExtension( path.relative(declEtsOutputDir, staticRecordPath).replace(/\\/g, '\/'), - "", + '', DECL_TS_SUFFIX ); createFileIfNotExists(staticRecordPath, STATIC_RECORD_FILE_CONTENT); diff --git a/ets2panda/driver/build_system/src/init/init_koala_modules.ts b/ets2panda/driver/build_system/src/init/init_koala_modules.ts index 9c3808f3d1a89522958e24da24f3a1795c1543c6..4c0c070a528ca7a0eeed5c03452717ad316f8677 100644 --- a/ets2panda/driver/build_system/src/init/init_koala_modules.ts +++ b/ets2panda/driver/build_system/src/init/init_koala_modules.ts @@ -14,9 +14,9 @@ */ -import { KOALA_WRAPPER_PATH_FROM_SDK, MEMO_PLUGIN_PATH_FROM_SDK, UI_PLUGIN_PATH_FROM_SDK } from "../pre_define"; -import { BuildConfig } from "../types"; -import path from "path" +import { KOALA_WRAPPER_PATH_FROM_SDK, MEMO_PLUGIN_PATH_FROM_SDK, UI_PLUGIN_PATH_FROM_SDK } from '../pre_define'; +import { BuildConfig } from '../types'; +import path from 'path' let koalaModule: any; @@ -46,7 +46,7 @@ export function initKoalaPlugins(projectConfig: BuildConfig): void { // TODO: need change in hvigor if (process.env.USE_KOALA_UI_PLUGIN) { - projectConfig.plugins['ArkUI'] = uiPluginPath + projectConfig.plugins.ArkUI = uiPluginPath } if (process.env.USE_KOALA_MEMO_PLUGIN) { @@ -54,7 +54,7 @@ export function initKoalaPlugins(projectConfig: BuildConfig): void { } } -export function cleanKoalaModule() { +export function cleanKoalaModule(): void { koalaModule = null; } diff --git a/ets2panda/driver/build_system/src/plugins/plugins_driver.ts b/ets2panda/driver/build_system/src/plugins/plugins_driver.ts index 9213df98d63bc2e8fc9a040064d974c048dd9902..48336f68ccfb856313bcee05553196e55b505497 100644 --- a/ets2panda/driver/build_system/src/plugins/plugins_driver.ts +++ b/ets2panda/driver/build_system/src/plugins/plugins_driver.ts @@ -158,7 +158,7 @@ export class PluginDriver { // TODO: need change in hvigor if (process.env.USE_KOALA_UI_PLUGIN) { - projectConfig.plugins['ArkUI'] = uiPluginPath + projectConfig.plugins.ArkUI = uiPluginPath } if (process.env.USE_KOALA_MEMO_PLUGIN) {