mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
import { question } from 'zx';
|
|
import ScriptOptions from './Types/ScriptOptions';
|
|
|
|
import Compile from './Services/Compile';
|
|
|
|
await (async (): Promise<void> => {
|
|
const token: $TSFixMe = await question('Choose Option: ', {
|
|
choices: [ScriptOptions.CompileTypeScript],
|
|
});
|
|
|
|
if (token === ScriptOptions.CompileTypeScript) {
|
|
await Compile.compileAllTypeScriptProjects();
|
|
}
|
|
})();
|