node.js - Notating Multiple Modules in the Same Package.json File -


i trying package modules have been working on. have 5 modules, split in 5 files. 4 of them actual outward-facing modules want user able install. other 1 support module need function correctly. stored in same directory. want able specify each separate module in same directory. far can tell, 1 can define single module in package.json.

is there way specify multiple modules? if not, means must bad practice. how should structure module's exports move in 1 main module?

currently there's not supported way of having separate package.json file each module you'll publishing within same directory. , really, makes sense, each package deploy may have issues, feature requests, bugs, etc need handled separately , don't force updates of others. separating these out allow focus on maintenance of each independently, , allow consumers of these modules include them separately. lot of larger scale projects have started creating think people like, end having thing use random sub-project created separately.

so separate directories, , separate package.json files, include dependencies within package.json each. if haven't seen there's couple writeups development of node packages here:
https://www.npmjs.org/doc/misc/npm-developers.html
https://www.npmjs.org/doc/files/package.json.html


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -