UNPKG

1.89 kBTypeScriptView Raw
1import 'source-map-support/register';
2import { PkgTree, DepType, PropsLookup } from './parsers';
3export { buildDepTreeFromPackagesConfig, buildDepTreeFromProjectFile, buildDepTreeFromProjectJson, buildDepTreeFromProjectAssetsJson, buildDepTreeFromFiles, extractTargetFrameworksFromFiles, extractTargetFrameworksFromProjectFile, extractTargetFrameworksFromProjectConfig, containsPackageReference, extractTargetFrameworksFromProjectJson, extractTargetFrameworksFromProjectAssetsJson, extractProps, 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 extractTargetFrameworksFromFiles(root: string, manifestFilePath: string, includeDev?: boolean): Promise<string[]>;
10declare function extractTargetFrameworksFromProjectFile(manifestFileContents: string): Promise<string[]>;
11declare function extractTargetFrameworksFromProjectConfig(manifestFileContents: string): Promise<string[]>;
12declare function containsPackageReference(manifestFileContents: string): Promise<boolean>;
13declare function extractTargetFrameworksFromProjectJson(manifestFileContents: string): Promise<string[]>;
14declare function extractTargetFrameworksFromProjectAssetsJson(manifestFileContents: string): Promise<string[]>;
15declare function extractProps(propsFileContents: string): Promise<PropsLookup>;