File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,11 @@ import { meowWithSubcommands } from './utils/meow-with-subcommands'
1616const { rootPkgJsonPath } = constants
1717
1818const formattedCliCommands = Object . fromEntries (
19- Object . entries ( cliCommands )
20- . map ( entry => {
21- const key = entry [ 0 ]
22- entry [ 0 ] = camelToHyphen ( key )
23- return entry
24- } )
19+ Object . entries ( cliCommands ) . map ( entry => {
20+ const key = entry [ 0 ]
21+ entry [ 0 ] = camelToHyphen ( key )
22+ return entry
23+ } )
2524)
2625
2726function camelToHyphen ( str : string ) : string {
Original file line number Diff line number Diff line change @@ -75,14 +75,14 @@ export async function meowWithSubcommands(
7575 {
7676 ...toSortedObject (
7777 Object . fromEntries (
78- Object . entries ( subcommands )
79- . filter ( entry => ! entry [ 1 ] . hidden )
78+ Object . entries ( subcommands ) . filter ( entry => ! entry [ 1 ] . hidden )
8079 )
8180 ) ,
8281 ...toSortedObject (
8382 Object . fromEntries (
84- Object . entries ( aliases )
85- . filter ( entry => ! subcommands [ entry [ 1 ] ?. argv [ 0 ] ! ] ?. hidden )
83+ Object . entries ( aliases ) . filter (
84+ entry => ! subcommands [ entry [ 1 ] ?. argv [ 0 ] ! ] ?. hidden
85+ )
8686 )
8787 )
8888 } ,
You can’t perform that action at this time.
0 commit comments