22 lines
569 B
TypeScript
22 lines
569 B
TypeScript
type DepNode = {
|
|
name: string;
|
|
parent?: DepNode;
|
|
};
|
|
type DepGraph = {
|
|
nodeDict: Record<string, DepNode>;
|
|
roots: DepNode[];
|
|
ascOrder: string[];
|
|
};
|
|
/**
|
|
* 构建项目依赖关系图
|
|
* @param cwd
|
|
* @returns
|
|
*/
|
|
export declare function analyzeDepedency(cwd: string): DepGraph;
|
|
/**
|
|
* 本函数用于构建src/initialize.dev, src/initialize.prod, src/initializeFeatures, src/context/FrontendContext, src/contextBackendContext
|
|
* 这些和dependency相关的项目文件
|
|
*/
|
|
export default function buildDependency(rebuild?: boolean): void;
|
|
export {};
|