-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi there,
I've scaffolded Sanity Studio in a subdirectory inside my monorepo. When I run npx sanity build, it first checks whether all required dependencies are installed by looking into the package.json file. However, because of the nature of my monorepo, I don't want package.json files to live on app level directories, only on the root directory. So I've deleted this local package.json file and moved all deps to the root one. This causes the CLI to break, since it is looking for the package.json file in the root of the studio directory. I think this line causes the issue:
Is it possible to look for another package.json file? Is it possible to not check for dependencies at all, and just assume they're all there? Currently I can't get npx sanity build to run without it looking for a local package.json.
Thanks!