@@ -56,12 +56,8 @@ async function copyFilesToReleaseDir({
56
56
requireGitData ?: boolean ;
57
57
} ) : Promise < void > {
58
58
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 } ) ;
65
61
66
62
// Verify avatar (throws)
67
63
const avatarPath = path . join (
@@ -86,24 +82,14 @@ async function copyVariantFilesToReleaseDir({
86
82
variantsDirPath : string ;
87
83
composeFileName : string ;
88
84
} ) : Promise < void > {
89
- const {
90
- manifest,
91
- manifestFormat,
92
- releaseDir,
93
- compose,
94
- variant
95
- } = variantProps ;
85
+ const { manifest, manifestFormat, releaseDir, compose, variant } = variantProps ;
96
86
97
87
// 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 ;
101
89
102
90
for ( const [ fileId , fileConfig ] of Object . entries ( releaseFiles ) ) {
103
91
// 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 ] ;
107
93
108
94
switch ( fileId as keyof typeof releaseFiles ) {
109
95
case "manifest" :
0 commit comments