fix checkArkTsVersion function name

issue:#IA8YCZ

test:npm test

Signed-off-by: yangrui <yangrui185@huawei.com>
Change-Id: Ib7acea11ad2d673740b234a993cf761d76c5cb8b
This commit is contained in:
yangrui 2024-06-28 10:18:10 +08:00
parent 39720e1dab
commit d8352c583f

View File

@ -148,7 +148,7 @@ function setCompilerOptions(resolveModulePaths: string[]): void {
}
const suffix: string = projectConfig.hotReload ? HOT_RELOAD_BUILD_INFO_SUFFIX : TS_BUILD_INFO_SUFFIX;
const buildInfoPath: string = path.resolve(projectConfig.cachePath, '..', suffix);
checkAkTsVersion();
checkArkTSVersion();
Object.assign(compilerOptions, {
'allowJs': getArkTSLinterMode() !== ArkTSLinterMode.NOT_USE ? true : false,
'checkJs': getArkTSLinterMode() !== ArkTSLinterMode.NOT_USE ? false : undefined,
@ -186,7 +186,7 @@ function setCompilerOptions(resolveModulePaths: string[]): void {
readTsBuildInfoFileInCrementalMode(buildInfoPath, projectConfig);
}
function checkAkTsVersion(): void {
function checkArkTSVersion(): void {
const etsCheckerLogger = fastBuildLogger || logger;
if (getArkTSVersion() === ArkTSVersion.ArkTS_1_0 && tsImportSendable) {
const logMessage: string = 'ArkTS: ArkTSVersion1.0 does not support tsImportSendable in any condition';