Skip to content

Commit e94028b

Browse files
authored
Include ./dist/es in published ssdk package files to fix ESM entrypoint (#1371)
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.
1 parent 2dad138 commit e94028b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

smithy-typescript-ssdk-libs/server-apigateway/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
},
4343
"files": [
4444
"dist/cjs/**/*.js",
45+
"dist/es/**/*.js",
4546
"dist/types/**/*.d.ts",
4647
"!**/*.spec.*"
4748
],

smithy-typescript-ssdk-libs/server-common/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
},
4343
"files": [
4444
"dist/cjs/**/*.js",
45+
"dist/es/**/*.js",
4546
"dist/types/**/*.d.ts",
4647
"!**/*.spec.*"
4748
],

smithy-typescript-ssdk-libs/server-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
},
4242
"files": [
4343
"dist/cjs/**/*.js",
44+
"dist/es/**/*.js",
4445
"dist/types/**/*.d.ts",
4546
"!**/*.spec.*"
4647
],

0 commit comments

Comments
 (0)