I am using microsoft rush to build a mono-repo.
I have to build two projects - tools-common and tools-backend
tools-backend depends on tools-common.
rush rebuild works fine on the local machine.
But on azure devops, it tries to first build tools-backend and it fails for not finding tools-common.
My questions are.
- Why rush on azure devops fails to detect the order?
- How can I ensure that it picks up
tools-commonbeforetools-backend?
I solved it by adding
tools-commonindevDependenciesas well. Earlier it was inpeerDependenciesonly. It seems that rush does not try to resolvepeerDependencies. So if we have a local project, we should add it both in dev and peer dependencies.Why it worked on my local machine was it held copy of
tools-commondist from previous run. It would not work on local either This is what I have found. But any better explanation is welcome.