mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 19:40:34 +00:00
724c88c201
A mechanical prettier --write over server/src, server/tests, server/scripts and shared/src with the workspaces' .prettierrc; nothing but layout and import order changes, and every file keeps the same set of imports. shared is formatted throughout and its format baseline is empty. The server baseline keeps the 35 files that Prettier would grow past their lint:size limit (they need a split first, which is not a formatting change), and the generated entity files stay as their generator writes them.
23 lines
961 B
TypeScript
23 lines
961 B
TypeScript
import { DemoService } from './demo.service';
|
|
import { Global, Module } from '@nestjs/common';
|
|
|
|
/**
|
|
* Global home for `DemoService` (Plan 3i Task 3). The 5 `isDemoUserId`
|
|
* survivor sites (`trip-invite.mcp.ts`,
|
|
* `plugins/contributions/plugin-mcp-tools.service.ts`, `feeds.mcp.ts`,
|
|
* `categories.mcp.ts`, `budget.mcp.ts`) live in 5 different domain modules
|
|
* this task does not own; `@Global()` (the same shape `AppConfigModule`
|
|
* uses) lets every one of them inject `DemoService` by constructor without
|
|
* any of those 5 modules needing an explicit import. `DemoService`'s own
|
|
* dependencies (`RuntimeEnvService`, `EntityManager`) are already global
|
|
* providers themselves (`AppConfigModule`, `MikroOrmModule.forRoot`'s core
|
|
* module) — this module exists only to make `DemoService` itself
|
|
* resolvable, registered once in `app.module.ts`.
|
|
*/
|
|
@Global()
|
|
@Module({
|
|
providers: [DemoService],
|
|
exports: [DemoService],
|
|
})
|
|
export class DemoModule {}
|