From e90775f807f0d4643b976a47f3c401f44f4940f1 Mon Sep 17 00:00:00 2001 From: George Fu Date: Tue, 28 May 2024 16:24:36 -0400 Subject: [PATCH] chore: include pkg.json in copy-smithy-dist-files.js (#6143) --- scripts/copy-smithy-dist-files.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/copy-smithy-dist-files.js b/scripts/copy-smithy-dist-files.js index 1299d80eeb84..90f6fdcab809 100644 --- a/scripts/copy-smithy-dist-files.js +++ b/scripts/copy-smithy-dist-files.js @@ -32,6 +32,11 @@ const localSmithyPkgs = fs.readdirSync(path.join(node_modules, "@smithy")); path.join(smithyPackages, smithyPkg, "dist-es"), path.join(node_modules, "@smithy", smithyPkg), ]), + spawnProcess("cp", [ + "-r", + path.join(smithyPackages, smithyPkg, "package.json"), + path.join(node_modules, "@smithy", smithyPkg), + ]), ]); } })();