[CAL-2198] Private git submodule inside monorepo causing error when we aren't careful to see what's in yarn.lock #10217
Labels
🐛 bug
Something isn't working
ci
area: CI, DX, pipeline, github actions
⬆️ dependencies
Pull requests that update a dependency file
Low priority
Created by Linear-GitHub Sync
Medium priority
Created by Linear-GitHub Sync
This is how it happens
yarn
locally in three monorepo on his system that doesn't have the above folders and thus 3 package.json files are missingyarn
ends up removing these 3 packages as well as their dependencies.yarn dev
or any otheryarn
command, he would see an error like following. It basically says that there is apps/auth with package.json but that isn't there in yarn.lockI think that we should move auth, website, console outside the monorepo into their own repositories. These 3 being apps, aren't going to be a depenendency of each other and they are just going to need some packages from @calcom monorepo.
To allow an app like console, to be able to access to monorepo packages, we can maybe use file: URI in package.json to refer to local dependencies and use tsconfig compilerOptions path to map the packages to locally checked out monorepo
We can also go the ideal way where we publish all the packages in monorepo to npm and then use those packages.
From SyncLinear.com | CAL-2198
The text was updated successfully, but these errors were encountered: