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

fix(core): perform package.json update if one of the deps is missing #2481

Merged
merged 2 commits into from
Feb 14, 2020

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Feb 13, 2020

When you create a workspace with web or react presets, Nx does not install additional eslint packages since eslint is already in package.json.

This PR updates the logic so if any of the requested dependencies is missing, then the add task will be executed.

Current Behavior (This is the behavior we have today, before the PR is merged)

Running create-nx-workspace myorg --preset=react does not install eslint plugins so yarn lint fails.

Expected Behavior (This is the new behavior we can expect after the PR is merged)

yarn lint works

@jaysoo jaysoo requested a review from juristr February 13, 2020 19:08
Copy link
Member

@juristr juristr left a comment

Choose a reason for hiding this comment

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

LGTM, pushed a test to make sure we don't miss this next time

@jaysoo jaysoo merged commit a0a9180 into nrwl:master Feb 14, 2020
@jaysoo jaysoo deleted the fix-install-logic branch February 19, 2020 19:42
vsavkin pushed a commit that referenced this pull request Feb 20, 2020
…2481)

* fix(core): perform package.json update if one of the deps is missing

* fix(core): add test for package.json update

Co-authored-by: Juri Strumpflohner <juri.strumpflohner@gmail.com>
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants