Saltar al contenido principal
Versión: 0.25.0

Function: installFromMarketplace()

function installFromMarketplace(
dir,
spec,
scopeDir,
options?
): Promise<{
commit?: string;
marketplace: string;
missing: string[];
name: string;
remote: string[];
replaced: boolean;
}>;

Defined in: core/marketplaces.ts:266

Installs <plugin>@<marketplace> (or a plugin only one known marketplace offers) into a scope, locked with where it came from (the packages its npx servers run into options.packages, #54). Its name in the agent is its plugin.json's, as for any extension.

Parameters​

ParameterType
dirstring
specstring
scopeDirstring
options{ packages?: string; store?: string; }
options.packages?string
options.store?string

Returns​

Promise<{ commit?: string; marketplace: string; missing: string[]; name: string; remote: string[]; replaced: boolean; }>