Configuring a Mono Repo

I have a question about configuring a mono repo


Above is my file structure.
Now, how can I define my preview for the frontend, which is a react app?
If I define the preview command as “run-frontend” will it work? or would I need to cd and then do the npm run?