Skip to content

Commit 9bcf5e5

Browse files
authored
fix: import paths for JS projects and circular dependency issue in RdsHostListProvider (#546)
1 parent aa3f036 commit 9bcf5e5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.babelrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"plugins": [
33
["babel-plugin-transform-rewrite-imports", {
4-
"appendExtension": ".js"
4+
"appendExtension": ".js",
5+
"replaceExtensions": {
6+
"(.+?)/common/lib$": "$1/common/lib/index"
7+
}
58
}]
69
]
710
}

common/lib/host_list_provider/rds_host_list_provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { RdsUrlType } from "../utils/rds_url_type";
2121
import { RdsUtils } from "../utils/rds_utils";
2222
import { HostListProviderService } from "../host_list_provider_service";
2323
import { ConnectionUrlParser } from "../utils/connection_url_parser";
24-
import { AwsWrapperError } from "../";
24+
import { AwsWrapperError } from "../utils/errors";
2525
import { Messages } from "../utils/messages";
2626
import { WrapperProperties } from "../wrapper_property";
2727
import { logger } from "../../logutils";

0 commit comments

Comments
 (0)