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

Add ability to update any section of package.json #25783

Closed
wants to merge 3 commits into from

Conversation

nulpatrol
Copy link
Contributor

From #25700

In continuation of the previous PRs (#24189, #25457 ) I suggest one more.
I noticed that developers who need to update, for example, a section of scripts, often completely overwrite the existing package.json file.
Let's give ability to pass name of section as parameter of static::updatePackages.

static::updatePackages('scripts');

For back compatibility, we also support boolean as parameter.

Maybe there are best variants for doing this, but I think, that this variant is the least breaking.

Boolean param replaced by string param with name of section in package.json

@nulpatrol nulpatrol changed the base branch from 5.7 to master September 27, 2018 10:04
@nulpatrol nulpatrol closed this Sep 27, 2018
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

3 participants