aboutsummaryrefslogtreecommitdiffstats
path: root/ace.js
diff options
context:
space:
mode:
Diffstat (limited to 'ace.js')
-rw-r--r--ace.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/ace.js b/ace.js
new file mode 100644
index 0000000..a313518
--- /dev/null
+++ b/ace.js
@@ -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 */
18import { register } from 'node:module'
19register('ts-node/esm', import.meta.url)
20
21/**
22 * Import ace console entrypoint
23 */
24await import('./bin/console.js')