I'm writing an automated build script that needs to run ng build
in a specific directory. My project has the following structure:
project
├ build-script
└ project-client
└ package.json
ng build
is looking for the package.json file, but it can't find it in its current location. Is there a way I can direct ng build
to the subdirectory without doing a cd
(since bash is a bit wonky about changing directories)? Essentially, I just need a way to tell ng build
to operate in a directory that I specify.
I have tried doing ng build ./project-client/
but it is giving the error that "You have to be inside an angular-cli project in order to use the build command"
Thanks.