File tree 4 files changed +7
-1
lines changed
src/built-in-plugins/command-publish/plugin
4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pri" ,
3
- "version" : " 4.0.29 " ,
3
+ "version" : " 4.0.30-beta.5 " ,
4
4
"types" : " src/node/index.ts" ,
5
5
"main" : " built/node/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ pri.commands.registerCommand({
33
33
includeAll : {
34
34
description : 'Include all sub packages' ,
35
35
} ,
36
+ exitAfterPublish : {
37
+ description : 'Force exit after publish' ,
38
+ } ,
36
39
} ,
37
40
action : async ( options : PublishOption ) => {
38
41
const commandPublishModule = await import ( './run-publish' ) ;
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ export interface PublishOption {
8
8
publishOnly ?: boolean ;
9
9
branch ?: string ;
10
10
includeAll ?: boolean ;
11
+ exitAfterPublish ?: boolean ;
11
12
}
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ export const publish = async (options: PublishOption) => {
84
84
default :
85
85
// Not sure what to do, so keep empty.
86
86
}
87
+ // eslint-disable-next-line no-unused-expressions
88
+ options . exitAfterPublish && process . exit ( 0 ) ;
87
89
} ;
88
90
89
91
async function authPublish ( packageNames : string [ ] ) {
You can’t perform that action at this time.
0 commit comments