Skip to content

Commit 9d7cc34

Browse files
authored
chore(scripts): run yarn after codegen (#6659)
1 parent 9034ee4 commit 9d7cc34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/generate-clients/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ const { prettifyCode } = require("./code-prettify");
1616
const { eslintFixCode } = require("./code-eslint-fix");
1717
const { buildSmithyTypeScript } = require("./build-smithy-typescript");
1818
const { SMITHY_TS_COMMIT } = require("./config");
19+
const { spawnProcess } = require("../utils/spawn-process");
20+
const { cwd } = require("process");
1921

22+
const REPO_ROOT = path.join(__dirname, "..", "..");
2023
const SMITHY_TS_DIR = path.normalize(path.join(__dirname, "..", "..", "..", "smithy-typescript"));
2124
const SDK_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "clients"));
2225
const PRIVATE_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "private"));
@@ -139,6 +142,7 @@ const {
139142
}
140143

141144
require("./customizations/workspaces-thin-client")();
145+
await spawnProcess("yarn", [], { cwd: REPO_ROOT, stdio: "inherit" });
142146
require("../runtime-dependency-version-check/runtime-dep-version-check");
143147
} catch (e) {
144148
console.log(e);

0 commit comments

Comments
 (0)