@@ -124,12 +124,12 @@ export const buildCommand = new Command("build")
124124 android,
125125 ndkVersion,
126126 output : outputPath ,
127- cwd,
127+ cwd : cwdPath ,
128128 configuration,
129129 xcframeworkExtension,
130130 } ) => {
131- outputPath =
132- cwd && cwd . length > 0 ? path . join ( outputPath , cwd ) : outputPath ;
131+ const sourcePath = cwdPath && cwdPath . length > 0 ? path . join ( outputPath , cwdPath ) : outputPath ;
132+ outputPath = path . join ( sourcePath , "dist" ) ;
133133 try {
134134 const targets = new Set ( [ ...targetArg ] ) ;
135135 if ( apple ) {
@@ -184,7 +184,7 @@ export const buildCommand = new Command("build")
184184 async ( target ) =>
185185 [
186186 target ,
187- await build ( { configuration, target, sourcePath : outputPath } ) ,
187+ await build ( { configuration, target, sourcePath } ) ,
188188 ] as const ,
189189 ) ,
190190 ) ,
@@ -196,7 +196,7 @@ export const buildCommand = new Command("build")
196196 await build ( {
197197 configuration,
198198 target,
199- sourcePath : outputPath ,
199+ sourcePath,
200200 ndkVersion,
201201 androidApiLevel : ANDROID_API_LEVEL ,
202202 } ) ,
@@ -285,7 +285,7 @@ export const buildCommand = new Command("build")
285285 await oraPromise (
286286 generateTypeScriptDeclarations ( {
287287 outputFilename : declarationsFilename ,
288- createPath : outputPath ,
288+ createPath : sourcePath ,
289289 outputPath,
290290 } ) ,
291291 {
0 commit comments