Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include ./dist/es in published ssdk package files to fix ESM entrypoint #1371

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

bmv437
Copy link
Contributor

@bmv437 bmv437 commented Aug 20, 2024

Issue #, if available:
N/a

Description of changes:

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 to fix this issue.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

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.
@bmv437 bmv437 requested review from a team as code owners August 20, 2024 17:42
@bmv437 bmv437 requested a review from kstich August 20, 2024 17:42
@kuhe kuhe merged commit e94028b into smithy-lang:main Aug 28, 2024
11 checks passed
@kuhe
Copy link
Contributor

kuhe commented Aug 28, 2024

This has been merged but there is a release process for NPM which is pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants