Skip to content

Negated paths would be useful #25

@garrettw

Description

@garrettw

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions