mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-17 16:13:36 +08:00
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.
29 lines
734 B
TypeScript
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
|
|
}[]
|