(spec: string, pkg?: PluginPackage)
| 361 | } |
| 362 | |
| 363 | async function readThemeFiles(spec: string, pkg?: PluginPackage) { |
| 364 | if (!pkg) return [] as string[] |
| 365 | return Promise.resolve() |
| 366 | .then(() => readPackageThemes(spec, pkg)) |
| 367 | .catch((error) => { |
| 368 | warn("invalid tui plugin oc-themes", { |
| 369 | path: spec, |
| 370 | pkg: pkg.pkg, |
| 371 | error, |
| 372 | }) |
| 373 | return [] as string[] |
| 374 | }) |
| 375 | } |
| 376 | |
| 377 | async function syncPluginThemes(plugin: PluginEntry) { |
| 378 | if (!plugin.load.theme_files.length) return |
no test coverage detected