Monorepo
From Logic Wiki
install yarn :
npm install --global yarn
create workspace
yarn init -y
edit package.json
{
"name":"some-name",
"version":"1.0.0",
"main":"index.js",
"repository":"https://github.com/aliiybar/some-name.git",
"author":"Ali",
"licence":"MIT",
"private":true,
"workspaces":{
"packages":[
"packages/*"
],
"nohoist": [
"**/lodash"
]
}
}
private is for main, internal modules should be public
packages is the main folder name we develop projects inside
nohoist is for node modules which should not be shared
yarn module-a build