If your build command uses files that are in a different directory you can simply cd to the directory first, then run the commands.

An example would be:

```
cd /path/to/folder
npm install
```