aqua/api/api-npm/imports.d.ts

21 lines
583 B
TypeScript
Raw Normal View History

2023-12-06 10:50:48 +00:00
import Arborist from "@npmcli/arborist";
2023-12-06 11:33:35 +00:00
export declare type Imports = Record<string, string[]>;
2023-12-06 10:50:48 +00:00
2023-12-06 10:56:59 +00:00
/**
* Gather imports for aqua compiler from
* actual node_modules folder created by npm.
* Underneath it uses @npmcli/arborist.
* @param path path to project with node_modules folder
*/
2023-12-06 10:50:48 +00:00
export declare async function gatherImportsFromNpm(path: string): Imports;
2023-12-06 10:56:59 +00:00
/**
* Same as `gatherImportsFromNpm` but uses
* already created arborist instance.
* @param arborist arborist instance
*/
2023-12-06 10:50:48 +00:00
export declare async function gatherImportsFromArborist(
arborist: Arborist,
): Imports;