From 4546db9ee6fec2e73f7fcdd4ecd08018b30500f4 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:16:36 -0800 Subject: [PATCH] fix: correct AgentCommandValue type (#35) --- .github/workflows/test.yml | 2 ++ src/types.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d392c7..58043e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/src/types.ts b/src/types.ts index c2c7f7e..71b88e7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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