-
Notifications
You must be signed in to change notification settings - Fork 79
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
Conversation
Signed-off-by: Kevin Shan <siqishan@amazon.com>
Signed-off-by: Kevin Shan <siqishan@amazon.com>
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", |
There was a problem hiding this comment.
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[] = [ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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 fixedbundledDependency
and generated.jsii
. Changes were also made tonohoist
in root levelpackage.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
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.