File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ export function main(): void {
40
40
yargs . positional ( 'project' , {
41
41
type : 'string' ,
42
42
default : '.' ,
43
- describe : 'the directory to index' ,
43
+ describe :
44
+ 'path to the TypeScript project to index. Normally, this directory contains a tsconfig.json file.' ,
44
45
} )
45
- yargs . option ( 'indexYarnWorkspaces ' , {
46
+ yargs . option ( 'yarnWorkspaces ' , {
46
47
type : 'boolean' ,
47
48
default : 'false' ,
48
49
describe : 'whether to index all yarn workspaces' ,
@@ -54,8 +55,10 @@ export function main(): void {
54
55
} )
55
56
} ,
56
57
argv => {
57
- const workspaceRoot = argv . workspaceRoot as string
58
- const projects : string [ ] = argv . indexYarnWorkspaces
58
+ const workspaceRoot = argv . project as string
59
+ const yarnWorkspaces =
60
+ typeof argv . yarnWorkspaces === 'boolean' && argv . yarnWorkspaces
61
+ const projects : string [ ] = yarnWorkspaces
59
62
? listYarnWorkspaces ( workspaceRoot )
60
63
: [ workspaceRoot ]
61
64
const output = fs . openSync ( argv . output as string , 'w' )
You can’t perform that action at this time.
0 commit comments