I'm wondering: if your terminal's current working directory is inside a yarn workspace, is there a way to run a yarn script that's defined at the project root without changing the current directory to be outside of a workspace?
For instance, you can run a command for a particular workspace by running yarn workspace workspace-name script-name
but is it possible to use that yarn workspace
command to target not a subpackage, but the root package itself?
PROJECT_CWD
andINIT_CWD
as described in the docs. – Distemper