Skip to content

Commit

Permalink
fix: correct AgentCommandValue type (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Nov 28, 2024
1 parent c50c6a1 commit 4546db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm run lint
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type Agent = 'npm' | 'yarn' | 'yarn@berry' | 'pnpm' | 'pnpm@6' | 'bun' | 'deno'
export type AgentName = 'npm' | 'yarn' | 'pnpm' | 'bun' | 'deno'

export type AgentCommandValue = (string | number)[] | ((args?: string[]) => string[]) | null
export type AgentCommandValue = (string | number)[] | ((args: string[]) => string[]) | null

export interface AgentCommands {
'agent': AgentCommandValue
Expand Down

0 comments on commit 4546db9

Please sign in to comment.