If you specify a bin directory in directories.bin, all the files in that folder will be added. Because of the way the bin directive works, specifying both a bin path and setting directories.bin is an error. If you want to specify individual files, use bin, and for all the files in an existing bin directory, use directories.bin.
Put markdown doc files in here.
Put example scripts in here.
Tell people where the bulk of your library is.
Nothing special is done with the lib
folder
in any way, but it's useful meta info.
A folder that is full of man pages. Sugar to generate
a man
array by walking the folder.
Put your tests in here.
Generated using TypeDoc
You can specify exact locations to put binary files, man pages, documentation, examples, etc. Package manager tools must use these directory definitions to find various package components.
{ "directories": { "lib": "path/to/lib/", "bin": "path/to/bin/", "man": "path/to/man/", "doc": "path/to/doc/", "example": "path/to/example/" } }
http://wiki.commonjs.org/wiki/Packages/1.0
https://docs.npmjs.com/files/package.json#directories
https://yarnpkg.com/en/docs/package-json#toc-directories