Steps for deploying a monorepo using turborepo on Digital Ocean

I am working with a monorepo managed by turborepo. It consists of two packages - 'client' and 'api', located inside packages/* in the root folder. My current challenge is deploying the 'api' package to Digital Ocean, but I'm encountering issues due to turborepo's structure. Since turborepo does not create individual yarn.lock files for each package, the deployment fails. Here is the error message:

[2023-01-16 18:06:59] │ project does not contain a package manager lockfile
[2023-01-16 18:06:59] │ Error: package-lock.json does not exist. Please commit either a 
                 package-lock.json or yarn.lock file to your repository and try again.
[2023-01-16 18:06:59] │ ERROR: failed to build: exit status 1

From my research, it seems that turborepo only generates a single yarn.lock file in the root directory. I am uncertain how to successfully deploy an individual package without separate lockfiles.

Answer №1

Make sure to configure the Source Directory as / and proceed with the build process using this command:

yarn build --filter=./packages/api

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Automatically forward to m.example.com on mobile devices using nodejs

Is there a way to create a subdomain in Node.js, such as m.example.com, and have it redirect to m.example.com on mobile devices? I've searched for answers but haven't found a satisfactory solution. One suggestion is to use nginx in front of Node, ...

I am currently attempting to extract data from a JSON file by using key names for reference, but I am running into issues when dealing with nested keys

Is there a better way to retrieve values from a JSON file by matching key names? The current method I am using does not seem to work with nested keys, so any suggestions on alternative approaches would be appreciated. // Sample .JSON file { "ro ...

Comprehending the functionality of the .then() method in Node.js

Kindly correct me if my understanding is incorrect. From what I know, .then() should only run once the dependent function completes its task. However, in this case, I am seeing a different order of execution. If the array size is 20, the console.log(i) ( ...

Maintain the div in its current location when zooming the map

I created a multi-layer map and added a div to it. However, the issue arises when I zoom in on the image, causing the div to change its position unexpectedly. For example, if I place the div over India and then zoom and drag the image, the div ends up in U ...

Custom mute bot using Discord.js with the ability to specify duration and provide a reason

I'm creating a discord.js mute bot and encountering some issues with its functionality. Is there a way to program it so that when someone types the command !mute User, it automatically sets the time to 30min and the reason as No reason Specified. How ...

Retrieve JSON information from an AJAX POST request

Trying to figure out how to retrieve JSON data from an AJAX function using PHP. Here's what I have so far, but need some help on the PHP side. window.onload = function() { var json = { hello : 'howareyou', good : 'y ...

Using iterative JavaScript to dynamically update form fields based on previous selections

My query is quite akin to this one. It has a slight variation. I have two models - Family and Person with has_many association from family to person and accepts_nested_attributes_for :persons in family.rb file. Within my FamiliesController, I've imp ...

Exploring the Fundamentals of XSS

Currently, my technology stack consists of Symfony2, Twig, and Doctrine. When it comes to securing my website, I am particularly concerned about preventing XSS attacks. However, despite taking precautions, I'm not sure what more I can do. Persisten ...

When the parent component in React JS rerenders, the props are not automatically passed down to the child

I have come across similar questions in the past, but I have not found any answers that directly address the issue I am facing in my scenario. In my case, there is a parent component that passes a property to a child component's state. Depending on t ...

Mastering the proper utilization of document.readyState in conjunction with Selenium

I am exploring a method to automatically scroll down a page that loads content dynamically as it is scrolled, ensuring everything is loaded before interacting with it using Selenium. I came across this code originally written for c#, which I have converte ...

Some design elements are present in the interface. The functionality of the data tables is working properly, however, upon reloading the page, the table header shrinks. Interestingly

[![enter image description here][1]][1] This is the JavaScript code along with my footer and header references. The issue I am facing is with the design - initially, it shows a buggy design but when I click on the header, it displays the correct design. & ...

Tips for validating multiple forms on a single page without altering the JavaScript validation structure

My JSP page currently consists of two forms: <body> <form id="1"></form> <form id="2"></form> </body> Only one form is visible at a time when the page is viewed. A JavaScript validation file is used to check the ...

Manage the orientation of an object circling a sphere using quaternions

My latest game features an airplane being controlled by the user from a top-down perspective, flying over a spherical earth object. The airplane has the ability to rotate left or right by using the arrow keys on the keyboard, and can accelerate by pressing ...

Dynamic JavaScript Line Graph

I am facing a challenge with a small function in my application that needs to display real-time data on a webpage. I have been exploring different Javascript examples, such as the Flot example "real-time updates" and the Highcharts example "spline updating ...

What are the reasons for a jQuery function to run in a selective manner?

There seems to be some inconsistency in the behavior of this incomplete script that I'm trying to debug. The issue arises when I click off an item, as sometimes the $(editObj).removeAttr('style'); line of code executes and other times it doe ...

Leveraging the power of Express.js, transmit local data alongside a

Why can't I display the active user in my view using plain HTML when console log shows it? Here is the code snippet: app.post('/', function (req, res) { var user = { user : req.body.username }; res.render('doctor_hagfish/pets&ap ...

Transmitting intricate Javascript Array to ASP.NET Controller Function

I am facing an issue with sending a complex JavaScript array to my asp.net mvc6 controller method. I have tried two different methods to pass the data, but neither seem to be working for me. public IActionResult TakeComplexArray(IList<ComplexArrayInfo ...

Showing a dynamically updated array in Angular

Within my Angular Application I am utilizing an ngFor loop in the component to display an array. Now, I am filtering the data from the array and aiming to update the newly filtered array in place of the original one. While I can successfully display the ...

What is the best way to transform JSON or an array from an AJAX responseText into a JavaScript array?

I recently implemented ajax into my code, and it is working perfectly. It provides me with either JSON or an array as the output. Here is the snippet of code I used: xmlhttp=new XMLHttpRequest(); xmlhttp.open("GET","http://map_ajax_control.php",false); xm ...

Unable to get jQuery plugin to function properly within a .vue component

I am currently working on a Vue component for my Laravel 5.3 application. I am trying to integrate the Laravel File Manager into a standalone button, but it seems like it's not functioning properly. When I click on the button to choose an image, nothi ...