UNPKG

2.14 kBTypeScriptView Raw
1import 'source-map-support/register';
2import { DepType, PkgTree, PropsLookup } from './parsers';
3export { buildDepTreeFromPackagesConfig, buildDepTreeFromProjectFile, buildDepTreeFromProjectJson, buildDepTreeFromProjectAssetsJson, buildDepTreeFromFiles, containsPackageReference, extractTargetFrameworksFromFiles, extractTargetFrameworksFromProjectFile, extractTargetFrameworksFromProjectConfig, extractTargetFrameworksFromProjectJson, extractTargetFrameworksFromProjectAssetsJson, extractTargetSdkFromGlobalJson, extractProps, isSupportedByV2GraphGeneration, PkgTree, DepType, };
4declare function buildDepTreeFromProjectJson(manifestFileContents: string, includeDev?: boolean): PkgTree;
5declare function buildDepTreeFromProjectAssetsJson(manifestFileContents: string, targetFramework?: string): PkgTree;
6declare function buildDepTreeFromPackagesConfig(manifestFileContents: string, includeDev?: boolean): Promise<PkgTree>;
7declare function buildDepTreeFromProjectFile(manifestFileContents: string, includeDev?: boolean, propsMap?: PropsLookup): Promise<PkgTree>;
8declare function buildDepTreeFromFiles(root: string, manifestFilePath: string, includeDev?: boolean, targetFramework?: string): PkgTree | Promise<PkgTree>;
9declare function isSupportedByV2GraphGeneration(targetFramework: string): boolean;
10declare function extractTargetFrameworksFromFiles(root: string, manifestFilePath: string, includeDev?: boolean): Promise<string[]>;
11declare function extractTargetFrameworksFromProjectFile(manifestFileContents: string): Promise<string[]>;
12declare function extractTargetFrameworksFromProjectConfig(manifestFileContents: string): Promise<string[]>;
13declare function containsPackageReference(manifestFileContents: string): Promise<boolean>;
14declare function extractTargetFrameworksFromProjectJson(manifestFileContents: string): Promise<string[]>;
15declare function extractTargetFrameworksFromProjectAssetsJson(manifestFileContents: string): Promise<string[]>;
16declare function extractTargetSdkFromGlobalJson(manifestFileContents: string): string | undefined;
17declare function extractProps(propsFileContents: string): Promise<PropsLookup>;