UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

19 lines (18 loc) 954 B
import type { PackageJson } from "pkg-types"; import type { IntegrationConfig, RemovalConfig } from "../../sdk-types.js"; /** * Updates package.json fields with comprehensive options * @param projectPath - Path to the project directory containing package.json * @param options - Configuration options for the update * @returns Promise resolving to true if successful, false otherwise */ export declare function updatePackageJson(projectPath: string, options?: { /** Full or partial package.json fields to update */ fields?: Partial<PackageJson>; /** Scripts to add or update */ scripts?: Record<string, string>; /** Whether to throw errors instead of returning false */ throwOnError?: boolean; }): Promise<boolean>; export declare function installIntegration(cwd: string, config: IntegrationConfig, isDev: boolean): Promise<void>; export declare function removeIntegration(cwd: string, config: RemovalConfig): Promise<void>;