@@ -16,7 +16,6 @@ const getLatestVersion = async (package) => {
1616async function prepare ( _ , { nextRelease } ) {
1717 const thisPackage = nextRelease . name . replace ( / - v .* / , '' ) ;
1818 const nextVersion = nextRelease . version ;
19-
2019 console . log ( 'Updating package versions for release!\n' ) ;
2120 console . log ( 'Next version is:' , nextVersion , '\n' ) ;
2221
@@ -34,7 +33,7 @@ async function prepare(_, { nextRelease }) {
3433
3534 ( async ( ) => await replace ( replaceConfig ) ) ( ) ;
3635
37- const localFiles = glob . sync ( `${ root } /packages/${ thisPackage . replace ( '@data-driven-forms/' ) } /package.json` ) ;
36+ const localFiles = glob . sync ( `${ root } /packages/${ thisPackage . replace ( '@data-driven-forms/' , '' ) } /package.json` ) ;
3837
3938 const versions = await Promise . all ( [
4039 getLatestVersion ( '@data-driven-forms/evergreen-component-mapper' ) ,
@@ -61,7 +60,9 @@ async function prepare(_, { nextRelease }) {
6160
6261 ( async ( ) => await replace ( replaceConfig2 ) ) ( ) ;
6362
64- console . log ( '${thisPackage} package version successfully updated!\n' ) ;
63+ console . log ( 'Replacing other packages in ' , localFiles , ' with versions ' , versions , '\n' ) ;
64+
65+ console . log ( `${ thisPackage } package version successfully updated!\n` ) ;
6566} ;
6667
6768module . exports = { prepare } ;
0 commit comments