Skip to content

Commit 2dd0c00

Browse files
committed
add templates for extension-command to phar
1 parent 4bb2788 commit 2dd0c00

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
@@ -273,6 +273,17 @@ function get_composer_versions( $current_version ) {
273273
foreach ( $finder as $file ) {
274274
add_file( $phar, $file );
275275
}
276+
277+
$finder = new Finder();
278+
$finder
279+
->files()
280+
->ignoreVCS(true)
281+
->ignoreDotFiles(false)
282+
->in( WP_CLI_VENDOR_DIR . '/wp-cli/extension-command/templates')
283+
;
284+
foreach ( $finder as $file ) {
285+
add_file( $phar, $file );
286+
}
276287
}
277288

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

0 commit comments

Comments
 (0)