@o3r/schematics
Version:
Schematics module of the Otter framework
16 lines • 1.03 kB
TypeScript
import { TaskConfiguration, TaskConfigurationGenerator } from '@angular-devkit/schematics';
import { NodePackageTaskOptions } from '@angular-devkit/schematics/tasks/package-manager/options';
import { type SupportedPackageManagers } from '../../utility/package-manager-runner';
/**
* Configuration used to run Node script via Package Manager.
* Warning: The command only supports single quote strings when run with NPM. In NPM, the " character will be replaced by its char code
* Note that this only works if the necessary files are created on the disk (doesn't work on tree)
*/
export declare class NodeRunScriptTask implements TaskConfigurationGenerator<NodePackageTaskOptions> {
private readonly script;
private readonly workingDirectory?;
private readonly packageManager?;
constructor(script: string, workingDirectory?: string | undefined, packageManager?: SupportedPackageManagers | undefined);
toConfiguration(): TaskConfiguration<NodePackageTaskOptions>;
}
//# sourceMappingURL=npm-node-run.d.ts.map