forked from zoton2/nodecg-vue-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
21 lines (18 loc) · 741 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* eslint-disable global-require */
// This must go first so we can use module aliases!
/* eslint-disable import/first */
// eslint-disable-next-line @typescript-eslint/no-var-requires
require('module-alias').addAlias('@nodecg-vue-ts-template', require('path').join(__dirname, '.'));
import { Configschema } from '@nodecg-vue-ts-template/types/schemas';
import type NodeCG from '@nodecg/types';
import { set } from './util/nodecg';
export = (nodecg: NodeCG.ServerAPI<Configschema>): void => {
/**
* Because of how `import`s work, it helps to use `require`s to force
* things to be loaded *after* the NodeCG context is set.
*/
set(nodecg);
require('./displaySound');
require('./information');
require('./startSoon');
};