Files
scoreko-dev/src/extension/index.ts
T
Pandipipas 02a108f983 refactor: architecture base
- Moved NodeCG context management to a dedicated context module.
- Introduced message handling utilities for better message listening and sending.
- Updated startgg integration to use new message handling methods.
- Removed deprecated replicant utilities and replaced them with a new structure.
- Refactored replicant imports in graphics components to align with new structure.
- Added new pack-related types and schemas for better type safety.
- Cleaned up unused files and consolidated pack configuration into a single module.
- Updated TypeScript configurations to reflect new directory structure.
2026-05-23 21:52:07 +02:00

15 lines
593 B
TypeScript

import type { NodeCGServerAPI } from '../types/index.js';
import { setNodecgContext } from '../nodecg/extension/context.js';
export default async (nodecg: NodeCGServerAPI) => {
/**
* Because of how top-level `import`s work, it helps to use `import`s here
* to force things to be loaded *after* the NodeCG context is set.
*/
setNodecgContext(nodecg); // set nodecg "context" before anything else
await import('./modules/replicants.js'); // make sure replicants are set up
await import('./startgg.js');
await import('./challonge.js');
await import('./pack-manager.js');
};