ray-template/scripts/distributions.d.mts
XiaoDaiGua-Ray 59c1090ea4
feat(fullstack): add optional backend and source distributions
Add the NestJS backend with PostgreSQL and Redis, local setup, and
independent frontend and fullstack source archives.

Enforce permissions across redirects, let users dismiss the 403 page,
and restore missing translation warnings in development.
2026-11-06 19:53:49 +08:00

29 lines
734 B
TypeScript

export type DistributionEdition = 'frontend' | 'fullstack'
export interface DistributionManifest {
formatVersion: number
generatedBy: string
edition: DistributionEdition
version: string
source: { commit: string | null; dirty: boolean }
workspaces: string[]
fileCount: number
contentSha256: string
}
export function pruneLockfile(content: string, importers: Set<string>): string
export function exportDistribution(
root: string,
edition: DistributionEdition,
options?: { archive?: boolean },
): Promise<{
directory: string
archive: string | null
manifest: DistributionManifest
}>
export function checkDistributions(root?: string): {
edition: DistributionEdition
files: number
workspaces: number
}[]