mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
02a108f983
- 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.
15 lines
593 B
TypeScript
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');
|
|
};
|