Рет қаралды 4,799
In this Javascript tutorial on NPM Package.JSON we look at the 'WORKSPACES' keyword and how it helps us manage monrepo setups
With a monrepo we have maintenance and tasks that can be aided by ceratin tools. The workspaces feature of NPM is one such tool in that in allows us to NPM link all the sub packages to the main root package in our repo. This takes away the manual work associated with this. Workspaces can also help automate running of scripts against all of the sub projects. So it provides a nice bit of automation for us and can be built upon by other tools. So if the basic functionality is not enough then we can also incorporate other tools that build upon this such as 'Lerna'