Homelab, Linux, JS & ABAP (~˘▾˘)~
 

[nodejs] workspaces

If you have subdirectories or additional applications which have its own package.json file, you can add them via the workspaces setting to your main project.

 {
  "name": "my-project",
  "workspaces": [ 
     "./app/*"
   ]
}

When running npm install it will now also install the dependencies of all projects in the app folder.

Leave a Reply

Your email address will not be published. Required fields are marked *