@reliverse/rse
Version:
@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power
19 lines (18 loc) • 954 B
TypeScript
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>;