UNPKG

dotnet-deps-parser

Version:

Generate a dep tree given a collection of manifests

20 lines (19 loc) 2.41 kB
import 'source-map-support/register'; import { DepType, PkgTree, PropsLookup } from './parsers'; export { buildDepTreeFromPackagesConfig, buildDepTreeFromProjectFile, buildDepTreeFromProjectJson, buildDepTreeFromProjectAssetsJson, buildDepTreeFromFiles, containsPackageReference, extractProjectSdkFromProjectFile, extractTargetFrameworksFromFiles, extractTargetFrameworksFromProjectFile, extractTargetFrameworksFromProjectConfig, extractTargetFrameworksFromProjectJson, extractTargetFrameworksFromProjectAssetsJson, extractTargetSdkFromGlobalJson, extractProps, isSupportedByV2GraphGeneration, isSupportedByV3GraphGeneration, PkgTree, DepType, }; declare function buildDepTreeFromProjectJson(manifestFileContents: string, includeDev?: boolean): PkgTree; declare function buildDepTreeFromProjectAssetsJson(manifestFileContents: string, targetFramework?: string): PkgTree; declare function buildDepTreeFromPackagesConfig(manifestFileContents: string, includeDev?: boolean): Promise<PkgTree>; declare function buildDepTreeFromProjectFile(manifestFileContents: string, includeDev?: boolean, propsMap?: PropsLookup): Promise<PkgTree>; declare function buildDepTreeFromFiles(root: string, manifestFilePath: string, includeDev?: boolean, targetFramework?: string): PkgTree | Promise<PkgTree>; declare function isSupportedByV2GraphGeneration(targetFramework: string): boolean; declare function isSupportedByV3GraphGeneration(targetFramework: string, projectSdk: string | undefined): boolean; declare function extractTargetFrameworksFromFiles(root: string, manifestFilePath: string): Promise<string[]>; declare function extractProjectSdkFromProjectFile(manifestFileContents: string): Promise<string | undefined>; declare function extractTargetFrameworksFromProjectFile(manifestFileContents: string): Promise<string[]>; declare function extractTargetFrameworksFromProjectConfig(manifestFileContents: string): Promise<string[]>; declare function containsPackageReference(manifestFileContents: string): Promise<boolean>; declare function extractTargetFrameworksFromProjectJson(manifestFileContents: string): Promise<string[]>; declare function extractTargetFrameworksFromProjectAssetsJson(manifestFileContents: string): Promise<string[]>; declare function extractTargetSdkFromGlobalJson(manifestFileContents: string): string | undefined; declare function extractProps(propsFileContents: string): Promise<PropsLookup>;