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: exclude tests from npm publish #13153

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Conversation

sobolk
Copy link
Member

@sobolk sobolk commented Aug 24, 2023

Description of changes

I've noticed that we ship unnecessary files to npm.
Repro:

  • create any npm project npm init
  • add latest @aws-amplify/cli-internal as dependency
  • npm install
  • search for describe (or some other test keyword) in node_modules.

image

Issue #, if available

Description of how you validated changes

E2E tests https://us-east-1.console.aws.amazon.com/codebuild/home?region=us-east-1#/builds/build-batch/AmplifyCLI-E2E-Testing:d4b76a83-a078-4741-b0bb-0743f81cae3b/view/new

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)
  • New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sobolk sobolk marked this pull request as ready for review August 25, 2023 00:33
@sobolk sobolk requested a review from a team as a code owner August 25, 2023 00:33
@sobolk sobolk changed the title fix: exclude tests from publish fix: exclude tests from npm publish Aug 25, 2023
@sobolk sobolk merged commit 1b1fe09 into aws-amplify:dev Aug 25, 2023
@sobolk sobolk deleted the ignore-tests-npm branch August 25, 2023 17:10
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