File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const defaults = {
15
15
tagForce : false ,
16
16
gitTagFallback : true ,
17
17
preset : require . resolve ( 'conventional-changelog-conventionalcommits' ) ,
18
- npmClient : 'npm' ,
18
+ npmClient : 'npm'
19
19
}
20
20
21
21
/**
Original file line number Diff line number Diff line change @@ -397,6 +397,14 @@ describe('git', function () {
397
397
. should . match ( / n p m p u b l i s h / )
398
398
} )
399
399
400
+ it ( 'can display publish hints with custom npm client name' , async function ( ) {
401
+ const flush = mock ( { bump : 'patch' } )
402
+ await exec ( '--npmClient yarn' )
403
+ flush ( )
404
+ . stdout . join ( '' )
405
+ . should . match ( / y a r n p u b l i s h / )
406
+ } )
407
+
400
408
it ( 'does not display `npm publish` if the package is private' , async function ( ) {
401
409
writePackageJson ( '1.0.0' , { private : true } )
402
410
const flush = mock ( { bump : 'patch' } )
You can’t perform that action at this time.
0 commit comments