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: flip common deps in CLI to peer instead of regular dependencies #520

Merged
merged 1 commit into from
Jun 8, 2022

Conversation

alharris-at
Copy link
Contributor

Description of changes

flip common deps in CLI to peer instead of regular dependencies
this should protect us from some of the 'Feature Flags is not initialized' type errors we've seen, by ensuring the CLI uses it's own local version of the FeatureFlags lib.

Issue #, if available

N/A

Description of how you validated changes

yarn setup-dev and then ran a few test commands w/ amplify-dev api gql-compile

Checklist

  • PR description included
  • yarn test passes

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

@alharris-at alharris-at requested a review from a team June 8, 2022 00:01
edwardfoyle
edwardfoyle previously approved these changes Jun 8, 2022
Comment on lines 109 to 110
"amplify-util-headless-input": "^1.9.5",
"amplify-headless-interface": "^1.15.0"
Copy link
Member

Choose a reason for hiding this comment

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

amplify-headless-interface should be a dev dep and amplify-util-headless-input should be a peer dep

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let me test that, when I'd had amplify-util-headless-input as a peer dep previously I'd had some build errors for types not found from that lib, and when adding to both peer and dev dep still wasn't seeing it work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've moved these both to peer deps, and added headless-input to dev-deps as well, since we were failing finding the types withouth.

phani-srikar
phani-srikar previously approved these changes Jun 8, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #520 (0f8ad52) into main (041fb80) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #520   +/-   ##
=======================================
  Coverage   62.61%   62.61%           
=======================================
  Files         276      276           
  Lines       17723    17723           
  Branches     4248     4248           
=======================================
  Hits        11098    11098           
  Misses       6047     6047           
  Partials      578      578           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

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.

None yet

4 participants