Skip to content

Commit 66f4181

Browse files
committed
chore(core): tsconfig files updates
1 parent c9adc06 commit 66f4181

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAccountIdEndpointModeRuntimeConfig.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
import software.amazon.smithy.utils.SmithyInternalApi;
2626

2727
/**
28-
* Generates accountIdEndpointMode configuration field for service clients that have the eponymous built-in param in the ruleset.
28+
* Generates accountIdEndpointMode configuration field for service clients
29+
* that have the AccountIdEndpointMode built-in param in the ruleset.
2930
*/
3031
@SmithyInternalApi
3132
public final class AddAccountIdEndpointModeRuntimeConfig implements TypeScriptIntegration {
@@ -48,11 +49,13 @@ public void addConfigInterfaceFields(
4849
writer.addDependency(AwsDependency.AWS_SDK_CORE);
4950
writer.addImport("AccountIdEndpointMode", "AccountIdEndpointMode", AwsDependency.AWS_SDK_CORE);
5051
writer.writeDocs("Defines if the AWS AccountId will be used for endpoint routing.");
51-
writer.write("accountIdEndpointMode?: AccountIdEndpointMode | __Provider<AccountIdEndpointMode>;\n");
52+
writer.write("accountIdEndpointMode?: AccountIdEndpointMode | "
53+
+ "__Provider<AccountIdEndpointMode>;\n");
5254
}
5355
}
5456
}
5557
}
58+
5659
@Override
5760
public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(
5861
TypeScriptSettings settings,
@@ -71,7 +74,8 @@ public Map<String, Consumer<TypeScriptWriter>> getRuntimeConfigWriters(
7174
case BROWSER:
7275
runtimeConfigs.put("accountIdEndpointMode", writer -> {
7376
writer.addDependency(AwsDependency.AWS_SDK_CORE);
74-
writer.addImport("DEFAULT_ACCOUNT_ID_ENDPOINT_MODE", "DEFAULT_ACCOUNT_ID_ENDPOINT_MODE",
77+
writer.addImport("DEFAULT_ACCOUNT_ID_ENDPOINT_MODE",
78+
"DEFAULT_ACCOUNT_ID_ENDPOINT_MODE",
7579
AwsDependency.AWS_SDK_CORE);
7680
writer.write("(() => Promise.resolve(DEFAULT_ACCOUNT_ID_ENDPOINT_MODE))");
7781
});

packages/core/account-id-endpoint.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
/**
3+
* Do not edit:
4+
* This is a compatibility redirect for contexts that do not understand package.json exports field.
5+
*/
6+
module.exports = require("./dist-cjs/submodules/account-id-endpoint/index.js");

packages/core/tsconfig.cjs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"paths": {
77
"@aws-sdk/core/client": ["./src/submodules/client/index.ts"],
88
"@aws-sdk/core/httpAuthSchemes": ["./src/submodules/httpAuthSchemes/index.ts"],
9-
"@aws-sdk/core/protocols": ["./src/submodules/protocols/index.ts"]
9+
"@aws-sdk/core/protocols": ["./src/submodules/protocols/index.ts"],
10+
"@aws-sdk/core/account-id-endpoint": ["./src/submodules/account-id-endpoint/index.ts"]
1011
}
1112
},
1213
"extends": "../../tsconfig.cjs.json",

packages/core/tsconfig.es.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"paths": {
77
"@aws-sdk/core/client": ["./src/submodules/client/index.ts"],
88
"@aws-sdk/core/httpAuthSchemes": ["./src/submodules/httpAuthSchemes/index.ts"],
9-
"@aws-sdk/core/protocols": ["./src/submodules/protocols/index.ts"]
9+
"@aws-sdk/core/protocols": ["./src/submodules/protocols/index.ts"],
10+
"@aws-sdk/core/account-id-endpoint": ["./src/submodules/account-id-endpoint/index.ts"]
1011
}
1112
},
1213
"extends": "../../tsconfig.es.json",

packages/core/tsconfig.types.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"paths": {
77
"@aws-sdk/core/client": ["./src/submodules/client/index.ts"],
88
"@aws-sdk/core/httpAuthSchemes": ["./src/submodules/httpAuthSchemes/index.ts"],
9-
"@aws-sdk/core/protocols": ["./src/submodules/protocols/index.ts"]
9+
"@aws-sdk/core/protocols": ["./src/submodules/protocols/index.ts"],
10+
"@aws-sdk/core/account-id-endpoint": ["./src/submodules/account-id-endpoint/index.ts"]
1011
}
1112
},
1213
"extends": "../../tsconfig.types.json",

0 commit comments

Comments
 (0)