mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-11 17:30:18 +00:00
21 lines
572 B
TypeScript
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;
|