(manifest: ArtifactManifest)
| 94 | |
| 95 | /** Next version number for a manifest (max existing + 1). */ |
| 96 | export function nextVersionNumber(manifest: ArtifactManifest): number { |
| 97 | return manifest.versions.reduce((max, v) => Math.max(max, v.v), 0) + 1; |
| 98 | } |
| 99 | |
| 100 | /** Build a fresh manifest for a new artifact's first version. */ |
| 101 | export function buildManifest(id: string, title: string, type: ArtifactType, file: string, now: string, note?: string): ArtifactManifest { |
no outgoing calls
no test coverage detected