aboutsummaryrefslogtreecommitdiffstats
path: root/ace.js
blob: 3b083714b2180505f9a660a16bd9bc89ffb04b6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
/*
|--------------------------------------------------------------------------
| JavaScript entrypoint for running ace commands
|--------------------------------------------------------------------------
|
| Since, we cannot run TypeScript source code using "node" binary, we need
| a JavaScript entrypoint to run ace commands.
|
| This file registers the "ts-node/esm" hook with the Node.js module system
| and then imports the "bin/console.ts" file.
|
*/

/**
 * Register hook to process TypeScript files using ts-node
 */
import { register } from 'node:module';
register('ts-node/esm', import.meta.url);

/**
 * Import ace console entrypoint
 */
await import('./bin/console.js');