Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use npx vs. npm exec #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ While it should cover most basic migrations, it's __recommended__ to have a look
If you're using using `npm` in your project:

```sh
npm exec -- github:typicode/husky-4-to-5 --package-manager npm
npx -- github:typicode/husky-4-to-5 --package-manager npm
```

If you're using using `yarn` in your project:

```sh
npm exec -- github:typicode/husky-4-to-5 --package-manager yarn
npx -- github:typicode/husky-4-to-5 --package-manager yarn
```

If you're using using `pnpm` in your project:

```sh
# Use npm exec, since pnpm doesn't yet support exec
npm exec -- github:typicode/husky-4-to-5 --package-manager pnpm
# Use npx, since pnpm doesn't yet support exec
npx -- github:typicode/husky-4-to-5 --package-manager pnpm
Copy link

@yoyo837 yoyo837 Mar 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will add "undefined": "^0.1.0" in package.json devDependencies run with yarn

```

_Requires `npm 7`_
Expand Down