package-manager-detector
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "package-manager-detector", | ||
"type": "module", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Package manager detector", | ||
@@ -6,0 +6,0 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", |
@@ -10,3 +10,3 @@ # package-manager-detector | ||
It will detect your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lockb` to know the current package manager and use the `packageManager` field in your `package.json` if present. | ||
It will detect your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lockb` / `deno.lock` to know the current package manager and use the `packageManager` field in your `package.json` if present. | ||
@@ -97,3 +97,3 @@ ## Install | ||
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(' ')}`) | ||
@@ -100,0 +100,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39320