Skip to content

Commit

Permalink
docs : suggest correct entry to bin (#7524)
Browse files Browse the repository at this point in the history
Our existing example present in npm doc was giving warning.

issue: #7302
  • Loading branch information
Santoshraj2 committed May 14, 2024
1 parent 10256e8 commit aa5d7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lib/content/configuring-npm/package-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ package, then you can just supply it as a string. For example:
{
"name": "my-program",
"version": "1.2.5",
"bin": "./path/to/program"
"bin": "path/to/program"
}
```

Expand All @@ -396,7 +396,7 @@ would be the same as this:
"name": "my-program",
"version": "1.2.5",
"bin": {
"my-program": "./path/to/program"
"my-program": "path/to/program"
}
}
```
Expand Down

0 comments on commit aa5d7b1

Please sign in to comment.