I am using it like this but get errr in ng20.1
import { Ng, NgBuild } from 'ng-programmatic';
const ngBuild: NgBuild = Ng.Build({ aot: true });
ngBuild.setArg('aot', false).setArg('baseHref', 'src/').setArg('configuration', 'dev');
console.log(ngBuild.toString());
ngBuild.run().then((result) => {});
Error: Cannot determine project for command.
This is a multi-project workspace and more than one project supports this command. Run "ng build [project]" to execute the command for a specific project or change the current working directory to a project directory.
Available projects are:
I am using it like this but get errr in ng20.1