UNPKG

@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

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>;