@salesforce/plugin-release-management
Version:
A plugin for preparing and publishing npm packages
42 lines (41 loc) • 1.13 kB
TypeScript
import { FlagsConfig, SfdxCommand } from '@salesforce/command';
export declare type Info = {
origin: string;
version: string;
channel: Channel;
location: Location;
dependencies?: Dependency[];
};
export declare type Dependency = {
name: string;
version: string;
};
export declare enum Channel {
LEGACY = "legacy",
STABLE = "stable",
STABLE_RC = "stable-rc",
LATEST = "latest",
LATEST_RC = "latest-rc"
}
export declare enum Location {
ARCHIVE = "archive",
NPM = "npm"
}
declare type ArchiveChannel = Extract<Channel, Channel.STABLE | Channel.STABLE_RC | Channel.LEGACY>;
declare type Archives = Record<ArchiveChannel, string[]>;
export default class Inspect extends SfdxCommand {
static readonly description: string;
static readonly examples: string[];
static readonly flagsConfig: FlagsConfig;
workingDir: string;
archives: Archives;
run(): Promise<Info[]>;
private initArchives;
private inspectArchives;
private inspectNpm;
private getDependencies;
private readPackageJson;
private mkdir;
private logResults;
}
export {};