UNPKG

866 BTypeScriptView Raw
1import { DependencyStatsOutput, InstallTarget } from '../../vendor/types/esinstall';
2import { CommandOptions, ImportMap, SnowpackConfig, SnowpackSourceFile } from '../types/snowpack';
3export declare function getInstallTargets(config: SnowpackConfig, lockfile: ImportMap | null, scannedFiles?: SnowpackSourceFile[]): Promise<InstallTarget[]>;
4export declare function command(commandOptions: CommandOptions): Promise<void>;
5interface InstallRunOptions extends CommandOptions {
6 installTargets: InstallTarget[];
7 shouldWriteLockfile: boolean;
8 shouldPrintStats: boolean;
9}
10interface InstallRunResult {
11 importMap: ImportMap;
12 newLockfile: ImportMap | null;
13 stats: DependencyStatsOutput | null;
14}
15export declare function run({ config, installTargets, shouldWriteLockfile, shouldPrintStats, }: InstallRunOptions): Promise<InstallRunResult>;
16export {};