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: construct dependencies fix #3065

Merged
merged 12 commits into from
Dec 16, 2024
Merged

chore: construct dependencies fix #3065

merged 12 commits into from
Dec 16, 2024

Conversation

Siqi-Shan
Copy link
Member

@Siqi-Shan Siqi-Shan commented Dec 11, 2024

Description of changes

Add required transitive dependencies to constructs package.json direct dependencies and bundled dependencies. NPM will now correctly install dependency-packages for data construct and api construct with fixed bundledDependency and generated .jsii. Changes were also made to nohoist in root level package.json to fix the dependency chain.

This PR also includes changes to bump aws-cdk lib version to v.2.168.0 across packages to correctly resolve deps tree with constructs in Amplify backend.

CDK / CloudFormation Parameters Changed

Issue #, if available

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • E2E test run linked

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

Signed-off-by: Kevin Shan <siqishan@amazon.com>
@Siqi-Shan Siqi-Shan marked this pull request as ready for review December 11, 2024 19:32
@Siqi-Shan Siqi-Shan requested a review from a team as a code owner December 11, 2024 19:32
Signed-off-by: Kevin Shan <siqishan@amazon.com>
@Siqi-Shan Siqi-Shan requested a review from a team as a code owner December 11, 2024 23:31
package.json Outdated
@@ -226,6 +226,35 @@
"@aws-amplify/graphql-api-construct/@aws-sdk/client-sso",
"@aws-amplify/graphql-api-construct/@aws-sdk/token-providers",
"@aws-amplify/graphql-api-construct/semver",
"@aws-amplify/graphql-api-construct/@aws-cdk/assert",
Copy link
Member

Choose a reason for hiding this comment

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

nit here and throughout: sort dependency lists

Signed-off-by: Kevin Shan <siqishan@amazon.com>
…s-amplify/auth-construct

Signed-off-by: Kevin Shan <siqishan@amazon.com>
Signed-off-by: Kevin Shan <siqishan@amazon.com>
Signed-off-by: Kevin Shan <siqishan@amazon.com>
@@ -24,6 +24,13 @@ const CONSTRUCT_PACKAGE_CONFIGURATIONS: ConstructPackageConfiguration[] = [
},
];

const SKIP_TRANSITIVE_REPO_PACKAGES: PackageConfiguration[] = [
Copy link
Member

Choose a reason for hiding this comment

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

Is this skipping all transitive deps of @aws-amplify/graphql-conversation-transformer? I think we only want to skip deps that are not used at runtime.

Copy link
Member

Choose a reason for hiding this comment

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

➕ we should only skip specific packages that we know are ok to skip. Skipping all transitive dependencies of a package is too broad and will allow regressions to sneak in.

dpilch
dpilch previously approved these changes Dec 12, 2024
dpilch
dpilch previously approved these changes Dec 12, 2024
@Siqi-Shan Siqi-Shan merged commit fb8cd0e into main Dec 16, 2024
8 checks passed
@Siqi-Shan Siqi-Shan deleted the construct-dependencies-fix branch December 16, 2024 20:17
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.

4 participants