Skip to content

Commit

Permalink
chore(scripts): run yarn after codegen (#6659)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe authored Nov 13, 2024
1 parent 9034ee4 commit 9d7cc34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/generate-clients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const { prettifyCode } = require("./code-prettify");
const { eslintFixCode } = require("./code-eslint-fix");
const { buildSmithyTypeScript } = require("./build-smithy-typescript");
const { SMITHY_TS_COMMIT } = require("./config");
const { spawnProcess } = require("../utils/spawn-process");
const { cwd } = require("process");

const REPO_ROOT = path.join(__dirname, "..", "..");
const SMITHY_TS_DIR = path.normalize(path.join(__dirname, "..", "..", "..", "smithy-typescript"));
const SDK_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "clients"));
const PRIVATE_CLIENTS_DIR = path.normalize(path.join(__dirname, "..", "..", "private"));
Expand Down Expand Up @@ -139,6 +142,7 @@ const {
}

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

0 comments on commit 9d7cc34

Please sign in to comment.