@@ -12,26 +12,28 @@ import {assertValidGithubConfig, getConfig} from '../../utils/config.js';
1212import { addGithubTokenOption } from '../../utils/git/github-yargs.js' ;
1313import { assertValidReleaseConfig } from '../config/index.js' ;
1414
15- import { CompletionState , ReleaseTool } from './index.js' ;
15+ import { CompletionState , ReleaseTool , ReleaseToolFlags } from './index.js' ;
1616import { AuthenticatedGitClient } from '../../utils/git/authenticated-git-client.js' ;
1717import { green , Log , yellow } from '../../utils/logging.js' ;
1818
1919/** Command line options for publishing a release. */
20- export interface ReleasePublishOptions { }
20+ export interface ReleasePublishOptions extends ReleaseToolFlags { }
2121
2222/** Yargs command builder for configuring the `ng-dev release publish` command. */
2323function builder ( argv : Argv ) : Argv < ReleasePublishOptions > {
24- return addGithubTokenOption ( argv ) ;
24+ return addGithubTokenOption ( argv ) . option ( 'publishRegistry' , {
25+ type : 'string' ,
26+ } ) ;
2527}
2628
2729/** Yargs command handler for staging a release. */
28- async function handler ( ) {
30+ async function handler ( flags : Arguments < ReleasePublishOptions > ) {
2931 const git = await AuthenticatedGitClient . get ( ) ;
3032 const config = await getConfig ( ) ;
3133 assertValidReleaseConfig ( config ) ;
3234 assertValidGithubConfig ( config ) ;
3335
34- const task = new ReleaseTool ( git , config . release , config . github , git . baseDir ) ;
36+ const task = new ReleaseTool ( git , config . release , config . github , git . baseDir , flags ) ;
3537 const result = await task . run ( ) ;
3638
3739 switch ( result ) {
0 commit comments