Skip to content

Commit f3644d1

Browse files
committed
Restored pre-publish and post-publish commands for non-bundle products. Removed support for bundled (consolidated) products.
1 parent 9413a35 commit f3644d1

File tree

5 files changed

+8
-873
lines changed

5 files changed

+8
-873
lines changed

src/PostSharp.Engineering.BuildTools/AppExtensions.cs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,17 @@ internal static void AddCommands( this CommandApp app, Product product )
7272
.WithData( data )
7373
.WithDescription( "Verify that the dependencies of public artifacts have already been publicly deployed" );
7474

75-
if ( product.IsBundle )
76-
{
77-
root.AddCommand<PrePublishCommand>( "prepublish" )
78-
.WithData( data )
79-
.WithDescription( "Prepares publishing of all packages that have been previously built by the 'build' command" );
80-
}
75+
root.AddCommand<PrePublishCommand>( "prepublish" )
76+
.WithData( data )
77+
.WithDescription( "Prepares publishing of all packages that have been previously built by the 'build' command" );
8178

8279
root.AddCommand<PublishCommand>( "publish" )
8380
.WithData( data )
8481
.WithDescription( "Publishes all packages that have been previously built by the 'build' command" );
8582

86-
if ( product.IsBundle )
87-
{
88-
root.AddCommand<PostPublishCommand>( "postpublish" )
89-
.WithData( data )
90-
.WithDescription( "Finalizes publishing of all packages that have been previously built by the 'build' command" );
91-
}
83+
root.AddCommand<PostPublishCommand>( "postpublish" )
84+
.WithData( data )
85+
.WithDescription( "Finalizes publishing of all packages that have been previously built by the 'build' command" );
9286

9387
if ( product.Configurations.All.Any( c => c.Swappers is { Length: > 0 } ) )
9488
{

0 commit comments

Comments
 (0)