UNPKG

1.31 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Path, schema, virtualFs } from '@angular-devkit/core';
9import { workflow } from '@angular-devkit/schematics';
10import { FileSystemEngine } from '../description';
11import { OptionTransform } from '../file-system-engine-host-base';
12import { NodeModulesEngineHost } from '../node-module-engine-host';
13export interface NodeWorkflowOptions {
14 force?: boolean;
15 dryRun?: boolean;
16 packageManager?: string;
17 packageManagerForce?: boolean;
18 packageRegistry?: string;
19 registry?: schema.CoreSchemaRegistry;
20 resolvePaths?: string[];
21 schemaValidation?: boolean;
22 optionTransforms?: OptionTransform<Record<string, unknown> | null, object>[];
23 engineHostCreator?: (options: NodeWorkflowOptions) => NodeModulesEngineHost;
24}
25/**
26 * A workflow specifically for Node tools.
27 */
28export declare class NodeWorkflow extends workflow.BaseWorkflow {
29 constructor(root: string, options: NodeWorkflowOptions);
30 constructor(host: virtualFs.Host, options: NodeWorkflowOptions & {
31 root?: Path;
32 });
33 get engine(): FileSystemEngine;
34 get engineHost(): NodeModulesEngineHost;
35}