Skip to main content

I'm learning some Monday app development and I'm trying to get a deployment working on Monday Code from a monorepo setup.

I’m using Turborepo and the main issue I’m having is creating a predeploy script to include my packages (which are currently included in my repo as npm workspaces) into the build folder to be included in the tarball.  The build system used by Monday Code doesn’t seem to like the workspaces.

In this video, ​@dipro mentions the monorepo scenario and creating a predeploy script at 23:20

https://youtu.be/tXAKtabsXqM?si=SU6GhoJpgMSvSRLt&t=1400

In the same video, at timestamp 15:07 I can see one of the test projects is called "monorepo monday code", but that project doesn’t seem to be in the “Hello World” apps at https://github.com/mondaycom/welcome-apps/tree/master/apps

Has anyone successfully deployed to Monday Code from a monorepo or specifically turborepo? 

Hey ​@slnd94 - sorry, I can’t find that exact code example in my files, but we can understand this from first principles. 

 

The basic idea is that your predeploy script should build any dependencies first, and then pull them into the same directory as your code. 

 

What’s your setup, what are your current deploy and pre-deploy scripts (if any), and what error are you getting? 


Thanks for your response ​@dipro .  I was having trouble pre-building the dependencies cleanly, but I have been able to get it working now.


@slnd94 what package manager are you using? 


@Revilre I’m using pnpm locally.  I do now have my issue sorted and can successfully deploy to Monday Code from the monorepo.