Skip to content

Conversation

cprecioso
Copy link
Member

@cprecioso cprecioso commented May 21, 2025

Fixes #2458

This was approved in #2709, but forgot to keep that when that PR was closed. We bring it back here.

@cprecioso cprecioso force-pushed the cprecioso/push-rzywtyrurkqk branch from d0aa7ec to bc97d47 Compare May 21, 2025 11:49
@cprecioso cprecioso changed the title Add build to bundle Type-check generated server code when buildifn May 21, 2025
@cprecioso cprecioso changed the title Type-check generated server code when buildifn Type-check generated server code when building May 21, 2025
@cprecioso cprecioso marked this pull request as ready for review May 21, 2025 11:50
@cprecioso cprecioso requested a review from sodic May 21, 2025 11:50
@cprecioso cprecioso self-assigned this May 21, 2025
@cprecioso
Copy link
Member Author

@infomiho this worked before merging the app runner for the headless tests, can you take a look? I think it's trying to run npm run bundle inside of the Docker container but it should be already bundled by then.

@infomiho
Copy link
Contributor

@cprecioso It's related to the building the server container, I believe we should maybe also copy the tsconfig.json i.e. modify the Dockerfile to allow tsc to run in the Docker.

Copy link

cloudflare-workers-and-pages bot commented May 28, 2025

Deploying wasp-docs-on-main with  Cloudflare Pages  Cloudflare Pages

Latest commit: f96359b
Status: ✅  Deploy successful!
Preview URL: https://fe7def56.wasp-docs-on-main.pages.dev
Branch Preview URL: https://cprecioso-push-rzywtyrurkqk.wasp-docs-on-main.pages.dev

View logs

@cprecioso
Copy link
Member Author

Ready for review!

@cprecioso
Copy link
Member Author

@infomiho

@infomiho infomiho self-requested a review June 2, 2025 13:25
(waspProjectDir </> packageLockJsonInWaspProjectDir)
packageLockJsonInBuildDir

liftIO $
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd add a comment that explains that we need this tsconfig.json file since the server config references the user TS config file. It took me a bit to figure this out when I was reviewing this.

Copy link
Contributor

@infomiho infomiho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works, looks okay, I'd just add a comment explaining why we need to copy the user tsconfig.json to the build dir.

@cprecioso cprecioso merged commit 39da9b3 into main Jun 4, 2025
8 checks passed
@cprecioso cprecioso deleted the cprecioso/push-rzywtyrurkqk branch June 4, 2025 08:04
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.

Type-check server code when building

2 participants