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'
16
16
const { rootPkgJsonPath } = constants
17
17
18
18
const 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
+ } )
25
24
)
26
25
27
26
function camelToHyphen ( str : string ) : string {
Original file line number Diff line number Diff line change @@ -75,14 +75,14 @@ export async function meowWithSubcommands(
75
75
{
76
76
...toSortedObject (
77
77
Object . fromEntries (
78
- Object . entries ( subcommands )
79
- . filter ( entry => ! entry [ 1 ] . hidden )
78
+ Object . entries ( subcommands ) . filter ( entry => ! entry [ 1 ] . hidden )
80
79
)
81
80
) ,
82
81
...toSortedObject (
83
82
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
+ )
86
86
)
87
87
)
88
88
} ,
You can’t perform that action at this time.
0 commit comments