(templateDirectory: string)
| 97 | } |
| 98 | |
| 99 | export function getPublishedTemplates(templateDirectory: string): Template[] { |
| 100 | return getAllTemplates(templateDirectory).filter((template) => { |
| 101 | const packageJsonPath = path.join(template.path, "package.json"); |
| 102 | return isDashTemplate(packageJsonPath); |
| 103 | }); |
| 104 | } |
| 105 | |
| 106 | // Deprecated: Use getAllTemplates() or getPublishedTemplates() instead |
| 107 | export function getTemplates(templateDirectory: string): Template[] { |
no test coverage detected