Yarn add in the wrong folder

This might be a mundane issue, but I’ve noticed that I keep running yarn add in the root folder of my application, even though I only want to add it e.g to the web folder.
This leads to my application running but having accidentally installed packages somewhere else
→ If I want to try exporting only the web app (which I actually do wanna in my case) it will not build properly.

It’d be great if I could have something like yarn rw web add or something like that :smiley:

Hey @Avataw !

You need to do yarn workspace web add ... since we use yarn workspaces to manage monorepo :slightly_smiling_face:

2 Likes

Awesome, of course there is a solution for that already! hahahaha :slight_smile:

As far as I can see there is no specific reference to that in the documentation? What about a “Workspace” point in the Reference part of the docs? :slight_smile:

1 Like

Hmm I just now found the relevant commands in chapter 1 of the documentation. So all is good I just forgot :slight_smile:

3 Likes