add composer install to package prepare script (#42839)

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
This commit is contained in:
Ron Rennick 2023-12-15 11:08:29 -04:00 committed by GitHub
parent 69172606f5
commit 5ce113d413
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import { getFilepathFromPackageName } from './validate';
export const getNextVersion = ( name: string ) => {
try {
const cwd = getFilepathFromPackageName( name );
execSync( 'composer install', { cwd, encoding: 'utf-8' } );
return execSync( './vendor/bin/changelogger version next', {
cwd,
encoding: 'utf-8',