added knip, and starting to remove unused stuff
This commit is contained in:
parent
9de70f6979
commit
d7979500eb
13 changed files with 78 additions and 769 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import type { AwilixContainer } from 'awilix';
|
||||
import type { BaseAppConfig as StockBotAppConfig } from '@stock-bot/config';
|
||||
import { ServiceContainerBuilder } from './builder';
|
||||
import type { ServiceDefinitions, ServiceContainerOptions } from './types';
|
||||
|
||||
|
||||
/**
|
||||
* Modern async factory for creating service containers
|
||||
*/
|
||||
export async function createServiceContainerAsync(
|
||||
config: StockBotAppConfig,
|
||||
options: ServiceContainerOptions = {}
|
||||
): Promise<AwilixContainer<ServiceDefinitions>> {
|
||||
const builder = new ServiceContainerBuilder();
|
||||
return builder
|
||||
.withConfig(config)
|
||||
.withOptions(options)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
@ -17,9 +17,6 @@ export {
|
|||
// New modular structure exports
|
||||
export * from './container/types';
|
||||
export { ServiceContainerBuilder } from './container/builder';
|
||||
export {
|
||||
createServiceContainerAsync
|
||||
} from './container/factory';
|
||||
|
||||
// Configuration exports
|
||||
export * from './config/schemas';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue