Skip to content

sudipstha08/lerna

Repository files navigation

Lerna

A tool for managing JavaScript projects with multiple packages 🔥

commands 🔧

commands description
npx lerna init init lerna
lerna create create a package
yarn bootstrap install dependencies
yarn package:user runs user server 🏃
yarn remove removes a package

Tech Stacks 🎉

tech description
next server side rendering
react-query data fetching library
lerna multi-package repos
axios HTTP client
typescript type system for JS
styled-components CSS in JS

Add npm packages to the specific lerna package ➕

$ lerna add next-compose-plugins --scope=user
$ lerna add next-transpile-modules --scope '{admin,user}'

REFERENCES 📚

  1. https://medium.com/wesionary-team/creating-next-js-monorepo-d41ea78f4afb

  2. TypeError: Cannot read property 'concat' of undefined | yarn --frozen-lockfile