-
Notifications
You must be signed in to change notification settings - Fork 292
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(deps): Fix transitive dependencies #5796
Conversation
… fix-transitive-deps
🦋 Changeset detectedLatest commit: 9dc445b The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Let's add the linting rule to the base eslint config that the rest of the packages extend from and configure ignore patterns for devDeps in test files there
@@ -33,10 +33,12 @@ | |||
"typecheck": "tsc --noEmit" | |||
}, | |||
"dependencies": { | |||
"@aws-amplify/core": "6.4.0", |
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.
Wasn't sure what version to use, went with 6.4.0 because it's what would be brought in by the latest version of the "aws-amplify": "^6.3.2"
peer dep
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.
This looks good to me. I believe I understand the change, but I would still like to see @calebpollman's remaining question answered
@@ -19,6 +20,12 @@ module.exports = { | |||
}, | |||
ignorePatterns: ['dist'], | |||
rules: { | |||
'import/no-extraneous-dependencies': [ |
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.
Nce catch!
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.
Smoke tested locally and everything is working as expected, thanks for the hard work here @esauerbo
4784042
… fix-transitive-deps
…amplify-ui into fix-transitive-deps
Description of changes
import/no-extraneous-dependencies
rule which will error if an import is used that isn't included in the module'spackage.json
Issue #, if available
Description of how you validated changes
Manually went through each package and removed a dependency and verified that eslint threw an error
Checklist
yarn test
passes and tests are updated/addeddocs
,e2e
,examples
, or other private packages.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.