Skip to content

Create shared pnpm package#634

Merged
mjaydenkim merged 42 commits into
masterfrom
bek76/pnpm-shared
Mar 5, 2026
Merged

Create shared pnpm package#634
mjaydenkim merged 42 commits into
masterfrom
bek76/pnpm-shared

Conversation

@benkoppe

@benkoppe benkoppe commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Summary

Some types are improperly shared between the frontend and backend, causing the frontend to have a hard dependency on the backend during the build step. This PR properly structures the repo with a new shared package, and moves all shared types there.

Note that this shared package cannot currently contain code that runs on the frontend, like functions (I havent' tested the backend). This is because there is no build step where it is turned into javascript, and Create React App isn't great at this. This problem should be fixed in the near future with Vite, so this PR also opens the doors to this as an easy next step.

  • created shared package @carriage-web/shared
  • imported in both frontend and server packages
  • migrate all types and replace all imports with imports from shared
  • update Docker flow to exclude server from frontend build stage since they no longer depend on each other
  • test if definitions like enums can be deduplicated (probably not without vite)

@benkoppe benkoppe requested a review from a team as a code owner December 9, 2025 14:10
@dti-github-bot

dti-github-bot commented Dec 9, 2025

Copy link
Copy Markdown
Member

[diff-counting] Significant lines: 8096. This diff might be too big! Developer leads are invited to review the code.

Continue using REACT_APP prefix for saved github actions secrets
@dti-github-bot dti-github-bot requested review from Destaq, burninglilies and oscarwang20 and removed request for oscarwang20 December 10, 2025 13:54
Base automatically changed from bek76/fix-mobile-login to bek76/pnpm-docker-deploy January 14, 2026 18:23
Base automatically changed from bek76/pnpm-docker-deploy to master February 26, 2026 00:23
@vercel

vercel Bot commented Mar 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cu-carriage Ready Ready Preview, Comment Mar 5, 2026 0:47am

@netlify

netlify Bot commented Mar 5, 2026

Copy link
Copy Markdown

Deploy Preview for carriage-web ready!

Name Link
🔨 Latest commit cf835e6
🔍 Latest deploy log https://app.netlify.com/projects/carriage-web/deploys/69a8d26b7156e60008f0a893
😎 Deploy Preview https://deploy-preview-634--carriage-web.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mjaydenkim mjaydenkim merged commit e285032 into master Mar 5, 2026
11 of 12 checks passed
@mjaydenkim mjaydenkim deleted the bek76/pnpm-shared branch March 5, 2026 00:47
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.

3 participants