UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk without cli. @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).

16 lines (15 loc) 1.09 kB
/** * Downloads all files for a given JSR package concurrently. * * @param scope - e.g. "luca" * @param packageName - e.g. "flag" * @param version - Specific version; if omitted, the highest valid version is chosen. * @param outputDir - Where to save files. (Defaults to "<__dirname>/output") * @param useSinglePath - If true, writes all files directly into outputDir; otherwise uses a nested structure. * @param concurrency - Maximum number of parallel downloads (default: 5) * @param pkgIsCLI - Whether the package is a CLI tool. * @param msgDownloadStarted - Optional custom message when download starts. * @param revertTsxFiles - If true (and pkgIsCLI), renames -tsx.txt files back to .tsx after download. * @param cliInstallDeps - If true (and pkgIsCLI), installs dependencies after download. */ export declare function downloadJsrDist(scope: string, packageName: string, version?: string, outputDir?: string, useSinglePath?: boolean, concurrency?: number, pkgIsCLI?: boolean, msgDownloadStarted?: string, revertTsxFiles?: boolean, cliInstallDeps?: boolean): Promise<void>;