Skip to content

Commit a8c052b

Browse files
committed
add template for core-command to phar
1 parent 2dd0c00 commit a8c052b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎utils/make-phar.php‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,17 @@ function get_composer_versions( $current_version ) {
284284
foreach ( $finder as $file ) {
285285
add_file( $phar, $file );
286286
}
287+
288+
$finder = new Finder();
289+
$finder
290+
->files()
291+
->ignoreVCS(true)
292+
->ignoreDotFiles(false)
293+
->in( WP_CLI_VENDOR_DIR . '/wp-cli/core-command/templates')
294+
;
295+
foreach ( $finder as $file ) {
296+
add_file( $phar, $file );
297+
}
287298
}
288299

289300
add_file( $phar, WP_CLI_VENDOR_DIR . '/autoload.php' );

0 commit comments

Comments
 (0)