Correct method to tell gnome-builder where the build file is?

I’ve got a project I’m working on where after cloning the repo, I’ve got a docker-compose.yaml in the root directory, and a package.json build file one layer up (in root/website/). Builder does not automatically detect the package.json, because it expects the build file to be in the root directory. If I manually tell builder that the project is located in the website dir (by creating a new project pointing at that directory), it seems to be able to auto-detect that and go from there (I can later tell builder where the docker-compose file is). But this is not an elegant solution.

What is the recommended or correct way to open this project in builder? It seems that there is currently no support for custom build directories. I had hoped that when I told builder to clone the repo, it would have traversed the file structure (at least to a depth of 1) and figured out that the build system is npm and that’s all wrapped up inside a docker container.

1 Like