Sign in
Log inSign up

Single vs multiple package.json files

Default profile photo
Anonymous
·Jan 23, 2018

I have an application with a /client and a /server folder. Currently there's a single package.json file in the root of the project that has scripts to build the client as well as run the server.

I've been playing around with the thought of breaking this single package.json file to two different ones that would be in client/package.json and server/package.json so that the files hold semantic content - client has only client related packages and scripts while the server one has only server related packages and scripts.

An argument that I feel going for this is the fact that in the future, if I have to move my client and server folders to their own repositories, it will be really easy.

Thoughts?