KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it possible to have two package.json files for a single NodeJS project? In a project I'm working on, there is an optional and experimental feature which requires some node packages of its own. For every day development, I do not want to force all developers to install those packages. What I'd like, essentially, is a file which just lists npm dependencies in the a similar format as package.json , and then use npm install to install all of them. eg: // package.json: { "dependencies": { "underscore": "1.1.7", "connect": "1.7.0" } } // alt.json { "dependencies": { "experimental_package": "0.0.1", "and_another_one": "1.33.7" } } And then, something like: $ npm install // install the regular package.json stuff $ npm install alt.json // install the other ones Please note that this is not the same as devDependencies
Tags (comma-separated)
Save Edits
Cancel