diff options
author | 2024-02-10 18:19:14 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 7584d2d7a7110aef0331ebfa178b2295842c59fa (patch) | |
tree | 900cd71237e6231b57936fcce77ff229cd459041 /ace.js | |
parent | upgrade recipes submodule (diff) | |
download | ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.gz ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.tar.zst ferdium-server-7584d2d7a7110aef0331ebfa178b2295842c59fa.zip |
refactor: project maintenance
- work in progress
Diffstat (limited to 'ace.js')
-rw-r--r-- | ace.js | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | /* | ||
3 | |-------------------------------------------------------------------------- | ||
4 | | JavaScript entrypoint for running ace commands | ||
5 | |-------------------------------------------------------------------------- | ||
6 | | | ||
7 | | Since, we cannot run TypeScript source code using "node" binary, we need | ||
8 | | a JavaScript entrypoint to run ace commands. | ||
9 | | | ||
10 | | This file registers the "ts-node/esm" hook with the Node.js module system | ||
11 | | and then imports the "bin/console.ts" file. | ||
12 | | | ||
13 | */ | ||
14 | |||
15 | /** | ||
16 | * Register hook to process TypeScript files using ts-node | ||
17 | */ | ||
18 | import { register } from 'node:module' | ||
19 | register('ts-node/esm', import.meta.url) | ||
20 | |||
21 | /** | ||
22 | * Import ace console entrypoint | ||
23 | */ | ||
24 | await import('./bin/console.js') | ||