node-modules-test-engine-host.d.ts 942 B

12345678910111213141516171819202122
  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.dev/license
  7. */
  8. import { TaskConfiguration } from '../src/engine';
  9. import { FileSystemSchematicContext } from './description';
  10. import { NodeModulesEngineHost } from './node-module-engine-host';
  11. /**
  12. * An EngineHost that uses a registry to super seed locations of collection.json files, but
  13. * revert back to using node modules resolution. This is done for testing.
  14. */
  15. export declare class NodeModulesTestEngineHost extends NodeModulesEngineHost {
  16. #private;
  17. get tasks(): TaskConfiguration<{}>[];
  18. clearTasks(): void;
  19. registerCollection(name: string, path: string): void;
  20. transformContext(context: FileSystemSchematicContext): FileSystemSchematicContext;
  21. protected _resolveCollectionPath(name: string, requester?: string): string;
  22. }