Skip to content

Commit

Permalink
Readme tweaks (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and sindresorhus committed Jul 1, 2019
1 parent 82d2a4a commit c9b4d09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions readme.md
Expand Up @@ -508,8 +508,7 @@ const binPath = getBinPathSync();
const subprocess = execa(binPath);
```

This is useful when testing the current package's binary. As opposed to hard-coding the path to the binary, this validates that the `package.json` `bin` field is correctly set up.

`execa` can be combined with [`get-bin-path`](https://github.com/ehmicky/get-bin-path) to test the current package's binary. As opposed to hard-coding the path to the binary, this validates that the `package.json` `bin` field is correctly set up.

## Related

Expand Down

0 comments on commit c9b4d09

Please sign in to comment.