- Updated all package.json name fields and dependency references - Updated all TypeScript/JavaScript imports - Updated .woodpecker/publish.yml filters and registry paths - Updated tools/install.sh scope default - Updated .npmrc registry paths (worktree + host) - Enhanced update-checker.ts with checkForAllUpdates() multi-package support - Updated CLI update command to show table of all packages - Added KNOWN_PACKAGES, formatAllPackagesTable, getInstallAllCommand - Marked checkForUpdate() with @deprecated JSDoc Closes #391
22 lines
638 B
TypeScript
22 lines
638 B
TypeScript
import { Global, Module } from '@nestjs/common';
|
|
import { createQueueAdapter, type QueueAdapter } from '@mosaicstack/queue';
|
|
import type { MosaicConfig } from '@mosaicstack/config';
|
|
import { MOSAIC_CONFIG } from '../config/config.module.js';
|
|
import { QueueService } from './queue.service.js';
|
|
|
|
export const QUEUE_ADAPTER = 'QUEUE_ADAPTER';
|
|
|
|
@Global()
|
|
@Module({
|
|
providers: [
|
|
QueueService,
|
|
{
|
|
provide: QUEUE_ADAPTER,
|
|
useFactory: (config: MosaicConfig): QueueAdapter => createQueueAdapter(config.queue),
|
|
inject: [MOSAIC_CONFIG],
|
|
},
|
|
],
|
|
exports: [QueueService, QUEUE_ADAPTER],
|
|
})
|
|
export class QueueModule {}
|