UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

22 lines (21 loc) 767 B
import { PkgService as BasePkgService } from '@sprucelabs/spruce-skill-utils'; import CommandServiceImpl from './CommandService'; export default class PkgService extends BasePkgService { private packageManager; constructor(cwd: string, commandService: CommandServiceImpl); install(pkg?: string[] | string, options?: AddOptions): Promise<{ totalInstalled: number; totalSkipped: number; } | { totalInstalled: number; }>; private filterOutWorkspaceSiblings; private getWorkspaceSiblingNames; getSkillNamespace(): string; uninstall(pkg: string[] | string): Promise<void | undefined>; } export interface AddOptions { isDev?: boolean; shouldForceInstall?: boolean; shouldCleanupLockFiles?: boolean; }