Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save DaneTheory/ca7d51aea4f3a9f88e678ffcd9a64b8a to your computer and use it in GitHub Desktop.

Select an option

Save DaneTheory/ca7d51aea4f3a9f88e678ffcd9a64b8a to your computer and use it in GitHub Desktop.
The Package (dot) JSON: A story of love, triumph, and general witchcraft/wizardry - InitFields: Bin
[{
"npm:current": {
"ref": "",
"source": [
]
},
"npm:legacy": {
"ref": "",
"source": [
]
},
"yarn:current": {
"ref": "https://yarnpkg.com/configuration/manifest#bin",
"source": [
"A field used to expose some executable Javascript files to the parent package. Any entry listed here will be made available through the '$PATH'. Note that it is very advised to only expose Javascript files for portability reasons (shellscripts and non-js binaries require the user to have a specific shell, and are incompatible with zip access).",
"_example_:{ \n \"bin\": { \n \"my-bin\": \"./dist/my-bin.js\" \n } \n }:_example_"
]
},
"yarn:legacy": {
"ref": "https://classic.yarnpkg.com/en/docs/package-json/#toc-bin",
"source": [
"Executable files included with your project that will be installed.",
"_example_:{ \n \"bin\": \"cli.js\", \n \"bin\": { \n \"command-name\": \"bin/command-name.js\", \n \"other-command\": \"bin/other-command\" \n } \n }:_example_"
]
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment