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(cli): add uninstall deps to jsPackageManager #18900

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Aug 9, 2022

Issue: N/A

What I did

As part of automigrations we'll need to uninstall dependencies, so I added such functionality.

How to test

yarn test jspackagemanager

  • Is this testable with Jest or Chromatic screenshots?
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@yannbf yannbf added maintenance User-facing maintenance tasks cli labels Aug 9, 2022
@yannbf yannbf requested a review from tmeasday August 9, 2022 08:35
@ndelangen ndelangen merged commit f38f4cd into next Aug 9, 2022
@ndelangen ndelangen deleted the chore/add-uninstall-deps-command branch August 9, 2022 10:04
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

Logic looks off to me @yannbf

const { packageJson } = options;

dependencies.forEach((dep) => {
delete packageJson[dep];
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this delete from packageJson.dependencies or devDependencies?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup! Fixed in #18905

@yannbf yannbf mentioned this pull request Aug 9, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants