* docs: prepare Vendoo 1.41.2 git-ignore boundary hotfix * fix: track native source modules with root-anchored runtime ignores
7 lines
569 B
JavaScript
7 lines
569 B
JavaScript
import manifest from './module.json' with { type: 'json' };
|
|
import { ListingsService } from './service.mjs';
|
|
let service = null;
|
|
export function configureListingsModule({ repository }) { service = new ListingsService(repository); }
|
|
export function getListingsService() { if (!service) throw new Error('Listings-Modul ist nicht konfiguriert.'); return service; }
|
|
export function createListingsModule() { return { manifest, lifecycle: { async start(){}, async stop(){}, async health(){ return { ok:Boolean(service), native:true, contracts:['catalog','trash'] }; } } }; }
|