Skip to content

Commit 920c0bf

Browse files
committed
fix(client-workspaces-thin-client): fix generation script order
1 parent 5d8cde0 commit 920c0bf

File tree

2 files changed

+16
-1
lines changed
  • clients/client-workspaces-thin-client/src
  • scripts/generate-clients

2 files changed

+16
-1
lines changed

clients/client-workspaces-thin-client/src/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,17 @@ export * from "./models";
2828
import "@aws-sdk/util-endpoints";
2929

3030
export { WorkSpacesThinClientServiceException } from "./models/WorkSpacesThinClientServiceException";
31+
32+
import { WorkSpacesThinClient } from "./WorkSpacesThinClient";
33+
34+
/**
35+
* @deprecated use {WorkSpacesThinClient} (renamed) instead.
36+
* The aggregated client is called WorkSpacesThinClient,
37+
* and the barebones client is called WorkSpacesThinClientClient.
38+
*
39+
* Due to some code generation issues with the word "Client" in the service name,
40+
* we are maintaining a few backwards compatible aliases here.
41+
*/
42+
export const WorkSpacesThin = WorkSpacesThinClient;
43+
44+
export type { WorkSpacesThinClientPaginationConfiguration as WorkSpacesThinPaginationConfiguration } from "./pagination/Interfaces";

scripts/generate-clients/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ const {
9494

9595
const undoS3 = s3Hack();
9696
await generateClients(models || globs || DEFAULT_CODE_GEN_INPUT_DIR, batchSize);
97-
require("./customizations/workspaces-thin-client")();
9897
undoS3();
9998

10099
if (!noPrivateClients) {
@@ -133,6 +132,8 @@ const {
133132
emptyDirSync(TEMP_CODE_GEN_INPUT_DIR);
134133
rmdirSync(TEMP_CODE_GEN_INPUT_DIR);
135134
}
135+
136+
require("./customizations/workspaces-thin-client")();
136137
} catch (e) {
137138
console.log(e);
138139
process.exit(1);

0 commit comments

Comments
 (0)