All Questions
95
questions
1
vote
1
answer
505
views
What can be done with Lerna that can not be done using Yarn workspaces
Trying to figure out the best solution for maintaining a monorepo (MR) of packages.
I see that many blog posts recommend using MR tools such as Lerna/Nx together with Yarn workspaces, as Lerna is used ...
2
votes
0
answers
725
views
Yarn uses wrong dependecy
Since I've updated to yarn berry via: yarn set version berry I cannot run my project, the dependency tree is somehow broken. For ease I've provided examples for react-router but this happends with ...
1
vote
0
answers
646
views
Facing issues running lerna commands in jenkins pipeline
I have a monorepo configured with Lerna and yarn workspaces.
At the same time, I have a Jenkins pipeline setup on AWS instance.
So all the dev and prod scripts are running without any issues on my ...
0
votes
1
answer
588
views
Is there a way to specify global resolutions in Yarn 1?
I'm using Node 10 for some automated pipelines and now when calling yarn global add lerna, it's pulling in a transitive dependency, @npmcli/[email protected] which was released a few days ago and introduces a ...
4
votes
1
answer
934
views
How do i recover the packages in each lerna repository after i have deleted the node_modules from the sub folders?
My Repository Structure is
codebook
-packages
-clii
-local-api
-local-client
-lerna.json
-package.json
I installed local api to clii and local-client to local-api but for publishing i wanted to ...
5
votes
1
answer
3k
views
TypeError: Cannot read properties of undefined (reading 'isServer')
When trying to install yarn install in project folder getting me error
yarn install v1.22.15
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An ...
0
votes
1
answer
2k
views
how to manage multiple versions of multiple packages with Lerna?
I am using Lerna to manage multiple packages and I would like to support multiple versions of such packages.
I need to start a new version 3 (breaking changes) in the packages while providing ...
2
votes
0
answers
668
views
Monorepo: lerna run --scope vs yarn workspace
Monorepo project using lerna and yarn workspaces.
What is the difference between lerna run --scope <package-name> <command> and yarn workspace <package-name> <command>?
Which ...
1
vote
1
answer
3k
views
error No lock file in this directory. Run yarn install to generate one. LERNA JENKINS
I am using Lerna (https://github.com/lerna/lerna) for managing my monorepo with the following structure:
-yarn.lock
-package.json
-node_modules
-packages
--app
---app1
----package.json
----src
----...
4
votes
2
answers
3k
views
Avoid Husky from being triggered for changes on every unrelated directory in monorepo project
I'm using husky in my lerna monorepo project which has more than one directory (project)
.husky
front
├── package.json
app
└── package.json
on hook prepush I launch my test on front/ and app/ with ...
6
votes
1
answer
2k
views
Is lerna bootstrap command useful when using yarn workspace
I'm using lerna in combination with yarn workspaces.
In that case, all the package hoisting and symlinking is handled by yarn workspaces.
In that particular case, what's the role of the lerna bootsrap ...
10
votes
1
answer
7k
views
How do I update all subfolder package.json in a monorepo to the same version?
I have a repository with a bunch of different front-end React projects, which all have package.json files of their own.
I have four requrements:
I want to keep all of these projects on the same ...
1
vote
0
answers
342
views
yarn workspace package always installs in root
I am using lerna with yarn workspaces.
I have 3 sub-repos in my monorepo. I add husky in sub-repo-1's package.json and then run yarn.
It appears that husky ends up being installed in the root's ...
1
vote
1
answer
177
views
Not able to run any yarn cmd even after installing it
I was using lerna yarn workspaces to manage the my monorepos but due to dependencies incompatible version issues i downgraded my yarn version and after that yarn cmds start failing. Then i again ...
5
votes
1
answer
1k
views
How to manage multiple monorepos
In our projects we have multiple monorepos used across whole company. The problem is, that we have for example monorepo-A and monorepo-B and monorepo-B uses components from monorepo-A (this is ...