Function
loadInternalPlugin
(item: InternalTuiPlugin)
Source from the content-addressed store, hash-verified
| 339 | } |
| 340 | |
| 341 | function loadInternalPlugin(item: InternalTuiPlugin): PluginLoad { |
| 342 | const spec = item.id |
| 343 | const target = spec |
| 344 | |
| 345 | return { |
| 346 | options: undefined, |
| 347 | spec, |
| 348 | target, |
| 349 | retry: false, |
| 350 | source: "internal", |
| 351 | id: item.id, |
| 352 | module: item, |
| 353 | origin: { |
| 354 | spec, |
| 355 | scope: "global", |
| 356 | source: target, |
| 357 | }, |
| 358 | plugin_root: process.cwd(), |
| 359 | theme_files: [], |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | async function readThemeFiles(spec: string, pkg?: PluginPackage) { |
| 364 | if (!pkg) return [] as string[] |
Tested by
no test coverage detected