From 2502c2e973cdae98e139f10a000cbdd095c420ca Mon Sep 17 00:00:00 2001 From: Muhammad Rahmahalim Date: Sun, 24 Nov 2024 21:42:20 +0700 Subject: [PATCH] docs: update `resolveCommand` return property (#32) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c880dc..09a66ac 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ const pm = await detect() if (!pm) throw new Error('Could not detect package manager') -const { command, args } = resolveCommand(pm.agent, 'add', ['@antfu/ni']) // { cli: 'pnpm', args: ['add', '@antfu/ni'] } +const { command, args } = resolveCommand(pm.agent, 'add', ['@antfu/ni']) // { command: 'pnpm', args: ['add', '@antfu/ni'] } console.log(`Detected the ${pm.agent} package manager. You can run a install with ${command} ${args.join(' ')}`) ```