node-module-engine-host.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829
  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 { BaseException } from '@angular-devkit/core';
  9. import { RuleFactory } from '../src';
  10. import { FileSystemCollectionDesc, FileSystemSchematicDesc } from './description';
  11. import { FileSystemEngineHostBase } from './file-system-engine-host-base';
  12. export declare class NodePackageDoesNotSupportSchematics extends BaseException {
  13. constructor(name: string);
  14. }
  15. /**
  16. * A simple EngineHost that uses NodeModules to resolve collections.
  17. */
  18. export declare class NodeModulesEngineHost extends FileSystemEngineHostBase {
  19. private readonly paths?;
  20. constructor(paths?: string[] | undefined);
  21. private resolve;
  22. protected _resolveCollectionPath(name: string, requester?: string): string;
  23. protected _resolveReferenceString(refString: string, parentPath: string, collectionDescription?: FileSystemCollectionDesc): {
  24. ref: RuleFactory<{}>;
  25. path: string;
  26. } | null;
  27. protected _transformCollectionDescription(name: string, desc: Partial<FileSystemCollectionDesc>): FileSystemCollectionDesc;
  28. protected _transformSchematicDescription(name: string, _collection: FileSystemCollectionDesc, desc: Partial<FileSystemSchematicDesc>): FileSystemSchematicDesc;
  29. }