mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-27 17:11:04 +00:00
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:
parent
1ff18a2142
commit
2ca31f0913
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user