mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
Fix compiling ohosTest files named as xxx.test.ets
Issue:https://gitee.com/openharmony/developtools_ace-ets2bundle/issues/I5JG35?from=project-issue Signed-off-by: hufeng <hufeng20@huawei.com> Change-Id: Iedbe619ad4905cc69699e278d7ffb387f658c2a9
This commit is contained in:
@@ -37,10 +37,6 @@ export function isOhmUrl(moduleRequest: string): boolean {
|
||||
}
|
||||
|
||||
function addExtension(file: string, srcPath: string): string {
|
||||
if (path.extname(file) !== '') {
|
||||
return file;
|
||||
}
|
||||
|
||||
let extension: string = '.d.ts';
|
||||
if (fs.existsSync(file + '.ets') && fs.statSync(file + '.ets').isFile()) {
|
||||
extension = '.ets';
|
||||
|
||||
Reference in New Issue
Block a user