Skip to content

wondering how to set --project option for NgBuild #1

@yogeshgadge

Description

@yogeshgadge

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:

  • app
  • lib
  • comp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions