From 9d7cc34e7aced3b0ff8fda61b15353c34c927d5d Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 13 Nov 2024 14:51:22 -0500 Subject: [PATCH] chore(scripts): run yarn after codegen (#6659) --- scripts/generate-clients/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/generate-clients/index.js b/scripts/generate-clients/index.js index 564e84f8cf195..b956190517026 100644 --- a/scripts/generate-clients/index.js +++ b/scripts/generate-clients/index.js @@ -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")); @@ -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);