add flag skip tsc oh_modules check

Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8VRMZ
Test: tsc test

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: I67bec385d128187942f4bb70b898b0c767053c79
This commit is contained in:
xucheng46 2024-01-12 19:23:45 +08:00
parent 1ff18a2142
commit 2ca31f0913
7 changed files with 21 additions and 0 deletions

View File

@ -101704,6 +101704,9 @@ var ts;
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if ((_a = item.file) === null || _a === void 0 ? void 0 : _a.isDeclarationFile) {
return false;
}

View File

@ -122612,6 +122612,9 @@ var ts;
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if ((_a = item.file) === null || _a === void 0 ? void 0 : _a.isDeclarationFile) {
return false;
}

View File

@ -122611,6 +122611,9 @@ var ts;
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if ((_a = item.file) === null || _a === void 0 ? void 0 : _a.isDeclarationFile) {
return false;
}

View File

@ -122602,6 +122602,9 @@ var ts;
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if ((_a = item.file) === null || _a === void 0 ? void 0 : _a.isDeclarationFile) {
return false;
}

View File

@ -122602,6 +122602,9 @@ var ts;
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if ((_a = item.file) === null || _a === void 0 ? void 0 : _a.isDeclarationFile) {
return false;
}

View File

@ -122592,6 +122592,9 @@ var ts;
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
ts.Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if ((_a = item.file) === null || _a === void 0 ? void 0 : _a.isDeclarationFile) {
return false;
}

View File

@ -2261,6 +2261,9 @@ namespace ts {
Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
if (isOhModule) {
if (options.skipTscOhModuleCheck) {
return false;
}
if (item.file?.isDeclarationFile) {
return false;
}