lerna-workspaces-express-typescript-template
Setting up the project
- Create a yarn workspaces project
yarn init -w
yarn install
- Add .yarnrc.yml file with the following content
nodeLinker: node-modules
npmRegistryServer: "https://registry.npmjs.org/"
- Then execute the following commands
yarn set version stable
yarn plugin import @yarnpkg/plugin-workspace-tools
yarn plugin import typescript
- Install commitizen tool
sudo npm install commitizen --global
- Add workspaces glob pattern to package.json
{
...
"workspaces": [
"packages/*"
],
...
}
- Install lerna as dev dependency
- Initialize lerna as independent versioning
yarn lerna init --independent
- Check current versions available according to the changes with
- You can visualize the dependencies with
- You can check the projects in the workspace with
- Add tyescript as dev dependency