updata api case Rex

Signed-off-by: jiangbo <jiangbo91@huawei.com>
This commit is contained in:
jiangbo
2022-06-21 10:18:13 +08:00
parent 9f65e562e0
commit 643cfb8b50
+1 -1
View File
@@ -143,7 +143,7 @@ function resolveModuleNames(moduleNames: string[], containingFile: string): ts.R
} else {
resolvedModules.push(null);
}
} else if (/^@(system|ohos)/.test(moduleName.trim())) {
} else if (/^@(system|ohos)/i.test(moduleName.trim())) {
const modulePath: string = path.resolve(__dirname, '../../../api', moduleName + '.d.ts');
if (systemModules.includes(moduleName + '.d.ts') && ts.sys.fileExists(modulePath)) {
resolvedModules.push(getResolveModule(modulePath, '.d.ts'));