File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
packages/semver/src/executors/version Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -80,18 +80,16 @@ export function versionWorkspace({
8080 )
8181 )
8282 ) ,
83- map (
84- ( packageFiles ) =>
85- packageFiles . filter ( ( packageFile ) => packageFile !== null ) as string [ ]
86- )
83+ map ( ( paths ) => paths . filter ( isNotNull ) )
8784 ) ,
8885 ] ) . pipe (
89- concatMap ( ( pathsToStage ) => {
90- return addToStage ( {
91- paths : pathsToStage . flat ( ) ,
86+ map ( ( paths ) => paths . flat ( ) ) ,
87+ concatMap ( ( paths ) =>
88+ addToStage ( {
89+ paths,
9290 dryRun,
93- } ) ;
94- } ) ,
91+ } )
92+ ) ,
9593 concatMap ( ( ) =>
9694 commit ( {
9795 dryRun,
@@ -228,3 +226,7 @@ export function _generateChangelogs({
228226 )
229227 ) ;
230228}
229+
230+ function isNotNull ( path : string | null ) : path is string {
231+ return path !== null ;
232+ }
You can’t perform that action at this time.
0 commit comments