Files
go-npm/example/package.json
Sanath Kumar Ramesh 5c19b1b1f9 Removing a wrong validation check
`bin` property of package.json must point to a binary that will
be copied by NPM into the NPM Installation's bin directory. This check
was assuming users would point to a directory containing the binary and
not the binary itself
2017-08-10 17:48:12 -07:00

18 lines
392 B
JSON

{
"name": "app",
"version": "0.0.1",
"description": "Example App",
"main": "index.js",
"scripts": {
"install": "go-npm"
},
"bin": {
"anyCommandNameYouLike": "./bin/myBinaryName"
},
"goBinary": {
"name": "myBinaryName",
"path": "./bin",
"url": "https://github.com/user/myrepo/releases/download/v{{version}}/myBinaryName{{platform}}_{{arch}}.tar.gz"
}
}