diff options
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') | ||