Skip to content

Commit da6956f

Browse files
committed
updatre
1 parent 33cdb95 commit da6956f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/citty.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ export default async function tab<T extends ArgsDef = ArgsDef>(
163163
const args = (await resolve(instance.args))!;
164164
const parsed = parseArgs(extra, args);
165165
// TODO: this is not ideal at all
166-
const matchedCommand = parsed._.join(' ').trim();
166+
// const matchedCommand = parsed._.join(' ').trim(); //TODO: this was passed to parse line 170
167167
// TODO: `command lint i` does not work because `lint` and `i` are potential commands
168168
// instead the potential command should only be `lint`
169169
// and `i` is the to be completed part
170-
return completion.parse(extra, matchedCommand);
170+
return completion.parse(extra);
171171
}
172172
}
173173
},

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineConfig } from 'tsup';
33
export default defineConfig({
44
entry: ['src/index.ts', 'src/citty.ts', 'src/cac.ts'],
55
format: ['esm'],
6-
dts: false,
6+
dts: true,
77
clean: true,
88
skipNodeModulesBundle: true,
99
esbuildOptions(options) {

0 commit comments

Comments
 (0)