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(GeneratorAPI): remove warning when using extendPackage with prune #5202

Merged
merged 1 commit into from Feb 27, 2020

Conversation

cexbrayat
Copy link
Member

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

Currently, if we use api.extendPackage({foo: null}, {prune: true}) the dependency is removed but a warning is logged as the range is invalid:

 WARN  invalid version range for dependency "foo":

- null injected by generator "my-plugin"

This commit fixes it, by skipping the range check if we delete a dependency.

Currently, if we use `api.extendPackage({foo: null}, {prune: true})` the dependency is removed but a warning is logged as the range is invalid:

```
 WARN  invalid version range for dependency "foo":

- null injected by generator "my-plugin"
```
@sodatea sodatea merged commit 5cb988c into vuejs:dev Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants