Skip to content

fix(aws-serverless): Include ESM artifacts in package #11973

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

Merged
merged 1 commit into from
May 10, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented May 10, 2024

This PR fixes the files property in our AWS Serverless SDK package.json to include ESM artifacts now that we support ESM in AWS Serverless.

(supersedes #11968)

closes #11965

@Lms24 Lms24 requested review from lforst and andreiborza May 10, 2024 11:53
@Lms24 Lms24 self-assigned this May 10, 2024
@Lms24 Lms24 merged commit 4e318fd into develop May 10, 2024
67 checks passed
@Lms24 Lms24 deleted the lms/fix-aws-serverless-esm-entrypoint branch May 10, 2024 13:24
@jd-carroll
Copy link

@Lms24 @lforst I don't think this completely resolves the issue (fyi).

The module definition (package.json) also lists exports of:

  "exports": {
    ...
    "./import": {
      "import": {
        "default": "./build/import-hook.mjs"
      }
    },
    "./loader": {
      "import": {
        "default": "./build/loader-hook.mjs"
      }
    }
  },

While not immediately important, there is also no build in the root of the package.

So maybe also include build in the list of files?

@lforst
Copy link
Contributor

lforst commented May 10, 2024

@jd-carroll Indeed not that important but still, we should fix it. Thanks for catching that.

andreiborza pushed a commit that referenced this pull request May 16, 2024
Fix the `files` property in our AWS Serverless SDK
`package.json` to include ESM artifacts now that we support ESM in AWS
Serverless.
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.

@sentry/aws-serverless Has No ESM Artifacts
3 participants