@@ -56,12 +56,8 @@ async function copyFilesToReleaseDir({
5656 requireGitData ?: boolean ;
5757} ) : Promise < void > {
5858 for ( const variantProps of packagesToBuildProps ) {
59- await copyVariantFilesToReleaseDir ( {
60- variantProps,
61- rootDir,
62- variantsDirPath,
63- composeFileName
64- } ) ;
59+
60+ await copyVariantFilesToReleaseDir ( { variantProps, rootDir, variantsDirPath, composeFileName } ) ;
6561
6662 // Verify avatar (throws)
6763 const avatarPath = path . join (
@@ -86,24 +82,14 @@ async function copyVariantFilesToReleaseDir({
8682 variantsDirPath : string ;
8783 composeFileName : string ;
8884} ) : Promise < void > {
89- const {
90- manifest,
91- manifestFormat,
92- releaseDir,
93- compose,
94- variant
95- } = variantProps ;
85+ const { manifest, manifestFormat, releaseDir, compose, variant } = variantProps ;
9686
9787 // In case of single variant packages, the targets are in the root dir
98- const variantDirPath = variant
99- ? path . join ( variantsDirPath , variant )
100- : rootDir ;
88+ const variantDirPath = variant ? path . join ( variantsDirPath , variant ) : rootDir ;
10189
10290 for ( const [ fileId , fileConfig ] of Object . entries ( releaseFiles ) ) {
10391 // For single variant packages, the targets are in the root dir
104- const dirsToCopy = fs . existsSync ( variantDirPath )
105- ? [ rootDir , variantDirPath ]
106- : [ rootDir ] ;
92+ const dirsToCopy = fs . existsSync ( variantDirPath ) ? [ rootDir , variantDirPath ] : [ rootDir ] ;
10793
10894 switch ( fileId as keyof typeof releaseFiles ) {
10995 case "manifest" :
0 commit comments