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

chore: remove @aws-cdk/assert from data-construct, api-construct, and transformer-core #3089

Merged
merged 4 commits into from
Dec 23, 2024

Conversation

bobbyu99
Copy link
Contributor

@bobbyu99 bobbyu99 commented Dec 20, 2024

Description of changes

@aws-cdk/assert dependency in data-construct, api-construct, and transformer-core is causing npm run check:dependencies to fail in the backend repo, throwing

    'npm error missing: jest@>=26.6.3, required by @aws-cdk/[email protected]\n' +

It does not make sense to install jest in the backend as they don't use jest framework, so it makes more sense to remove @aws-cdk/assert dependency if it is not needed in api repo and its removal does not break anything in api repo.

Description of how you validated changes

  • Used Validate api-construct is compatible with amplify-backend workflow to verify that the above changes pass npm run check:dependencies in the backend repo
  • yarn test passes
  • E2E

Checklist

  • PR description included
  • yarn test passes
  • E2E test run linked
  • 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
  • Any CDK or CloudFormation parameter changes are called out explicitly

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

@bobbyu99 bobbyu99 requested review from a team as code owners December 20, 2024 18:57
@bobbyu99 bobbyu99 changed the title Chore: remove @aws-cdk/assert from data-construct, api-construct, and transformer-core chore: remove @aws-cdk/assert from data-construct, api-construct, and transformer-core Dec 20, 2024
@bobbyu99 bobbyu99 changed the title chore: remove @aws-cdk/assert from data-construct, api-construct, and transformer-core chore: remove @aws-cdk/assert from data-construct, api-construct, and transformer-core Dec 20, 2024
Copy link
Member

@atierian atierian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove it from the root package as well.

@bobbyu99 bobbyu99 merged commit b52adbd into main Dec 23, 2024
8 checks passed
@bobbyu99 bobbyu99 deleted the remove-@aws-cdk/assert branch December 23, 2024 17:09
bobbyu99 added a commit that referenced this pull request Dec 23, 2024
* chore: update .jsii assembly

* chore: update .jsii assembly

* ci: remove unused codeql config (#3079)

* docs: update readme for gen 2 (#3080)

* chore(deps-dev): bump jsii from 5.6.0 to 5.6.4 (#3082)

* chore(deps-dev): bump jsii from 5.6.0 to 5.6.4

Bumps [jsii](https://github.com/aws/jsii-compiler) from 5.6.0 to 5.6.4.
- [Release notes](https://github.com/aws/jsii-compiler/releases)
- [Changelog](https://github.com/aws/jsii-compiler/blob/main/releases.json)
- [Commits](aws/jsii-compiler@v5.6.0...v5.6.4)

---
updated-dependencies:
- dependency-name: jsii
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: regenerate .jsii

Signed-off-by: Kevin Shan <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Kevin Shan <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Shan <[email protected]>

* chore: remove `@aws-cdk/assert` from `data-construct`, `api-construct`, and `transformer-core` (#3089)

* chore: remove @aws-cdk/assert dep

* chore: updated dependency licenses

* chore: removed `@aws-cdk/assert` dep from root `package.json`

* chore: remove `cfnspec` and `cloudformation` deps

* chore: suppress reexport and type-only files from coverage metrics in @aws-amplify/graphql-category-api (#3087)

* fix: remove transitive dev dependencies from bundled jsii constructs (#3092)

* remove transitive dev dependencies from jsii constructs

* update jsii

* update yarn.lock

* update dep licenses

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Kevin Shan <[email protected]>
Co-authored-by: amplify-data-ci <[email protected]>
Co-authored-by: Dane Pilcher <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Shan <[email protected]>
Co-authored-by: Tim Schmelter <[email protected]>
Co-authored-by: Ian Saultz <[email protected]>
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