mirror of
https://ghproxy.net/https://github.com/wp-cli/wp-cli-bundle.git
synced 2025-10-04 06:55:06 +08:00
Conditionally include directory
This commit is contained in:
parent
9ead8593b8
commit
e08f09277f
1 changed files with 5 additions and 1 deletions
|
@ -228,7 +228,6 @@ if ( 'cli' === BUILD ) {
|
|||
->in( WP_CLI_VENDOR_DIR . '/nb/oxymel' )
|
||||
->in( WP_CLI_VENDOR_DIR . '/psr' )
|
||||
->in( WP_CLI_VENDOR_DIR . '/seld' )
|
||||
->in( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' ) // required by justinrainbow/json-schema.
|
||||
->in( WP_CLI_VENDOR_DIR . '/justinrainbow/json-schema' )
|
||||
->in( WP_CLI_VENDOR_DIR . '/gettext' )
|
||||
->in( WP_CLI_VENDOR_DIR . '/mck89' )
|
||||
|
@ -244,6 +243,11 @@ if ( 'cli' === BUILD ) {
|
|||
->exclude( 'composer/composer/src/Composer/Question' )
|
||||
->exclude( 'composer/composer/src/Composer/Repository/Pear' )
|
||||
->exclude( 'composer/composer/src/Composer/SelfUpdate' );
|
||||
|
||||
// required by justinrainbow/json-schema v6+.
|
||||
if ( is_dir( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' ) ) {
|
||||
$finder->in( WP_CLI_VENDOR_DIR . '/marc-mabe/php-enum' );
|
||||
}
|
||||
}
|
||||
|
||||
foreach ( $finder as $file ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue