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

Negated paths would be useful #25

Open
garrettw opened this issue Apr 12, 2018 · 0 comments
Open

Negated paths would be useful #25

garrettw opened this issue Apr 12, 2018 · 0 comments

Comments

@garrettw
Copy link

I am attempting to use this package to install WordPress along with plugins and themes using only Composer.
The problem is, if I preserve wp-content as a whole, the files under plugins and themes that are included in WP core do not get installed at all.

What would really solve this issue for me is the ability to also add negated paths so that composer will still install those but not touch any other plugins/themes.
Something like this:

"preserve-paths": [
  "wp-content",
  "!wp-content/plugins/akismet",
  "!wp-content/themes/twentyseventeen"
]

Could this feature be added?

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

No branches or pull requests

1 participant