@sap-ux/project-access
Version:
Library to access SAP Fiori tools projects
17 lines • 714 B
TypeScript
import type { Logger } from '@sap-ux/logger';
/**
* Execute an npm command.
*
* @param commandArguments - command arguments as array, e.g. ['install', '@sap/ux-specification@1.2.3']
* @param [options] - optional options
* @param [options.cwd] - optional current working directory
* @param [options.logger] - optional logger instance
* @param [options.throwOnError] - optional flag to throw an error if the command exits with a non-zero code, default is false
* @returns - stdout of the command
*/
export declare function execNpmCommand(commandArguments: string[], options?: {
cwd?: string;
logger?: Logger;
throwOnError?: boolean;
}): Promise<string>;
//# sourceMappingURL=npm-command.d.ts.map