aqua/api/api-npm/imports.d.ts
InversionSpaces 5044dd030d Add comments
2023-12-06 10:56:59 +00:00

21 lines
572 B
TypeScript

import Arborist from "@npmcli/arborist";
import type { Imports } from "./index.d.ts";
/**
* 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
*/
export declare async function gatherImportsFromNpm(path: string): Imports;
/**
* Same as `gatherImportsFromNpm` but uses
* already created arborist instance.
* @param arborist arborist instance
*/
export declare async function gatherImportsFromArborist(
arborist: Arborist,
): Imports;