@@ -379,6 +379,7 @@ async function getPackageVersion(ctx: Context): Promise<Result<string>> {
379
379
/** Helper to manage build process with tracking */
380
380
async function executeBuild (
381
381
ctx : Context ,
382
+ actionName : string ,
382
383
buildPath : string ,
383
384
options : { tag ?: string } = { } ,
384
385
) : Promise < Result < void > > {
@@ -393,7 +394,7 @@ async function executeBuild(
393
394
}
394
395
395
396
log (
396
- `[build ] ${ buildPath } : ${ processId } ${ options . tag ? ` (tag: ${ options . tag } )` : "" } ` ,
397
+ `[${ actionName } ] ${ buildPath } : ${ processId } ${ options . tag ? ` (tag: ${ options . tag } )` : "" } ` ,
397
398
) ;
398
399
await ctx . tangram . processOutput ( processId ) ;
399
400
return { ok : true , value : undefined } ;
@@ -462,14 +463,12 @@ async function buildAction(ctx: Context): Promise<Result<string[]>> {
462
463
const exportSuffix = exportName !== "default" ? `#${ exportName } ` : "" ;
463
464
const buildPath = `${ ctx . packagePath } ${ exportSuffix } ` ;
464
465
465
- log ( `[build] ${ buildPath } ` ) ;
466
-
467
466
if ( ctx . dryRun ) {
468
467
built . push ( buildPath ) ;
469
468
continue ;
470
469
}
471
470
472
- const result = await executeBuild ( ctx , buildPath ) ;
471
+ const result = await executeBuild ( ctx , "build" , buildPath ) ;
473
472
if ( ! result . ok ) {
474
473
return result as Result < string [ ] > ;
475
474
}
@@ -533,9 +532,7 @@ async function releaseAction(ctx: Context): Promise<Result<string>> {
533
532
const tag = buildTag ( ctx . packageName , version , exportName , ctx . platform ) ;
534
533
const buildSource = `${ versionedName } ${ exportSuffix } ` ;
535
534
536
- log ( `[release] tagging ${ tag } ` ) ;
537
-
538
- const result = await executeBuild ( ctx , buildSource , { tag } ) ;
535
+ const result = await executeBuild ( ctx , "release" , buildSource , { tag } ) ;
539
536
if ( ! result . ok ) {
540
537
return result as Result < string > ;
541
538
}
@@ -586,13 +583,12 @@ class Results {
586
583
587
584
async function testAction ( ctx : Context ) : Promise < Result < void > > {
588
585
const buildPath = `${ ctx . packagePath } #test` ;
589
- log ( `[test] ${ buildPath } ` ) ;
590
586
591
587
if ( ctx . dryRun ) {
592
588
return { ok : true , value : undefined } ;
593
589
}
594
590
595
- return await executeBuild ( ctx , buildPath ) ;
591
+ return await executeBuild ( ctx , "test" , buildPath ) ;
596
592
}
597
593
598
594
/** Ordered actions - dependencies implicit in order */
0 commit comments