From 84ad6a19e005e90328e06bfa46191b4b20006d77 Mon Sep 17 00:00:00 2001 From: Brandon Vandegrift Date: Tue, 20 Aug 2024 17:38:12 +0000 Subject: [PATCH] Include ./dist/es in published ssdk package files to fix ESM entrypoint The ssdk packages have `"module": "./dist/es/index.js",` in package.json, but did not include `./dist/es` in their published files to npm. I noticed this when using vite's bundler, which was looking for the ESM entrypoint via the `module` field, but it was unable to find the file because it was not included in the files published to npm. This PR addes the files inside of `./dist/es` to the list of files published to npm. --- smithy-typescript-ssdk-libs/server-apigateway/package.json | 1 + smithy-typescript-ssdk-libs/server-common/package.json | 1 + smithy-typescript-ssdk-libs/server-node/package.json | 1 + 3 files changed, 3 insertions(+) diff --git a/smithy-typescript-ssdk-libs/server-apigateway/package.json b/smithy-typescript-ssdk-libs/server-apigateway/package.json index 4e461b2c88b..2cca751b5dc 100644 --- a/smithy-typescript-ssdk-libs/server-apigateway/package.json +++ b/smithy-typescript-ssdk-libs/server-apigateway/package.json @@ -42,6 +42,7 @@ }, "files": [ "dist/cjs/**/*.js", + "dist/es/**/*.js", "dist/types/**/*.d.ts", "!**/*.spec.*" ], diff --git a/smithy-typescript-ssdk-libs/server-common/package.json b/smithy-typescript-ssdk-libs/server-common/package.json index 3abb7c957df..bcd396b0e9a 100644 --- a/smithy-typescript-ssdk-libs/server-common/package.json +++ b/smithy-typescript-ssdk-libs/server-common/package.json @@ -42,6 +42,7 @@ }, "files": [ "dist/cjs/**/*.js", + "dist/es/**/*.js", "dist/types/**/*.d.ts", "!**/*.spec.*" ], diff --git a/smithy-typescript-ssdk-libs/server-node/package.json b/smithy-typescript-ssdk-libs/server-node/package.json index 03de711edd3..8d659e1ce3d 100644 --- a/smithy-typescript-ssdk-libs/server-node/package.json +++ b/smithy-typescript-ssdk-libs/server-node/package.json @@ -41,6 +41,7 @@ }, "files": [ "dist/cjs/**/*.js", + "dist/es/**/*.js", "dist/types/**/*.d.ts", "!**/*.spec.*" ],