1 | import { ProjectGraph, ProjectGraphDependency, ProjectGraphProjectNode, ProjectGraphExternalNode } from '@nrwl/devkit';
|
2 | import { TargetProjectLocator } from 'nx/src/utils/target-project-locator';
|
3 | export declare type MappedProjectGraph<T = any> = ProjectGraph<T> & {
|
4 | allFiles: Record<string, string>;
|
5 | };
|
6 | export declare type Deps = {
|
7 | [projectName: string]: ProjectGraphDependency[];
|
8 | };
|
9 | export declare type DepConstraint = {
|
10 | sourceTag: string;
|
11 | onlyDependOnLibsWithTags?: string[];
|
12 | notDependOnLibsWithTags?: string[];
|
13 | bannedExternalImports?: string[];
|
14 | };
|
15 | export declare function stringifyTags(tags: string[]): string;
|
16 | export declare function hasNoneOfTheseTags(proj: ProjectGraphProjectNode, tags: string[]): boolean;
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | export declare function findDependenciesWithTags(targetProject: ProjectGraphProjectNode, tags: string[], graph: ProjectGraph): ProjectGraphProjectNode[][];
|
24 | export declare function removeExt(file: string): string;
|
25 | export declare function matchImportWithWildcard(allowableImport: string, extractedImport: string): boolean;
|
26 | export declare function isRelative(s: string): boolean;
|
27 | export declare function getTargetProjectBasedOnRelativeImport(imp: string, projectPath: string, projectGraph: MappedProjectGraph, sourceFilePath: string): ProjectGraphProjectNode<any> | undefined;
|
28 | export declare function findProjectUsingFile<T>(projectGraph: MappedProjectGraph<T>, file: string): ProjectGraphProjectNode;
|
29 | export declare function findSourceProject(projectGraph: MappedProjectGraph, sourceFilePath: string): ProjectGraphProjectNode<any>;
|
30 | export declare function findTargetProject(projectGraph: MappedProjectGraph, targetFile: string): ProjectGraphProjectNode<any>;
|
31 | export declare function isAbsoluteImportIntoAnotherProject(imp: string, workspaceLayout?: {
|
32 | libsDir: string;
|
33 | appsDir: string;
|
34 | }): boolean;
|
35 | export declare function findProjectUsingImport(projectGraph: MappedProjectGraph, targetProjectLocator: TargetProjectLocator, filePath: string, imp: string): ProjectGraphProjectNode | ProjectGraphExternalNode;
|
36 | export declare function findConstraintsFor(depConstraints: DepConstraint[], sourceProject: ProjectGraphProjectNode): DepConstraint[];
|
37 | export declare function onlyLoadChildren(graph: ProjectGraph, sourceProjectName: string, targetProjectName: string, visited: string[]): any;
|
38 | export declare function getSourceFilePath(sourceFileName: string, projectPath: string): string;
|
39 | export declare function hasBannedImport(source: ProjectGraphProjectNode, target: ProjectGraphExternalNode, depConstraints: DepConstraint[]): DepConstraint | undefined;
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function findTransitiveExternalDependencies(graph: ProjectGraph, source: ProjectGraphProjectNode): ProjectGraphDependency[];
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 | export declare function hasBannedDependencies(externalDependencies: ProjectGraphDependency[], graph: ProjectGraph, depConstraint: DepConstraint): Array<[ProjectGraphExternalNode, ProjectGraphProjectNode, DepConstraint]> | undefined;
|
55 | export declare function isDirectDependency(target: ProjectGraphExternalNode): boolean;
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | export declare function hasBuildExecutor(projectGraph: ProjectGraphProjectNode): boolean;
|
61 | export declare function mapProjectGraphFiles<T>(projectGraph: ProjectGraph<T>): MappedProjectGraph | null;
|
62 | export declare function isTerminalRun(): boolean;
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 | export declare function groupImports(importsToRemap: {
|
71 | member: string;
|
72 | importPath: string;
|
73 | }[]): string;
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 | export declare function isAngularSecondaryEntrypoint(targetProjectLocator: TargetProjectLocator, importExpr: string): boolean;
|