From b0187cb7f0e9deca87809c364793485d7ea5c4d8 Mon Sep 17 00:00:00 2001 From: userquin Date: Sat, 1 Feb 2025 00:08:04 +0100 Subject: [PATCH 1/2] docs: update `How` section --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 407d634a..7cf061c9 100644 --- a/README.md +++ b/README.md @@ -293,9 +293,9 @@ asdf global ni latest ### How? -**ni** assumes that you work with lockfiles (and you should) +**ni** assumes that you work with lock-files (and you should). -Before it runs, it will detect your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lock` / `bun.lockb` to know current package manager (or `packageManager` field in your packages.json if specified), and runs the [corresponding commands](https://github.com/antfu/ni/blob/main/src/agents.ts). +Before `ni` runs the command, it detects your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lock` / `bun.lockb` to check the current package manager (or `packageManager` field in your packages.json if specified) using the [package-manager-detector](https://github.com/antfu-collective/package-manager-detector) package and then runs the corresponding [package-manager-detector command](https://github.com/antfu-collective/package-manager-detector/blob/main/src/commands.ts). ### Trouble shooting From ed0a9ceb64cfcfa01015386e5add8a583246d4b3 Mon Sep 17 00:00:00 2001 From: userquin Date: Sat, 1 Feb 2025 00:11:43 +0100 Subject: [PATCH 2/2] chore: update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7cf061c9..54294344 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,7 @@ asdf global ni latest **ni** assumes that you work with lock-files (and you should). -Before `ni` runs the command, it detects your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lock` / `bun.lockb` to check the current package manager (or `packageManager` field in your packages.json if specified) using the [package-manager-detector](https://github.com/antfu-collective/package-manager-detector) package and then runs the corresponding [package-manager-detector command](https://github.com/antfu-collective/package-manager-detector/blob/main/src/commands.ts). +Before `ni` runs the command, it detects your `yarn.lock` / `pnpm-lock.yaml` / `package-lock.json` / `bun.lock` / `bun.lockb` to know the current package manager (or `packageManager` field in your packages.json if specified) using the [package-manager-detector](https://github.com/antfu-collective/package-manager-detector) package and then runs the corresponding [package-manager-detector command](https://github.com/antfu-collective/package-manager-detector/blob/main/src/commands.ts). ### Trouble shooting