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

21 lines
572 B
TypeScript
Raw Normal View History

2023-12-06 10:50:48 +00:00
import Arborist from "@npmcli/arborist";
import type { Imports } from "./index.d.ts";
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;