Skip to content

Resync yarn.lock. Adding some peer deps for turbo packages/*#2262

Merged
zomars merged 3 commits into
calcom:mainfrom
denik1981:fix/fixing-deps
Apr 4, 2022
Merged

Resync yarn.lock. Adding some peer deps for turbo packages/*#2262
zomars merged 3 commits into
calcom:mainfrom
denik1981:fix/fixing-deps

Conversation

@denik1981
Copy link
Copy Markdown
Contributor

@denik1981 denik1981 commented Mar 24, 2022

What does this PR do?

Resyncs yarn.lock that is out of sync from main.
Add a few peer dependencies to their respective host packages to reduce console noise for a cleaner dx installation.
Assures @calcom/prisma can be installed as a standalone package will all its peer dependencies (adding zod dep to itself) so it can be consumed in the future by a different app.

NOTE ASIDE FOR PEER DEPS:
Some peer dependencies are actually added but unseen by yarn working in a monorepo when node_modules is hoisted.
Examples of such are eslint-config requiring next@>=10.2.0, already added by @calcom/web, and react-hot-toast requiring csstype already added by @types/react. This might confuse the developer but we cannot do anything about that.

Workspaces can only be enabled in private projects
If you wonder what this means from your yarn install, it is coming from redis which is required as a monorepo by our SAML library. I can imagine @boxyhq/saml-jackson is going throw a series of breaking changes (haven't reached 1.0.0 yet) but we might want to keep a close eye on it, considering it is an auth-related library and that we are adding it using the fixed form (this is understandable). There might be an important security bug fix in its recent upgrades that we would not ship unless it is manually added and merged by us.

How should this be tested?

Regular regression tests to assure everything is still working well.

  • yarn test-e2e //prod
  • yarn workspace @calcom/web test-e2e //dev

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 24, 2022

@denik1981 is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 24, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

docs – ./apps/docs

🔍 Inspect: https://vercel.com/cal/docs/3VRnZUiw4VYemabfD5WFUmSyDoKt
✅ Preview: Canceled

[Deployment for 7cf2a4f canceled]

calendso – ./apps/web

🔍 Inspect: https://vercel.com/cal/calendso/45VC7t524nNcBaANxGvV2VYvSZ4o
✅ Preview: https://calendso-git-fork-denik1981-fix-fixing-deps-cal.vercel.app

@vercel vercel Bot temporarily deployed to Preview – docs March 24, 2022 03:16 Inactive
@denik1981 denik1981 changed the title Resync yarn.lock. Bonus: adding some peer deps for lib packages Resync yarn.lock. Adding some peer deps for turbo packages/* Mar 24, 2022
@vercel vercel Bot temporarily deployed to Preview – calendso April 4, 2022 21:37 Inactive
@vercel vercel Bot temporarily deployed to Preview – docs April 4, 2022 21:42 Inactive
@vercel vercel Bot temporarily deployed to Preview – calendso April 4, 2022 21:44 Inactive
@zomars zomars merged commit d7ce4fb into calcom:main Apr 4, 2022
@zomars zomars self-requested a review April 4, 2022 22:23
@zomars zomars self-assigned this Apr 4, 2022
joeauyeung added a commit that referenced this pull request Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants