(type: ArtifactType)
| 76 | |
| 77 | /** The canonical entry filename inside a version folder for a type. */ |
| 78 | export function entryFileName(type: ArtifactType): string { |
| 79 | // Web types use index.* so a static server / browser can open the folder directly. |
| 80 | return type === 'react' ? `App.${extensionForType(type)}` : `index.${extensionForType(type)}`; |
| 81 | } |
| 82 | |
| 83 | /** Turn a human title into a stable, filesystem-safe kebab id. */ |
| 84 | export function slugifyArtifactId(title: string): string { |
no test coverage detected