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

fix(signature-v4): use correct main entry point #712

Merged
merged 7 commits into from
Jan 14, 2020

Conversation

AllanZhengYP
Copy link
Contributor

fix: #611

The issue happens because the dist folder was not published to NPM. And previously dist folder contains ES5 code in ESModule for browser runtime, whereas build folder contains ES2017 code in commonjs module for NodeJS runtime.

The root cause is that main entry point in package.json was set to build folder, so dist folder won't be included in npm pack at all during release time. This fix set commonjs and esm module code in the same dist folder, so that npm pack can pick both up.

This PR includes other changes:

  • revive http-serialization package for testing
  • update suites.fixture.ts

/cc @jordanranz

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

@aws-sdk-js-automation

This comment has been minimized.

@aws-sdk-js-automation

This comment has been minimized.

@AllanZhengYP AllanZhengYP changed the title fix(signature-v3): use correct main entry point fix(signature-v4): use correct main entry point Jan 12, 2020
@aws-sdk-js-automation

This comment has been minimized.

@aws-sdk-js-automation

This comment has been minimized.

@AllanZhengYP AllanZhengYP force-pushed the fix-signer-dist branch 2 times, most recently from f398650 to f42a420 Compare January 13, 2020 02:41
@aws-sdk-js-automation

This comment has been minimized.

@aws-sdk-js-automation

This comment has been minimized.

@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@trivikr trivikr merged commit 16e233a into aws:smithy-codegen Jan 14, 2020
@lock
Copy link

lock bot commented Jan 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants