Skip to content

Commit

Permalink
fix: add bin key back to package.json (#101)
Browse files Browse the repository at this point in the history
<!-- πŸ‘‹ Hi, thanks for sending a PR to package-json-validator! πŸ’–.
Please fill out all fields below and make sure each item is true and [x]
checked.
Otherwise we may not be able to review your PR. -->

## PR Checklist

- [x] Addresses an existing open issue: fixes #100
- [ ] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/package-json-validator/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
   - I just opened this Issue, and then added a PR to address it.
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/package-json-validator/blob/main/.github/CONTRIBUTING.md)
were taken

## Overview

<!-- Description of what is changed and how the code change does that.
-->
Re-added the `bin` key to package.json so that `npx
package-json-validator` works without having to install the package.

## Output

```
$ npx package-json-validator --warnings --recommendations
{ valid: true }
```
  • Loading branch information
rgant authored Dec 17, 2024
1 parent d3818d7 commit 2c684a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
],
"type": "commonjs",
"main": "PJV.js",
"bin": {
"pjv": "./bin/pjv"
},
"files": [
"bin/",
"demo/",
Expand Down

0 comments on commit 2c684a0

Please sign in to comment.