Closed langma closed 9 years ago
I think its more sensible for that madge be patched to handle main
pointing to a directory. There are numerous modules on npm that point to directories, including most of mine, and I have no desire to go through and change them.
I don't see any requirement that main
be a file in npm's package.json spec, or CommonJS for that matter. It is not implied that a module name resolve to a file, since you can require
by directory names.
Define "main" to be a js module instead of a directory to enable certain tools (madge) to understand them. This is also how npm specification defines the data type: https://docs.npmjs.com/files/package.json